(self.webpackChunkbusiness=self.webpackChunkbusiness||[]).push([[179],{5876:(Se,R,j)=>{const _=j(532),M=j(7554),w=j(179),x=j(1036);function k(F,N,U,de,X){const ne=[].slice.call(arguments,1),Z=ne.length,ge="function"==typeof ne[Z-1];if(!ge&&!_())throw new Error("Callback required as last argument");if(!ge){if(Z<1)throw new Error("Too few arguments provided");return 1===Z?(U=N,N=de=void 0):2===Z&&!N.getContext&&(de=U,U=N,N=void 0),new Promise(function(z,ee){try{const te=M.create(U,de);z(F(te,N,de))}catch(te){ee(te)}})}if(Z<2)throw new Error("Too few arguments provided");2===Z?(X=U,U=N,N=de=void 0):3===Z&&(N.getContext&&typeof X>"u"?(X=de,de=void 0):(X=de,de=U,U=N,N=void 0));try{const z=M.create(U,de);X(null,F(z,N,de))}catch(z){X(z)}}R.rT=k.bind(null,w.render),R.hz=k.bind(null,w.renderToDataURL),R.toString=k.bind(null,function(F,N,U){return x.render(F,U)})},532:Se=>{Se.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},3012:(Se,R,j)=>{const C=j(4860).getSymbolSize;R.getRowColCoords=function(M){if(1===M)return[];const w=Math.floor(M/7)+2,x=C(M),k=145===x?26:2*Math.ceil((x-13)/(2*w-2)),F=[x-7];for(let N=1;N{const C=j(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 M(w){this.mode=C.ALPHANUMERIC,this.data=w}M.getBitsLength=function(x){return 11*Math.floor(x/2)+x%2*6},M.prototype.getLength=function(){return this.data.length},M.prototype.getBitsLength=function(){return M.getBitsLength(this.data.length)},M.prototype.write=function(x){let k;for(k=0;k+2<=this.data.length;k+=2){let F=45*_.indexOf(this.data[k]);F+=_.indexOf(this.data[k+1]),x.put(F,11)}this.data.length%2&&x.put(_.indexOf(this.data[k]),6)},Se.exports=M},3044:Se=>{function R(){this.buffer=[],this.length=0}R.prototype={get:function(j){const C=Math.floor(j/8);return 1==(this.buffer[C]>>>7-j%8&1)},put:function(j,C){for(let _=0;_>>C-_-1&1))},getLengthInBits:function(){return this.length},putBit:function(j){const C=Math.floor(this.length/8);this.buffer.length<=C&&this.buffer.push(0),j&&(this.buffer[C]|=128>>>this.length%8),this.length++}},Se.exports=R},1973:Se=>{function R(j){if(!j||j<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=j,this.data=new Uint8Array(j*j),this.reservedBit=new Uint8Array(j*j)}R.prototype.set=function(j,C,_,M){const w=j*this.size+C;this.data[w]=_,M&&(this.reservedBit[w]=!0)},R.prototype.get=function(j,C){return this.data[j*this.size+C]},R.prototype.xor=function(j,C,_){this.data[j*this.size+C]^=_},R.prototype.isReserved=function(j,C){return this.reservedBit[j*this.size+C]},Se.exports=R},1824:(Se,R,j)=>{const C=j(8419),_=j(6906);function M(w){this.mode=_.BYTE,this.data=new Uint8Array(C(w))}M.getBitsLength=function(x){return 8*x},M.prototype.getLength=function(){return this.data.length},M.prototype.getBitsLength=function(){return M.getBitsLength(this.data.length)},M.prototype.write=function(w){for(let x=0,k=this.data.length;x{const C=j(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],M=[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];R.getBlocksCount=function(x,k){switch(k){case C.L:return _[4*(x-1)+0];case C.M:return _[4*(x-1)+1];case C.Q:return _[4*(x-1)+2];case C.H:return _[4*(x-1)+3];default:return}},R.getTotalCodewordsCount=function(x,k){switch(k){case C.L:return M[4*(x-1)+0];case C.M:return M[4*(x-1)+1];case C.Q:return M[4*(x-1)+2];case C.H:return M[4*(x-1)+3];default:return}}},9020:(Se,R)=>{R.L={bit:1},R.M={bit:0},R.Q={bit:3},R.H={bit:2},R.isValid=function(_){return _&&typeof _.bit<"u"&&_.bit>=0&&_.bit<4},R.from=function(_,M){if(R.isValid(_))return _;try{return function j(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"l":case"low":return R.L;case"m":case"medium":return R.M;case"q":case"quartile":return R.Q;case"h":case"high":return R.H;default:throw new Error("Unknown EC Level: "+C)}}(_)}catch{return M}}},9172:(Se,R,j)=>{const C=j(4860).getSymbolSize;R.getPositions=function(w){const x=C(w);return[[0,0],[x-7,0],[0,x-7]]}},611:(Se,R,j)=>{const C=j(4860),w=C.getBCHDigit(1335);R.getEncodedBits=function(k,F){const N=k.bit<<3|F;let U=N<<10;for(;C.getBCHDigit(U)-w>=0;)U^=1335<{const j=new Uint8Array(512),C=new Uint8Array(256);(function(){let M=1;for(let w=0;w<255;w++)j[w]=M,C[M]=w,M<<=1,256&M&&(M^=285);for(let w=255;w<512;w++)j[w]=j[w-255]})(),R.log=function(M){if(M<1)throw new Error("log("+M+")");return C[M]},R.exp=function(M){return j[M]},R.mul=function(M,w){return 0===M||0===w?0:j[C[M]+C[w]]}},8043:(Se,R,j)=>{const C=j(6906),_=j(4860);function M(w){this.mode=C.KANJI,this.data=w}M.getBitsLength=function(x){return 13*x},M.prototype.getLength=function(){return this.data.length},M.prototype.getBitsLength=function(){return M.getBitsLength(this.data.length)},M.prototype.write=function(w){let x;for(x=0;x=33088&&k<=40956)k-=33088;else{if(!(k>=57408&&k<=60351))throw new Error("Invalid SJIS character: "+this.data[x]+"\nMake sure your charset is UTF-8");k-=49472}k=192*(k>>>8&255)+(255&k),w.put(k,13)}},Se.exports=M},7135:(Se,R)=>{R.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function C(_,M,w){switch(_){case R.Patterns.PATTERN000:return(M+w)%2==0;case R.Patterns.PATTERN001:return M%2==0;case R.Patterns.PATTERN010:return w%3==0;case R.Patterns.PATTERN011:return(M+w)%3==0;case R.Patterns.PATTERN100:return(Math.floor(M/2)+Math.floor(w/3))%2==0;case R.Patterns.PATTERN101:return M*w%2+M*w%3==0;case R.Patterns.PATTERN110:return(M*w%2+M*w%3)%2==0;case R.Patterns.PATTERN111:return(M*w%3+(M+w)%2)%2==0;default:throw new Error("bad maskPattern:"+_)}}R.isValid=function(M){return null!=M&&""!==M&&!isNaN(M)&&M>=0&&M<=7},R.from=function(M){return R.isValid(M)?parseInt(M,10):void 0},R.getPenaltyN1=function(M){const w=M.size;let x=0,k=0,F=0,N=null,U=null;for(let de=0;de=5&&(x+=k-5+3),N=ne,k=1),ne=M.get(X,de),ne===U?F++:(F>=5&&(x+=F-5+3),U=ne,F=1)}k>=5&&(x+=k-5+3),F>=5&&(x+=F-5+3)}return x},R.getPenaltyN2=function(M){const w=M.size;let x=0;for(let k=0;k=10&&(1488===k||93===k)&&x++,F=F<<1&2047|M.get(U,N),U>=10&&(1488===F||93===F)&&x++}return 40*x},R.getPenaltyN4=function(M){let w=0;const x=M.data.length;for(let F=0;F{const C=j(2316),_=j(4677);R.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},R.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},R.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},R.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},R.MIXED={bit:-1},R.getCharCountIndicator=function(x,k){if(!x.ccBits)throw new Error("Invalid mode: "+x);if(!C.isValid(k))throw new Error("Invalid version: "+k);return k>=1&&k<10?x.ccBits[0]:k<27?x.ccBits[1]:x.ccBits[2]},R.getBestModeForData=function(x){return _.testNumeric(x)?R.NUMERIC:_.testAlphanumeric(x)?R.ALPHANUMERIC:_.testKanji(x)?R.KANJI:R.BYTE},R.toString=function(x){if(x&&x.id)return x.id;throw new Error("Invalid mode")},R.isValid=function(x){return x&&x.bit&&x.ccBits},R.from=function(x,k){if(R.isValid(x))return x;try{return function M(w){if("string"!=typeof w)throw new Error("Param is not a string");switch(w.toLowerCase()){case"numeric":return R.NUMERIC;case"alphanumeric":return R.ALPHANUMERIC;case"kanji":return R.KANJI;case"byte":return R.BYTE;default:throw new Error("Unknown mode: "+w)}}(x)}catch{return k}}},6002:(Se,R,j)=>{const C=j(6906);function _(M){this.mode=C.NUMERIC,this.data=M.toString()}_.getBitsLength=function(w){return 10*Math.floor(w/3)+(w%3?w%3*3+1:0)},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(w){let x,k,F;for(x=0;x+3<=this.data.length;x+=3)k=this.data.substr(x,3),F=parseInt(k,10),w.put(F,10);const N=this.data.length-x;N>0&&(k=this.data.substr(x),F=parseInt(k,10),w.put(F,3*N+1))},Se.exports=_},7793:(Se,R,j)=>{const C=j(7794);R.mul=function(M,w){const x=new Uint8Array(M.length+w.length-1);for(let k=0;k=0;){const k=x[0];for(let N=0;N{const C=j(4860),_=j(9020),M=j(3044),w=j(1973),x=j(3012),k=j(9172),F=j(7135),N=j(6194),U=j(8098),de=j(6602),X=j(611),ne=j(6906),Z=j(9465);function K(q,oe,se){const ke=q.size,xe=X.getEncodedBits(oe,se);let be,De;for(be=0;be<15;be++)De=1==(xe>>be&1),q.set(be<6?be:be<8?be+1:ke-15+be,8,De,!0),q.set(8,be<8?ke-be-1:be<9?15-be-1+1:15-be-1,De,!0);q.set(ke-8,8,1,!0)}function G(q,oe,se,ke){let xe;if(Array.isArray(q))xe=Z.fromArray(q);else{if("string"!=typeof q)throw new Error("Invalid data");{let ie=oe;if(!ie){const S=Z.rawSplit(q);ie=de.getBestVersionForData(S,se)}xe=Z.fromString(q,ie||40)}}const be=de.getBestVersionForData(xe,se);if(!be)throw new Error("The amount of data is too big to be stored in a QR Code");if(oe){if(oe=0&&ve<=6&&(0===ue||6===ue)||ue>=0&&ue<=6&&(0===ve||6===ve)||ve>=2&&ve<=4&&ue>=2&&ue<=4,!0)}}(ue,oe),function z(q){const oe=q.size;for(let se=8;se=7&&function te(q,oe){const se=q.size,ke=de.getEncodedBits(oe);let xe,be,De;for(let ve=0;ve<18;ve++)xe=Math.floor(ve/3),be=ve%3+se-8-3,De=1==(ke>>ve&1),q.set(xe,be,De,!0),q.set(be,xe,De,!0)}(ue,oe),function V(q,oe){const se=q.size;let ke=-1,xe=se-1,be=7,De=0;for(let ve=se-1;ve>0;ve-=2)for(6===ve&&ve--;;){for(let ue=0;ue<2;ue++)if(!q.isReserved(xe,ve-ue)){let ie=!1;De>>be&1)),q.set(xe,ve-ue,ie),be--,-1===be&&(De++,be=7)}if(xe+=ke,xe<0||se<=xe){xe-=ke,ke=-ke;break}}}(ue,De),isNaN(ke)&&(ke=F.getBestMask(ue,K.bind(null,ue,se))),F.applyMask(ke,ue),K(ue,se,ke),{modules:ue,version:oe,errorCorrectionLevel:se,maskPattern:ke,segments:xe}}R.create=function(oe,se){if(typeof oe>"u"||""===oe)throw new Error("No input text");let xe,be,ke=_.M;return typeof se<"u"&&(ke=_.from(se.errorCorrectionLevel,_.M),xe=de.from(se.version),be=F.from(se.maskPattern),se.toSJISFunc&&C.setToSJISFunction(se.toSJISFunc)),G(oe,xe,ke,be)}},8098:(Se,R,j)=>{const C=j(7793);function _(M){this.genPoly=void 0,this.degree=M,this.degree&&this.initialize(this.degree)}_.prototype.initialize=function(w){this.degree=w,this.genPoly=C.generateECPolynomial(this.degree)},_.prototype.encode=function(w){if(!this.genPoly)throw new Error("Encoder not initialized");const x=new Uint8Array(w.length+this.degree);x.set(w);const k=C.mod(x,this.genPoly),F=this.degree-k.length;if(F>0){const N=new Uint8Array(this.degree);return N.set(k,F),N}return k},Se.exports=_},4677:(Se,R)=>{const j="[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 M="(?:(?![A-Z0-9 $%*+\\-./:]|"+_+")(?:.|[\r\n]))+";R.KANJI=new RegExp(_,"g"),R.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),R.BYTE=new RegExp(M,"g"),R.NUMERIC=new RegExp(j,"g"),R.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const w=new RegExp("^"+_+"$"),x=new RegExp("^"+j+"$"),k=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");R.testKanji=function(N){return w.test(N)},R.testNumeric=function(N){return x.test(N)},R.testAlphanumeric=function(N){return k.test(N)}},9465:(Se,R,j)=>{const C=j(6906),_=j(6002),M=j(812),w=j(1824),x=j(8043),k=j(4677),F=j(4860),N=j(4901);function U(te){return unescape(encodeURIComponent(te)).length}function de(te,K,V){const L=[];let Y;for(;null!==(Y=te.exec(V));)L.push({data:Y[0],index:Y.index,mode:K,length:Y[0].length});return L}function X(te){const K=de(k.NUMERIC,C.NUMERIC,te),V=de(k.ALPHANUMERIC,C.ALPHANUMERIC,te);let L,Y;return F.isKanjiModeEnabled()?(L=de(k.BYTE,C.BYTE,te),Y=de(k.KANJI,C.KANJI,te)):(L=de(k.BYTE_KANJI,C.BYTE,te),Y=[]),K.concat(V,L,Y).sort(function(q,oe){return q.index-oe.index}).map(function(q){return{data:q.data,mode:q.mode,length:q.length}})}function ne(te,K){switch(K){case C.NUMERIC:return _.getBitsLength(te);case C.ALPHANUMERIC:return M.getBitsLength(te);case C.KANJI:return x.getBitsLength(te);case C.BYTE:return w.getBitsLength(te)}}function ee(te,K){let V;const L=C.getBestModeForData(te);if(V=C.from(K,L),V!==C.BYTE&&V.bit=0?K[K.length-1]:null;return L&&L.mode===V.mode?(K[K.length-1].data+=V.data,K):(K.push(V),K)},[])}(oe))},R.rawSplit=function(K){return R.fromArray(X(K,F.isKanjiModeEnabled()))}},4860:(Se,R)=>{let j;const C=[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];R.getSymbolSize=function(M){if(!M)throw new Error('"version" cannot be null or undefined');if(M<1||M>40)throw new Error('"version" should be in range from 1 to 40');return 4*M+17},R.getSymbolTotalCodewords=function(M){return C[M]},R.getBCHDigit=function(_){let M=0;for(;0!==_;)M++,_>>>=1;return M},R.setToSJISFunction=function(M){if("function"!=typeof M)throw new Error('"toSJISFunc" is not a valid function.');j=M},R.isKanjiModeEnabled=function(){return typeof j<"u"},R.toSJIS=function(M){return j(M)}},2316:(Se,R)=>{R.isValid=function(C){return!isNaN(C)&&C>=1&&C<=40}},6602:(Se,R,j)=>{const C=j(4860),_=j(6194),M=j(9020),w=j(6906),x=j(2316),F=C.getBCHDigit(7973);function U(ne,Z){return w.getCharCountIndicator(ne,Z)+4}function de(ne,Z){let ge=0;return ne.forEach(function(z){ge+=U(z.mode,Z)+z.getBitsLength()}),ge}R.from=function(Z,ge){return x.isValid(Z)?parseInt(Z,10):ge},R.getCapacity=function(Z,ge,z){if(!x.isValid(Z))throw new Error("Invalid QR Code version");typeof z>"u"&&(z=w.BYTE);const K=8*(C.getSymbolTotalCodewords(Z)-_.getTotalCodewordsCount(Z,ge));if(z===w.MIXED)return K;const V=K-U(z,Z);switch(z){case w.NUMERIC:return Math.floor(V/10*3);case w.ALPHANUMERIC:return Math.floor(V/11*2);case w.KANJI:return Math.floor(V/13);default:return Math.floor(V/8)}},R.getBestVersionForData=function(Z,ge){let z;const ee=M.from(ge,M.M);if(Array.isArray(Z)){if(Z.length>1)return function X(ne,Z){for(let ge=1;ge<=40;ge++)if(de(ne,ge)<=R.getCapacity(ge,Z,w.MIXED))return ge}(Z,ee);if(0===Z.length)return 1;z=Z[0]}else z=Z;return function N(ne,Z,ge){for(let z=1;z<=40;z++)if(Z<=R.getCapacity(z,ge,ne))return z}(z.mode,z.getLength(),ee)},R.getEncodedBits=function(Z){if(!x.isValid(Z)||Z<7)throw new Error("Invalid QR Code version");let ge=Z<<12;for(;C.getBCHDigit(ge)-F>=0;)ge^=7973<{const C=j(714);R.render=function(x,k,F){let N=F,U=k;typeof N>"u"&&(!k||!k.getContext)&&(N=k,k=void 0),k||(U=function M(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),N=C.getOptions(N);const de=C.getImageWidth(x.modules.size,N),X=U.getContext("2d"),ne=X.createImageData(de,de);return C.qrToImageData(ne.data,x,N),function _(w,x,k){w.clearRect(0,0,x.width,x.height),x.style||(x.style={}),x.height=k,x.width=k,x.style.height=k+"px",x.style.width=k+"px"}(X,U,de),X.putImageData(ne,0,0),U},R.renderToDataURL=function(x,k,F){let N=F;return typeof N>"u"&&(!k||!k.getContext)&&(N=k,k=void 0),N||(N={}),R.render(x,k,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},1036:(Se,R,j)=>{const C=j(714);function _(x,k){const F=x.a/255,N=k+'="'+x.hex+'"';return F<1?N+" "+k+'-opacity="'+F.toFixed(2).slice(1)+'"':N}function M(x,k,F){let N=x+k;return typeof F<"u"&&(N+=" "+F),N}R.render=function(k,F,N){const U=C.getOptions(F),de=k.modules.size,X=k.modules.data,ne=de+2*U.margin,Z=U.color.light.a?"':"",ge="0&&Z>0&&x[ne-1]||(N+=de?M("M",Z+F,.5+ge+F):M("m",U,0),U=0,de=!1),Z+1',te=''+Z+ge+"\n";return"function"==typeof N&&N(null,te),te}},714:(Se,R)=>{function j(C){if("number"==typeof C&&(C=C.toString()),"string"!=typeof C)throw new Error("Color should be defined as hex string");let _=C.slice().replace("#","").split("");if(_.length<3||5===_.length||_.length>8)throw new Error("Invalid hex color: "+C);(3===_.length||4===_.length)&&(_=Array.prototype.concat.apply([],_.map(function(w){return[w,w]}))),6===_.length&&_.push("F","F");const M=parseInt(_.join(""),16);return{r:M>>24&255,g:M>>16&255,b:M>>8&255,a:255&M,hex:"#"+_.slice(0,6).join("")}}R.getOptions=function(_){_||(_={}),_.color||(_.color={});const w=_.width&&_.width>=21?_.width:void 0;return{width:w,scale:w?4:_.scale||4,margin:typeof _.margin>"u"||null===_.margin||_.margin<0?4:_.margin,color:{dark:j(_.color.dark||"#000000ff"),light:j(_.color.light||"#ffffffff")},type:_.type,rendererOpts:_.rendererOpts||{}}},R.getScale=function(_,M){return M.width&&M.width>=_+2*M.margin?M.width/(_+2*M.margin):M.scale},R.getImageWidth=function(_,M){const w=R.getScale(_,M);return Math.floor((_+2*M.margin)*w)},R.qrToImageData=function(_,M,w){const x=M.modules.size,k=M.modules.data,F=R.getScale(x,w),N=Math.floor((x+2*w.margin)*F),U=w.margin*F,de=[w.color.light,w.color.dark];for(let X=0;X=U&&ne>=U&&X{"use strict";function C(i){return"function"==typeof i}function _(i){const t=i(n=>{Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const M=_(i=>function(t){i(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function w(i,e){if(i){const t=i.indexOf(e);0<=t&&i.splice(t,1)}}class x{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:n}=this;if(C(n))try{n()}catch(o){e=o instanceof M?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{N(o)}catch(a){e=e??[],a instanceof M?e=[...e,...a.errors]:e.push(a)}}if(e)throw new M(e)}}add(e){var t;if(e&&e!==this)if(this.closed)N(e);else{if(e instanceof x){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&w(t,e)}remove(e){const{_finalizers:t}=this;t&&w(t,e),e instanceof x&&e._removeParent(this)}}x.EMPTY=(()=>{const i=new x;return i.closed=!0,i})();const k=x.EMPTY;function F(i){return i instanceof x||i&&"closed"in i&&C(i.remove)&&C(i.add)&&C(i.unsubscribe)}function N(i){C(i)?i():i.unsubscribe()}const U={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},de={setTimeout(i,e,...t){const{delegate:n}=de;return n?.setTimeout?n.setTimeout(i,e,...t):setTimeout(i,e,...t)},clearTimeout(i){const{delegate:e}=de;return(e?.clearTimeout||clearTimeout)(i)},delegate:void 0};function X(i){de.setTimeout(()=>{const{onUnhandledError:e}=U;if(!e)throw i;e(i)})}function ne(){}const Z=ee("C",void 0,void 0);function ee(i,e,t){return{kind:i,value:e,error:t}}let te=null;function K(i){if(U.useDeprecatedSynchronousErrorHandling){const e=!te;if(e&&(te={errorThrown:!1,error:null}),i(),e){const{errorThrown:t,error:n}=te;if(te=null,t)throw n}}else i()}class L extends x{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,F(e)&&e.add(this)):this.destination=be}static create(e,t,n){return new oe(e,t,n)}next(e){this.isStopped?xe(function z(i){return ee("N",i,void 0)}(e),this):this._next(e)}error(e){this.isStopped?xe(function ge(i){return ee("E",void 0,i)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?xe(Z,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Y=Function.prototype.bind;function G(i,e){return Y.call(i,e)}class q{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){se(n)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){se(n)}else se(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){se(t)}}}class oe extends L{constructor(e,t,n){let r;if(super(),C(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let o;this&&U.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&G(e.next,o),error:e.error&&G(e.error,o),complete:e.complete&&G(e.complete,o)}):r=e}this.destination=new q(r)}}function se(i){U.useDeprecatedSynchronousErrorHandling?function V(i){U.useDeprecatedSynchronousErrorHandling&&te&&(te.errorThrown=!0,te.error=i)}(i):X(i)}function xe(i,e){const{onStoppedNotification:t}=U;t&&de.setTimeout(()=>t(i,e))}const be={closed:!0,next:ne,error:function ke(i){throw i},complete:ne},De="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(t){return i.reduce((n,r)=>r(n),t)}}let S=(()=>{class i{constructor(t){t&&(this._subscribe=t)}lift(t){const n=new i;return n.source=this,n.operator=t,n}subscribe(t,n,r){const o=function ce(i){return i&&i instanceof L||function he(i){return i&&C(i.next)&&C(i.error)&&C(i.complete)}(i)&&F(i)}(t)?t:new oe(t,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(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return new(n=le(n))((r,o)=>{const a=new oe({next:s=>{try{t(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)}[De](){return this}pipe(...t){return ie(t)(this)}toPromise(t){return new(t=le(t))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return i.create=e=>new i(e),i})();function le(i){var e;return null!==(e=i??U.Promise)&&void 0!==e?e:Promise}const me=_(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ce=(()=>{class i extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const n=new Pe(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new me}next(t){K(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(t)}})}error(t){K(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){K(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:n,isStopped:r,observers:o}=this;return n||r?k:(this.currentObservers=null,o.push(t),new x(()=>{this.currentObservers=null,w(o,t)}))}_checkFinalizedStatuses(t){const{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){const t=new S;return t.source=this,t}}return i.create=(e,t)=>new Pe(e,t),i})();class Pe extends Ce{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)}error(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:k}}function Ee(i){return C(i?.lift)}function Be(i){return e=>{if(Ee(e))return e.lift(function(t){try{return i(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function je(i,e,t,n,r){return new Je(i,e,t,n,r)}class Je extends L{constructor(e,t,n,r,o,a){super(e),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=t?function(s){try{t(s)}catch(l){e.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function Ve(i,e){return Be((t,n)=>{let r=0;t.subscribe(je(n,o=>{n.next(i.call(e,o,r++))}))})}function Cn(i){return this instanceof Cn?(this.v=i,this):new Cn(i)}function ti(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t.apply(i,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(D){n[D]&&(r[D]=function(A){return new Promise(function(W,J){o.push([D,A,W,J])>1||s(D,A)})})}function s(D,A){try{!function l(D){D.value instanceof Cn?Promise.resolve(D.value.v).then(u,f):v(o[0][2],D)}(n[D](A))}catch(W){v(o[0][3],W)}}function u(D){s("next",D)}function f(D){s("throw",D)}function v(D,A){D(A),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 t,e=i[Symbol.asyncIterator];return e?e.call(i):(i=function at(i){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=i[o]&&function(a){return new Promise(function(s,l){!function r(o,a,s,l){Promise.resolve(l).then(function(u){o({value:u,done:s})},a)}(s,l,(a=i[o](a)).done,a.value)})}}}const sr=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function fr(i){return C(i?.then)}function ao(i){return C(i[De])}function He(i){return Symbol.asyncIterator&&C(i?.[Symbol.asyncIterator])}function Ne(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 Ct=function ze(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sn(i){return C(i?.[Ct])}function Mn(i){return ti(this,arguments,function*(){const t=i.getReader();try{for(;;){const{value:n,done:r}=yield Cn(t.read());if(r)return yield Cn(void 0);yield yield Cn(n)}}finally{t.releaseLock()}})}function Tn(i){return C(i?.getReader)}function Sn(i){if(i instanceof S)return i;if(null!=i){if(ao(i))return function Ao(i){return new S(e=>{const t=i[De]();if(C(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(sr(i))return function _a(i){return new S(e=>{for(let t=0;t{i.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,X)})}(i);if(He(i))return zl(i);if(sn(i))return function ll(i){return new S(e=>{for(const t of i)if(e.next(t),e.closed)return;e.complete()})}(i);if(Tn(i))return function It(i){return zl(Mn(i))}(i)}throw Ne(i)}function zl(i){return new S(e=>{(function Bf(i,e){var t,n,r,o;return function Gi(i,e,t,n){return new(t||(t=Promise))(function(o,a){function s(f){try{u(n.next(f))}catch(v){a(v)}}function l(f){try{u(n.throw(f))}catch(v){a(v)}}function u(f){f.done?o(f.value):function r(o){return o instanceof t?o:new t(function(a){a(o)})}(f.value).then(s,l)}u((n=n.apply(i,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Yt(i);!(n=yield t.next()).done;)if(e.next(n.value),e.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}e.complete()})})(i,e).catch(t=>e.error(t))})}function va(i,e,t,n=0,r=!1){const o=e.schedule(function(){t(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(o),!r)return o}function lr(i,e,t=1/0){return C(e)?lr((n,r)=>Ve((o,a)=>e(n,o,r,a))(Sn(i(n,r))),t):("number"==typeof e&&(t=e),Be((n,r)=>function Po(i,e,t,n,r,o,a,s){const l=[];let u=0,f=0,v=!1;const D=()=>{v&&!l.length&&!u&&e.complete()},A=J=>u{o&&e.next(J),u++;let pe=!1;Sn(t(J,f++)).subscribe(je(e,fe=>{r?.(fe),o?A(fe):e.next(fe)},()=>{pe=!0},void 0,()=>{if(pe)try{for(u--;l.length&&uW(fe)):W(fe)}D()}catch(fe){e.error(fe)}}))};return i.subscribe(je(e,A,()=>{v=!0,D()})),()=>{s?.()}}(n,r,i,t)))}function ni(i=1/0){return lr(ve,i)}const Lr=new S(i=>i.complete());function $a(i){return i&&C(i.schedule)}function Jo(i){return i[i.length-1]}function Ji(i){return C(Jo(i))?i.pop():void 0}function so(i){return $a(Jo(i))?i.pop():void 0}function cl(i,e=0){return Be((t,n)=>{t.subscribe(je(n,r=>va(n,i,()=>n.next(r),e),()=>va(n,i,()=>n.complete(),e),r=>va(n,i,()=>n.error(r),e)))})}function Hy(i,e=0){return Be((t,n)=>{n.add(i.schedule(()=>t.subscribe(n),e))})}function Uy(i,e){if(!i)throw new Error("Iterable cannot be null");return new S(t=>{va(t,e,()=>{const n=i[Symbol.asyncIterator]();va(t,e,()=>{n.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function er(i,e){return e?function Yy(i,e){if(null!=i){if(ao(i))return function Gx(i,e){return Sn(i).pipe(Hy(e),cl(e))}(i,e);if(sr(i))return function cr(i,e){return new S(t=>{let n=0;return e.schedule(function(){n===i.length?t.complete():(t.next(i[n++]),t.closed||this.schedule())})})}(i,e);if(fr(i))return function Kx(i,e){return Sn(i).pipe(Hy(e),cl(e))}(i,e);if(He(i))return Uy(i,e);if(sn(i))return function Jp(i,e){return new S(t=>{let n;return va(t,e,()=>{n=i[Ct](),va(t,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void t.error(a)}o?t.complete():t.next(r)},0,!0)}),()=>C(n?.return)&&n.return()})}(i,e);if(Tn(i))return function jy(i,e){return Uy(Mn(i),e)}(i,e)}throw Ne(i)}(i,e):Sn(i)}function Qr(...i){const e=so(i),t=function ms(i,e){return"number"==typeof Jo(i)?i.pop():e}(i,1/0),n=i;return n.length?1===n.length?Sn(n[0]):ni(t)(er(n,e)):Lr}function Vf(i={}){const{connector:e=(()=>new Ce),resetOnError:t=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return o=>{let a,s,l,u=0,f=!1,v=!1;const D=()=>{s?.unsubscribe(),s=void 0},A=()=>{D(),a=l=void 0,f=v=!1},W=()=>{const J=a;A(),J?.unsubscribe()};return Be((J,pe)=>{u++,!v&&!f&&D();const fe=l=l??e();pe.add(()=>{u--,0===u&&!v&&!f&&(s=$f(W,r))}),fe.subscribe(pe),!a&&u>0&&(a=new oe({next:ye=>fe.next(ye),error:ye=>{v=!0,D(),s=$f(A,t,ye),fe.error(ye)},complete:()=>{f=!0,D(),s=$f(A,n),fe.complete()}}),Sn(J).subscribe(a))})(o)}}function $f(i,e,...t){if(!0===e)return void i();if(!1===e)return;const n=new oe({next:()=>{n.unsubscribe(),i()}});return Sn(e(...t)).subscribe(n)}function Ii(i){for(let e in i)if(i[e]===Ii)return e;throw Error("Could not find renamed property on target object.")}function Hf(i,e){for(const t in e)e.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&(i[t]=e[t])}function Ei(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(Ei).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const e=i.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function eh(i,e){return null==i||""===i?null===e?"":e:null==e||""===e?i:i+" "+e}const Qx=Ii({__forward_ref__:Ii});function Rn(i){return i.__forward_ref__=Rn,i.toString=function(){return Ei(this())},i}function fn(i){return th(i)?i():i}function th(i){return"function"==typeof i&&i.hasOwnProperty(Qx)&&i.__forward_ref__===Rn}class tt extends Error{constructor(e,t){super(function ih(i,e){return`NG0${Math.abs(i)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function xn(i){return"string"==typeof i?i:null==i?"":String(i)}function ea(i,e){throw new tt(-201,!1)}function Ro(i,e){null==i&&function pi(i,e,t,n){throw new Error(`ASSERTION ERROR: ${i}`+(null==n?"":` [Expected=> ${t} ${n} ${e} <=Actual]`))}(e,i,null,"!=")}function Ue(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 oh(i){return Wy(i,td)||Wy(i,jf)}function Wy(i,e){return i.hasOwnProperty(e)?i[e]:null}function ah(i){return i&&(i.hasOwnProperty(Uf)||i.hasOwnProperty(qy))?i[Uf]:null}const td=Ii({\u0275prov:Ii}),Uf=Ii({\u0275inj:Ii}),jf=Ii({ngInjectableDef:Ii}),qy=Ii({ngInjectorDef:Ii});var ln=(()=>((ln=ln||{})[ln.Default=0]="Default",ln[ln.Host=1]="Host",ln[ln.Self=2]="Self",ln[ln.SkipSelf=4]="SkipSelf",ln[ln.Optional=8]="Optional",ln))();let Yf;function ta(i){const e=Yf;return Yf=i,e}function zf(i,e,t){const n=oh(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&ln.Optional?null:void 0!==e?e:void ea(Ei(i))}function na(i){return{toString:i}.toString()}var lo=(()=>((lo=lo||{})[lo.OnPush=0]="OnPush",lo[lo.Default=1]="Default",lo))(),ya=(()=>{return(i=ya||(ya={}))[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom",ya;var i})();const Ri=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),dl={},si=[],ia=Ii({\u0275cmp:Ii}),qf=Ii({\u0275dir:Ii}),vu=Ii({\u0275pipe:Ii}),Gy=Ii({\u0275mod:Ii}),vs=Ii({\u0275fac:Ii}),yu=Ii({__NG_ELEMENT_ID__:Ii});let sh=0;function Oe(i){return na(()=>{const t=!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===lo.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&i.dependencies||null,getStandaloneInjector:null,selectors:i.selectors||si,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||ya.Emulated,id:"c"+sh++,styles:i.styles||si,_:null,setInput:null,schemas:i.schemas||null,tView:null},o=i.dependencies,a=i.features;return r.inputs=Zy(i.inputs,n),r.outputs=Zy(i.outputs),a&&a.forEach(s=>s(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ky).filter(Qy):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(co).filter(Qy):null,r})}function bu(i,e,t){const n=i.\u0275cmp;n.directiveDefs=()=>("function"==typeof e?e():e).map(Ky),n.pipeDefs=()=>("function"==typeof t?t():t).map(co)}function Ky(i){return bi(i)||Zr(i)}function Qy(i){return null!==i}function xt(i){return na(()=>({type:i.type,bootstrap:i.bootstrap||si,declarations:i.declarations||si,imports:i.imports||si,exports:i.exports||si,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function Zy(i,e){if(null==i)return dl;const t={};for(const n in i)if(i.hasOwnProperty(n)){let r=i[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=n,e&&(e[r]=o)}return t}const ot=Oe;function qn(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 bi(i){return i[ia]||null}function Zr(i){return i[qf]||null}function co(i){return i[vu]||null}function Oo(i,e){const t=i[Gy]||null;if(!t&&!0===e)throw new Error(`Type ${Ei(i)} does not have '\u0275mod' property.`);return t}function Co(i){return Array.isArray(i)&&"object"==typeof i[1]}function wa(i){return Array.isArray(i)&&!0===i[1]}function Zf(i){return 0!=(8&i.flags)}function ch(i){return 2==(2&i.flags)}function dh(i){return 1==(1&i.flags)}function xa(i){return null!==i.template}function dk(i){return 0!=(256&i[2])}function Zl(i,e){return i.hasOwnProperty(vs)?i[vs]:null}class mk{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function li(){return e1}function e1(i){return i.type.prototype.ngOnChanges&&(i.setInput=uh),_k}function _k(){const i=n1(this),e=i?.current;if(e){const t=i.previous;if(t===dl)i.previous=e;else for(let n in e)t[n]=e[n];i.current=null,this.ngOnChanges(e)}}function uh(i,e,t,n){const r=n1(i)||function vk(i,e){return i[t1]=e}(i,{previous:dl,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[t],l=a[s];o[s]=new mk(l&&l.currentValue,e,a===dl),i[n]=e}li.ngInherit=!0;const t1="__ngSimpleChanges__";function n1(i){return i[t1]||null}function Qi(i){for(;Array.isArray(i);)i=i[0];return i}function xu(i,e){return Qi(e[i])}function Nr(i,e){return Qi(e[i.index])}function hh(i,e){return i.data[e]}function ld(i,e){return i[e]}function No(i,e){const t=e[i];return Co(t)?t:t[0]}function gh(i){return 64==(64&i[2])}function pl(i,e){return null==e?null:i[e]}function a1(i){i[18]=0}function nm(i,e){i[5]+=e;let t=i,n=i[3];for(;null!==n&&(1===e&&1===t[5]||-1===e&&0===t[5]);)n[5]+=e,t=n,n=n[3]}const wn={lFrame:h1(null),bindingsEnabled:!0};function l1(){return wn.bindingsEnabled}function lt(){return wn.lFrame.lView}function Qn(){return wn.lFrame.tView}function E(i){return wn.lFrame.contextLView=i,i[8]}function I(i){return wn.lFrame.contextLView=null,i}function xr(){let i=fh();for(;null!==i&&64===i.type;)i=i.parent;return i}function fh(){return wn.lFrame.currentTNode}function Ua(i,e){const t=wn.lFrame;t.currentTNode=i,t.isParent=e}function im(){return wn.lFrame.isParent}function Mu(){wn.lFrame.isParent=!1}function uo(){const i=wn.lFrame;let e=i.bindingRootIndex;return-1===e&&(e=i.bindingRootIndex=i.tView.bindingStartIndex),e}function Cs(){return wn.lFrame.bindingIndex}function Xl(){return wn.lFrame.bindingIndex++}function ws(i){const e=wn.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+i,t}function Ak(i,e){const t=wn.lFrame;t.bindingIndex=t.bindingRootIndex=i,am(e)}function am(i){wn.lFrame.currentDirectiveIndex=i}function ja(i){const e=wn.lFrame.currentDirectiveIndex;return-1===e?null:i[e]}function sm(){return wn.lFrame.currentQueryIndex}function lm(i){wn.lFrame.currentQueryIndex=i}function Fk(i){const e=i[1];return 2===e.type?e.declTNode:1===e.type?i[6]:null}function u1(i,e,t){if(t&ln.SkipSelf){let r=e,o=i;for(;!(r=r.parent,null!==r||t&ln.Host||(r=Fk(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;e=r,i=o}const n=wn.lFrame=p1();return n.currentTNode=e,n.lView=i,!0}function gt(i){const e=p1(),t=i[1];wn.lFrame=e,e.currentTNode=t.firstChild,e.lView=i,e.tView=t,e.contextLView=i,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function p1(){const i=wn.lFrame,e=null===i?null:i.child;return null===e?h1(i):e}function h1(i){const e={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=e),e}function cm(){const i=wn.lFrame;return wn.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const ii=cm;function cd(){const i=cm();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 po(){return wn.lFrame.selectedIndex}function hl(i){wn.lFrame.selectedIndex=i}function nr(){const i=wn.lFrame;return hh(i.tView,i.selectedIndex)}function Du(){wn.lFrame.currentNamespace="svg"}function mh(i,e){for(let t=e.directiveStart,n=e.directiveEnd;t=n)break}else e[l]<0&&(i[18]+=65536),(s>11>16&&(3&i[2])===e){i[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}class Bo{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function bh(i,e,t){let n=0;for(;ne){a=o-1;break}}}for(;o>16}(i),n=e;for(;t>0;)n=n[15],t--;return n}let pm=!0;function Ch(i){const e=pm;return pm=i,e}let jk=0;const qa={};function Eu(i,e){const t=Iu(i,e);if(-1!==t)return t;const n=e[1];n.firstCreatePass&&(i.injectorIndex=e.length,hm(n.data,i),hm(e,null),hm(n.blueprint,null));const r=xs(i,e),o=i.injectorIndex;if(y1(r)){const a=dd(r),s=ud(r,e),l=s[1].data;for(let u=0;u<8;u++)e[o+u]=s[a+u]|l[a+u]}return e[o+8]=r,o}function hm(i,e){i.push(0,0,0,0,0,0,0,0,e)}function Iu(i,e){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===e[i.injectorIndex+8]?-1:i.injectorIndex}function xs(i,e){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let t=0,n=null,r=e;for(;null!==r;){if(n=jP(r),null===n)return-1;if(t++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function ec(i,e,t){!function Yk(i,e,t){let n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(yu)&&(n=t[yu]),null==n&&(n=t[yu]=jk++);const r=255&n;e.data[i+(r>>5)]|=1<=0?255&e:ks:e}(t);if("function"==typeof o){if(!u1(e,i,n))return n&ln.Host?y(r,0,n):T(e,t,n,r);try{const a=o(n);if(null!=a||n&ln.Optional)return a;ea()}finally{ii()}}else if("number"==typeof o){let a=null,s=Iu(i,e),l=-1,u=n&ln.Host?e[16][6]:null;for((-1===s||n&ln.SkipSelf)&&(l=-1===s?xs(i,e):e[s+8],-1!==l&&xi(n,!1)?(a=e[1],s=dd(l),e=ud(l,e)):s=-1);-1!==s;){const f=e[1];if(In(o,s,f.data)){const v=_e(s,e,t,a,n,u);if(v!==qa)return v}l=e[s+8],-1!==l&&xi(n,e[1].data[s+8]===u)&&In(o,s,e)?(a=f,s=dd(l),e=ud(l,e)):s=-1}}return r}function _e(i,e,t,n,r,o){const a=e[1],s=a.data[i+8],f=Fe(s,a,t,null==n?ch(s)&&pm:n!=a&&0!=(3&s.type),r&ln.Host&&o===s);return null!==f?Ke(e,a,f,s):qa}function Fe(i,e,t,n,r){const o=i.providerIndexes,a=e.data,s=1048575&o,l=i.directiveStart,f=o>>20,D=r?s+f:i.directiveEnd;for(let A=n?s:s+f;A=l&&W.type===t)return A}if(r){const A=a[l];if(A&&xa(A)&&A.type===t)return l}return null}function Ke(i,e,t,n){let r=i[t];const o=e.data;if(function Bk(i){return i instanceof Bo}(r)){const a=r;a.resolving&&function rh(i,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${i}`:"";throw new tt(-200,`Circular dependency in DI detected for ${i}${t}`)}(function Wn(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():xn(i)}(o[t]));const s=Ch(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?ta(a.injectImpl):null;u1(i,n,ln.Default);try{r=i[t]=a.factory(void 0,o,i,n),e.firstCreatePass&&t>=n.directiveStart&&function Lk(i,e,t){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){const a=e1(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(i,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,a)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-i,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,o))}(t,o[t],e)}finally{null!==l&&ta(l),Ch(s),a.resolving=!1,ii()}}return r}function In(i,e,t){return!!(t[e+(i>>5)]&1<{const e=i.prototype.constructor,t=e[vs]||zk(e),n=Object.prototype;let r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){const o=r[vs]||zk(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function zk(i){return th(i)?()=>{const e=zk(fn(i));return e&&e()}:Zl(i)}function jP(i){const e=i[1],t=e.type;return 2===t?e.declTNode:1===t?i[6]:null}function fl(i){return function Zn(i,e){if("class"===e)return i.classes;if("style"===e)return i.styles;const t=i.attrs;if(t){const n=t.length;let r=0;for(;r{const n=function Wk(i){return function(...t){if(i){const n=i(...t);for(const r in n)this[r]=n[r]}}}(e);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,u,f){const v=l.hasOwnProperty(xh)?l[xh]:Object.defineProperty(l,xh,{value:[]})[xh];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}class Xe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Ue({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ka(i,e){void 0===e&&(e=i);for(let t=0;tArray.isArray(t)?tc(t,e):e(t))}function zP(i,e,t){e>=i.length?i.push(t):i.splice(e,0,t)}function b1(i,e){return e>=i.length-1?i.pop():i.splice(e,1)[0]}function mm(i,e){const t=[];for(let n=0;n=0?i[1|n]=t:(n=~n,function HU(i,e,t,n){let r=i.length;if(r==e)i.push(t,n);else if(1===r)i.push(n,i[0]),i[0]=t;else{for(r--,i.push(i[r-1],i[r]);r>e;)i[r]=i[r-2],r--;i[e]=t,i[e+1]=n}}(i,n,e,t)),n}function Gk(i,e){const t=Dh(i,e);if(t>=0)return i[1|t]}function Dh(i,e){return function GP(i,e,t){let n=0,r=i.length>>t;for(;r!==n;){const o=n+(r-n>>1),a=i[o<e?r=o:n=o+1}return~(r<i,createScript:i=>i,createScriptURL:i=>i})}catch{}return M1}()?.createHTML(i)||i}function tM(){if(void 0===D1&&(D1=null,Ri.trustedTypes))try{D1=Ri.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return D1}function oF(i){return tM()?.createHTML(i)||i}function sF(i){return tM()?.createScriptURL(i)||i}class Au{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class hj extends Au{getTypeName(){return"HTML"}}class gj extends Au{getTypeName(){return"Style"}}class fj extends Au{getTypeName(){return"Script"}}class mj extends Au{getTypeName(){return"URL"}}class _j extends Au{getTypeName(){return"ResourceURL"}}function Da(i){return i instanceof Au?i.changingThisBreaksApplicationSecurity:i}function ml(i,e){const t=function vj(i){return i instanceof Au&&i.getTypeName()||null}(i);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}class kj{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Eh(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class Mj{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const n=this.inertDocument.createElement("body");t.appendChild(n)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Eh(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Eh(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();nM.hasOwnProperty(t)&&!cF.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(hF(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ij=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Aj=/([^\#-~ |!])/g;function hF(i){return i.replace(/&/g,"&").replace(Ij,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Aj,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let S1;function gF(i,e){let t=null;try{S1=S1||function lF(i){const e=new Mj(i);return function Dj(){try{return!!(new window.DOMParser).parseFromString(Eh(""),"text/html")}catch{return!1}}()?new kj(e):e}(i);let n=e?String(e):"";t=S1.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=t.innerHTML,t=S1.getInertBodyElement(n)}while(n!==o);return Eh((new Ej).sanitizeChildren(rM(t)||t))}finally{if(t){const n=rM(t)||t;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function rM(i){return"content"in i&&function Pj(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var hi=(()=>((hi=hi||{})[hi.NONE=0]="NONE",hi[hi.HTML=1]="HTML",hi[hi.STYLE=2]="STYLE",hi[hi.SCRIPT=3]="SCRIPT",hi[hi.URL=4]="URL",hi[hi.RESOURCE_URL=5]="RESOURCE_URL",hi))();function Gn(i){const e=xm();return e?oF(e.sanitize(hi.HTML,i)||""):ml(i,"HTML")?oF(Da(i)):gF(function rF(){return void 0!==Jk?Jk:typeof document<"u"?document:void 0}(),xn(i))}function gi(i){const e=xm();return e?e.sanitize(hi.URL,i)||"":ml(i,"URL")?Da(i):T1(xn(i))}function oM(i){const e=xm();if(e)return sF(e.sanitize(hi.RESOURCE_URL,i)||"");if(ml(i,"ResourceURL"))return sF(Da(i));throw new tt(904,!1)}function xm(){const i=lt();return i&&i[12]}const aM=new Xe("ENVIRONMENT_INITIALIZER"),fF=new Xe("INJECTOR",-1),mF=new Xe("INJECTOR_DEF_TYPES");class _F{get(e,t=_m){if(t===_m){const n=new Error(`NullInjectorError: No provider for ${Ei(e)}!`);throw n.name="NullInjectorError",n}return t}}function Vj(...i){return{\u0275providers:vF(0,i)}}function vF(i,...e){const t=[],n=new Set;let r;return tc(e,o=>{const a=o;sM(a,t,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&yF(r,t),t}function yF(i,e){for(let t=0;t{e.push(o)})}}function sM(i,e,t,n){if(!(i=fn(i)))return!1;let r=null,o=ah(i);const a=!o&&bi(i);if(o||a){if(a&&!a.standalone)return!1;r=i}else{const l=i.ngModule;if(o=ah(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 u of l)sM(u,e,t,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let u;n.add(r);try{tc(o.imports,f=>{sM(f,e,t,n)&&(u||(u=[]),u.push(f))})}finally{}void 0!==u&&yF(u,e)}if(!s){const u=Zl(r)||(()=>new r);e.push({provide:r,useFactory:u,deps:si},{provide:mF,useValue:r,multi:!0},{provide:aM,useValue:()=>Me(r),multi:!0})}const l=o.providers;null==l||s||tc(l,f=>{e.push(f)})}}return r!==i&&void 0!==i.providers}const $j=Ii({provide:String,useValue:Ii});function lM(i){return null!==i&&"object"==typeof i&&$j in i}function Pu(i){return"function"==typeof i}const cM=new Xe("Set Injector scope."),E1={},Uj={};let dM;function I1(){return void 0===dM&&(dM=new _F),dM}class pd{}class wF extends pd{constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pM(e,a=>this.processProvider(a)),this.records.set(fF,Ih(void 0,this)),r.has("environment")&&this.records.set(pd,Ih(void 0,this));const o=this.records.get(cM);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mF.multi,si,ln.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Th(this),n=ta(void 0);try{return e()}finally{Th(t),ta(n)}}get(e,t=_m,n=ln.Default){this.assertNotDestroyed();const r=Th(this),o=ta(void 0);try{if(!(n&ln.SkipSelf)){let s=this.records.get(e);if(void 0===s){const l=function qj(i){return"function"==typeof i||"object"==typeof i&&i instanceof Xe}(e)&&oh(e);s=l&&this.injectableDefInScope(l)?Ih(uM(e),E1):null,this.records.set(e,s)}if(null!=s)return this.hydrate(e,s)}return(n&ln.Self?I1():this.parent).get(e,t=n&ln.Optional&&t===_m?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[w1]=a[w1]||[]).unshift(Ei(e)),r)throw a;return function JU(i,e,t,n){const r=i[w1];throw e[KP]&&r.unshift(e[KP]),i.message=function ej(i,e,t,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.slice(2):i;let r=Ei(e);if(Array.isArray(e))r=e.map(Ei).join(" -> ");else if("object"==typeof e){let o=[];for(let a in e)if(e.hasOwnProperty(a)){let s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ei(s)))}r=`{${o.join(", ")}}`}return`${t}${n?"("+n+")":""}[${r}]: ${i.replace(KU,"\n ")}`}("\n"+i.message,r,t,n),i.ngTokenPath=r,i[w1]=null,i}(a,e,"R3InjectorError",this.source)}throw a}finally{ta(o),Th(r)}}resolveInjectorInitializers(){const e=Th(this),t=ta(void 0);try{const n=this.get(aM.multi,si,ln.Self);for(const r of n)r()}finally{Th(e),ta(t)}}toString(){const e=[],t=this.records;for(const n of t.keys())e.push(Ei(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new tt(205,!1)}processProvider(e){let t=Pu(e=fn(e))?e:fn(e&&e.provide);const n=function Yj(i){return lM(i)?Ih(void 0,i.useValue):Ih(xF(i),E1)}(e);if(Pu(e)||!0!==e.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=Ih(void 0,E1,!0),r.factory=()=>Zk(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){return t.value===E1&&(t.value=Uj,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Wj(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=fn(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function uM(i){const e=oh(i),t=null!==e?e.factory:Zl(i);if(null!==t)return t;if(i instanceof Xe)throw new tt(204,!1);if(i instanceof Function)return function jj(i){const e=i.length;if(e>0)throw mm(e,"?"),new tt(204,!1);const t=function ik(i){const e=i&&(i[td]||i[jf]);if(e){const t=function rk(i){if(i.hasOwnProperty("name"))return i.name;const e=(""+i).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(i);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(i);return null!==t?()=>t.factory(i):()=>new i}(i);throw new tt(204,!1)}function xF(i,e,t){let n;if(Pu(i)){const r=fn(i);return Zl(r)||uM(r)}if(lM(i))n=()=>fn(i.useValue);else if(function CF(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...Zk(i.deps||[]));else if(function bF(i){return!(!i||!i.useExisting)}(i))n=()=>Me(fn(i.useExisting));else{const r=fn(i&&(i.useClass||i.provide));if(!function zj(i){return!!i.deps}(i))return Zl(r)||uM(r);n=()=>new r(...Zk(i.deps))}return n}function Ih(i,e,t=!1){return{factory:i,value:e,multi:t?[]:void 0}}function Gj(i){return!!i.\u0275providers}function pM(i,e){for(const t of i)Array.isArray(t)?pM(t,e):Gj(t)?pM(t.\u0275providers,e):e(t)}class kF{}class Zj{resolveComponentFactory(e){throw function Qj(i){const e=Error(`No component factory found for ${Ei(i)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=i,e}(e)}}let rc=(()=>{class i{}return i.NULL=new Zj,i})();function Xj(){return Ah(xr(),lt())}function Ah(i,e){return new At(Nr(i,e))}let At=(()=>{class i{constructor(t){this.nativeElement=t}}return i.__NG_ELEMENT_ID__=Xj,i})();function Jj(i){return i instanceof At?i.nativeElement:i}class Ph{}let Ta=(()=>{class i{}return i.__NG_ELEMENT_ID__=()=>function eY(){const i=lt(),t=No(xr().index,i);return(Co(t)?t:i)[11]}(),i})(),tY=(()=>{class i{}return i.\u0275prov=Ue({token:i,providedIn:"root",factory:()=>null}),i})();class Fu{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const nY=new Fu("14.2.6"),hM={};function vM(i){return i.ngOriginalError}class oc{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&vM(e);for(;t&&vM(t);)t=vM(t);return t||null}}const yM=new Map;let gY=0;const CM="__ngContext__";function wo(i,e){Co(e)?(i[CM]=e[20],function mY(i){yM.set(i[20],i)}(e)):i[CM]=e}function wM(i){return i.ownerDocument.defaultView}function A1(i){return i.ownerDocument}function ac(i){return i instanceof Function?i():i}var oa=(()=>((oa=oa||{})[oa.Important=1]="Important",oa[oa.DashCase=2]="DashCase",oa))();function kM(i,e){return undefined(i,e)}function Mm(i){const e=i[3];return wa(e)?e[3]:e}function MM(i){return VF(i[13])}function DM(i){return VF(i[4])}function VF(i){for(;null!==i&&!wa(i);)i=i[4];return i}function Rh(i,e,t,n,r){if(null!=n){let o,a=!1;wa(n)?o=n:Co(n)&&(a=!0,n=n[0]);const s=Qi(n);0===i&&null!==t?null==r?zF(e,t,s):Ru(e,t,s,r||null,!0):1===i&&null!==t?Ru(e,t,s,r||null,!0):2===i?function XF(i,e,t){const n=P1(i,e);n&&function HY(i,e,t,n){i.removeChild(e,t,n)}(i,n,e,t)}(e,s,a):3===i&&e.destroyNode(s),null!=o&&function YY(i,e,t,n,r){const o=t[7];o!==Qi(t)&&Rh(e,i,n,o,r);for(let s=10;s0&&(i[t-1][4]=n[4]);const o=b1(i,10+e);!function FY(i,e){Dm(i,e,e[11],2,null,null),e[0]=null,e[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,e){if(!(128&e[2])){const t=e[11];t.destroyNode&&Dm(i,e,t,3,null,null),function LY(i){let e=i[13];if(!e)return IM(i[1],i);for(;e;){let t=null;if(Co(e))t=e[13];else{const n=e[10];n&&(t=n)}if(!t){for(;e&&!e[4]&&e!==i;)Co(e)&&IM(e[1],e),e=e[3];null===e&&(e=i),Co(e)&&IM(e[1],e),t=e&&e[4]}e=t}}(e)}}function IM(i,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function $Y(i,e){let t;if(null!=i&&null!=(t=i.destroyHooks))for(let n=0;n=0?n[r=u]():n[r=-u].unsubscribe(),o+=2}else{const a=n[r=t[o+1]];t[o].call(a)}if(null!==n){for(let o=r+1;oo?"":r[v+1].toLowerCase();const A=8&n?D:null;if(A&&-1!==tR(A,u,0)||2&n&&u!==D){if(Ds(n))return!1;a=!0}}}}else{if(!a&&!Ds(n)&&!Ds(l))return!1;if(a&&Ds(l))continue;a=!1,n=l|1&n}}return Ds(n)||a}function Ds(i){return 0==(1&i)}function KY(i,e,t,n){if(null===e)return-1;let r=0;if(n||!t){let o=!1;for(;r-1)for(t++;t0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!Ds(a)&&(e+=oR(o,r),r=""),n=a,o=o||!Ds(n);t++}return""!==r&&(e+=oR(o,r)),e}const En={};function p(i){aR(Qn(),lt(),po()+i,!1)}function aR(i,e,t,n){if(!n)if(3==(3&e[2])){const o=i.preOrderCheckHooks;null!==o&&Tu(e,o,t)}else{const o=i.preOrderHooks;null!==o&&_h(e,o,0,t)}hl(t)}function dR(i,e=null,t=null,n){const r=uR(i,e,t,n);return r.resolveInjectorInitializers(),r}function uR(i,e=null,t=null,n,r=new Set){const o=[t||si,Vj(i)];return n=n||("object"==typeof i?void 0:Ei(i)),new wF(o,e||I1(),n||null,r)}let Bi=(()=>{class i{static create(t,n){if(Array.isArray(t))return dR({name:""},n,t,"");{const r=t.name??"";return dR({name:r},t.parent,t.providers,r)}}}return i.THROW_IF_NOT_FOUND=_m,i.NULL=new _F,i.\u0275prov=Ue({token:i,providedIn:"any",factory:()=>Me(fF)}),i.__NG_ELEMENT_ID__=-1,i})();function H(i,e=ln.Default){const t=lt();return null===t?Me(i,e):Q(xr(),t,fn(i),e)}function Lh(){throw new Error("invalid")}function L1(i,e){return i<<17|e<<2}function Ts(i){return i>>17&32767}function VM(i){return 2|i}function sc(i){return(131068&i)>>2}function $M(i,e){return-131069&i|e<<2}function HM(i){return 1|i}function SR(i,e){const t=i.contentQueries;if(null!==t)for(let n=0;n22&&aR(i,e,22,!1),t(n,r)}finally{hl(o)}}function IR(i,e,t){if(Zf(e)){const r=e.directiveEnd;for(let o=e.directiveStart;o0;){const t=i[--e];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(n,r,a)}}function NR(i,e){null!==i.hostBindings&&i.hostBindings(1,e)}function BR(i,e){e.flags|=2,(i.components||(i.components=[])).push(e.index)}function zz(i,e,t){if(t){if(e.exportAs)for(let n=0;n0&&nD(t)}}function nD(i){for(let n=MM(i);null!==n;n=DM(n))for(let r=10;r0&&nD(o)}const t=i[1].components;if(null!==t)for(let n=0;n0&&nD(r)}}function Xz(i,e){const t=No(e,i),n=t[1];(function Jz(i,e){for(let t=e.length;t-1&&(EM(e,n),b1(t,n))}this._attachedToViewContainer=!1}UF(this._lView[1],this._lView)}onDestroy(e){PR(this._lView[1],this._lView,null,e)}markForCheck(){iD(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){U1(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new tt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function OY(i,e){Dm(i,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new tt(902,!1);this._appRef=e}}class eW extends Tm{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;U1(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class aD extends rc{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=bi(e);return new Sm(t,this.ngModule)}}function WR(i){const e=[];for(let t in i)i.hasOwnProperty(t)&&e.push({propName:i[t],templateName:t});return e}class nW{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){const r=this.injector.get(e,hM,n);return r!==hM||t===hM?r:this.parentInjector.get(e,t,n)}}class Sm extends kF{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function tz(i){return i.map(ez).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return WR(this.componentDef.inputs)}get outputs(){return WR(this.componentDef.outputs)}create(e,t,n,r){let o=(r=r||this.ngModule)instanceof pd?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new nW(e,o):e,s=a.get(Ph,null);if(null===s)throw new tt(407,!1);const l=a.get(tY,null),u=s.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",v=n?function Oz(i,e,t){return i.selectRootElement(e,t===ya.ShadowDom)}(u,n,this.componentDef.encapsulation):SM(s.createRenderer(null,this.componentDef),f,function tW(i){const e=i.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(f)),D=this.componentDef.onPush?288:272,A=JM(0,null,null,1,0,null,null,null,null,null),W=V1(null,A,null,D,null,null,s,u,l,a,null);let J,pe;gt(W);try{const fe=function oW(i,e,t,n,r,o){const a=t[1];t[22]=i;const l=Nh(a,22,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(j1(l,u,!0),null!==i&&(bh(r,i,u),null!==l.classes&&RM(r,i,l.classes),null!==l.styles&&eR(r,i,l.styles)));const f=n.createRenderer(i,e),v=V1(t,AR(e),null,e.onPush?32:16,t[22],l,n,f,o||null,null,null);return a.firstCreatePass&&(ec(Eu(l,t),a,e.type),BR(a,l),VR(l,t.length,1)),H1(t,v),t[22]=v}(v,this.componentDef,W,s,u);if(v)if(n)bh(u,v,["ng-version",nY.full]);else{const{attrs:ye,classes:we}=function nz(i){const e=[],t=[];let n=1,r=2;for(;n0&&RM(u,v,we.join(" "))}if(pe=hh(A,22),void 0!==t){const ye=pe.projection=[];for(let we=0;we=0;n--){const r=i[n];r.hostVars=e+=r.hostVars,r.hostAttrs=za(r.hostAttrs,t=za(t,r.hostAttrs))}}(n)}function sD(i){return i===dl?{}:i===si?[]:i}function cW(i,e){const t=i.viewQuery;i.viewQuery=t?(n,r)=>{e(n,r),t(n,r)}:e}function dW(i,e){const t=i.contentQueries;i.contentQueries=t?(n,r,o)=>{e(n,r,o),t(n,r,o)}:e}function uW(i,e){const t=i.hostBindings;i.hostBindings=t?(n,r)=>{e(n,r),t(n,r)}:e}let z1=null;function Ou(){if(!z1){const i=Ri.Symbol;if(i&&i.iterator)z1=i.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ts(Qi(Re[n.index])):n.index;let Te=null;if(!s&&l&&(Te=function xW(i,e,t,n){const r=i.cleanup;if(null!=r)for(let o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(i,e,r,n.index)),null!==Te)(Te.__ngLastListenerFn__||Te).__ngNextListenerFn__=o,Te.__ngLastListenerFn__=o,A=!1;else{o=oO(n,e,v,o,!1);const Re=t.listen(fe,r,o);D.push(o,Re),f&&f.push(r,we,ye,ye+1)}}else o=oO(n,e,v,o,!1);const W=n.outputs;let J;if(A&&null!==W&&(J=W[r])){const pe=J.length;if(pe)for(let fe=0;fe0;)e=e[15],i--;return e}(i,wn.lFrame.contextLView))[8]}(i)}function kW(i,e){let t=null;const n=function QY(i){const e=i.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(i);for(let r=0;r=0}const Ur={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gO(i){return i.substring(Ur.key,Ur.keyEnd)}function SW(i){return i.substring(Ur.value,Ur.valueEnd)}function fO(i,e){const t=Ur.textEnd;return t===e?-1:(e=Ur.keyEnd=function AW(i,e,t){for(;e32;)e++;return e}(i,Ur.key=e,t),Gh(i,e,t))}function mO(i,e){const t=Ur.textEnd;let n=Ur.key=Gh(i,e,t);return t===n?-1:(n=Ur.keyEnd=function PW(i,e,t){let n;for(;e=65&&(-33&n)<=90||n>=48&&n<=57);)e++;return e}(i,n,t),n=vO(i,n,t),n=Ur.value=Gh(i,n,t),n=Ur.valueEnd=function FW(i,e,t){let n=-1,r=-1,o=-1,a=e,s=a;for(;a32&&(s=a),o=r,r=n,n=-33&l}return s}(i,n,t),vO(i,n,t))}function _O(i){Ur.key=0,Ur.keyEnd=0,Ur.value=0,Ur.valueEnd=0,Ur.textEnd=i.length}function Gh(i,e,t){for(;e=0;t=mO(e,t))wO(i,gO(e),SW(e))}function ko(i){Is(Ma,bl,i,!0)}function bl(i,e){for(let t=function EW(i){return _O(i),fO(i,Gh(i,0,Ur.textEnd))}(e);t>=0;t=fO(e,t))Ma(i,gO(e),!0)}function Es(i,e,t,n){const r=lt(),o=Qn(),a=ws(2);o.firstUpdatePass&&CO(o,i,a,n),e!==En&&xo(r,a,e)&&xO(o,o.data[po()],r,r[11],i,r[a+1]=function HW(i,e){return null==i||("string"==typeof e?i+=e:"object"==typeof i&&(i=Ei(Da(i)))),i}(e,t),n,a)}function Is(i,e,t,n){const r=Qn(),o=ws(2);r.firstUpdatePass&&CO(r,null,o,n);const a=lt();if(t!==En&&xo(a,o,t)){const s=r.data[po()];if(MO(s,n)&&!bO(r,o)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(t=eh(l,t||"")),cD(r,s,a,t,n)}else!function $W(i,e,t,n,r,o,a,s){r===En&&(r=si);let l=0,u=0,f=0=i.expandoStartIndex}function CO(i,e,t,n){const r=i.data;if(null===r[t+1]){const o=r[po()],a=bO(i,t);MO(o,n)&&null===e&&!a&&(e=!1),e=function OW(i,e,t,n){const r=ja(i);let o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(t=Rm(t=pD(null,i,e,t,n),e.attrs,n),o=null);else{const a=e.directiveStylingLast;if(-1===a||i[a]!==r)if(t=pD(r,i,e,t,n),null===o){let l=function LW(i,e,t){const n=t?e.classBindings:e.styleBindings;if(0!==sc(n))return i[Ts(n)]}(i,e,n);void 0!==l&&Array.isArray(l)&&(l=pD(null,i,e,l[1],n),l=Rm(l,e.attrs,n),function NW(i,e,t,n){i[Ts(t?e.classBindings:e.styleBindings)]=n}(i,e,n,l))}else o=function BW(i,e,t){let n;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else f=t;if(r)if(0!==l){const D=Ts(i[s+1]);i[n+1]=L1(D,s),0!==D&&(i[D+1]=$M(i[D+1],n)),i[s+1]=function Cz(i,e){return 131071&i|e<<17}(i[s+1],n)}else i[n+1]=L1(s,0),0!==s&&(i[s+1]=$M(i[s+1],n)),s=n;else i[n+1]=L1(l,0),0===s?s=n:i[l+1]=$M(i[l+1],n),l=n;u&&(i[n+1]=VM(i[n+1])),hO(i,f,n,!0),hO(i,f,n,!1),function DW(i,e,t,n,r){const o=r?i.residualClasses:i.residualStyles;null!=o&&"string"==typeof e&&Dh(o,e)>=0&&(t[n+1]=HM(t[n+1]))}(e,f,i,n,o),a=L1(s,l),o?e.classBindings=a:e.styleBindings=a}(r,o,e,t,a,n)}}function pD(i,e,t,n,r){let o=null;const a=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){const l=i[r],u=Array.isArray(l),f=u?l[1]:l,v=null===f;let D=t[r+1];D===En&&(D=v?si:void 0);let A=v?Gk(D,n):f===n?D:void 0;if(u&&!G1(A)&&(A=Gk(l,n)),G1(A)&&(s=A,a))return s;const W=i[r+1];r=a?Ts(W):sc(W)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(s=Gk(l,n))}return s}function G1(i){return void 0!==i}function MO(i,e){return 0!=(i.flags&(e?16:32))}function m(i,e=""){const t=lt(),n=Qn(),r=i+22,o=n.firstCreatePass?Nh(n,r,1,e,null):n.data[r],a=t[r]=function TM(i,e){return i.createText(e)}(t[11],e);F1(n,t,a,o),Ua(o,!1)}function Ae(i){return $e("",i,""),Ae}function $e(i,e,t){const n=lt(),r=$h(n,i,e,t);return r!==En&&lc(n,po(),r),$e}function dr(i,e,t,n,r){const o=lt(),a=function Hh(i,e,t,n,r,o){const s=Lu(i,Cs(),t,r);return ws(2),s?e+xn(t)+n+xn(r)+o:En}(o,i,e,t,n,r);return a!==En&&lc(o,po(),a),dr}function cc(i,e,t,n,r,o,a){const s=lt(),l=Uh(s,i,e,t,n,r,o,a);return l!==En&&lc(s,po(),l),cc}function Nu(i,e,t,n,r,o,a,s,l){const u=lt(),f=function jh(i,e,t,n,r,o,a,s,l,u){const v=Ga(i,Cs(),t,r,a,l);return ws(4),v?e+xn(t)+n+xn(r)+o+xn(a)+s+xn(l)+u:En}(u,i,e,t,n,r,o,a,s,l);return f!==En&&lc(u,po(),f),Nu}function hD(i,e,t,n,r,o,a,s,l,u,f){const v=lt(),D=function Yh(i,e,t,n,r,o,a,s,l,u,f,v){const D=Cs();let A=Ga(i,D,t,r,a,l);return A=xo(i,D+4,f)||A,ws(5),A?e+xn(t)+n+xn(r)+o+xn(a)+s+xn(l)+u+xn(f)+v:En}(v,i,e,t,n,r,o,a,s,l,u,f);return D!==En&&lc(v,po(),D),hD}function Cl(i,e,t){Is(Ma,bl,$h(lt(),i,e,t),!0)}function K1(i,e,t){!function yl(i){Is(wO,RW,i,!1)}($h(lt(),i,e,t))}function wl(i,e,t){const n=lt();return xo(n,Xl(),e)&&Sa(Qn(),nr(),n,i,e,n[11],t,!0),wl}function Q1(i,e,t){const n=lt();if(xo(n,Xl(),e)){const o=Qn(),a=nr();Sa(o,a,n,i,e,YR(ja(o.data),a,n),t,!0)}return Q1}const Bu=void 0;var oq=["en",[["a","p"],["AM","PM"],Bu],[["AM","PM"],Bu,Bu],[["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"]],Bu,[["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"]],Bu,[["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}",Bu,"{1} 'at' {0}",Bu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function rq(i){const t=Math.floor(Math.abs(i)),n=i.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Kh={};function $o(i){const e=function aq(i){return i.toLowerCase().replace(/_/g,"-")}(i);let t=$O(e);if(t)return t;const n=e.split("-")[0];if(t=$O(n),t)return t;if("en"===n)return oq;throw new tt(701,!1)}function $O(i){return i in Kh||(Kh[i]=Ri.ng&&Ri.ng.common&&Ri.ng.common.locales&&Ri.ng.common.locales[i]),Kh[i]}var Et=(()=>((Et=Et||{})[Et.LocaleId=0]="LocaleId",Et[Et.DayPeriodsFormat=1]="DayPeriodsFormat",Et[Et.DayPeriodsStandalone=2]="DayPeriodsStandalone",Et[Et.DaysFormat=3]="DaysFormat",Et[Et.DaysStandalone=4]="DaysStandalone",Et[Et.MonthsFormat=5]="MonthsFormat",Et[Et.MonthsStandalone=6]="MonthsStandalone",Et[Et.Eras=7]="Eras",Et[Et.FirstDayOfWeek=8]="FirstDayOfWeek",Et[Et.WeekendRange=9]="WeekendRange",Et[Et.DateFormat=10]="DateFormat",Et[Et.TimeFormat=11]="TimeFormat",Et[Et.DateTimeFormat=12]="DateTimeFormat",Et[Et.NumberSymbols=13]="NumberSymbols",Et[Et.NumberFormats=14]="NumberFormats",Et[Et.CurrencyCode=15]="CurrencyCode",Et[Et.CurrencySymbol=16]="CurrencySymbol",Et[Et.CurrencyName=17]="CurrencyName",Et[Et.Currencies=18]="Currencies",Et[Et.Directionality=19]="Directionality",Et[Et.PluralCase=20]="PluralCase",Et[Et.ExtraData=21]="ExtraData",Et))();const Qh="en-US";let HO=Qh;function _D(i,e,t,n,r){if(i=fn(i),Array.isArray(i))for(let o=0;o>20;if(Pu(i)||!i.multi){const A=new Bo(l,r,H),W=yD(s,e,r?f:f+D,v);-1===W?(ec(Eu(u,a),o,s),vD(o,i,e.length),e.push(s),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),t.push(A),a.push(A)):(t[W]=A,a[W]=A)}else{const A=yD(s,e,f+D,v),W=yD(s,e,f,f+D),J=A>=0&&t[A],pe=W>=0&&t[W];if(r&&!pe||!r&&!J){ec(Eu(u,a),o,s);const fe=function tG(i,e,t,n,r){const o=new Bo(i,t,H);return o.multi=[],o.index=e,o.componentProviders=0,pL(o,r,n&&!t),o}(r?eG:Jq,t.length,r,n,l);!r&&pe&&(t[W].providerFactory=fe),vD(o,i,e.length,0),e.push(s),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),t.push(fe),a.push(fe)}else vD(o,i,A>-1?A:W,pL(t[r?W:A],l,!r&&n));!r&&n&&pe&&t[W].componentProviders++}}}function vD(i,e,t,n){const r=Pu(e),o=function Hj(i){return!!i.useClass}(e);if(r||o){const l=(o?fn(e.useClass):e).prototype.ngOnDestroy;if(l){const u=i.destroyHooks||(i.destroyHooks=[]);if(!r&&e.multi){const f=u.indexOf(t);-1===f?u.push(t,[n,l]):u[f+1].push(n,l)}else u.push(t,l)}}}function pL(i,e,t){return t&&i.componentProviders++,i.multi.push(e)-1}function yD(i,e,t,n){for(let r=t;r{t.providersResolver=(n,r)=>function Xq(i,e,t){const n=Qn();if(n.firstCreatePass){const r=xa(i);_D(t,n.data,n.blueprint,r,!0),_D(e,n.data,n.blueprint,r,!1)}}(n,r?r(i):i,e)}}class Vu{}class hL{}class gL extends Vu{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new aD(this);const n=Oo(e);this._bootstrapComponents=ac(n.bootstrap),this._r3Injector=uR(e,t,[{provide:Vu,useValue:this},{provide:rc,useValue:this.componentFactoryResolver}],Ei(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class CD extends hL{constructor(e){super(),this.moduleType=e}create(e){return new gL(this.moduleType,e)}}class iG extends Vu{constructor(e,t,n){super(),this.componentFactoryResolver=new aD(this),this.instance=null;const r=new wF([...e,{provide:Vu,useValue:this},{provide:rc,useValue:this.componentFactoryResolver}],t||I1(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function t0(i,e,t=null){return new iG(i,e,t).injector}let rG=(()=>{class i{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const n=vF(0,t.type),r=n.length>0?t0([n],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,r)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return i.\u0275prov=Ue({token:i,providedIn:"environment",factory:()=>new i(Me(pd))}),i})();function wD(i){i.getStandaloneInjector=e=>e.get(rG).getOrCreateStandaloneInjector(i)}function dc(i,e,t){const n=uo()+i,r=lt();return r[n]===En?vl(r,n,t?e.call(t):e()):function Im(i,e){return i[e]}(r,n)}function bt(i,e,t,n){return wL(lt(),uo(),i,e,t,n)}function ci(i,e,t,n,r){return function xL(i,e,t,n,r,o,a){const s=e+t;return Lu(i,s,r,o)?vl(i,s+2,a?n.call(a,r,o):n(r,o)):$m(i,s+2)}(lt(),uo(),i,e,t,n,r)}function CL(i,e,t,n,r,o,a){return function ML(i,e,t,n,r,o,a,s,l){const u=e+t;return Ga(i,u,r,o,a,s)?vl(i,u+4,l?n.call(l,r,o,a,s):n(r,o,a,s)):$m(i,u+4)}(lt(),uo(),i,e,t,n,r,o,a)}function $m(i,e){const t=i[e];return t===En?void 0:t}function wL(i,e,t,n,r,o){const a=e+t;return xo(i,a,r)?vl(i,a+1,o?n.call(o,r):n(r)):$m(i,a+1)}function Zt(i,e){const t=Qn();let n;const r=i+22;t.firstCreatePass?(n=function vG(i,e){if(e)for(let t=e.length-1;t>=0;t--){const n=e[t];if(i===n.name)return n}}(e,t.pipeRegistry),t.data[r]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,n.onDestroy)):n=t.data[r];const o=n.factory||(n.factory=Zl(n.type)),a=ta(H);try{const s=Ch(!1),l=o();return Ch(s),function bW(i,e,t,n){t>=i.data.length&&(i.data[t]=null,i.blueprint[t]=null),e[t]=n}(t,lt(),r,l),l}finally{ta(a)}}function Xt(i,e,t){const n=i+22,r=lt(),o=ld(r,n);return function Hm(i,e){return i[1].data[e].pure}(r,n)?wL(r,uo(),e,o.transform,t,o):o.transform(t)}function MD(i){return e=>{setTimeout(i,void 0,e)}}const Ie=class xG extends Ce{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r=e,o=t||(()=>null),a=n;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=MD(o),r&&(r=MD(r)),a&&(a=MD(a)));const s=super.subscribe({next:r,error:o,complete:a});return e instanceof x&&e.add(s),s}};function kG(){return this._results[Ou()]()}class md{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Ou(),n=md.prototype;n[t]||(n[t]=kG)}get changes(){return this._changes||(this._changes=new Ie)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const r=ka(e);(this._changesDetected=!function VU(i,e,t){if(i.length!==e.length)return!1;for(let n=0;n{class i{}return i.__NG_ELEMENT_ID__=TG,i})();const MG=Yi,DG=class extends MG{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e,t){const n=this._declarationTContainer.tViews,r=V1(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(n)),QM(n,r,e),new Tm(r)}};function TG(){return n0(xr(),lt())}function n0(i,e){return 4&i.type?new DG(e,i,Ah(i,e)):null}let Sr=(()=>{class i{}return i.__NG_ELEMENT_ID__=SG,i})();function SG(){return EL(xr(),lt())}const EG=Sr,TL=class extends EG{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ah(this._hostTNode,this._hostLView)}get injector(){return new mr(this._hostTNode,this._hostLView)}get parentInjector(){const e=xs(this._hostTNode,this._hostLView);if(y1(e)){const t=ud(e,this._hostLView),n=dd(e);return new mr(t[1].data[n+8],t)}return new mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=SL(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=e.createEmbeddedView(t||{},o);return this.insert(a,r),a}createComponent(e,t,n,r,o){const a=e&&!function fm(i){return"function"==typeof i}(e);let s;if(a)s=t;else{const v=t||{};s=v.index,n=v.injector,r=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}const l=a?e:new Sm(bi(e)),u=n||this.parentInjector;if(!o&&null==l.ngModule){const D=(a?u:this.parentInjector).get(pd,null);D&&(o=D)}const f=l.create(u,r,void 0,o);return this.insert(f.hostView,s),f}insert(e,t){const n=e._lView,r=n[1];if(function xk(i){return wa(i[3])}(n)){const f=this.indexOf(e);if(-1!==f)this.detach(f);else{const v=n[3],D=new TL(v,v[6],v[3]);D.detach(D.indexOf(e))}}const o=this._adjustIndex(t),a=this._lContainer;!function NY(i,e,t,n){const r=10+n,o=t.length;n>0&&(t[r-1][4]=e),n0)n.push(a[s/2]);else{const u=o[s+1],f=e[-l];for(let v=10;v{class i{constructor(t){this.appInits=t,this.resolve=o0,this.reject=o0,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:s,error:l})});t.push(a)}}Promise.all(t).then(()=>{n()}).catch(r=>{this.reject(r)}),0===t.length&&n(),this.initialized=!0}}return i.\u0275fac=function(t){return new(t||i)(Me(a0,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const jm=new Xe("AppId",{providedIn:"root",factory:function JL(){return`${LD()}${LD()}${LD()}`}});function LD(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const e3=new Xe("Platform Initializer"),_d=new Xe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),t3=new Xe("appBootstrapListener"),aa=new Xe("AnimationModuleType");let iK=(()=>{class i{log(t){console.log(t)}warn(t){console.warn(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i})();const xl=new Xe("LocaleId",{providedIn:"root",factory:()=>ji(xl,ln.Optional|ln.SkipSelf)||function rK(){return typeof $localize<"u"&&$localize.locale||Qh}()}),oK=new Xe("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class aK{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let ND=(()=>{class i{compileModuleSync(t){return new CD(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const n=this.compileModuleSync(t),o=ac(Oo(t).declarations).reduce((a,s)=>{const l=bi(s);return l&&a.push(new Sm(l)),a},[]);return new aK(n,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const cK=(()=>Promise.resolve(0))();function BD(i){typeof Zone>"u"?cK.then(()=>{i&&i.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",i)}class $t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ie(!1),this.onMicrotaskEmpty=new Ie(!1),this.onStable=new Ie(!1),this.onError=new Ie(!1),typeof Zone>"u")throw new tt(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)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function dK(){let i=Ri.requestAnimationFrame,e=Ri.cancelAnimationFrame;if(typeof Zone<"u"&&i&&e){const t=i[Zone.__symbol__("OriginalDelegate")];t&&(i=t);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function hK(i){const e=()=>{!function pK(i){i.isCheckStableRunning||-1!==i.lastRequestAnimationFrameId||(i.lastRequestAnimationFrameId=i.nativeRequestAnimationFrame.call(Ri,()=>{i.fakeTopEventTask||(i.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{i.lastRequestAnimationFrameId=-1,$D(i),i.isCheckStableRunning=!0,VD(i),i.isCheckStableRunning=!1},void 0,()=>{},()=>{})),i.fakeTopEventTask.invoke()}),$D(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,n,r,o,a,s)=>{try{return o3(i),t.invokeTask(r,o,a,s)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||i.shouldCoalesceRunChangeDetection)&&e(),a3(i)}},onInvoke:(t,n,r,o,a,s,l)=>{try{return o3(i),t.invoke(r,o,a,s,l)}finally{i.shouldCoalesceRunChangeDetection&&e(),a3(i)}},onHasTask:(t,n,r,o)=>{t.hasTask(r,o),n===r&&("microTask"==o.change?(i._hasPendingMicrotasks=o.microTask,$D(i),VD(i)):"macroTask"==o.change&&(i.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,n,r,o)=>(t.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(!$t.isInAngularZone())throw new tt(909,!1)}static assertNotInAngularZone(){if($t.isInAngularZone())throw new tt(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,e,uK,o0,o0);try{return o.runTask(a,t,n)}finally{o.cancelTask(a)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const uK={};function VD(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 $D(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&-1!==i.lastRequestAnimationFrameId)}function o3(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function a3(i){i._nesting--,VD(i)}class gK{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ie,this.onMicrotaskEmpty=new Ie,this.onStable=new Ie,this.onError=new Ie}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}const s3=new Xe(""),l0=new Xe("");let jD,HD=(()=>{class i{constructor(t,n,r){this._ngZone=t,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,jD||(function fK(i){jD=i}(r),r.addToWindow(n)),this._watchAngularEvents(),t.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:()=>{$t.assertNotInAngularZone(),BD(()=>{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())BD(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(t)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,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(t,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,r){return[]}}return i.\u0275fac=function(t){return new(t||i)(Me($t),Me(UD),Me(l0))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),UD=(()=>{class i{constructor(){this._applications=new Map}registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return jD?.findTestabilityInTree(this,t,n)??null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i})(),vd=null;const l3=new Xe("AllowMultipleToken"),YD=new Xe("PlatformDestroyListeners");class c3{constructor(e,t){this.name=e,this.token=t}}function u3(i,e,t=[]){const n=`Platform: ${e}`,r=new Xe(n);return(o=[])=>{let a=zD();if(!a||a.injector.get(l3,!1)){const s=[...t,...o,{provide:r,useValue:!0}];i?i(s):function vK(i){if(vd&&!vd.get(l3,!1))throw new tt(400,!1);vd=i;const e=i.get(h3);(function d3(i){const e=i.get(e3,null);e&&e.forEach(t=>t())})(i)}(function p3(i=[],e){return Bi.create({name:e,providers:[{provide:cM,useValue:"platform"},{provide:YD,useValue:new Set([()=>vd=null])},...i]})}(s,n))}return function bK(i){const e=zD();if(!e)throw new tt(401,!1);return e}()}}function zD(){return vd?.get(h3)??null}let h3=(()=>{class i{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,n){const r=function f3(i,e){let t;return t="noop"===i?new gK:("zone.js"===i?void 0:i)||new $t(e),t}(n?.ngZone,function g3(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!i||!i.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!i||!i.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:$t,useValue:r}];return r.run(()=>{const a=Bi.create({providers:o,parent:this.injector,name:t.moduleType.name}),s=t.create(a),l=s.injector.get(oc,null);if(!l)throw new tt(402,!1);return r.runOutsideAngular(()=>{const u=r.onError.subscribe({next:f=>{l.handleError(f)}});s.onDestroy(()=>{c0(this._modules,s),u.unsubscribe()})}),function m3(i,e,t){try{const n=t();return Fm(n)?n.catch(r=>{throw e.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>i.handleError(n)),n}}(l,r,()=>{const u=s.injector.get(s0);return u.runInitializers(),u.donePromise.then(()=>(function UO(i){Ro(i,"Expected localeId to be defined"),"string"==typeof i&&(HO=i.toLowerCase().replace(/_/g,"-"))}(s.injector.get(xl,Qh)||Qh),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,n=[]){const r=_3({},n);return function mK(i,e,t){const n=new CD(t);return Promise.resolve(n)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const n=t.injector.get(yd);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new tt(403,!1);t.instance.ngDoBootstrap(n)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new tt(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const t=this._injector.get(YD,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return i.\u0275fac=function(t){return new(t||i)(Me(Bi))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i})();function _3(i,e){return Array.isArray(e)?e.reduce(_3,i):{...i,...e}}let yd=(()=>{class i{constructor(t,n,r){this._zone=t,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(()=>{$t.assertNotInAngularZone(),BD(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{$t.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=Qr(o,a.pipe(Vf()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,n){const r=t instanceof kF;if(!this._injector.get(s0).done)throw!r&&function ba(i){const e=bi(i)||Zr(i)||co(i);return null!==e&&e.standalone}(t),new tt(405,false);let a;a=r?t:this._injector.get(rc).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const s=function _K(i){return i.isBoundToModule}(a)?void 0:this._injector.get(Vu),u=a.create(Bi.NULL,[],n||a.selector,s),f=u.location.nativeElement,v=u.injector.get(s3,null);return v?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),c0(this.components,u),v?.unregisterApplication(f)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new tt(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){const n=t;c0(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(t3,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>c0(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new tt(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return i.\u0275fac=function(t){return new(t||i)(Me($t),Me(pd),Me(oc))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function c0(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}let y3=!0,oi=(()=>{class i{}return i.__NG_ELEMENT_ID__=xK,i})();function xK(i){return function kK(i,e,t){if(ch(i)&&!t){const n=No(i.index,e);return new Tm(n,n)}return 47&i.type?new Tm(e[16],e):null}(xr(),lt(),16==(16&i))}class k3{constructor(){}supports(e){return Em(e)}create(e){return new IK(e)}}const EK=(i,e)=>e;class IK{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||EK}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,o=null;for(;t||n;){const a=!n||t&&t.currentIndex{a=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,a)?(n&&(t=this._verifyReinsertion(t,s,a,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,a,r),n=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new AK(t,n),o,r),e}_verifyReinsertion(e,t,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new M3),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new M3),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class AK{constructor(e,t){this.item=e,this.trackById=t,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 PK{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class M3{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new PK,this.map.set(t,n)),n.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function D3(i,e,t){const n=i.previousIndex;if(null===n)return n;let r=0;return t&&n{if(t&&t.key===r)this._maybeAddToChanges(t,n),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,n);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let n=t;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(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);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 RK(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class RK{constructor(e){this.key=e,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 S3(){return new p0([new k3])}let p0=(()=>{class i{constructor(t){this.factories=t}static create(t,n){if(null!=n){const r=n.factories.slice();t=t.concat(r)}return new i(t)}static extend(t){return{provide:i,useFactory:n=>i.create(t,n||S3()),deps:[[i,new nc,new Ms]]}}find(t){const n=this.factories.find(r=>r.supports(t));if(null!=n)return n;throw new tt(901,!1)}}return i.\u0275prov=Ue({token:i,providedIn:"root",factory:S3}),i})();function E3(){return new Ym([new T3])}let Ym=(()=>{class i{constructor(t){this.factories=t}static create(t,n){if(n){const r=n.factories.slice();t=t.concat(r)}return new i(t)}static extend(t){return{provide:i,useFactory:n=>i.create(t,n||E3()),deps:[[i,new nc,new Ms]]}}find(t){const n=this.factories.find(r=>r.supports(t));if(n)return n;throw new tt(901,!1)}}return i.\u0275prov=Ue({token:i,providedIn:"root",factory:E3}),i})();const NK=u3(null,"core",[]);let BK=(()=>{class i{constructor(t){}}return i.\u0275fac=function(t){return new(t||i)(Me(yd))},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})();function pc(i){return"boolean"==typeof i?i:null!=i&&"false"!==i}function QD(i,e){const t=bi(i),n=e.elementInjector||I1();return new Sm(t).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}let h0=null;function Ps(){return h0}const Jt=new Xe("DocumentToken");let ZD=(()=>{class i{historyGo(t){throw new Error("Not implemented")}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:function(){return function UK(){return Me(I3)}()},providedIn:"platform"}),i})();const jK=new Xe("Location Initialized");let I3=(()=>{class i extends ZD{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ps().getBaseHref(this._doc)}onPopState(t){const n=Ps().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){const n=Ps().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,n,r){A3()?this._history.pushState(t,n,r):this.location.hash=r}replaceState(t,n,r){A3()?this._history.replaceState(t,n,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:function(){return function YK(){return new I3(Me(Jt))}()},providedIn:"platform"}),i})();function A3(){return!!window.history.pushState}function XD(i,e){if(0==i.length)return e;if(0==e.length)return i;let t=0;return i.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?i+e.substring(1):1==t?i+e:i+"/"+e}function P3(i){const e=i.match(/#|\?|$/),t=e&&e.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function hc(i){return i&&"?"!==i[0]?"?"+i:i}let Hu=(()=>{class i{historyGo(t){throw new Error("Not implemented")}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:function(){return ji(R3)},providedIn:"root"}),i})();const F3=new Xe("appBaseHref");let R3=(()=>{class i extends Hu{constructor(t,n){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ji(Jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return XD(this._baseHref,t)}path(t=!1){const n=this._platformLocation.pathname+hc(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,o){const a=this.prepareExternalUrl(r+hc(o));this._platformLocation.pushState(t,n,a)}replaceState(t,n,r,o){const a=this.prepareExternalUrl(r+hc(o));this._platformLocation.replaceState(t,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return i.\u0275fac=function(t){return new(t||i)(Me(ZD),Me(F3,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),zK=(()=>{class i extends Hu{constructor(t,n){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(t){const n=XD(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,o){let a=this.prepareExternalUrl(r+hc(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(t,n,a)}replaceState(t,n,r,o){let a=this.prepareExternalUrl(r+hc(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return i.\u0275fac=function(t){return new(t||i)(Me(ZD),Me(F3,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),gc=(()=>{class i{constructor(t){this._subject=new Ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const n=this._locationStrategy.getBaseHref();this._baseHref=P3(O3(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(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+hc(n))}normalize(t){return i.stripTrailingSlash(function qK(i,e){return i&&e.startsWith(i)?e.substring(i.length):e}(this._baseHref,O3(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+hc(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+hc(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n,complete:r})}}return i.normalizeQueryParams=hc,i.joinWithSlash=XD,i.stripTrailingSlash=P3,i.\u0275fac=function(t){return new(t||i)(Me(Hu))},i.\u0275prov=Ue({token:i,factory:function(){return function WK(){return new gc(Me(Hu))}()},providedIn:"root"}),i})();function O3(i){return i.replace(/\/index.html$/,"")}const L3={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 sa=(()=>((sa=sa||{})[sa.Decimal=0]="Decimal",sa[sa.Percent=1]="Percent",sa[sa.Currency=2]="Currency",sa[sa.Scientific=3]="Scientific",sa))(),pn=(()=>((pn=pn||{})[pn.Decimal=0]="Decimal",pn[pn.Group=1]="Group",pn[pn.List=2]="List",pn[pn.PercentSign=3]="PercentSign",pn[pn.PlusSign=4]="PlusSign",pn[pn.MinusSign=5]="MinusSign",pn[pn.Exponential=6]="Exponential",pn[pn.SuperscriptingExponent=7]="SuperscriptingExponent",pn[pn.PerMille=8]="PerMille",pn[pn.Infinity=9]="Infinity",pn[pn.NaN=10]="NaN",pn[pn.TimeSeparator=11]="TimeSeparator",pn[pn.CurrencyDecimal=12]="CurrencyDecimal",pn[pn.CurrencyGroup=13]="CurrencyGroup",pn))();function Ka(i,e){const t=$o(i),n=t[Et.NumberSymbols][e];if(typeof n>"u"){if(e===pn.CurrencyDecimal)return t[Et.NumberSymbols][pn.Decimal];if(e===pn.CurrencyGroup)return t[Et.NumberSymbols][pn.Group]}return n}const yQ=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function xQ(i,e,t,n,r){const a=function oT(i,e="-"){const t={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]||"";t.posPre=s.substring(0,s.indexOf("#"));for(let f=0;f-1&&(e=e.replace(".","")),(o=e.search(/e/i))>0?(r<0&&(r=o),r+=+e.slice(o+1),e=e.substring(0,o)):r<0&&(r=e.length),o=0;"0"===e.charAt(o);o++);if(o===(s=e.length))n=[0],r=1;else{for(s--;"0"===e.charAt(s);)s--;for(r-=o,n=[],a=0;o<=s;o++,a++)n[a]=Number(e.charAt(o))}return r>22&&(n=n.splice(0,21),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}(i);a&&(u=function DQ(i){if(0===i.digits[0])return i;const e=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===e?i.digits.push(0,0):1===e&&i.digits.push(0),i.integerLen+=2),i}(u));let f=e.minInt,v=e.minFrac,D=e.maxFrac;if(o){const ye=o.match(yQ);if(null===ye)throw new Error(`${o} is not a valid digit info`);const we=ye[1],Te=ye[3],Re=ye[5];null!=we&&(f=aT(we)),null!=Te&&(v=aT(Te)),null!=Re?D=aT(Re):null!=Te&&v>D&&(D=v)}!function SQ(i,e,t){if(e>t)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${t}).`);let n=i.digits,r=n.length-i.integerLen;const o=Math.min(Math.max(e,r),t);let a=o+i.integerLen,s=n[a];if(a>0){n.splice(Math.max(i.integerLen,a));for(let v=a;v=5)if(a-1<0){for(let v=0;v>a;v--)n.unshift(0),i.integerLen++;n.unshift(1),i.integerLen++}else n[a-1]++;for(;r=u?W.pop():l=!1),D>=10?1:0},0);f&&(n.unshift(f),i.integerLen++)}(u,v,D);let A=u.digits,W=u.integerLen;const J=u.exponent;let pe=[];for(l=A.every(ye=>!ye);W0?pe=A.splice(W,A.length):(pe=A,A=[0]);const fe=[];for(A.length>=e.lgSize&&fe.unshift(A.splice(-e.lgSize,A.length).join(""));A.length>e.gSize;)fe.unshift(A.splice(-e.gSize,A.length).join(""));A.length&&fe.unshift(A.join("")),s=fe.join(Ka(t,n)),pe.length&&(s+=Ka(t,r)+pe.join("")),J&&(s+=Ka(t,pn.Exponential)+"+"+J)}else s=Ka(t,pn.Infinity);return s=i<0&&!l?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf,s}(i,a,e,pn.CurrencyGroup,pn.CurrencyDecimal,r).replace("\xa4",t).replace("\xa4","").trim()}function aT(i){const e=parseInt(i);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+i);return e}function Y3(i,e){e=encodeURIComponent(e);for(const t of i.split(";")){const n=t.indexOf("="),[r,o]=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}let Vi=(()=>{class i{constructor(t,n,r,o){this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Em(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),t.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),t.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(n=>{if("string"!=typeof n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ei(n.item)}`);this._toggleClass(n.item,!0)}),t.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(n=>this._toggleClass(n,!0)):Object.keys(t).forEach(n=>this._toggleClass(n,!!t[n])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(n=>this._toggleClass(n,!1)):Object.keys(t).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(t,n){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return i.\u0275fac=function(t){return new(t||i)(H(p0),H(Ym),H(At),H(Ta))},i.\u0275dir=ot({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),i})();class AQ{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,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 Ot=(()=>{class i{constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const n=this._viewContainer;t.forEachOperation((r,o,a)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new AQ(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),q3(s,r)}});for(let r=0,o=n.length;r{q3(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,n){return!0}}return i.\u0275fac=function(t){return new(t||i)(H(Sr),H(Yi),H(p0))},i.\u0275dir=ot({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),i})();function q3(i,e){i.context.$implicit=e.item}let rt=(()=>{class i{constructor(t,n){this._viewContainer=t,this._context=new FQ,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){G3("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){G3("ngIfElse",t),this._elseTemplateRef=t,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(t,n){return!0}}return i.\u0275fac=function(t){return new(t||i)(H(Sr),H(Yi))},i.\u0275dir=ot({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),i})();class FQ{constructor(){this.$implicit=null,this.ngIf=null}}function G3(i,e){if(e&&!e.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${Ei(e)}'.`)}class lT{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let mc=(()=>{class i{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const n=t==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(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let n=0;n{class i{constructor(t,n,r){this.ngSwitch=r,r._addCase(),this._view=new lT(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return i.\u0275fac=function(t){return new(t||i)(H(Sr),H(Yi),H(mc,9))},i.\u0275dir=ot({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),i})(),x0=(()=>{class i{constructor(t,n,r){r._addDefault(new lT(t,n))}}return i.\u0275fac=function(t){return new(t||i)(H(Sr),H(Yi),H(mc,9))},i.\u0275dir=ot({type:i,selectors:[["","ngSwitchDefault",""]],standalone:!0}),i})(),Rs=(()=>{class i{constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){const[r,o]=t.split("."),a=-1===r.indexOf("-")?void 0:oa.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${n}${o}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(Ym),H(Ta))},i.\u0275dir=ot({type:i,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),i})(),ju=(()=>{class i{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.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&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return i.\u0275fac=function(t){return new(t||i)(H(Sr))},i.\u0275dir=ot({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[li]}),i})();function Os(i,e){return new tt(2100,!1)}class OQ{createSubscription(e,t){return e.subscribe({next:t,error:n=>{throw n}})}dispose(e){e.unsubscribe()}}class LQ{createSubscription(e,t){return e.then(t,n=>{throw n})}dispose(e){}}const NQ=new LQ,BQ=new OQ;let k0=(()=>{class i{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(Fm(t))return NQ;if(nO(t))return BQ;throw Os()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return i.\u0275fac=function(t){return new(t||i)(H(oi,16))},i.\u0275pipe=qn({name:"async",type:i,pure:!1,standalone:!0}),i})(),Z3=(()=>{class i{constructor(t,n="USD"){this._locale=t,this._defaultCurrencyCode=n}transform(t,n=this._defaultCurrencyCode,r="symbol",o,a){if(!function cT(i){return!(null==i||""===i||i!=i)}(t))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 iQ(i,e,t="en"){const n=function JK(i){return $o(i)[Et.Currencies]}(t)[i]||L3[i]||[],r=n[1];return"narrow"===e&&"string"==typeof r?r:n[0]||i}(s,"symbol"===r?"wide":"narrow",a):r);try{return xQ(function dT(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}(t),a,s,n,o)}catch(l){throw Os()}}}return i.\u0275fac=function(t){return new(t||i)(H(xl,16),H(oK,16))},i.\u0275pipe=qn({name:"currency",type:i,pure:!0,standalone:!0}),i})();let fi=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})();const X3="browser";function Ls(i){return i===X3}let iZ=(()=>{class i{}return i.\u0275prov=Ue({token:i,providedIn:"root",factory:()=>new rZ(Me(Jt),window)}),i})();class rZ{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function oZ(i,e){const t=i.getElementById(e)||i.getElementsByName(e)[0];if(t)return t;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(e)||o.querySelector(`[name="${e}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=J3(this.window.history)||J3(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function J3(i){return Object.getOwnPropertyDescriptor(i,"scrollRestoration")}class e4{}class hT extends class xZ extends class HK{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function $K(i){h0||(h0=i)}(new hT)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function kZ(){return Gm=Gm||document.querySelector("base"),Gm?Gm.getAttribute("href"):null}();return null==t?null:function MZ(i){D0=D0||document.createElement("a"),D0.setAttribute("href",i);const e=D0.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Gm=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Y3(document.cookie,e)}}let D0,Gm=null;const o4=new Xe("TRANSITION_ID"),TZ=[{provide:a0,useFactory:function DZ(i,e,t){return()=>{t.get(s0).donePromise.then(()=>{const n=Ps(),r=e.querySelectorAll(`style[ng-transition="${i}"]`);for(let o=0;o{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const T0=new Xe("EventManagerPlugins");let S0=(()=>{class i{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,n,r){return this._findPluginFor(n).addEventListener(t,n,r)}addGlobalEventListener(t,n,r){return this._findPluginFor(n).addGlobalEventListener(t,n,r)}getZone(){return this._zone}_findPluginFor(t){const n=this._eventNameToPlugin.get(t);if(n)return n;const r=this._plugins;for(let o=0;o{class i{constructor(){this._stylesSet=new Set}addStyles(t){const n=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),n.add(r))}),this.onStylesAdded(n)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),Km=(()=>{class i extends s4{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,n,r){t.forEach(o=>{const a=this._doc.createElement("style");a.textContent=o,r.push(n.appendChild(a))})}addHost(t){const n=[];this._addStylesToHost(this._stylesSet,t,n),this._hostNodes.set(t,n)}removeHost(t){const n=this._hostNodes.get(t);n&&n.forEach(l4),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((n,r)=>{this._addStylesToHost(t,r,n)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(l4))}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();function l4(i){Ps().remove(i)}const gT={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/"},fT=/%COMP%/g;function E0(i,e,t){for(let n=0;n{if("__ngUnwrap__"===e)return i;!1===i(e)&&(e.preventDefault(),e.returnValue=!1)}}let I0=(()=>{class i{constructor(t,n,r){this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new mT(t)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;switch(n.encapsulation){case ya.Emulated:{let r=this.rendererByCompId.get(n.id);return r||(r=new OZ(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,r)),r.applyToHost(t),r}case 1:case ya.ShadowDom:return new LZ(this.eventManager,this.sharedStylesHost,t,n);default:if(!this.rendererByCompId.has(n.id)){const r=E0(n.id,n.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(t){return new(t||i)(Me(S0),Me(Km),Me(jm))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();class mT{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(gT[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(h4(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(h4(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const o=gT[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=gT[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(oa.DashCase|oa.Important)?e.style.setProperty(t,n,r&oa.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&oa.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,u4(n)):this.eventManager.addEventListener(e,t,u4(n))}}function h4(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class OZ extends mT{constructor(e,t,n,r){super(e),this.component=n;const o=E0(r+"-"+n.id,n.styles,[]);t.addStyles(o),this.contentAttr=function PZ(i){return"_ngcontent-%COMP%".replace(fT,i)}(r+"-"+n.id),this.hostAttr=function FZ(i){return"_nghost-%COMP%".replace(fT,i)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class LZ extends mT{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=E0(r.id,r.styles,[]);for(let a=0;a{class i extends a4{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,r){return t.addEventListener(n,r,!1),()=>this.removeEventListener(t,n,r)}removeEventListener(t,n,r){return t.removeEventListener(n,r)}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const g4=["alt","control","meta","shift"],BZ={"\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"},VZ={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let $Z=(()=>{class i extends a4{constructor(t){super(t)}supports(t){return null!=i.parseEventName(t)}addEventListener(t,n,r){const o=i.parseEventName(n),a=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ps().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const n=t.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."),g4.forEach(u=>{const f=n.indexOf(u);f>-1&&(n.splice(f,1),a+=u+".")}),a+=o,0!=n.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(t,n){let r=BZ[t.key]||t.key,o="";return n.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),g4.forEach(a=>{a!==r&&(0,VZ[a])(t)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(t,n,r){return o=>{i.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>n(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const YZ=u3(NK,"browser",[{provide:_d,useValue:X3},{provide:e3,useValue:function HZ(){hT.makeCurrent()},multi:!0},{provide:Jt,useFactory:function jZ(){return function dj(i){Jk=i}(document),document},deps:[]}]),_4=new Xe(""),v4=[{provide:l0,useClass:class SZ{addToWindow(e){Ri.getAngularTestability=(n,r=!0)=>{const o=e.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Ri.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ri.getAllAngularRootElements=()=>e.getAllRootElements(),Ri.frameworkStabilizers||(Ri.frameworkStabilizers=[]),Ri.frameworkStabilizers.push(n=>{const r=Ri.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(e,t,n){return null==t?null:e.getTestability(t)??(n?Ps().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:s3,useClass:HD,deps:[$t,UD,l0]},{provide:HD,useClass:HD,deps:[$t,UD,l0]}],y4=[{provide:cM,useValue:"root"},{provide:oc,useFactory:function UZ(){return new oc},deps:[]},{provide:T0,useClass:NZ,multi:!0,deps:[Jt,$t,_d]},{provide:T0,useClass:$Z,multi:!0,deps:[Jt]},{provide:I0,useClass:I0,deps:[S0,Km,jm]},{provide:Ph,useExisting:I0},{provide:s4,useExisting:Km},{provide:Km,useClass:Km,deps:[Jt]},{provide:S0,useClass:S0,deps:[T0,$t]},{provide:e4,useClass:EZ,deps:[]},[]];let b4=(()=>{class i{constructor(t){}static withServerTransition(t){return{ngModule:i,providers:[{provide:jm,useValue:t.appId},{provide:o4,useExisting:jm},TZ]}}}return i.\u0275fac=function(t){return new(t||i)(Me(_4,12))},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[...y4,...v4],imports:[fi,BK]}),i})(),C4=(()=>{class i{constructor(t){this._doc=t,this._dom=Ps()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((r,o)=>(o&&r.push(this._getOrCreateElement(o,n)),r),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);const r=this.getTag(n);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){const a=this._parseSelector(t),s=this.getTags(a).filter(l=>this._containsAttributes(t,l))[0];if(void 0!==s)return s}const r=this._dom.createElement("meta");return this._setMetaElementAttributes(t,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),t[r])),n}_parseSelector(t){const n=t.name?"name":"property";return`${n}="${t[n]}"`}_containsAttributes(t,n){return Object.keys(t).every(r=>n.getAttribute(this._getMetaKeyMap(r))===t[r])}_getMetaKeyMap(t){return WZ[t]||t}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:function(t){let n=null;return n=t?new t:function zZ(){return new C4(Me(Jt))}(),n},providedIn:"root"}),i})();const WZ={httpEquiv:"http-equiv"};let w4=(()=>{class i{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:function(t){let n=null;return n=t?new t:function qZ(){return new w4(Me(Jt))}(),n},providedIn:"root"}),i})();typeof window<"u"&&window;let Ns=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:function(t){let n=null;return n=t?new(t||i):Me(M4),n},providedIn:"root"}),i})(),M4=(()=>{class i extends Ns{constructor(t){super(),this._doc=t}sanitize(t,n){if(null==n)return null;switch(t){case hi.NONE:return n;case hi.HTML:return ml(n,"HTML")?Da(n):gF(this._doc,String(n)).toString();case hi.STYLE:return ml(n,"Style")?Da(n):n;case hi.SCRIPT:if(ml(n,"Script"))return Da(n);throw new Error("unsafe value used in a script context");case hi.URL:return ml(n,"URL")?Da(n):T1(String(n));case hi.RESOURCE_URL:if(ml(n,"ResourceURL"))return Da(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 ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function yj(i){return new hj(i)}(t)}bypassSecurityTrustStyle(t){return function bj(i){return new gj(i)}(t)}bypassSecurityTrustScript(t){return function Cj(i){return new fj(i)}(t)}bypassSecurityTrustUrl(t){return function wj(i){return new mj(i)}(t)}bypassSecurityTrustResourceUrl(t){return function xj(i){return new _j(i)}(t)}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:function(t){let n=null;return n=t?new t:function eX(i){return new M4(i.get(Jt))}(Me(Bi)),n},providedIn:"root"}),i})();function Pt(...i){return er(i,so(i))}function Cd(i,e){return C(e)?lr(i,e,1):lr(i,1)}function Li(i,e){return Be((t,n)=>{let r=0;t.subscribe(je(n,o=>i.call(e,o,r++)&&n.next(o)))})}class D4{}class yT{}class Bs{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const n=t.indexOf(":");if(n>0){const r=t.slice(0,n),o=r.toLowerCase(),a=t.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(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Bs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Bs;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Bs?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const o=e.value;if(o){let a=this.headers.get(t);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class tX{encodeKey(e){return T4(e)}encodeValue(e){return T4(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const iX=/%(\d[a-f0-9])/gi,rX={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function T4(i){return encodeURIComponent(i).replace(iX,(e,t)=>rX[t]??e)}function A0(i){return`${i}`}class wd{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new tX,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function nX(i,e){const t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(a)||[];l.push(s),t.set(a,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t],r=Array.isArray(n)?n.map(A0):[A0(n)];this.map.set(t,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(o=>{t.push({param:n,value:o,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new wd({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(A0(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let n=this.map.get(e.param)||[];const r=n.indexOf(A0(e.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class oX{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function S4(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function E4(i){return typeof Blob<"u"&&i instanceof Blob}function I4(i){return typeof FormData<"u"&&i instanceof FormData}class Qm{constructor(e,t,n,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function aX(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 Bs),this.context||(this.context=new oX),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=t;else{const s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":sv.set(D,e.setHeaders[D]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((v,D)=>v.set(D,e.setParams[D]),u)),new Qm(t,n,o,{params:u,headers:l,context:f,reportProgress:s,responseType:r,withCredentials:a})}}var Ar=(()=>((Ar=Ar||{})[Ar.Sent=0]="Sent",Ar[Ar.UploadProgress=1]="UploadProgress",Ar[Ar.ResponseHeader=2]="ResponseHeader",Ar[Ar.DownloadProgress=3]="DownloadProgress",Ar[Ar.Response=4]="Response",Ar[Ar.User=5]="User",Ar))();class bT{constructor(e,t=200,n="OK"){this.headers=e.headers||new Bs,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class CT extends bT{constructor(e={}){super(e),this.type=Ar.ResponseHeader}clone(e={}){return new CT({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Zm extends bT{constructor(e={}){super(e),this.type=Ar.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Zm({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class wT extends bT{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function xT(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}let kl=(()=>{class i{constructor(t){this.handler=t}request(t,n,r={}){let o;if(t instanceof Qm)o=t;else{let l,u;l=r.headers instanceof Bs?r.headers:new Bs(r.headers),r.params&&(u=r.params instanceof wd?r.params:new wd({fromObject:r.params})),o=new Qm(t,n,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=Pt(o).pipe(Cd(l=>this.handler.handle(l)));if(t instanceof Qm||"events"===r.observe)return a;const s=a.pipe(Li(l=>l instanceof Zm));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(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:(new wd).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,r={}){return this.request("PATCH",t,xT(r,n))}post(t,n,r={}){return this.request("POST",t,xT(r,n))}put(t,n,r={}){return this.request("PUT",t,xT(r,n))}}return i.\u0275fac=function(t){return new(t||i)(Me(D4))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();class A4{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const kT=new Xe("HTTP_INTERCEPTORS");let lX=(()=>{class i{intercept(t,n){return n.handle(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const cX=/^\)\]\}',?\n/;let P4=(()=>{class i{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new S(n=>{const r=this.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((A,W)=>r.setRequestHeader(A,W.join(","))),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const A=t.detectContentTypeHeader();null!==A&&r.setRequestHeader("Content-Type",A)}if(t.responseType){const A=t.responseType.toLowerCase();r.responseType="json"!==A?A:"text"}const o=t.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const A=r.statusText||"OK",W=new Bs(r.getAllResponseHeaders()),J=function dX(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new CT({headers:W,status:r.status,statusText:A,url:J}),a},l=()=>{let{headers:A,status:W,statusText:J,url:pe}=s(),fe=null;204!==W&&(fe=typeof r.response>"u"?r.responseText:r.response),0===W&&(W=fe?200:0);let ye=W>=200&&W<300;if("json"===t.responseType&&"string"==typeof fe){const we=fe;fe=fe.replace(cX,"");try{fe=""!==fe?JSON.parse(fe):null}catch(Te){fe=we,ye&&(ye=!1,fe={error:Te,text:fe})}}ye?(n.next(new Zm({body:fe,headers:A,status:W,statusText:J,url:pe||void 0})),n.complete()):n.error(new wT({error:fe,headers:A,status:W,statusText:J,url:pe||void 0}))},u=A=>{const{url:W}=s(),J=new wT({error:A,status:r.status||0,statusText:r.statusText||"Unknown Error",url:W||void 0});n.error(J)};let f=!1;const v=A=>{f||(n.next(s()),f=!0);let W={type:Ar.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(W.total=A.total),"text"===t.responseType&&!!r.responseText&&(W.partialText=r.responseText),n.next(W)},D=A=>{let W={type:Ar.UploadProgress,loaded:A.loaded};A.lengthComputable&&(W.total=A.total),n.next(W)};return r.addEventListener("load",l),r.addEventListener("error",u),r.addEventListener("timeout",u),r.addEventListener("abort",u),t.reportProgress&&(r.addEventListener("progress",v),null!==o&&r.upload&&r.upload.addEventListener("progress",D)),r.send(o),n.next({type:Ar.Sent}),()=>{r.removeEventListener("error",u),r.removeEventListener("abort",u),r.removeEventListener("load",l),r.removeEventListener("timeout",u),t.reportProgress&&(r.removeEventListener("progress",v),null!==o&&r.upload&&r.upload.removeEventListener("progress",D)),r.readyState!==r.DONE&&r.abort()}})}}return i.\u0275fac=function(t){return new(t||i)(Me(e4))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const MT=new Xe("XSRF_COOKIE_NAME"),DT=new Xe("XSRF_HEADER_NAME");class F4{}let uX=(()=>{class i{constructor(t,n,r){this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Y3(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt),Me(_d),Me(MT))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),TT=(()=>{class i{constructor(t,n){this.tokenService=t,this.headerName=n}intercept(t,n){const r=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||r.startsWith("http://")||r.startsWith("https://"))return n.handle(t);const o=this.tokenService.getToken();return null!==o&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,o)})),n.handle(t)}}return i.\u0275fac=function(t){return new(t||i)(Me(F4),Me(DT))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),pX=(()=>{class i{constructor(t,n){this.backend=t,this.injector=n,this.chain=null}handle(t){if(null===this.chain){const n=this.injector.get(kT,[]);this.chain=n.reduceRight((r,o)=>new A4(r,o),this.backend)}return this.chain.handle(t)}}return i.\u0275fac=function(t){return new(t||i)(Me(yT),Me(Bi))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),hX=(()=>{class i{static disable(){return{ngModule:i,providers:[{provide:TT,useClass:lX}]}}static withOptions(t={}){return{ngModule:i,providers:[t.cookieName?{provide:MT,useValue:t.cookieName}:[],t.headerName?{provide:DT,useValue:t.headerName}:[]]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[TT,{provide:kT,useExisting:TT,multi:!0},{provide:F4,useClass:uX},{provide:MT,useValue:"XSRF-TOKEN"},{provide:DT,useValue:"X-XSRF-TOKEN"}]}),i})(),R4=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[kl,{provide:D4,useClass:pX},P4,{provide:yT,useExisting:P4}],imports:[hX.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),i})();const{isArray:gX}=Array,{getPrototypeOf:fX,prototype:mX,keys:_X}=Object;function O4(i){if(1===i.length){const e=i[0];if(gX(e))return{args:e,keys:null};if(function vX(i){return i&&"object"==typeof i&&fX(i)===mX}(e)){const t=_X(e);return{args:t.map(n=>e[n]),keys:t}}}return{args:i,keys:null}}const{isArray:yX}=Array;function ST(i){return Ve(e=>function bX(i,e){return yX(e)?i(...e):i(e)}(i,e))}function L4(i,e){return i.reduce((t,n,r)=>(t[n]=e[r],t),{})}function N4(...i){const e=Ji(i),{args:t,keys:n}=O4(i),r=new S(o=>{const{length:a}=t;if(!a)return void o.complete();const s=new Array(a);let l=a,u=a;for(let f=0;f{v||(v=!0,u--),s[f]=D},()=>l--,void 0,()=>{(!l||!v)&&(u||o.next(n?L4(n,s):s),o.complete())}))}});return e?r.pipe(ST(e)):r}let B4=(()=>{class i{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return i.\u0275fac=function(t){return new(t||i)(H(Ta),H(At))},i.\u0275dir=ot({type:i}),i})(),Yu=(()=>{class i extends B4{}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,features:[it]}),i})();const la=new Xe("NgValueAccessor"),CX={provide:la,useExisting:Rn(()=>Ml),multi:!0};let Ml=(()=>{class i extends Yu{writeValue(t){this.setProperty("checked",t)}}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,n){1&t&&P("change",function(o){return n.onChange(o.target.checked)})("blur",function(){return n.onTouched()})},features:[On([CX]),it]}),i})();const wX={provide:la,useExisting:Rn(()=>Dn),multi:!0},kX=new Xe("CompositionEventMode");let Dn=(()=>{class i extends B4{constructor(t,n,r){super(t,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xX(){const i=Ps()?Ps().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return i.\u0275fac=function(t){return new(t||i)(H(Ta),H(At),H(kX,8))},i.\u0275dir=ot({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(t,n){1&t&&P("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:[On([wX]),it]}),i})();function xd(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function V4(i){return null!=i&&"number"==typeof i.length}const eo=new Xe("NgValidators"),kd=new Xe("NgAsyncValidators"),DX=/^(?=.{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 $4{static min(e){return H4(e)}static max(e){return U4(e)}static required(e){return j4(e)}static requiredTrue(e){return function Y4(i){return!0===i.value?null:{required:!0}}(e)}static email(e){return function z4(i){return xd(i.value)||DX.test(i.value)?null:{email:!0}}(e)}static minLength(e){return function W4(i){return e=>xd(e.value)||!V4(e.value)?null:e.value.lengthV4(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}(e)}static pattern(e){return function G4(i){if(!i)return P0;let e,t;return"string"==typeof i?(t="","^"!==i.charAt(0)&&(t+="^"),t+=i,"$"!==i.charAt(i.length-1)&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(xd(n.value))return null;const r=n.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return e5(e)}static composeAsync(e){return t5(e)}}function H4(i){return e=>{if(xd(e.value)||xd(i))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if(xd(e.value)||xd(i))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function j4(i){return xd(i.value)?{required:!0}:null}function P0(i){return null}function K4(i){return null!=i}function Q4(i){return Fm(i)?er(i):i}function Z4(i){let e={};return i.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function X4(i,e){return e.map(t=>t(i))}function J4(i){return i.map(e=>function TX(i){return!i.validate}(e)?e:t=>e.validate(t))}function e5(i){if(!i)return null;const e=i.filter(K4);return 0==e.length?null:function(t){return Z4(X4(t,e))}}function ET(i){return null!=i?e5(J4(i)):null}function t5(i){if(!i)return null;const e=i.filter(K4);return 0==e.length?null:function(t){return N4(X4(t,e).map(Q4)).pipe(Ve(Z4))}}function IT(i){return null!=i?t5(J4(i)):null}function n5(i,e){return null===i?[e]:Array.isArray(i)?[...i,e]:[i,e]}function r5(i){return i._rawValidators}function o5(i){return i._rawAsyncValidators}function AT(i){return i?Array.isArray(i)?i:[i]:[]}function F0(i,e){return Array.isArray(i)?i.includes(e):i===e}function a5(i,e){const t=AT(e);return AT(i).forEach(r=>{F0(t,r)||t.push(r)}),t}function s5(i,e){return AT(e).filter(t=>!F0(i,t))}class l5{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(e){this._rawValidators=e||[],this._composedValidatorFn=ET(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=IT(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Uo extends l5{get formDirective(){return null}get path(){return null}}class _c extends l5{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class c5{constructor(e){this._cd=e}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 en=(()=>{class i extends c5{constructor(t){super(t)}}return i.\u0275fac=function(t){return new(t||i)(H(_c,2))},i.\u0275dir=ot({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&St("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:[it]}),i})(),PT=(()=>{class i extends c5{constructor(t){super(t)}}return i.\u0275fac=function(t){return new(t||i)(H(Uo,10))},i.\u0275dir=ot({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&St("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:[it]}),i})();const Xm="VALID",O0="INVALID",Jh="PENDING",Jm="DISABLED";function LT(i){return(L0(i)?i.validators:i)||null}function u5(i){return Array.isArray(i)?ET(i):i||null}function NT(i,e){return(L0(e)?e.asyncValidators:i)||null}function p5(i){return Array.isArray(i)?IT(i):i||null}function L0(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}class f5{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=u5(this._rawValidators),this._composedAsyncValidatorFn=p5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Xm}get invalid(){return this.status===O0}get pending(){return this.status==Jh}get disabled(){return this.status===Jm}get enabled(){return this.status!==Jm}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=u5(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=p5(e)}addValidators(e){this.setValidators(a5(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(a5(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(s5(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(s5(e,this._rawAsyncValidators))}hasValidator(e){return F0(this._rawValidators,e)}hasAsyncValidator(e){return F0(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Jh,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Jm,this.errors=null,this._forEachChild(n=>{n.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Xm,this._forEachChild(n=>{n.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xm||this.status===Jh)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jm:Xm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Jh,this._hasOwnPendingAsyncValidator=!0;const t=Q4(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ie,this.statusChanges=new Ie}_calculateStatus(){return this._allControlsDisabled()?Jm:this.errors?O0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Jh)?Jh:this._anyControlsHaveStatus(O0)?O0:Xm}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){L0(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}}class BT extends f5{constructor(e,t,n){super(LT(t),NT(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){(function g5(i,e,t){i._forEachChild((n,r)=>{if(void 0===t[r])throw new tt(1002,"")})})(this,0,e),Object.keys(e).forEach(n=>{(function h5(i,e,t){const n=i.controls;if(!(e?Object.keys(n):n).length)throw new tt(1e3,"");if(!n[t])throw new tt(1001,"")})(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{const r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>!!n._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((r,o)=>{n=t(n,r,o)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}function e_(i,e){VT(i,e),e.valueAccessor.writeValue(i.value),i.disabled&&e.valueAccessor.setDisabledState?.(!0),function LX(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&m5(i,e)})}(i,e),function BX(i,e){const t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}(i,e),function NX(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&m5(i,e),"submit"!==i.updateOn&&i.markAsTouched()})}(i,e),function OX(i,e){if(e.valueAccessor.setDisabledState){const t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}(i,e)}function B0(i,e,t=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),$0(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function V0(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function VT(i,e){const t=r5(i);null!==e.validator?i.setValidators(n5(t,e.validator)):"function"==typeof t&&i.setValidators([t]);const n=o5(i);null!==e.asyncValidator?i.setAsyncValidators(n5(n,e.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const r=()=>i.updateValueAndValidity();V0(e._rawValidators,r),V0(e._rawAsyncValidators,r)}function $0(i,e){let t=!1;if(null!==i){if(null!==e.validator){const r=r5(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==e.validator);o.length!==r.length&&(t=!0,i.setValidators(o))}}if(null!==e.asyncValidator){const r=o5(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==e.asyncValidator);o.length!==r.length&&(t=!0,i.setAsyncValidators(o))}}}const n=()=>{};return V0(e._rawValidators,n),V0(e._rawAsyncValidators,n),t}function m5(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function _5(i,e){VT(i,e)}function y5(i,e){i._syncPendingControls(),e.forEach(t=>{const n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}const jX={provide:Uo,useExisting:Rn(()=>eg)},t_=(()=>Promise.resolve())();let eg=(()=>{class i extends Uo{constructor(t,n){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ie,this.form=new BT({},ET(t),IT(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){t_.then(()=>{const n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),e_(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){t_.then(()=>{const n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){t_.then(()=>{const n=this._findContainer(t.path),r=new BT({});_5(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){t_.then(()=>{const n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){t_.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,y5(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return i.\u0275fac=function(t){return new(t||i)(H(eo,10),H(kd,10))},i.\u0275dir=ot({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&P("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[On([jX]),it]}),i})();function b5(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}function C5(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const w5=class extends f5{constructor(e=null,t,n){super(LT(t),NT(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),L0(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=C5(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){b5(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){b5(this._onDisabledChange,e)}_forEachChild(e){}_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(e){C5(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},WX={provide:_c,useExisting:Rn(()=>qt)},M5=(()=>Promise.resolve())();let qt=(()=>{class i extends _c{constructor(t,n,r,o,a){super(),this._changeDetectorRef=a,this.control=new w5,this._registered=!1,this.update=new Ie,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function HT(i,e){if(!e)return null;let t,n,r;return Array.isArray(e),e.forEach(o=>{o.constructor===Dn?t=o:function HX(i){return Object.getPrototypeOf(i.constructor)===Yu}(o)?n=o:r=o}),r||n||t||null}(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function $T(i,e){if(!i.hasOwnProperty("model"))return!1;const t=i.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){e_(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(t){M5.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const n=t.isDisabled.currentValue,r=0!==n&&pc(n);M5.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function N0(i,e){return[...e.path,i]}(t,this._parent):[t]}}return i.\u0275fac=function(t){return new(t||i)(H(Uo,9),H(eo,10),H(kd,10),H(la,10),H(oi,8))},i.\u0275dir=ot({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:[On([WX]),it,li]}),i})(),UT=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const qX={provide:la,useExisting:Rn(()=>Ea),multi:!0};let Ea=(()=>{class i extends Yu{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=n=>{t(""==n?null:parseFloat(n))}}}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&P("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[On([qX]),it]}),i})();const GX={provide:la,useExisting:Rn(()=>jT),multi:!0};let D5=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})(),KX=(()=>{class i{constructor(){this._accessors=[]}add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t)return void this._accessors.splice(n,1)}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return!!t[0].control&&t[0]._parent===n._control._parent&&t[1].name===n.name}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:D5}),i})(),jT=(()=>{class i extends Yu{constructor(t,n,r,o){super(t,n),this._registry=r,this._injector=o,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(_c),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return i.\u0275fac=function(t){return new(t||i)(H(Ta),H(At),H(KX),H(Bi))},i.\u0275dir=ot({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,n){1&t&&P("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[On([GX]),it]}),i})();const YT=new Xe("NgModelWithFormControlWarning"),XX={provide:Uo,useExisting:Rn(()=>H0)};let H0=(()=>{class i extends Uo{constructor(t,n){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ie,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&($0(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const n=this.form.get(t.path);return e_(n,t),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){B0(t.control||null,t,!1),function UX(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,y5(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const n=t.control,r=this.form.get(t.path);n!==r&&(B0(n||null,t),(i=>i instanceof w5)(r)&&(e_(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const n=this.form.get(t.path);_5(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const n=this.form.get(t.path);n&&function VX(i,e){return $0(i,e)}(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){VT(this.form,this),this._oldForm&&$0(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(t){return new(t||i)(H(eo,10),H(kd,10))},i.\u0275dir=ot({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&P("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[On([XX]),it,li]}),i})();const nJ={provide:la,useExisting:Rn(()=>pr),multi:!0};function A5(i,e){return null==i?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${i}: ${e}`.slice(0,50))}let pr=(()=>{class i extends Yu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=A5(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const n of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){const n=function iJ(i){return i.split(":")[0]}(t);return this._optionMap.has(n)?this._optionMap.get(n):t}}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,n){1&t&&P("change",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},features:[On([nJ]),it]}),i})(),Mr=(()=>{class i{constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(A5(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(Ta),H(pr,9))},i.\u0275dir=ot({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),i})();const rJ={provide:la,useExisting:Rn(()=>qT),multi:!0};function P5(i,e){return null==i?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${i}: ${e}`.slice(0,50))}let qT=(()=>{class i extends Yu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let n;if(this.value=t,Array.isArray(t)){const r=t.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(t){this.onChange=n=>{const r=[],o=n.selectedOptions;if(void 0!==o){const a=o;for(let s=0;s{class i{constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(P5(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(P5(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(Ta),H(qT,9))},i.\u0275dir=ot({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),i})();function R5(i){return"number"==typeof i?i:parseFloat(i)}let zu=(()=>{class i{constructor(){this._validator=P0}ngOnChanges(t){if(this.inputName in t){const n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):P0,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i,features:[li]}),i})();const aJ={provide:eo,useExisting:Rn(()=>GT),multi:!0};let GT=(()=>{class i extends zu{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>R5(t),this.createValidator=t=>U4(t)}}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&mt("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[On([aJ]),it]}),i})();const sJ={provide:eo,useExisting:Rn(()=>KT),multi:!0};let KT=(()=>{class i extends zu{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>R5(t),this.createValidator=t=>H4(t)}}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&mt("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[On([sJ]),it]}),i})();const lJ={provide:eo,useExisting:Rn(()=>n_),multi:!0};let n_=(()=>{class i extends zu{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=pc,this.createValidator=t=>j4}enabled(t){return t}}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&mt("required",n._enabled?"":null)},inputs:{required:"required"},features:[On([lJ]),it]}),i})(),V5=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[D5]}),i})(),Dl=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[V5]}),i})(),$5=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:YT,useValue:t.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[V5]}),i})();function H5(i,e,t,n,r,o,a){try{var s=i[o](a),l=s.value}catch(u){return void t(u)}s.done?e(l):Promise.resolve(l).then(n,r)}function O(i){return function(){var e=this,t=arguments;return new Promise(function(n,r){var o=i.apply(e,t);function a(l){H5(o,n,r,a,s,"next",l)}function s(l){H5(o,n,r,a,s,"throw",l)}a(void 0)})}}function ir(i,e,t){const n=C(i)||e||t?{next:i,error:e,complete:t}:i;return n?Be((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(je(o,l=>{var u;null===(u=n.next)||void 0===u||u.call(n,l),o.next(l)},()=>{var l;s=!1,null===(l=n.complete)||void 0===l||l.call(n),o.complete()},l=>{var u;s=!1,null===(u=n.error)||void 0===u||u.call(n,l),o.error(l)},()=>{var l,u;s&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(u=n.finalize)||void 0===u||u.call(n)}))}):ve}const ft={production:!0,siteUri:"",moduleRouteHome:"public",appId:"1C114B00D8014BD988BF61D74672F9D2",moduleName:"Public",logo:"https://www.nuviot.com/images/nuviot-blue.png",supportOAuth:!0,landingPage:"home",showQuickLinks:!1,showFullPortal:!1,showToDo:!1,projectId:"DE16F03660B245E9B4811B9F232E39CA",moduleId:"B6D62C98A27A4E84AE6328D528794CD7"},ZT={now:()=>(ZT.delegate||Date).now(),delegate:void 0};class Ut extends Ce{constructor(e=1/0,t=1/0,n=ZT){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;t||(n.push(e),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_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(e+"\r\n"+t)}static toEntityHeader(e){return{id:e.id,key:e.key,text:e.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(e){return e&&0!==e.length?e.replace(/\s+/g,"").replaceAll("'","").toLowerCase():""}static getYears(){let e=[];e.push({id:"-1",key:"-1",text:"-select year-"});for(let t=2020;t<(new Date).getFullYear()+4;++t)e.push({id:`${t}`,key:t.toString(),text:`${t}`});return e}static createFormResult(e,t){return{resultId:"childitem",successful:!0,autoSave:!0,saveDraft:!0,autoSaveIntervalSections:30,model:e,formFields:t.formFields,modelHelp:t.modelHelp,modelTitle:t.modelTitle,modelName:t.modelName,view:t.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(e,t,n="-",r){return{key:e.key,value:t,name:e.name,lastUpdated:r,lastUpdatedBy:n,attributeType:e.fieldType,isAlarm:!1}}static toDateOnly(e,t=!0){const n=e.getMonth()+1,r=n<10?`0${n}`:`${n}`,o=e.getDate()<10?`0${e.getDate()}`:`${e.getDate()}`;return t?`${e.getFullYear()}/${r}/${o}`:`${r}/${o}/${e.getFullYear()}`}static toYYYYMMDDhhmmss(e){const t=new Date(e);let n=t.getUTCHours(),r=Yn.padZero(t.getSeconds()),o="AM";return n>12&&(n-=12,o="PM"),`${Yn.toDateOnly(t,!1)} ${n}:${Yn.padZero(t.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(e){let t=e.options.find(n=>n.key==e.value);return t||(t=e.options.find(n=>"-1"==n.id)),t}static roundCurrency(e){return Math.round(100*e)/100}static fromDateOnly(e){if(e){const t=new Date(e),n=`${t.getMonth()+1}`,r=`${t.getDate()}`;return new Date(`${t.getFullYear()}/${n}/${r}`)}return null}static fromHHMM(e){const t=e.indexOf(":");if(-1!==t){const n=e.substr(0,t),r=e.substr(t+1);return parseFloat(n)+parseFloat(r)/60}return parseFloat(e)}static toHHMM(e,t,n,r=!0){let o="",a=parseInt(e.toString()),s=parseInt(t.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(e){let t="",n=e.getHours(),r=e.getMinutes();return t=0==n?"00":n<10?"0"+n:n.toString(),t+=":",t+=r<10?"0"+r:r.toString(),t}static timeToHHMM(e){const t=parseFloat(e);let n=t%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(t)}:${r}`}static isValidTime(e){return/^[0-9]{0,2}[\.:]?[0-9]{0,3}$/.test(e)}static isValidKey(e){return!(!e||0===e.length)&&/^[a-z][a-z0-9]{2,32}$/.test(e)}static padZero(e){return e<10?`0${e}`:`${e}`}static newGuid(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16).toUpperCase()})}static getUrlParameters(e,t){const n={};return e.params.subscribe(r=>{if(r){const o=Object.keys(r);o.length>0&&(o.forEach(a=>{t?t.some(s=>s===a)&&(n[a]=r[a]):n[a]=r[a]}),n._hasValues=Object.keys(n).length>0)}}),n}static getUrlQueryParameters(e,t){const n={};return e.queryParams.subscribe(r=>{if(r){const o=Object.keys(r);o.length>0&&(o.forEach(a=>{t?t.some(s=>s===a)&&(n[a]=r[a]):n[a]=r[a]}),n._hasValues=Object.keys(n).length>0)}}),n}static toEntityHeaderList(e,t="-select-"){let n=e.map(r=>({id:r.id,key:r.key,text:r.name}));return n.unshift({id:"-1",key:"-1",text:t}),n}static toPickerOptionList(e,t="-select-"){let n=e.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:t,text:t}),n}static toCamelCase(e){return`${e.substring(0,1).toLowerCase()}${e.substring(1,e.length)}`}static printLogHeader(e,t,n=!1){e&&console.log(n?`begin ${t}${t.endsWith(":")?"":": "}`:t)}static logToConsole(e,t,n){e&&console.log(t,n)}static clone(e,t){const n=JSON.parse(JSON.stringify(e));return t&&t.length>0&&t.forEach(r=>{n[r]=void 0}),n}}class Ai extends Ce{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}}const i_=_(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function r_(...i){const e=so(i),t=Ji(i),{args:n,keys:r}=O4(i);if(0===n.length)return er([],e);const o=new S(function fJ(i,e,t=ve){return n=>{U5(e,()=>{const{length:r}=i,o=new Array(r);let a=r,s=r;for(let l=0;l{const u=er(i[l],e);let f=!1;u.subscribe(je(n,v=>{o[l]=v,f||(f=!0,s--),s||n.next(t(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,e,r?a=>L4(r,a):ve));return t?o.pipe(ST(t)):o}function U5(i,e,t){i?va(t,i,e):e()}function tg(...i){return function mJ(){return ni(1)}()(er(i,so(i)))}function o_(i){return new S(e=>{Sn(i()).subscribe(e)})}function ng(i,e){const t=C(i)?i:()=>i,n=r=>r.error(t());return new S(e?r=>e.schedule(n,0,r):n)}function XT(){return Be((i,e)=>{let t=null;i._refCount++;const n=je(e,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(t=null);const r=i._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});i.subscribe(n),n.closed||(t=i.connect())})}class j5 extends S{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ee(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new x;const t=this.getSubject();e.add(this.source.subscribe(je(t,void 0,()=>{this._teardown(),t.complete()},n=>{this._teardown(),t.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=x.EMPTY)}return e}refCount(){return XT()(this)}}function to(i,e){return Be((t,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();t.subscribe(je(n,l=>{r?.unsubscribe();let u=0;const f=o++;Sn(i(l,f)).subscribe(r=je(n,v=>n.next(e?e(l,v,f,u++):v),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Xn(i){return i<=0?()=>Lr:Be((e,t)=>{let n=0;e.subscribe(je(t,r=>{++n<=i&&(t.next(r),i<=n&&t.complete())}))})}function rr(...i){const e=so(i);return Be((t,n)=>{(e?tg(i,t,e):tg(i,t)).subscribe(n)})}function U0(i){return Be((e,t)=>{let n=!1;e.subscribe(je(t,r=>{n=!0,t.next(r)},()=>{n||t.next(i),t.complete()}))})}function Y5(i=_J){return Be((e,t)=>{let n=!1;e.subscribe(je(t,r=>{n=!0,t.next(r)},()=>n?t.complete():t.error(i())))})}function _J(){return new i_}function vc(i,e){const t=arguments.length>=2;return n=>n.pipe(i?Li((r,o)=>i(r,o,n)):ve,Xn(1),t?U0(e):Y5(()=>new i_))}function yc(i){return Be((e,t)=>{let o,n=null,r=!1;n=e.subscribe(je(t,void 0,void 0,a=>{o=Sn(i(a,yc(i)(e))),n?(n.unsubscribe(),n=null,o.subscribe(t)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(t))})}function vJ(i,e,t,n,r){return(o,a)=>{let s=t,l=e,u=0;o.subscribe(je(a,f=>{const v=u++;l=s?i(l,f,v):(s=!0,f),n&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function z5(i,e){return Be(vJ(i,e,arguments.length>=2,!0))}function JT(i){return i<=0?()=>Lr:Be((e,t)=>{let n=[];e.subscribe(je(t,r=>{n.push(r),i{for(const r of n)t.next(r);t.complete()},void 0,()=>{n=null}))})}function W5(i,e){const t=arguments.length>=2;return n=>n.pipe(i?Li((r,o)=>i(r,o,n)):ve,JT(1),t?U0(e):Y5(()=>new i_))}function j0(i){return Ve(()=>i)}function Y0(i){return Be((e,t)=>{try{e.subscribe(t)}finally{t.add(i)}})}const $n="primary",a_=Symbol("RouteTitle");class bJ{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ig(i){return new bJ(i)}function CJ(i,e,t){const n=t.path.split("/");if(n.length>i.length||"full"===t.pathMatch&&(e.hasChildren()||n.lengthn[o]===r)}return i===e}function G5(i){return Array.prototype.concat.apply([],i)}function K5(i){return i.length>0?i[i.length-1]:null}function go(i,e){for(const t in i)i.hasOwnProperty(t)&&e(i[t],t)}function Md(i){return dD(i)?i:Fm(i)?er(Promise.resolve(i)):Pt(i)}const kJ={exact:function X5(i,e,t){if(!qu(i.segments,e.segments)||!z0(i.segments,e.segments,t)||i.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children)if(!i.children[n]||!X5(i.children[n],e.children[n],t))return!1;return!0},subset:J5},Q5={exact:function MJ(i,e){return Tl(i,e)},subset:function DJ(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(t=>q5(i[t],e[t]))},ignored:()=>!0};function Z5(i,e,t){return kJ[t.paths](i.root,e.root,t.matrixParams)&&Q5[t.queryParams](i.queryParams,e.queryParams)&&!("exact"===t.fragment&&i.fragment!==e.fragment)}function J5(i,e,t){return eN(i,e,e.segments,t)}function eN(i,e,t,n){if(i.segments.length>t.length){const r=i.segments.slice(0,t.length);return!(!qu(r,t)||e.hasChildren()||!z0(r,t,n))}if(i.segments.length===t.length){if(!qu(i.segments,t)||!z0(i.segments,t,n))return!1;for(const r in e.children)if(!i.children[r]||!J5(i.children[r],e.children[r],n))return!1;return!0}{const r=t.slice(0,i.segments.length),o=t.slice(i.segments.length);return!!(qu(i.segments,r)&&z0(i.segments,r,n)&&i.children[$n])&&eN(i.children[$n],e,o,n)}}function z0(i,e,t){return e.every((n,r)=>Q5[t](i[r].parameters,n.parameters))}class Wu{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ig(this.queryParams)),this._queryParamMap}toString(){return EJ.serialize(this)}}class zn{constructor(e,t){this.segments=e,this.children=t,this.parent=null,go(t,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return W0(this)}}class s_{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ig(this.parameters)),this._parameterMap}toString(){return rN(this)}}function qu(i,e){return i.length===e.length&&i.every((t,n)=>t.path===e[n].path)}let tN=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:function(){return new tS},providedIn:"root"}),i})();class tS{parse(e){const t=new BJ(e);return new Wu(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${l_(e.root,!0)}`,n=function PJ(i){const e=Object.keys(i).map(t=>{const n=i[t];return Array.isArray(n)?n.map(r=>`${q0(t)}=${q0(r)}`).join("&"):`${q0(t)}=${q0(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${n}${"string"==typeof e.fragment?`#${function IJ(i){return encodeURI(i)}(e.fragment)}`:""}`}}const EJ=new tS;function W0(i){return i.segments.map(e=>rN(e)).join("/")}function l_(i,e){if(!i.hasChildren())return W0(i);if(e){const t=i.children[$n]?l_(i.children[$n],!1):"",n=[];return go(i.children,(r,o)=>{o!==$n&&n.push(`${o}:${l_(r,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function SJ(i,e){let t=[];return go(i.children,(n,r)=>{r===$n&&(t=t.concat(e(n,r)))}),go(i.children,(n,r)=>{r!==$n&&(t=t.concat(e(n,r)))}),t}(i,(n,r)=>r===$n?[l_(i.children[$n],!1)]:[`${r}:${l_(n,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[$n]?`${W0(i)}/${t[0]}`:`${W0(i)}/(${t.join("//")})`}}function nN(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function q0(i){return nN(i).replace(/%3B/gi,";")}function nS(i){return nN(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function G0(i){return decodeURIComponent(i)}function iN(i){return G0(i.replace(/\+/g,"%20"))}function rN(i){return`${nS(i.path)}${function AJ(i){return Object.keys(i).map(e=>`;${nS(e)}=${nS(i[e])}`).join("")}(i.parameters)}`}const FJ=/^[^\/()?;=#]+/;function K0(i){const e=i.match(FJ);return e?e[0]:""}const RJ=/^[^=?&#]+/,LJ=/^[^&#]+/;class BJ{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zn([],{}):new zn([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[$n]=new zn(e,t)),n}parseSegment(){const e=K0(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new tt(4009,!1);return this.capture(e),new s_(G0(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=K0(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const r=K0(this.remaining);r&&(n=r,this.capture(n))}e[G0(t)]=G0(n)}parseQueryParam(e){const t=function OJ(i){const e=i.match(RJ);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const a=function NJ(i){const e=i.match(LJ);return e?e[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=iN(t),o=iN(n);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=K0(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new tt(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=$n);const a=this.parseChildren();t[o]=1===Object.keys(a).length?a[$n]:new zn([],a),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new tt(4011,!1)}}function iS(i){return i.segments.length>0?new zn([],{[$n]:i}):i}function Q0(i){const e={};for(const n of Object.keys(i.children)){const o=Q0(i.children[n]);(o.segments.length>0||o.hasChildren())&&(e[n]=o)}return function VJ(i){if(1===i.numberOfChildren&&i.children[$n]){const e=i.children[$n];return new zn(i.segments.concat(e.segments),e.children)}return i}(new zn(i.segments,e))}function Gu(i){return i instanceof Wu}function UJ(i,e,t,n,r){if(0===t.length)return rg(e.root,e.root,e.root,n,r);const o=function sN(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new aN(!0,0,i);let e=0,t=!1;const n=i.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return go(o.outlets,(l,u)=>{s[u]="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?t=!0:".."===s?e++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new aN(t,e,n)}(t);return o.toRoot()?rg(e.root,e.root,new zn([],{}),n,r):function a(l){const u=function YJ(i,e,t,n){if(i.isAbsolute)return new og(e.root,!0,0);if(-1===n)return new og(t,t===e.root,0);return function lN(i,e,t){let n=i,r=e,o=t;for(;o>r;){if(o-=r,n=n.parent,!n)throw new tt(4005,!1);r=n.segments.length}return new og(n,!1,r-o)}(t,n+(c_(i.commands[0])?0:1),i.numberOfDoubleDots)}(o,e,i.snapshot?._urlSegment,l),f=u.processChildren?u_(u.segmentGroup,u.index,o.commands):oS(u.segmentGroup,u.index,o.commands);return rg(e.root,u.segmentGroup,f,n,r)}(i.snapshot?._lastPathIndex)}function c_(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function d_(i){return"object"==typeof i&&null!=i&&i.outlets}function rg(i,e,t,n,r){let a,o={};n&&go(n,(l,u)=>{o[u]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),a=i===e?t:oN(i,e,t);const s=iS(Q0(a));return new Wu(s,o,r)}function oN(i,e,t){const n={};return go(i.children,(r,o)=>{n[o]=r===e?t:oN(r,e,t)}),new zn(i.segments,n)}class aN{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&c_(n[0]))throw new tt(4003,!1);const r=n.find(d_);if(r&&r!==K5(n))throw new tt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class og{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function oS(i,e,t){if(i||(i=new zn([],{})),0===i.segments.length&&i.hasChildren())return u_(i,e,t);const n=function WJ(i,e,t){let n=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const a=i.segments[r],s=t[n];if(d_(s))break;const l=`${s}`,u=n0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!dN(l,u,a))return o;n+=2}else{if(!dN(l,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(i,e,t),r=t.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=oS(i.children[a],e,o))}),go(i.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new zn(i.segments,r)}}function aS(i,e,t){const n=i.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=aS(new zn([],{}),0,t))}),e}function cN(i){const e={};return go(i,(t,n)=>e[n]=`${t}`),e}function dN(i,e,t){return i==t.path&&Tl(e,t.parameters)}class bc{constructor(e,t){this.id=e,this.url=t}}class sS extends bc{constructor(e,t,n="imperative",r=null){super(e,t),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Cc extends bc{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Z0 extends bc{constructor(e,t,n,r){super(e,t),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uN extends bc{constructor(e,t,n,r){super(e,t),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class GJ extends bc{constructor(e,t,n,r){super(e,t),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 KJ extends bc{constructor(e,t,n,r){super(e,t),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 QJ extends bc{constructor(e,t,n,r,o){super(e,t),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 ZJ extends bc{constructor(e,t,n,r){super(e,t),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 XJ extends bc{constructor(e,t,n,r){super(e,t),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 JJ{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class eee{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class tee{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nee{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iee{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ree{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pN{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class hN{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=lS(e,this._root);return t?t.children.map(n=>n.value):[]}firstChild(e){const t=lS(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=cS(e,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return cS(e,this._root).map(t=>t.value)}}function lS(i,e){if(i===e.value)return e;for(const t of e.children){const n=lS(i,t);if(n)return n}return null}function cS(i,e){if(i===e.value)return[e];for(const t of e.children){const n=cS(i,t);if(n.length)return n.unshift(e),n}return[]}class wc{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ag(i){const e={};return i&&i.children.forEach(t=>e[t.value.outlet]=t),e}class gN extends hN{constructor(e,t){super(e),this.snapshot=t,dS(this,e)}toString(){return this.snapshot.toString()}}function fN(i,e){const t=function aee(i,e){const a=new X0([],{},{},"",{},$n,e,null,i.root,-1,{});return new _N("",new wc(a,[]))}(i,e),n=new Ai([new s_("",{})]),r=new Ai({}),o=new Ai({}),a=new Ai({}),s=new Ai(""),l=new mi(n,r,a,s,o,$n,e,t.root);return l.snapshot=t.root,new gN(new wc(l,[]),t)}class mi{constructor(e,t,n,r,o,a,s,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(Ve(u=>u[a_]))??Pt(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(e=>ig(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ve(e=>ig(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mN(i,e="emptyOnly"){const t=i.pathFromRoot;let n=0;if("always"!==e)for(n=t.length-1;n>=1;){const r=t[n],o=t[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function see(i){return i.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(n))}class X0{constructor(e,t,n,r,o,a,s,l,u,f,v,D){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.[a_],this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=f,this._correctedLastPathIndex=D??f,this._resolve=v}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=ig(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ig(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class _N extends hN{constructor(e,t){super(t),this.url=e,dS(this,t)}toString(){return vN(this._root)}}function dS(i,e){e.value._routerState=i,e.children.forEach(t=>dS(i,t))}function vN(i){const e=i.children.length>0?` { ${i.children.map(vN).join(", ")} } `:"";return`${i.value}${e}`}function uS(i){if(i.snapshot){const e=i.snapshot,t=i._futureSnapshot;i.snapshot=t,Tl(e.queryParams,t.queryParams)||i.queryParams.next(t.queryParams),e.fragment!==t.fragment&&i.fragment.next(t.fragment),Tl(e.params,t.params)||i.params.next(t.params),function wJ(i,e){if(i.length!==e.length)return!1;for(let t=0;tTl(t.parameters,e[n].parameters))}(i.url,e.url);return t&&!(!i.parent!=!e.parent)&&(!i.parent||pS(i.parent,e.parent))}function p_(i,e,t){if(t&&i.shouldReuseRoute(e.value,t.value.snapshot)){const n=t.value;n._futureSnapshot=e.value;const r=function cee(i,e,t){return e.children.map(n=>{for(const r of t.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return p_(i,n,r);return p_(i,n)})}(i,e,t);return new wc(n,r)}{if(i.shouldAttach(e.value)){const o=i.retrieve(e.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>p_(i,s)),a}}const n=function dee(i){return new mi(new Ai(i.url),new Ai(i.params),new Ai(i.queryParams),new Ai(i.fragment),new Ai(i.data),i.outlet,i.component,i)}(e.value),r=e.children.map(o=>p_(i,o));return new wc(n,r)}}const hS="ngNavigationCancelingError";function yN(i,e){const{redirectTo:t,navigationBehaviorOptions:n}=Gu(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=bN(!1,0,e);return r.url=t,r.navigationBehaviorOptions=n,r}function bN(i,e,t){const n=new Error("NavigationCancelingError: "+(i||""));return n[hS]=!0,n.cancellationCode=e,t&&(n.url=t),n}function CN(i){return wN(i)&&Gu(i.url)}function wN(i){return i&&i[hS]}class uee{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new h_,this.attachRef=null}}let h_=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(t,n){const r=this.getOrCreateContext(t);r.outlet=n,this.contexts.set(t,r)}onChildOutletDestroyed(t){const n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new uee,this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const J0=!1;let eb=(()=>{class i{constructor(t,n,r,o,a){this.parentContexts=t,this.location=n,this.changeDetector=o,this.environmentInjector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ie,this.deactivateEvents=new Ie,this.attachEvents=new Ie,this.detachEvents=new Ie,this.name=r||$n,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new tt(4012,J0);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new tt(4012,J0);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new tt(4012,J0);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new tt(4013,J0);this._activatedRoute=t;const r=this.location,a=t._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new pee(t,s,r.injector);if(n&&function hee(i){return!!i.resolveComponentFactory}(n)){const u=n.resolveComponentFactory(a);this.activated=r.createComponent(u,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(t){return new(t||i)(H(h_),H(Sr),fl("name"),H(oi),H(pd))},i.\u0275dir=ot({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),i})();class pee{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===mi?this.route:e===h_?this.childContexts:this.parent.get(e,t)}}let gS=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=Oe({type:i,selectors:[["ng-component"]],standalone:!0,features:[wD],decls:1,vars:0,template:function(t,n){1&t&&B(0,"router-outlet")},dependencies:[eb],encapsulation:2}),i})();function xN(i,e){return i.providers&&!i._injector&&(i._injector=t0(i.providers,e,`Route: ${i.path}`)),i._injector??e}function mS(i){const e=i.children&&i.children.map(mS),t=e?{...i,children:e}:{...i};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==$n&&(t.component=gS),t}function Za(i){return i.outlet||$n}function kN(i,e){const t=i.filter(n=>Za(n)===e);return t.push(...i.filter(n=>Za(n)!==e)),t}function g_(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class vee{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),uS(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=ag(t);e.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),go(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,t,n){const r=e.value,o=t?t.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(e,t,a.children)}else this.deactivateChildRoutes(e,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,o=ag(e);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(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,o=ag(e);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(e,t,n){const r=ag(t);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new ree(o.value.snapshot))}),e.children.length&&this.forwardEvent(new nee(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,o=t?t.value:null;if(uS(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,a.children)}else this.activateChildRoutes(e,t,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),uS(s.route.value),this.activateChildRoutes(e,null,a.children)}else{const s=g_(r.snapshot),l=s?.get(rc)??null;a.attachRef=null,a.route=r,a.resolver=l,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}class MN{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class tb{constructor(e,t){this.component=e,this.route=t}}function yee(i,e,t){const n=i._root;return f_(n,e?e._root:null,t,[n.value])}function sg(i,e){const t=Symbol(),n=e.get(i,t);return n===t?"function"!=typeof i||function nk(i){return null!==oh(i)}(i)?e.get(i):i:n}function f_(i,e,t,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ag(e);return i.children.forEach(a=>{(function Cee(i,e,t,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=i.value,a=e?e.value:null,s=t?t.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function wee(i,e,t){if("function"==typeof t)return t(i,e);switch(t){case"pathParamsChange":return!qu(i.url,e.url);case"pathParamsOrQueryParamsChange":return!qu(i.url,e.url)||!Tl(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pS(i,e)||!Tl(i.queryParams,e.queryParams);default:return!pS(i,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new MN(n)):(o.data=a.data,o._resolvedData=a._resolvedData),f_(i,e,o.component?s?s.children:null:t,n,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tb(s.outlet.component,a))}else a&&m_(e,s,r),r.canActivateChecks.push(new MN(n)),f_(i,null,o.component?s?s.children:null:t,n,r)})(a,o[a.value.outlet],t,n.concat([a.value]),r),delete o[a.value.outlet]}),go(o,(a,s)=>m_(a,t.getContext(s),r)),r}function m_(i,e,t){const n=ag(i),r=i.value;go(n,(o,a)=>{m_(o,r.component?e?e.children.getContext(a):null:e,t)}),t.canDeactivateChecks.push(new tb(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function __(i){return"function"==typeof i}function _S(i){return i instanceof i_||"EmptyError"===i?.name}const nb=Symbol("INITIAL_VALUE");function lg(){return to(i=>r_(i.map(e=>e.pipe(Xn(1),rr(nb)))).pipe(Ve(e=>{for(const t of e)if(!0!==t){if(t===nb)return nb;if(!1===t||t instanceof Wu)return t}return!0}),Li(e=>e!==nb),Xn(1)))}function DN(i){return function ue(...i){return ie(i)}(ir(e=>{if(Gu(e))throw yN(0,e)}),Ve(e=>!0===e))}const vS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TN(i,e,t,n,r){const o=yS(i,e,t);return o.matched?function Vee(i,e,t,n){const r=e.canMatch;return r&&0!==r.length?Pt(r.map(a=>{const s=sg(a,i);return Md(function See(i){return i&&__(i.canMatch)}(s)?s.canMatch(e,t):i.runInContext(()=>s(e,t)))})).pipe(lg(),DN()):Pt(!0)}(n=xN(e,n),e,t).pipe(Ve(a=>!0===a?o:{...vS})):Pt(o)}function yS(i,e,t){if(""===e.path)return"full"===e.pathMatch&&(i.hasChildren()||t.length>0)?{...vS}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(e.matcher||CJ)(t,i,e);if(!r)return{...vS};const o={};go(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:t.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function ib(i,e,t,n,r="corrected"){if(t.length>0&&function Uee(i,e,t){return t.some(n=>rb(i,e,n)&&Za(n)!==$n)}(i,t,n)){const a=new zn(e,function Hee(i,e,t,n){const r={};r[$n]=n,n._sourceSegment=i,n._segmentIndexShift=e.length;for(const o of t)if(""===o.path&&Za(o)!==$n){const a=new zn([],{});a._sourceSegment=i,a._segmentIndexShift=e.length,r[Za(o)]=a}return r}(i,e,n,new zn(t,i.children)));return a._sourceSegment=i,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&function jee(i,e,t){return t.some(n=>rb(i,e,n))}(i,t,n)){const a=new zn(i.segments,function $ee(i,e,t,n,r,o){const a={};for(const s of n)if(rb(i,t,s)&&!r[Za(s)]){const l=new zn([],{});l._sourceSegment=i,l._segmentIndexShift="legacy"===o?i.segments.length:e.length,a[Za(s)]=l}return{...r,...a}}(i,e,t,n,i.children,r));return a._sourceSegment=i,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:t}}const o=new zn(i.segments,i.children);return o._sourceSegment=i,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function rb(i,e,t){return(!(i.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function SN(i,e,t,n){return!!(Za(i)===n||n!==$n&&rb(e,t,i))&&("**"===i.path||yS(e,i,t).matched)}function EN(i,e,t){return 0===e.length&&!i.children[t]}const ob=!1;class ab{constructor(e){this.segmentGroup=e||null}}class IN{constructor(e){this.urlTree=e}}function v_(i){return ng(new ab(i))}function AN(i){return ng(new IN(i))}class qee{constructor(e,t,n,r,o){this.injector=e,this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const e=ib(this.urlTree.root,[],[],this.config).segmentGroup,t=new zn(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,$n).pipe(Ve(o=>this.createUrlTree(Q0(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(yc(o=>{if(o instanceof IN)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof ab?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,$n).pipe(Ve(r=>this.createUrlTree(Q0(r),e.queryParams,e.fragment))).pipe(yc(r=>{throw r instanceof ab?this.noMatchError(r):r}))}noMatchError(e){return new tt(4002,ob)}createUrlTree(e,t,n){const r=iS(e);return new Wu(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Ve(o=>new zn([],o))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return er(r).pipe(Cd(o=>{const a=n.children[o],s=kN(t,o);return this.expandSegmentGroup(e,s,a,o).pipe(Ve(l=>({segment:l,outlet:o})))}),z5((o,a)=>(o[a.outlet]=a.segment,o),{}),W5())}expandSegment(e,t,n,r,o,a){return er(n).pipe(Cd(s=>this.expandSegmentAgainstRoute(e,t,n,s,r,o,a).pipe(yc(u=>{if(u instanceof ab)return Pt(null);throw u}))),vc(s=>!!s),yc((s,l)=>{if(_S(s))return EN(t,r,o)?Pt(new zn([],{})):v_(t);throw s}))}expandSegmentAgainstRoute(e,t,n,r,o,a,s){return SN(r,t,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,o,a):v_(t):v_(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AN(o):this.lineralizeSegments(n,o).pipe(lr(a=>{const s=new zn(a,{});return this.expandSegment(e,s,t,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,o,a){const{matched:s,consumedSegments:l,remainingSegments:u,positionalParamSegments:f}=yS(t,r,o);if(!s)return v_(t);const v=this.applyRedirectCommands(l,r.redirectTo,f);return r.redirectTo.startsWith("/")?AN(v):this.lineralizeSegments(r,v).pipe(lr(D=>this.expandSegment(e,t,n,D.concat(u),a,!1)))}matchSegmentAgainstRoute(e,t,n,r,o){return"**"===n.path?(e=xN(n,e),n.loadChildren?(n._loadedRoutes?Pt({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(e,n)).pipe(Ve(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new zn(r,{})))):Pt(new zn(r,{}))):TN(t,n,r,e).pipe(to(({matched:a,consumedSegments:s,remainingSegments:l})=>a?this.getChildConfig(e=n._injector??e,n,r).pipe(lr(f=>{const v=f.injector??e,D=f.routes,{segmentGroup:A,slicedSegments:W}=ib(t,s,l,D),J=new zn(A.segments,A.children);if(0===W.length&&J.hasChildren())return this.expandChildren(v,D,J).pipe(Ve(we=>new zn(s,we)));if(0===D.length&&0===W.length)return Pt(new zn(s,{}));const pe=Za(n)===o;return this.expandSegment(v,J,D,W,pe?$n:o,!0).pipe(Ve(ye=>new zn(s.concat(ye.segments),ye.children)))})):v_(t)))}getChildConfig(e,t,n){return t.children?Pt({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?Pt({routes:t._loadedRoutes,injector:t._loadedInjector}):function Bee(i,e,t,n){const r=e.canLoad;return void 0===r||0===r.length?Pt(!0):Pt(r.map(a=>{const s=sg(a,i);return Md(function kee(i){return i&&__(i.canLoad)}(s)?s.canLoad(e,t):i.runInContext(()=>s(e,t)))})).pipe(lg(),DN())}(e,t,n).pipe(lr(r=>r?this.configLoader.loadChildren(e,t).pipe(ir(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function zee(i){return ng(bN(ob,3))}())):Pt({routes:[],injector:e})}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Pt(n);if(r.numberOfChildren>1||!r.children[$n])return ng(new tt(4e3,ob));r=r.children[$n]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreateUrlTree(e,t,n,r){const o=this.createSegmentGroup(e,t.root,n,r);return new Wu(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return go(e,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);n[o]=t[s]}else n[o]=r}),n}createSegmentGroup(e,t,n,r){const o=this.createSegments(e,t.segments,n,r);let a={};return go(t.children,(s,l)=>{a[l]=this.createSegmentGroup(e,s,n,r)}),new zn(o,a)}createSegments(e,t,n,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new tt(4001,ob);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}class Kee{}class Xee{constructor(e,t,n,r,o,a,s,l){this.injector=e,this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s,this.urlSerializer=l}recognize(){const e=ib(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,$n).pipe(Ve(t=>{if(null===t)return null;const n=new X0([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$n,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new wc(n,t),o=new _N(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const t=e.value,n=mN(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,n,n.segments,r)}processChildren(e,t,n){return er(Object.keys(n.children)).pipe(Cd(r=>{const o=n.children[r],a=kN(t,r);return this.processSegmentGroup(e,a,o,r)}),z5((r,o)=>r&&o?(r.push(...o),r):null),function yJ(i,e=!1){return Be((t,n)=>{let r=0;t.subscribe(je(n,o=>{const a=i(o,r++);(a||e)&&n.next(o),!a&&n.complete()}))})}(r=>null!==r),U0(null),W5(),Ve(r=>{if(null===r)return null;const o=PN(r);return function Jee(i){i.sort((e,t)=>e.value.outlet===$n?-1:t.value.outlet===$n?1:e.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(e,t,n,r,o){return er(t).pipe(Cd(a=>this.processSegmentAgainstRoute(a._injector??e,a,n,r,o)),vc(a=>!!a),yc(a=>{if(_S(a))return EN(n,r,o)?Pt([]):Pt(null);throw a}))}processSegmentAgainstRoute(e,t,n,r,o){if(t.redirectTo||!SN(t,n,r,o))return Pt(null);let a;if("**"===t.path){const s=r.length>0?K5(r).parameters:{},l=RN(n)+r.length;a=Pt({snapshot:new X0(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,LN(t),Za(t),t.component??t._loadedComponent??null,t,FN(n),l,NN(t),l),consumedSegments:[],remainingSegments:[]})}else a=TN(n,t,r,e).pipe(Ve(({matched:s,consumedSegments:l,remainingSegments:u,parameters:f})=>{if(!s)return null;const v=RN(n)+l.length;return{snapshot:new X0(l,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,LN(t),Za(t),t.component??t._loadedComponent??null,t,FN(n),v,NN(t),v),consumedSegments:l,remainingSegments:u}}));return a.pipe(to(s=>{if(null===s)return Pt(null);const{snapshot:l,consumedSegments:u,remainingSegments:f}=s;e=t._injector??e;const v=t._loadedInjector??e,D=function ete(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(t),{segmentGroup:A,slicedSegments:W}=ib(n,u,f,D.filter(pe=>void 0===pe.redirectTo),this.relativeLinkResolution);if(0===W.length&&A.hasChildren())return this.processChildren(v,D,A).pipe(Ve(pe=>null===pe?null:[new wc(l,pe)]));if(0===D.length&&0===W.length)return Pt([new wc(l,[])]);const J=Za(t)===o;return this.processSegment(v,D,A,W,J?$n:o).pipe(Ve(pe=>null===pe?null:[new wc(l,pe)]))}))}}function tte(i){const e=i.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function PN(i){const e=[],t=new Set;for(const n of i){if(!tte(n)){e.push(n);continue}const r=e.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),t.add(r)):e.push(n)}for(const n of t){const r=PN(n.children);e.push(new wc(n.value,r))}return e.filter(n=>!t.has(n))}function FN(i){let e=i;for(;e._sourceSegment;)e=e._sourceSegment;return e}function RN(i){let e=i,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function LN(i){return i.data||{}}function NN(i){return i.resolve||{}}function BN(i){return"string"==typeof i.title||null===i.title}function bS(i){return to(e=>{const t=i(e);return t?er(t).pipe(Ve(()=>e)):Pt(e)})}let VN=(()=>{class i{buildTitle(t){let n,r=t.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===$n);return n}getResolvedTitleForRoute(t){return t.data[a_]}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:function(){return ji($N)},providedIn:"root"}),i})(),$N=(()=>{class i extends VN{constructor(t){super(),this.title=t}updateTitle(t){const n=this.buildTitle(t);void 0!==n&&this.title.setTitle(n)}}return i.\u0275fac=function(t){return new(t||i)(Me(w4))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class cte{}class ute extends class dte{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const lb=new Xe("",{providedIn:"root",factory:()=>({})}),CS=new Xe("ROUTES");let wS=(()=>{class i{constructor(t,n){this.injector=t,this.compiler=n,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Pt(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const n=Md(t.loadComponent()).pipe(ir(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Y0(()=>{this.componentLoaders.delete(t)})),r=new j5(n,()=>new Ce).pipe(XT());return this.componentLoaders.set(t,r),r}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Pt({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,u,f=!1;Array.isArray(s)?u=s:(l=s.create(t).injector,u=G5(l.get(CS,[],ln.Self|ln.Optional)));return{routes:u.map(mS),injector:l}}),Y0(()=>{this.childrenLoaders.delete(n)})),a=new j5(o,()=>new Ce).pipe(XT());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(t){return Md(t()).pipe(lr(n=>n instanceof hL||Array.isArray(n)?Pt(n):er(this.compiler.compileModuleAsync(n))))}}return i.\u0275fac=function(t){return new(t||i)(Me(Bi),Me(ND))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class hte{}class gte{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function fte(i){throw i}function mte(i,e,t){return e.parse("/")}const _te={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vte={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function UN(){const i=ji(tN),e=ji(h_),t=ji(gc),n=ji(Bi),r=ji(ND),o=ji(CS,{optional:!0})??[],a=ji(lb,{optional:!0})??{},s=ji($N),l=ji(VN,{optional:!0}),u=ji(hte,{optional:!0}),f=ji(cte,{optional:!0}),v=new _i(null,i,e,t,n,r,G5(o));return u&&(v.urlHandlingStrategy=u),f&&(v.routeReuseStrategy=f),v.titleStrategy=l??s,function yte(i,e){i.errorHandler&&(e.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(e.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(e.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(e.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(e.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(e.canceledNavigationResolution=i.canceledNavigationResolution)}(a,v),v}let _i=(()=>{class i{constructor(t,n,r,o,a,s,l){this.rootComponentType=t,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 Ce,this.errorHandler=fte,this.malformedUriErrorHandler=mte,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Pt(void 0),this.urlHandlingStrategy=new gte,this.routeReuseStrategy=new ute,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=a.get(wS),this.configLoader.onLoadEndListener=D=>this.triggerEvent(new eee(D)),this.configLoader.onLoadStartListener=D=>this.triggerEvent(new JJ(D)),this.ngModule=a.get(Vu),this.console=a.get(iK);const v=a.get($t);this.isNgZoneEnabled=v instanceof $t&&$t.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function xJ(){return new Wu(new zn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=fN(this.currentUrlTree,this.rootComponentType),this.transitions=new Ai({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(t){const n=this.events;return t.pipe(Li(r=>0!==r.id),Ve(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),to(r=>{let o=!1,a=!1;return Pt(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}}),to(s=>{const l=this.browserUrlTree.toString(),u=!this.navigated||s.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return jN(s.source)&&(this.browserUrlTree=s.extractedUrl),Pt(s).pipe(to(v=>{const D=this.transitions.getValue();return n.next(new sS(v.id,this.serializeUrl(v.extractedUrl),v.source,v.restoredState)),D!==this.transitions.getValue()?Lr:Promise.resolve(v)}),function Gee(i,e,t,n){return to(r=>function Wee(i,e,t,n,r){return new qee(i,e,t,n,r).apply()}(i,e,t,r.extractedUrl,n).pipe(Ve(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ir(v=>{this.currentNavigation={...this.currentNavigation,finalUrl:v.urlAfterRedirects},r.urlAfterRedirects=v.urlAfterRedirects}),function ite(i,e,t,n,r,o){return lr(a=>function Zee(i,e,t,n,r,o,a="emptyOnly",s="legacy"){return new Xee(i,e,t,n,r,a,s,o).recognize().pipe(to(l=>null===l?function Qee(i){return new S(e=>e.error(i))}(new Kee):Pt(l)))}(i,e,t,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(v=>{if(r.targetSnapshot=v.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!v.extras.skipLocationChange){const A=this.urlHandlingStrategy.merge(v.urlAfterRedirects,v.rawUrl);this.setBrowserUrl(A,v)}this.browserUrlTree=v.urlAfterRedirects}const D=new GJ(v.id,this.serializeUrl(v.extractedUrl),this.serializeUrl(v.urlAfterRedirects),v.targetSnapshot);n.next(D)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:D,extractedUrl:A,source:W,restoredState:J,extras:pe}=s,fe=new sS(D,this.serializeUrl(A),W,J);n.next(fe);const ye=fN(A,this.rootComponentType).snapshot;return Pt(r={...s,targetSnapshot:ye,urlAfterRedirects:A,extras:{...pe,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=s.rawUrl,s.resolve(null),Lr}),ir(s=>{const l=new KJ(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(l)}),Ve(s=>r={...s,guards:yee(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Iee(i,e){return lr(t=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=t;return 0===a.length&&0===o.length?Pt({...t,guardsResult:!0}):function Aee(i,e,t,n){return er(i).pipe(lr(r=>function Nee(i,e,t,n,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Pt(o.map(s=>{const l=g_(e)??r,u=sg(s,l);return Md(function Tee(i){return i&&__(i.canDeactivate)}(u)?u.canDeactivate(i,e,t,n):l.runInContext(()=>u(i,e,t,n))).pipe(vc())})).pipe(lg()):Pt(!0)}(r.component,r.route,t,e,n)),vc(r=>!0!==r,!0))}(a,n,r,i).pipe(lr(s=>s&&function xee(i){return"boolean"==typeof i}(s)?function Pee(i,e,t,n){return er(e).pipe(Cd(r=>tg(function Ree(i,e){return null!==i&&e&&e(new tee(i)),Pt(!0)}(r.route.parent,n),function Fee(i,e){return null!==i&&e&&e(new iee(i)),Pt(!0)}(r.route,n),function Lee(i,e,t){const n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>function bee(i){const e=i.routeConfig?i.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:i,guards:e}:null}(a)).filter(a=>null!==a).map(a=>o_(()=>Pt(a.guards.map(l=>{const u=g_(a.node)??t,f=sg(l,u);return Md(function Dee(i){return i&&__(i.canActivateChild)}(f)?f.canActivateChild(n,i):u.runInContext(()=>f(n,i))).pipe(vc())})).pipe(lg())));return Pt(o).pipe(lg())}(i,r.path,t),function Oee(i,e,t){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Pt(!0);const r=n.map(o=>o_(()=>{const a=g_(e)??t,s=sg(o,a);return Md(function Mee(i){return i&&__(i.canActivate)}(s)?s.canActivate(e,i):a.runInContext(()=>s(e,i))).pipe(vc())}));return Pt(r).pipe(lg())}(i,r.route,t))),vc(r=>!0!==r,!0))}(n,o,i,e):Pt(s)),Ve(s=>({...t,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),ir(s=>{if(r.guardsResult=s.guardsResult,Gu(s.guardsResult))throw yN(0,s.guardsResult);const l=new QJ(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(l)}),Li(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),bS(s=>{if(s.guards.canActivateChecks.length)return Pt(s).pipe(ir(l=>{const u=new ZJ(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),to(l=>{let u=!1;return Pt(l).pipe(function rte(i,e){return lr(t=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return Pt(t);let o=0;return er(r).pipe(Cd(a=>function ote(i,e,t,n){const r=i.routeConfig,o=i._resolve;return void 0!==r?.title&&!BN(r)&&(o[a_]=r.title),function ate(i,e,t,n){const r=function ste(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return Pt({});const o={};return er(r).pipe(lr(a=>function lte(i,e,t,n){const r=g_(e)??n,o=sg(i,r);return Md(o.resolve?o.resolve(e,t):r.runInContext(()=>o(e,t)))}(i[a],e,t,n).pipe(vc(),ir(s=>{o[a]=s}))),JT(1),j0(o),yc(a=>_S(a)?Lr:ng(a)))}(o,i,e,n).pipe(Ve(a=>(i._resolvedData=a,i.data=mN(i,t).resolve,r&&BN(r)&&(i.data[a_]=r.title),null)))}(a.route,n,i,e)),ir(()=>o++),JT(1),lr(a=>o===r.length?Pt(t):Lr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ir({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),ir(l=>{const u=new XJ(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),bS(s=>{const l=u=>{const f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(ir(v=>{u.component=v}),Ve(()=>{})));for(const v of u.children)f.push(...l(v));return f};return r_(l(s.targetSnapshot.root)).pipe(U0(),Xn(1))}),bS(()=>this.afterPreactivation()),Ve(s=>{const l=function lee(i,e,t){const n=p_(i,e._root,t?t._root:void 0);return new gN(n,e)}(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,e,t)=>Ve(n=>(new vee(e,n.targetRouterState,n.currentRouterState,t).activate(i),n)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),ir({next(){o=!0},complete(){o=!0}}),Y0(()=>{o||a||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),yc(s=>{if(a=!0,wN(s)){CN(s)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Z0(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(n.next(l),CN(s)){const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jN(r.source)};this.scheduleNavigation(u,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new uN(r.id,this.serializeUrl(r.extractedUrl),s,r.targetSnapshot??void 0);n.next(l);try{r.resolve(this.errorHandler(s))}catch(u){r.reject(u)}}return Lr}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const n="popstate"===t.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{const r={replaceUrl:!0},o=t.state?.navigationId?t.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(t.url);this.scheduleNavigation(a,n,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(mS),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(t,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=r||this.routerState.root,f=l?this.currentUrlTree.fragment:a;let v=null;switch(s){case"merge":v={...this.currentUrlTree.queryParams,...o};break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}return null!==v&&(v=this.removeEmptyProps(v)),UJ(u,this.currentUrlTree,t,v,f??null)}navigateByUrl(t,n={skipLocationChange:!1}){const r=Gu(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}navigate(t,n={skipLocationChange:!1}){return function bte(i){for(let e=0;e{const o=t[r];return null!=o&&(n[r]=o),n},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Cc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((D,A)=>{s=D,l=A});const f=++this.navigationId;let v;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),v=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):v=0,this.setTransition({id:f,targetPageId:v,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(D=>Promise.reject(D))}setBrowserUrl(t,n){const r=this.urlSerializer.serialize(t),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(t,n=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,n,r){const o=new Z0(t.id,this.serializeUrl(t.extractedUrl),n,r);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,n){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}}return i.\u0275fac=function(t){Lh()},i.\u0275prov=Ue({token:i,factory:function(){return UN()},providedIn:"root"}),i})();function jN(i){return"imperative"!==i}let cg=(()=>{class i{constructor(t,n,r){this.router=t,this.route=n,this.locationStrategy=r,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new Ce,this.subscription=t.events.subscribe(o=>{o instanceof Cc&&this.updateTargetUrlAndHref()})}set preserveFragment(t){this._preserveFragment=pc(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=pc(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=pc(t)}get replaceUrl(){return this._replaceUrl}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,n,r,o,a){return!!(0!==t||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(t){return new(t||i)(H(_i),H(mi),H(Hu))},i.\u0275dir=ot({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,n){1&t&&P("click",function(o){return n.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&t&&mt("target",n.target)("href",n.href,gi)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[li]}),i})();class YN{}let xte=(()=>{class i{constructor(t,n,r,o,a){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Li(t=>t instanceof Cc),Cd(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=t0(o.providers,t,`Route: ${o.path}`));const a=o._injector??t,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(t,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(t,n):Pt(null);const o=r.pipe(lr(a=>null===a?Pt(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return n.loadComponent&&!n._loadedComponent?er([o,this.loader.loadComponent(n)]).pipe(ni()):o})}}return i.\u0275fac=function(t){return new(t||i)(Me(_i),Me(ND),Me(pd),Me(YN),Me(wS))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const kS=new Xe("");let zN=(()=>{class i{constructor(t,n,r={}){this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof sS?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Cc&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof pN&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.router.triggerEvent(new pN(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(t){Lh()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();function dg(i,e){return{\u0275kind:i,\u0275providers:e}}function MS(i){return[{provide:CS,multi:!0,useValue:i}]}function qN(){const i=ji(Bi);return e=>{const t=i.get(yd);if(e!==t.components[0])return;const n=i.get(_i),r=i.get(GN);1===i.get(DS)&&n.initialNavigation(),i.get(KN,null,ln.Optional)?.setUpPreloading(),i.get(kS,null,ln.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),r.next(),r.complete()}}const GN=new Xe("",{factory:()=>new Ce}),DS=new Xe("",{providedIn:"root",factory:()=>1});const KN=new Xe("");function Tte(i){return dg(0,[{provide:KN,useExisting:xte},{provide:YN,useExisting:i}])}const QN=new Xe("ROUTER_FORROOT_GUARD"),Ste=[gc,{provide:tN,useClass:tS},{provide:_i,useFactory:UN},h_,{provide:mi,useFactory:function WN(i){return i.routerState.root},deps:[_i]},wS];function Ete(){return new c3("Router",_i)}let pb=(()=>{class i{constructor(t){}static forRoot(t,n){return{ngModule:i,providers:[Ste,[],MS(t),{provide:QN,useFactory:Fte,deps:[[_i,new Ms,new nc]]},{provide:lb,useValue:n||{}},n?.useHash?{provide:Hu,useClass:zK}:{provide:Hu,useClass:R3},{provide:kS,useFactory:()=>{const i=ji(_i),e=ji(iZ),t=ji(lb);return t.scrollOffset&&e.setOffset(t.scrollOffset),new zN(i,e,t)}},n?.preloadingStrategy?Tte(n.preloadingStrategy).\u0275providers:[],{provide:c3,multi:!0,useFactory:Ete},n?.initialNavigation?Rte(n):[],[{provide:ZN,useFactory:qN},{provide:t3,multi:!0,useExisting:ZN}]]}}static forChild(t){return{ngModule:i,providers:[MS(t)]}}}return i.\u0275fac=function(t){return new(t||i)(Me(QN,8))},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[gS]}),i})();function Fte(i){return"guarded"}function Rte(i){return["disabled"===i.initialNavigation?dg(3,[{provide:a0,multi:!0,useFactory:()=>{const e=ji(_i);return()=>{e.setUpLocationChangeListener()}}},{provide:DS,useValue:2}]).\u0275providers:[],"enabledBlocking"===i.initialNavigation?dg(2,[{provide:DS,useValue:0},{provide:a0,multi:!0,deps:[Bi],useFactory:e=>{const t=e.get(jK,Promise.resolve());let n=!1;return()=>t.then(()=>new Promise(o=>{const a=e.get(_i),s=e.get(GN);(function r(o){e.get(_i).events.pipe(Li(s=>s instanceof Cc||s instanceof Z0||s instanceof uN),Ve(s=>s instanceof Cc||s instanceof Z0&&(0===s.code||1===s.code)&&null),Li(s=>null!==s),Xn(1)).subscribe(()=>{o()})})(()=>{o(!0),n=!0}),a.afterPreactivation=()=>(o(!0),n||s.closed?Pt(void 0):s),a.initialNavigation()}))}}]).\u0275providers:[]]}const ZN=new Xe("");class fo{constructor(){}setItemAsync(e,t){return new Promise(r=>{window.localStorage.setItem(e,t),r(!0)})}getItemAsync(e,t){return new Promise(r=>{let o=window.localStorage.getItem(e);return r(null!=o||null==t?o:t)})}removeItemAsync(e){return new Promise(n=>{window.localStorage.removeItem(e),n(!0)})}clearAsync(){return console.log("[NativeStorage__ClearAsync]"),console.trace(),new Promise(t=>{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),t(!0)})}static \u0275fac=function(t){return new(t||fo)};static \u0275prov=Ue({token:fo,factory:fo.\u0275fac,providedIn:"root"})}class zr{storage;location;router;route;history=[];appDrawer;currentUrl=new Ai(void 0);_breadCrumbsUpdated$=new Ut;_breadCrumbs=[];module;area;page;areaHome;headerName;_headerNameUpdated$=new Ut;_moduleUpdated$=new Ut;_areaUpdated$=new Ut;_pageUpdated$=new Ut;constructor(e,t,n,r){this.storage=e,this.location=t,this.router=n,this.route=r,this.router.events.subscribe(o=>{o instanceof Cc&&(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(e){this.reset(),this._breadCrumbs=e,this._breadCrumbsUpdated$.next(this._breadCrumbs)}push(e,t,n,r=!1){this._breadCrumbs.push({title:e,icon:n,route:t,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(e){var t=this;return O(function*(){e=e.substring(1);let n=JSON.parse(yield t.storage.getItemAsync(`module_${ft.moduleRouteHome}`));if(!n)return;let r=e.split("/");if("areas"==r[1]){t.reset();let o=r[2],a=n.areas.find(s=>s.key==o);t.push(a.cardTitle,[ft.moduleRouteHome,"areas",o],a.cardIcon,!0)}else{let o=r[1],a=n.areas.find(s=>s.key==o);if(a&&(t.reset(),a.pages.length>0?t.push(a.cardTitle,[ft.moduleRouteHome,"areas",o],a.cardIcon):t.push(a.cardTitle,[ft.moduleRouteHome,o],a.cardIcon,!0),r.length>2)){let s=r[2],l=a.pages.find(u=>u.key==s);l&&t.push(l.cardTitle,[ft.moduleRouteHome,a.key,l.key],l.cardIcon,!0)}}})()}setHeaderName(e){this.headerName=e,this._headerNameUpdated$.next(e)}setModule(e){this.module=e,this._moduleUpdated$.next(e)}setArea(e){this.area=e,this._areaUpdated$.next(e)}setPage(e){this.page=e,this._pageUpdated$.next(e)}gotoLogin(e){var t=this;return O(function*(){yield t.storage.clearAsync(),e&&(yield t.storage.setItemAsync("loginRedirect",e)),ft.production?t.gotoPath("/auth/login"):t.router.navigate([ft.moduleRouteHome,"login"]),console.log("should go to login.")})()}gotoAreaHome(e){this.areaHome=e,this.router.navigate([ft.moduleRouteHome,"areas",e])}gotoModuleHome(){this.router.navigate([ft.moduleRouteHome])}navigation(e){this.router.navigate(e)}goto(e,t){console.log("going to route=> ",e),this.router.navigate(e,t)}gotoHome(){ft.production?window.location.href="home":this.router.navigate([ft.moduleRouteHome])}gotoPath(e){let t=e.split("/");t[0]==ft.moduleRouteHome?this.goto(t):window.location.href=e}back(e){console.log(this.history),this.history.pop(),this.history.length>0?this.location.back():e?this.gotoPath(e):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(e){this.location.go(e)}goBack(){this.location.back()}openInNewWindow(e){window.open(e)}getCurrentUrl(){return this.router.url}goToLogin(){window.location.href=ft.production?"auth/login":`${ft.moduleRouteHome}/login`}goToLogout(){window.location.href=ft.production?"auth/login":`${ft.moduleRouteHome}/logout`}static \u0275fac=function(t){return new(t||zr)(Me(fo),Me(gc),Me(_i),Me(mi))};static \u0275prov=Ue({token:zr,factory:zr.\u0275fac,providedIn:"root"})}class xc{constructor(){}_activeCallCount=0;_loadingMessages=[];_activeCalls=new Ai(this._loadingMessages);_endCalls=new Ai(this._loadingMessages);onCallBegin(){return this._activeCalls.asObservable()}onCallEnd(){return this._endCalls.asObservable()}beginCall(e="?"){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(t){return new(t||xc)};static \u0275prov=Ue({token:xc,factory:xc.\u0275fac,providedIn:"root"})}class Sl{constructor(){}_errorMsgs=[];_errorMsgs$=new Ai(this._errorMsgs);onErrMsgs(){return this._errorMsgs$.asObservable()}addErrors(e){e&&(console.log("ErrorReporterService.addErrors",e),this._errorMsgs$.next(e))}addError(e){this._errorMsgs$.next([e])}addErrorMessage(e){this._errorMsgs$.next([{message:e}])}addMessage(e){this.addError({message:e})}addMessages(e){const t=[];for(const n of e)t.push({message:n});this.addErrors(t)}clearErrors(){this._errorMsgs$.next(null)}static \u0275fac=function(t){return new(t||Sl)};static \u0275prov=Ue({token:Sl,factory:Sl.\u0275fac,providedIn:"root"})}class hn{http;navService;location;storage;networkCallService;errorReporter;_401Handler;constructor(e,t,n,r,o,a){this.http=e,this.navService=t,this.location=n,this.storage=r,this.networkCallService=o,this.errorReporter=a}setForOhOneHandler(e){this._401Handler=e}static cacheEnabled="false"!==window.localStorage.getItem("nuviotClientCacheEnabled");static enableCache(){hn.cacheEnabled=!0,window.localStorage.setItem("nuviotClientCacheEnabled","true")}static disableCache(){hn.cacheEnabled=!1,window.localStorage.setItem("nuviotClientCacheEnabled","false")}redirectToLogin(){var e=this;return O(function*(){let t="true"===(yield e.storage.getItemAsync("redirecting"));yield e.storage.clearAsync(),t||(e.storage.setItemAsync("loginRedirect",e.location.path()),e.storage.setItemAsync("redirecting","true")),ft.production?e.navService.gotoPath("/auth/welcome"):e.navService.goto([ft.moduleRouteHome,"login"])})()}getFullUrl(e){if(e.startsWith("/")&&(e=e.substring(1)),e.toLowerCase().startsWith("http"))return hn.cacheEnabled?e:this.appendCacheAbort(e);const t=`${ft.siteUri}/${e}`;return hn.cacheEnabled?t:this.appendCacheAbort(t)}appendCacheAbort(e){if(e.toLowerCase().includes("cache-abort=true"))return e;const t=e.includes("?")?"&":"?";return`${e}${t}cache-abort=true`}createGuidAsync(){return new Promise((t,n)=>{this.http.get(this.getFullUrl("/api/utils/guid/new")).subscribe({next:r=>{t(r)},error:r=>{n(r)}})})}createNuvIoTIdAsync(){return new Promise((t,n)=>{this.http.get(this.getFullUrl("/api/utils/nuviot/id/new"),{responseType:"text"}).subscribe(r=>t(r))})}handleResponse(e,t=!0,n=!0){var o,r=this;return{next:o=>{t&&this.networkCallService.endCall(),o.redirectURL&&o.redirectURL!=window.location.pathname?(this.navService.gotoPath(o.redirectURL),e(o)):0==o.successful?this.errorReporter.addErrors(o.errors):e(o)},error:(o=O(function*(a){t&&r.networkCallService.endCall(),401==a.status?r._401Handler?r._401Handler.handle():yield r.redirectToLogin():n&&r.errorReporter.addMessage(a.message),e({successful:!1,warnings:[],errors:[{message:a.message}]})}),function(s){return o.apply(this,arguments)})}}getMarkDownContent(e){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${e}`,!0),a.send()})}getBlobResponse(e,t){const n=document.createElement("a");return n.style.display="none",document.body.appendChild(n),n.setAttribute("href",this.getFullUrl(e)),n.setAttribute("target","_blank"),n.setAttribute("download",t),n.click(),document.body.removeChild(n),null}getDateFilterHeaders(e,t){return[{"x-filter-startdate":e},{"x-filter-enddate":t}]}getListResponse(e,t=null,n=!0){var r=this;e.startsWith("/")&&(e=e.substring(1));let o=new Bs;return t&&(t.start&&(o=o.append("x-filter-startdate",t.start)),t.end&&(o=o.append("x-filter-enddate",t.end)),t.groupBy&&(o=o.append("x-group-by",t.groupBy)),t.showDrafts&&(o=o.append("x-show-drafts",t.showDrafts.toString())),t.showDeleted&&(o=o.append("x-show-deleted",t.showDeleted.toString())),t.groupBySize&&(o=o.append("x-group-by-size",t.groupBySize.toString())),t.nextPartitionKey&&(o=o.append("x-nextpartitionkey",t.nextPartitionKey)),t.nextRowKey&&(o=o.append("x-nextrowkey",t.nextRowKey)),t.pageSize&&(o=o.append("x-pagesize",t.pageSize.toString())),t.pageIndex&&(o=o.append("x-pageindex",t.pageIndex.toString())),t.categoryKey&&(o=o.append("x-categorykey",t.categoryKey))),n&&this.networkCallService.beginCall(),new Promise((a,s)=>{var l;this.http.get(this.getFullUrl(e),{headers:o}).subscribe({next:l=>{n&&this.networkCallService.endCall(),l.successful?(l.setFilteredItems=u=>{l.filteredItems=u,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=O(function*(u){n&&r.networkCallService.endCall(),401==u.status?r._401Handler?r._401Handler.handle():yield r.redirectToLogin():r.errorReporter.addMessage(u.message),a({successful:!1,errors:[{message:u.message}]})}),function(f){return l.apply(this,arguments)})})})}requestForInvokeResultEx(e,t=!0){return t&&this.networkCallService.beginCall(e),new Promise((n,r)=>{this.http.get(this.getFullUrl(e)).subscribe(this.handleResponse(n,t))})}request(e,t=!0,n=!0){return t&&this.networkCallService.beginCall(e),new Promise((r,o)=>{this.http.get(this.getFullUrl(e)).subscribe(this.handleResponse(r,t,n))})}get(e){return this.networkCallService.beginCall(e),new Promise((t,n)=>{this.http.get(this.getFullUrl(e)).subscribe(this.handleResponse(t))})}getFormResponse(e,t=!0){return t&&this.networkCallService.beginCall(e),new Promise((n,r)=>{this.http.get(this.getFullUrl(e)).subscribe(this.handleResponse(n,t))})}formPost(e,t){return this.networkCallService.beginCall(),new Promise((n,r)=>{this.http.post(this.getFullUrl(e),t).subscribe(this.handleResponse(n))})}post(e,t){return this.postWithResponse(e,t)}insert(e,t,n=!0){return n&&this.networkCallService.beginCall(e),new Promise((r,o)=>{this.http.post(this.getFullUrl(e),t).subscribe(this.handleResponse(r,n))})}postWithResponse(e,t,n=!0){return n&&this.networkCallService.beginCall(e),new Promise((r,o)=>{this.http.post(this.getFullUrl(e),t).subscribe(this.handleResponse(r,n))})}postRaw(e,t,n=!0){return n&&this.networkCallService.beginCall(e),new Promise((o,a)=>{this.http.post(this.getFullUrl(e),t).subscribe(this.handleResponse(o,n))})}postForListResponse(e,t){return this.networkCallService.beginCall(e),new Promise((n,r)=>{this.http.post(this.getFullUrl(e),t).subscribe(this.handleResponse(n))})}updateWithResponse(e,t,n=!0){return n&&this.networkCallService.beginCall(e),new Promise((r,o)=>{this.http.put(this.getFullUrl(e),t).subscribe(this.handleResponse(r,n))})}updateWithFormResponse(e,t,n=!0){return n&&this.networkCallService.beginCall(e),new Promise((r,o)=>{this.http.put(this.getFullUrl(e),t).subscribe(this.handleResponse(r,n))})}update(e,t,n=!0,r=!0){return n&&this.networkCallService.beginCall(e),new Promise((o,a)=>{this.http.put(this.getFullUrl(e),t).subscribe(this.handleResponse(o,n,r))})}delete(e){return this.networkCallService.beginCall(e),new Promise((t,n)=>{this.http.delete(this.getFullUrl(e)).subscribe(this.handleResponse(t))})}deleteWithResponse(e,t=!0){return t&&this.networkCallService.beginCall(e),new Promise((n,r)=>{this.http.delete(this.getFullUrl(e)).subscribe(this.handleResponse(n,t))})}postWithStreamNdjson(e,t,n,r=!0,o){var a=this;return new Promise(function(){var s=O(function*(l){let u=null;try{const f=yield fetch(a.getFullUrl(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),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 J=yield f.text().catch(()=>"");return n({kind:"error",errorMessage:f.statusText||`HTTP ${f.status}`}),void l({successful:!1,warnings:[],errors:[{message:J||f.statusText||`Request failed: HTTP ${f.status}`}]})}const v=f.body;if(!v)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 D=v.getReader?.();if(!D)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 A=new TextDecoder;let W="";for(;;){const{done:J,value:pe}=yield D.read();if(J)break;let fe;for(W+=A.decode(pe,{stream:!0});(fe=W.indexOf("\n"))>=0;){const ye=W.slice(0,fe).trim();if(W=W.slice(fe+1),ye)try{const we=JSON.parse(ye);n(we),"final"===we.kind&&we.final&&(u=we.final)}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(!u)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(u)});return function(l){return s.apply(this,arguments)}}())}static \u0275fac=function(t){return new(t||hn)(Me(kl),Me(zr),Me(gc),Me(fo),Me(xc),Me(Sl))};static \u0275prov=Ue({token:hn,factory:hn.\u0275fac,providedIn:"root"})}class ug{nuviotClient;_ownerList=[];_channelToken="--channel--";_idToken="--id--";_wsUrlFormat=`api/wsuri/${this._channelToken}/${this._idToken}/normal`;debug=!1;constructor(e){this.nuviotClient=e}destroy(e){this.debug&&console.log("current collection count: ",this._ownerList.length),this.debug&&console.log("removing SLWebSocket from collection: ",e.url),e.socket.close(),this._ownerList=this._ownerList.filter(t=>t.slWebSocketId!=e.slWebSocketId),this.debug&&console.log("updated collection count: ",this._ownerList.length),this.debug&&console.log("remaining sockets:"),this._ownerList.forEach(t=>{this.debug&&console.log("--\x3e owner | url:",`${t.owner} | ${t.url}`)}),this.debug&&console.log("************"),this.debug&&console.log("")}formatUri(e,t){return this._wsUrlFormat.replace(this._channelToken,e).replace(this._idToken,t)}openSLSocket(e,t,n){var r=this;return O(function*(){const o=r.formatUri(t,n);try{const a={slWebSocketId:Yn.newGuid(),owner:e,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(e,t){var n=this;return O(function*(){try{const r={slWebSocketId:Yn.newGuid(),owner:e,socket:yield n.openWebSocket(t),url:t};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(e){return new Promise((n,r)=>{this.nuviotClient.requestForInvokeResultEx(e,!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(t){return new(t||ug)(Me(hn))};static \u0275prov=Ue({token:ug,factory:ug.\u0275fac,providedIn:"root"})}class Dd{constructor(){}get(e){let o,t=document.cookie.split(";"),n=t.length,r=`${e}=`;for(let a=0;a0?this._activatedRoute.snapshot.queryParams:{};const v={};if(this.hasParams())v.queryParamsHandling="preserve";else if(window.location.href.search){const D=this;location.search.substr(1).replace("==","`").split("&").forEach(function(A){const W=A.split("=");""!==W[0]&&(D.queryParams[W[0]]=W[1].replace("`","=="))}),this.hasParams()&&(v.queryParams=this.queryParams)}}getIsLoggedIn(){var e=this;return O(function*(){return"true"==e.cookieService.get("authenticated")?(yield e.nativeStorage.setItemAsync("is_logged_in","login_true"),!0):"login_true"==(yield e.nativeStorage.getItemAsync("is_logged_in"))})()}setIsLoggedIn(e){var t=this;return O(function*(){return t._isLoggedIn$.next(e),yield t.nativeStorage.setItemAsync("is_logged_in",e?"login_true":"login_false")})()}_users;_org;_isLoggedIn$=new Ut(0);_org$=new Ut(null);_user$=new Ut(null);_users$=new Ut(null);registerLocalUser(e){var t=this;return O(function*(){yield t.setOrg(e.currentOrganization),yield t.setUser(e),yield t.setIsLoggedIn(!0),yield t.getUserFavorites(),yield t.getMRU(),e.currentOrganization&&(yield t.refreshUserOrganization()),yield t.storage.removeItemAsync("active_user_summary_basic")})()}loadCurrentUser(){var e=this;return O(function*(){const t=yield e.clientService.request("/api/user");if(t.successful)return console.log(`response - ${t.successful} - ${t.model.currentOrganization}`),yield e.registerLocalUser(t.model),t.model;window.location.href=ft.production?"/Account/Login":"/login"})()}_activeUserFavoriteCall=0;getUserFavoritesForOrg(e){var t=this;return O(function*(){let n=yield t.nativeStorage.getItemAsync(`user_favorites_${e}`);if(n)return JSON.parse(n);if(t._activeUserFavoriteCall>0)return;t._activeUserFavoriteCall++;let r=yield t.clientService.request("/api/user/favorites",!1);return yield t.nativeStorage.setItemAsync(`user_favorites_${e}`,JSON.stringify(r.result)),t._activeUserFavoriteCall=0,r.result})()}getUserFavorites(){var e=this;return O(function*(){let t=yield e.getCurrentOrg();return new Promise(function(){var r=O(function*(o,a){if(t){let s=window.setInterval(O(function*(){let l=yield e.getUserFavoritesForOrg(t.id);l&&(o(l),window.clearInterval(s))}),50)}else o({favorites:[],modules:[]})});return function(o,a){return r.apply(this,arguments)}}())})()}_activeUserMruCall=0;getMruForOrg(e){var t=this;return O(function*(){let n=yield t.nativeStorage.getItemAsync(`user_mru_${e}`);if(n)return JSON.parse(n);if(t._activeUserMruCall>0)return;t._activeUserMruCall++;let r=yield t.clientService.request("/api/mru");if(r.successful)return yield t.nativeStorage.setItemAsync(`user_mru_${e}`,JSON.stringify(r.result)),t._activeUserMruCall=0,r.result;throw"could not load mru"})()}getMRU(){var e=this;return O(function*(){let t=yield e.getCurrentOrg();return new Promise(function(){var r=O(function*(o,a){if(t){let s=window.setInterval(O(function*(){let l=yield e.getMruForOrg(t.id);l&&(o(l),window.clearInterval(s))}),50)}else o({all:[],modules:[]})});return function(o,a){return r.apply(this,arguments)}}())})()}removeExternalLogin(e){var t=this;return O(function*(){return t.clientService.deleteWithResponse(`/api/user/externallogin/${e}`)})()}loadCurrentUserIfNecessary(){var e=this;return O(function*(){return(yield e.getUser())||(yield e.getIsLoggedIn())?null:yield e.loadCurrentUser()})()}updateCoreInfo(e){var t=this;return O(function*(){yield t.clientService.update("/api/user/coreinfo",e)})()}hasParams(){return Object.keys(this.queryParams).length>0}clearLocalState(){var e=this;return O(function*(){yield e.nativeStorage.clearAsync();for(var t=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(e=!0){var t=this;return O(function*(){return!(yield t.getIsLoggedIn())||(e&&t.networkCallService.beginCall(),new Promise((r,o)=>{var s;t.http.get(`${ft.siteUri}/api/v1/logoff`).subscribe({next:(s=O(function*(l){e&&t.networkCallService.endCall(),yield t.clearLocalState(),t.setUser(null),yield t.setIsLoggedIn(!1),r(!0)}),function(u){return s.apply(this,arguments)}),error:function(){var s=O(function*(l){e&&t.networkCallService.endCall(),yield t.clearLocalState(),t.setUser(null),yield t.setIsLoggedIn(!1),r(!0)});return function(u){return s.apply(this,arguments)}}()})}))})()}getOrgsForCurrentUser(){return this.clientService.getListResponse("/api/user/orgs")}acceptTermsAndConditions(){var e=this;return O(function*(){let t=yield e.clientService.request("/api/user/accepttc");return t.successful&&e.setUser(t.result),t})()}changeOrganization(e){var t=this;return O(function*(){try{return!!(yield t.clientService.get(`/api/org/${e}/change`)).successful&&(yield t.loadCurrentUser(),!0)}catch{return!1}})()}auth(e,t){var n=this;return O(function*(){let r={GrantType:"password",AppInstanceId:"webapp",AppId:"webapp",DeviceId:"deviceid",ClientType:"webclient",Email:e,Password:t,UserName:e},o=yield n.clientService.post("/api/v1/auth",r);return o.successful&&(yield n.nativeStorage.setItemAsync("access-token",o.result.accessToken)),o})()}hasRole(e){var t=this;return O(function*(){let r=(yield t.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(e)>=0})()}refreshRoles(){var e=this;return O(function*(){let n=(yield e.clientService.request("/app/user/roles")).map(r=>r.role.key);yield e.nativeStorage.setItemAsync("app_user_roles",JSON.stringify(n))})()}getRoles(){var e=this;return O(function*(){let t=yield e.nativeStorage.getItemAsync("app_user_roles");return t?JSON.parse(t):[]})()}login(e,t,n,r,o){var a=this;return O(function*(){let s={endUserAppOrgId:r,email:e,password:t,inviteId:o,rememberMe:n.toString(),module:ft.moduleRouteHome},l=yield a.clientService.post("/api/v1/login",s);if(l.successful)return yield a.setUser(l.result.user),l.result.user.currentOrganization&&(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(e,t,n){var r=this;return O(function*(){let o={email:e,password:t,rememberMe:n.toString(),module:ft.moduleRouteHome},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(e,t,n,r){var o=this;return O(function*(){const a=[];if(t)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:e,oldPassword:t,newPassword:n};return yield o.clientService.post("/api/auth/changepassword",s)})()}validateDeviceUser(e){const t=[];if(e.firstName||t.push({message:"First Name is a required field."}),e.lastName||t.push({message:"Last Name is a required field."}),e.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;(e.email.length<=5||!n.test(e.email))&&t.push({message:"Invalid Email Address."})}else t.push({message:"Email is a required field."});if(e.phoneNumber){const n=/^\d{10}$/i;(10!==e.phoneNumber.length||!n.test(e.phoneNumber))&&t.push({message:"Please enter your phone number without and spaces, dashes, spaces."})}else t.push({message:"Phone Number is a required field."});if(e.password){const n=/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d#&$@!+\-*]{8,}$$/i;(e.password.length<=5||!n.test(e.password))&&t.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 t.push({message:"Password is a required field."});return e.password!==e.confirmPassword&&t.push({message:"Password and confirm password must match."}),t}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(e=!0,t=!0){return this.clientService.getListResponse(`/api/users/active?cached=${t}`,null,e)}getCachedUserSummary(){var e=this;return O(function*(){let t=yield e.storage.getItemAsync("active_user_summary_basic");if(t)return JSON.parse(t);let r=(yield e.getActiveUsers()).model.map(o=>({id:o.id,name:o.name,email:o.email,description:o.title,image:o.profileImageUrl?.imageUrl}));return yield e.storage.setItemAsync("active_user_summary_basic",JSON.stringify(r)),r})()}SL_ORG_IDS=["AA2C78499D0140A5A9CE4B7581EF9691","C8AD4589F26842E7A1AEFBAEFC979C9B"];isPrimaryOrg(){var e=this;return O(function*(){let t=yield e.getUser();return e.SL_ORG_IDS.filter(n=>n===t.currentOrganization.id).length>0})()}isForProductLine(){var e=this;return O(function*(){return(yield e.getCurrentOrg()).isForProductLine})()}static activeUserCall=0;static stackedCount=0;loadUserFromStorage(){var e=this;return O(function*(){if(0==Hn.activeUserCall){let t=yield e.nativeStorage.getItemAsync("app_user");if(t)return JSON.parse(t);if(yield e.getIsLoggedIn()){Hn.activeUserCall++;let n=yield e.loadCurrentUser();return Hn.activeUserCall--,n}throw"not logged in, should not attempt to load user."}})()}getClaims(){var e=this;return O(function*(){return e.clientService.request("/user/claims")})()}getUser(){var e=this;return O(function*(){if(yield e.getIsLoggedIn())return Hn.stackedCount++,new Promise(function(){var n=O(function*(r,o){let a=window.setInterval(O(function*(){let s=yield e.loadUserFromStorage();try{s&&(r(s),Hn.stackedCount--,window.clearInterval(a))}catch{window.clearInterval(a),e.navService.gotoLogin(e._activatedRoute.snapshot.toString())}}),50)});return function(r,o){return n.apply(this,arguments)}}());e.navService.gotoLogin(window.location.pathname)})()}setUser(e){var t=this;return O(function*(){return e?(yield t.nativeStorage.setItemAsync("app_user",JSON.stringify(e)),t._user$.next(e)):(yield t.nativeStorage.removeItemAsync("app_user"),yield t.setOrg(null),t._user$.next(null)),!0})()}getSessionId(){var e=this;return O(function*(){let t=yield e.nativeStorage.getItemAsync("sessionId");return t||(t=Yn.newGuid(),yield e.nativeStorage.setItemAsync("sessionId",t)),t})()}setCID(e){var t=this;return O(function*(){yield t.nativeStorage.setItemAsync("cid",e)})()}getCID(){var e=this;return O(function*(){return yield e.nativeStorage.getItemAsync("cid")})()}_activeOrgCall=0;getOrgFromStorage(){let e=window.localStorage.getItem("app_user_org");if(e)return JSON.parse(e)}refreshUserOrganization(){var e=this;return O(function*(){yield e.nativeStorage.removeItemAsync("app_user_org");let t=yield e.clientService.request("/api/org/current/summary",!1);t.successful&&(yield e.nativeStorage.setItemAsync("app_user_org",JSON.stringify(t.result)))})()}getCurrentOrg(){var e=this;return O(function*(){let t=yield e.nativeStorage.getItemAsync("app_user_org");return JSON.parse(t)})()}setOrg(e){var t=this;return O(function*(){return t.orgWebSocket&&t.orgWebSocket.socket.close(),e?(yield t.nativeStorage.setItemAsync("app_user_org",JSON.stringify(e)),t.orgWebSocket=yield t.notificationService.openSLSocket("OrgService","entity",e.id),t._org$.next(e)):(t._org$.next(null),yield t.nativeStorage.removeItemAsync("app_user_org")),!0})()}sendEmailConfirmCode(){return this.clientService.request("/api/verify/email/confirmationcode/send")}sendPhoneConfirmCode(e){return e=e.replace(/\D/g,""),this.clientService.request(`/api/verify/sendsmscode/${e}`)}confirmEmail(e,t){return this.clientService.request(`/api/verify/email?code=${t}&userid=${e}`)}confirmPhone(e){return this.clientService.request(`/api/verify/phone/${e}`)}sendPasswordLink(e){return this.clientService.postWithResponse("/api/auth/resetpassword/sendlink",{email:e})}resetPassword(e){return this.clientService.post("/api/auth/resetpassword",e)}setUserPassword(e,t){return this.clientService.post("/api/auth/setuserpassword",{userId:e,newPassword:t,oldPassword:""})}removeUserFromOrg(e){var t=this;return O(function*(){let n=yield t.getCurrentOrg();return yield t.clientService.delete(`/api/org/${n.id}/user/${e}`)})()}addMediaResourceForUser(e,t){this.clientService.post(`/api/user/${e}/mediaresource`,t)}deleteUser(e){return this.clientService.delete(`/api/user/${e}`)}sysDeleteUser(e){return this.clientService.delete(`/sys/api/user/${e}`)}getAllUsers(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/sys/api/users/all")})()}showWelcomeOnLogin(){var e=this;return O(function*(){e.clientService.request("/api/users/welcome/show/true")})()}hideWelcomeOnLogin(){var e=this;return O(function*(){e.clientService.request("/api/users/welcome/show/false")})()}updateOrg(e){var t=this;return O(function*(){return yield t.clientService.update("/api/org",e)})()}getCurrentOrgForEditing(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/org/current")})()}postMetric(e,t,n){this.clientService.post("/web/logmetric",{fullPath:e,sessionId:t,campaignId:n})}loadUser(e){return this.clientService.getFormResponse(`/api/user/${e}`)}updateUser(e){return this.clientService.update("/api/user",e)}updateUserProfileImage(e){return this.clientService.update("/api/user/profile/picture",e)}getTimeZones(){return this.clientService.request("/api/timezones")}getUserSSN(e){return this.clientService.request(`/api/user/${e}/ssn`)}loadUsers(e){var t=this;return O(function*(){return yield t.clientService.getListResponse("/api/users",e)})()}loadActiveUsers(e){var t=this;return O(function*(){return yield t.clientService.getListResponse("/api/users/active",e)})()}createInvitation(){return this.clientService.getFormResponse("/api/org/invitation/factory")}getInvitations(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/api/org/invitations")})()}getInvitation(e){var t=this;return O(function*(){return t.clientService.request(`/api/org/invitation/${e}`)})()}loadInvitation(e){var t=this;return O(function*(){return t.clientService.getFormResponse(`/api/org/invitation/form/${e}`)})()}updateUserPhoneNumber(e,t){var n=this;return O(function*(){let r=yield n.loadUser(e);return r.model.phoneNumber=t,yield n.updateUser(r.model)})()}updateTeamsAccountName(e,t){var n=this;return O(function*(){let r=yield n.loadUser(e);return r.model.teamsAccountName=t,yield n.updateUser(r.model)})()}createUserRegistration(){var e=this;return O(function*(){return e.clientService.getFormResponse("/api/user/factory")})()}registerNewUser(e){var t=this;return O(function*(){return yield t.clientService.postWithResponse("/api/user/create",e)})()}registerUser(e){var t=this;return O(function*(){var n=yield t.clientService.postWithResponse("/api/user/register",e);return yield t.setOrg(n.result.appUser.currentOrganization),yield t.setUser(n.result.appUser),yield t.setIsLoggedIn(!0),yield t.getUserFavorites(),yield t.getMRU(),yield t.refreshUserOrganization(),yield t.storage.removeItemAsync("active_user_summary_basic"),n})()}cancelInvite(e){var t=this;return O(function*(){return yield t.clientService.delete(`/api/org/invitation/${e}`)})()}resendInvite(e){var t=this;return O(function*(){return yield t.clientService.get(`/api/org/invitation/${e}/resend`)})()}sendInvitation(e){var t=this;return O(function*(){return yield t.clientService.post("/api/org/inviteuser/send",e)})()}createNewOrg(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/org/factory")})()}getAuthLog(){var e=this;return O(function*(){return e.clientService.getListResponse("/sys/auth/log")})()}getUsersForOrg(e){return this.clientService.getListResponse(`/api/org/${e}/users`)}searchUsersForOrg(e,t,n){let r="/api/sys/user/search?en=1";return r+=e?`&firstName=${e}`:"",r+=t?`&lastName=${t}`:"",r+=n?`&email=${n}`:"",this.clientService.getListResponse(r)}setSvgSignature(e){var t=this;return O(function*(){return yield t.clientService.postWithResponse("/api/user/svg/signature",{svg:e})})()}setSvgInitials(e){var t=this;return O(function*(){return yield t.clientService.postWithResponse("/api/user/svg/initials",{svg:e})})()}getSvgSignature(){var e=this;return O(function*(){return yield e.clientService.request("/api/user/svg/signature",!1,!1)})()}getSvgInitials(){var e=this;return O(function*(){return yield e.clientService.request("/api/user/svg/initials",!1,!1)})()}clearSvgSignature(){var e=this;return O(function*(){return yield e.clientService.delete("/api/user/svg/signature")})()}clearSvgInitials(){var e=this;return O(function*(){return yield e.clientService.delete("/api/user/svg/initials")})()}getAuthLogForUser(e){var t=this;return O(function*(){return yield t.clientService.getListResponse(`/api/sys/user/${e}/auth/log`)})()}setUserEmailConfirmed(e){var t=this;return O(function*(){return yield t.clientService.request(`/api/sys/user/${e}/email/confirm`)})()}setUserPhoneConfirmed(e){var t=this;return O(function*(){return yield t.clientService.request(`/api/sys/user/${e}/phone/confirm`)})()}sendUserEmailConfirmation(e){var t=this;return O(function*(){return yield t.clientService.request(`/api/sys/user/${e}/email/confirm/send`)})()}setLoginType(e,t){var n=this;return O(function*(){return yield n.clientService.request(`/api/sys/user/${e}/logintype/${t}`)})()}setUserFinanceAdmin(e){var t=this;return O(function*(){return yield t.clientService.request(`/api/sys/user/${e}/financeadmin/set`)})()}clearUserFinanceAdmin(e){var t=this;return O(function*(){return yield t.clientService.request(`/api/sys/user/${e}/financeadmin/clear`)})()}static \u0275fac=function(t){return new(t||Hn)(Me(kl),Me(hn),Me(Sl),Me(fo),Me(fo),Me(xc),Me(ug),Me(Dd),Me(zr),Me(mi))};static \u0275prov=Ue({token:Hn,factory:Hn.\u0275fac,providedIn:"root"})}const Lte=["addListener","removeListener"],Nte=["addEventListener","removeEventListener"],Bte=["on","off"];function _n(i,e,t,n){if(C(t)&&(n=t,t=void 0),n)return _n(i,e,t).pipe(ST(n));const[r,o]=function Hte(i){return C(i.addEventListener)&&C(i.removeEventListener)}(i)?Nte.map(a=>s=>i[a](e,s,t)):function Vte(i){return C(i.addListener)&&C(i.removeListener)}(i)?Lte.map(XN(i,e)):function $te(i){return C(i.on)&&C(i.off)}(i)?Bte.map(XN(i,e)):[];if(!r&&sr(i))return lr(a=>_n(a,e,t))(Sn(i));if(!r)throw new TypeError("Invalid event target");return new S(a=>{const s=(...l)=>a.next(1o(s)})}function XN(i,e){return t=>n=>i[t](e,n)}class Ute extends x{constructor(e,t){super()}schedule(e,t=0){return this}}const hb={setInterval(i,e,...t){const{delegate:n}=hb;return n?.setInterval?n.setInterval(i,e,...t):setInterval(i,e,...t)},clearInterval(i){const{delegate:e}=hb;return(e?.clearInterval||clearInterval)(i)},delegate:void 0};class TS extends Ute{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,n=0){return hb.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&hb.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,n=!1;try{this.work(e)}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:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,w(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}class y_{constructor(e,t=y_.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}y_.now=ZT.now;class SS extends y_{constructor(e,t=y_.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const b_=new SS(TS),jte=b_;function Ku(i=0,e,t=jte){let n=-1;return null!=e&&($a(e)?t=e:n=e),new S(r=>{let o=function Yte(i){return i instanceof Date&&!isNaN(i)}(i)?+i-t.now():i;o<0&&(o=0);let a=0;return t.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}const{isArray:zte}=Array;function JN(i){return 1===i.length&&zte(i[0])?i[0]:i}function gb(...i){const e=Ji(i),t=JN(i);return t.length?new S(n=>{let r=t.map(()=>[]),o=t.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(u=>u.shift());n.next(e?e(...l):l),r.some((u,f)=>!u.length&&o[f])&&n.complete()}},()=>{o[a]=!0,!r[a].length&&n.complete()}));return()=>{r=o=null}}):Lr}function Lt(i){return Be((e,t)=>{Sn(i).subscribe(je(t,()=>t.complete(),ne)),!t.closed&&e.subscribe(t)})}function pg(i,e=ve){return i=i??Gte,Be((t,n)=>{let r,o=!0;t.subscribe(je(n,a=>{const s=e(a);(o||!i(r,s))&&(o=!1,r=s,n.next(a))}))})}function Gte(i,e){return i===e}function ES(...i){const e=Ji(i);return Be((t,n)=>{const r=i.length,o=new Array(r);let a=i.map(()=>!1),s=!1;for(let l=0;l{o[l]=u,!s&&!a[l]&&(a[l]=!0,(s=a.every(ve))&&(a=null))},ne));t.subscribe(je(n,l=>{if(s){const u=[l,...o];n.next(e?e(...u):u)}}))})}function nB(i,e){return e?t=>tg(e.pipe(Xn(1),function Kte(){return Be((i,e)=>{i.subscribe(je(e,ne))})}()),t.pipe(nB(i))):lr((t,n)=>Sn(i(t,n)).pipe(Xn(1),j0(t)))}function IS(i,e=b_){const t=Ku(i,e);return nB(()=>t)}function fb(i){return Li((e,t)=>i<=t)}new S(ne),Math,Math,Math;const aie=["*"],kie=["dialog"];function US(i){return"string"==typeof i}function Xu(i){return null!=i}function _g(i){return(i||document.body).getBoundingClientRect()}const bB={animation:!0,transitionTimerDelayMs:5},vre=()=>{},{transitionTimerDelayMs:yre}=bB,T_=new Map,jo=(i,e,t,n)=>{let r=n.context||{};const o=T_.get(e);if(o)switch(n.runningTransition){case"continue":return Lr;case"stop":i.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),T_.delete(e)}const a=t(e,n.animation,r)||vre;if(!n.animation||"none"===window.getComputedStyle(e).transitionProperty)return i.run(()=>a()),Pt(void 0).pipe(function mre(i){return e=>new S(t=>e.subscribe({next:a=>i.run(()=>t.next(a)),error:a=>i.run(()=>t.error(a)),complete:()=>i.run(()=>t.complete())}))}(i));const s=new Ce,l=new Ce,u=s.pipe(function qte(...i){return e=>tg(e,Pt(...i))}(!0));T_.set(e,{transition$:s,complete:()=>{l.next(),l.complete()},context:r});const f=function _re(i){const{transitionDelay:e,transitionDuration:t}=window.getComputedStyle(i);return 1e3*(parseFloat(e)+parseFloat(t))}(e);return i.runOutsideAngular(()=>{const v=_n(e,"transitionend").pipe(Lt(u),Li(({target:A})=>A===e));(function eB(...i){return 1===(i=JN(i)).length?Sn(i[0]):new S(function Wte(i){return e=>{let t=[];for(let n=0;t&&!e.closed&&n{if(t){for(let o=0;o{T_.delete(e),i.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()};let Cb=(()=>{class i{constructor(){this.animation=bB.animation}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Wr=(()=>{return(i=Wr||(Wr={}))[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",Wr;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 EB=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function IB(i){const e=Array.from(i.querySelectorAll(EB)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}new Date(1882,10,12),new Date(2174,10,25);class np{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}let moe=(()=>{class i{constructor(t,n){this._el=t,this._zone=n}ngOnInit(){this._zone.onStable.asObservable().pipe(Xn(1)).subscribe(()=>{jo(this._zone,this._el.nativeElement,(t,n)=>{n&&_g(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return jo(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return i.\u0275fac=function(t){return new(t||i)(H(At),H($t))},i.\u0275cmp=Oe({type:i,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,n){2&t&&(ko("modal-backdrop"+(n.backdropClass?" "+n.backdropClass:"")),St("show",!n.animation)("fade",n.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,n){},encapsulation:2}),i})();class ar{close(e){}dismiss(e){}}class _oe{constructor(e,t,n,r){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new Ce,this._dismissed=new Ce,this._hidden=new Ce,e.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(Lt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Lt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function yB(i){return i&&i.then}(t)?!1!==t&&this._dismiss(e):t.then(n=>{!1!==n&&this._dismiss(e)},()=>{})}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Pt(void 0);e.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}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),gb(e,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var A_=(()=>{return(i=A_||(A_={}))[i.BACKDROP_CLICK=0]="BACKDROP_CLICK",i[i.ESC=1]="ESC",A_;var i})();let voe=(()=>{class i{constructor(t,n,r){this._document=t,this._elRef=n,this._zone=r,this._closed$=new Ce,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ie,this.shown=new Ce,this.hidden=new Ce}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":US(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Xn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,n={animation:this.animation,runningTransition:"stop"},a=gb(jo(this._zone,t,()=>t.classList.remove("show"),n),jo(this._zone,this._dialogEl.nativeElement,()=>{},n));return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){const t={animation:this.animation,runningTransition:"continue"};gb(jo(this._zone,this._elRef.nativeElement,(o,a)=>{a&&_g(o),o.classList.add("show")},t),jo(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{_n(t,"keydown").pipe(Lt(this._closed$),Li(r=>r.which===Wr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(A_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let n=!1;_n(this._dialogEl.nativeElement,"mousedown").pipe(Lt(this._closed$),ir(()=>n=!1),to(()=>_n(t,"mouseup").pipe(Lt(this._closed$),Xn(1))),Li(({target:r})=>t===r)).subscribe(()=>{n=!0}),_n(t,"click").pipe(Lt(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!n&&this._zone.run(()=>this.dismiss(A_.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const n=t.querySelector("[ngbAutofocus]"),r=IB(t)[0];(n||r||t).focus()}}_restoreFocus(){const t=this._document.body,n=this._elWithFocus;let r;r=n&&n.focus&&t.contains(n)?n:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&jo(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return i.\u0275fac=function(t){return new(t||i)(H(Jt),H(At),H($t))},i.\u0275cmp=Oe({type:i,selectors:[["ngb-modal-window"]],viewQuery:function(t,n){if(1&t&&Wt(kie,7),2&t){let r;ut(r=pt())&&(n._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,n){2&t&&(mt("aria-modal",!0)("aria-labelledby",n.ariaLabelledBy)("aria-describedby",n.ariaDescribedBy),ko("modal d-block"+(n.windowClass?" "+n.windowClass:"")),St("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:aie,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,n){1&t&&(ho(),c(0,"div",0,1)(2,"div",2),ki(3),d()()),2&t&&ko("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})(),yoe=(()=>{class i{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,r=n.style,{overflow:o,paddingRight:a}=r;if(t>0){const s=parseFloat(window.getComputedStyle(n).paddingRight);r.paddingRight=`${s+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=a),r.overflow=o}}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),boe=(()=>{class i{constructor(t,n,r,o,a,s){this._applicationRef=t,this._injector=n,this._document=r,this._scrollBar=o,this._rendererFactory=a,this._ngZone=s,this._activeWindowCmptHasChanged=new Ce,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 Ie,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((i,e,t,n=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=_n(e,"focusin").pipe(Lt(t),Ve(o=>o.target));_n(e,"keydown").pipe(Lt(t),Li(o=>o.which===Wr.Tab),ES(r)).subscribe(([o,a])=>{const[s,l]=IB(e);(a===s||a===e)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(s.focus(),o.preventDefault())}),n&&_n(e,"click").pipe(Lt(t),ES(r),Ve(o=>o[1])).subscribe(o=>o.focus())})})(0,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,n,r){const o=r.container instanceof HTMLElement?r.container:Xu(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 ar,l=this._getContentRef(r.injector||t,n,s,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,f=this._attachWindowComponent(o,l.nodes),v=new _oe(f,l,u,r.beforeDismiss);return this._registerModalRef(v),this._registerWindowCmpt(f),v.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=D=>{v.close(D)},s.dismiss=D=>{v.dismiss(D)},this._applyWindowOptions(f.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,r),u.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),v}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(n=>n.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let n=QD(moe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,n){let r=QD(voe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,n){this._windowAttributes.forEach(r=>{Xu(n[r])&&(t[r]=n[r])})}_applyBackdropOptions(t,n){this._backdropAttributes.forEach(r=>{Xu(n[r])&&(t[r]=n[r])})}_getContentRef(t,n,r,o){return n?n instanceof Yi?this._createFromTemplateRef(n,r):US(n)?this._createFromString(n):this._createFromComponent(t,n,r,o):new np([])}_createFromTemplateRef(t,n){const o=t.createEmbeddedView({$implicit:n,close(a){n.close(a)},dismiss(a){n.dismiss(a)}});return this._applicationRef.attachView(o),new np([o.rootNodes],o)}_createFromString(t){const n=this._document.createTextNode(`${t}`);return new np([[n]])}_createFromComponent(t,n,r,o){const a=Bi.create({providers:[{provide:ar,useValue:r}],parent:t}),s=QD(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 np([[l]],s.hostView,s)}_setAriaHidden(t){const n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,n)=>{t?n.setAttribute("aria-hidden",t):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const n=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(n,n)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const n=this._windowCmpts.indexOf(t);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}}return i.\u0275fac=function(t){return new(t||i)(Me(yd),Me(Bi),Me(Jt),Me(yoe),Me(Ph),Me($t))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Coe=(()=>{class i{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return i.\u0275fac=function(t){return new(t||i)(Me(Cb))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Pn=(()=>{class i{constructor(t,n,r){this._injector=t,this._modalStack=n,this._config=r}open(t,n={}){const r={...this._config,animation:this._config.animation,...n};return this._modalStack.open(this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return i.\u0275fac=function(t){return new(t||i)(Me(Bi),Me(boe),Me(Coe))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function zoe(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g().$implicit;p(1),$e("- ",t.context,"")}}function Woe(i,e){if(1&i&&(c(0,"p"),m(1),b(2,zoe,2,1,"span",3),d()),2&i){const t=e.$implicit;p(1),$e(" ",t.message," "),p(1),h("ngIf",t.context)}}function qoe(i,e){if(1&i&&(c(0,"div"),b(1,Woe,3,2,"p",6),d()),2&i){const t=g();p(1),h("ngForOf",t.errors)}}new Xe("live announcer delay",{providedIn:"root",factory:function joe(){return 100}});class Eb{activeModal;errorReporterService;modalHeader;errors;modalContent="";constructor(e,t){this.activeModal=e,this.errorReporterService=t,console.log("error reporter modal")}closeModal(){this.errors=null,this.errorReporterService.clearErrors(),this.activeModal.close()}static \u0275fac=function(t){return new(t||Eb)(H(ar),H(Sl))};static \u0275cmp=Oe({type:Eb,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(t,n){1&t&&(c(0,"div",0)(1,"h4",1),m(2),d()(),c(3,"div",2),b(4,qoe,2,1,"div",3),c(5,"p"),m(6),d()(),c(7,"div",4)(8,"button",5),P("click",function(){return n.closeModal()}),m(9,"Ok"),d()()),2&t&&(p(2),Ae(n.modalHeader),p(2),h("ngIf",n.errors),p(2),$e(" ",n.modalContent," "))},dependencies:[Ot,rt],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(--color-accent);--color-fg-panel-link-active: 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 Ed{sanitizer;constructor(e){this.sanitizer=e}transform(e,t){let n="";return t&&t.length>=0&&(n=t),e&&0!==e.length?this.sanitizer.bypassSecurityTrustHtml(e):n}static \u0275fac=function(t){return new(t||Ed)(H(Ns,16))};static \u0275pipe=qn({name:"preformattedHtml",type:Ed,pure:!0})}function Goe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g();p(1),Ae(t.warningMessage)}}function Koe(i,e){1&i&&(B(0,"pre",10),Zt(1,"preformattedHtml")),2&i&&h("innerHtml",Xt(1,1,g().content),Gn)}function Qoe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g();p(1),Ae(t.content)}}function Zoe(i,e){if(1&i&&(c(0,"div",11),m(1),d()),2&i){const t=g();p(1),Ae(t.confirmationMessage)}}class Us{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 Ie;constructor(e){this.activeModal=e}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(t){return new(t||Us)(H(ar))};static \u0275cmp=Oe({type:Us,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(t,n){1&t&&(c(0,"div",0)(1,"h4",1),B(2,"i",2),m(3),d()(),c(4,"div",3),b(5,Goe,2,1,"div",4),b(6,Koe,2,3,"pre",5),b(7,Qoe,2,1,"div",4),b(8,Zoe,2,1,"div",6),d(),c(9,"div",7)(10,"button",8),P("click",function(){return n.cancelAction()}),m(11),d(),c(12,"button",9),P("click",function(){return n.confirmAction()}),m(13),d()()),2&t&&(p(3),$e(" ",n.title,""),p(2),h("ngIf",n.warningMessage),p(1),h("ngIf",n.contentIsHtml),p(1),h("ngIf",!n.contentIsHtml),p(1),h("ngIf",n.confirmationMessage),p(3),Ae(n.cancelButtonText),p(2),Ae(n.confirmButtonText))},dependencies:[rt,Ed]})}class yg{modalService;constructor(e){this.modalService=e}showPopup(e,t){let n=this.modalService.open(Eb).componentInstance;n.modalHeader=e,n.modalContent=t}showConfirmDelete(e){return new Promise((n,r)=>{let o=this.modalService.open(Us).componentInstance;o.objectName=e,o.confirmAction=()=>{n(!0),o.closeModal()},o.cancelAction=()=>{n(!1),o.closeModal()}})}showConfirm(e,t){return new Promise((r,o)=>{let a=this.modalService.open(Us).componentInstance;a.title=e,a.isPermanent=!1,a.content=t,a.confirmAction=()=>{r(!0),a.closeModal()},a.cancelAction=()=>{r(!1),a.closeModal()}})}static \u0275fac=function(t){return new(t||yg)(Me(Pn))};static \u0275prov=Ue({token:yg,factory:yg.\u0275fac,providedIn:"root"})}class P_{userService;modalServices;cookieService;constructor(e,t,n){this.userService=e,this.modalServices=t,this.cookieService=n}_lastNotified;intercept(e,t){var n=this;return e=e.clone({withCredentials:!0}),t.handle(e).pipe(ir(function(){var r=O(function*(o){if(o instanceof Zm){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 u=99999;n._lastNotified&&(u=(new Date).getTime()-n._lastNotified.getTime()),u>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(t){return new(t||P_)(Me(Hn),Me(yg),Me(Dd))};static \u0275prov=Ue({token:P_,factory:P_.\u0275fac})}class Pa{nuviotClient;constructor(e){this.nuviotClient=e}getPublicContentItemsByKey(e){return this.nuviotClient.request(`/api/sitecontent/public/${e}/all`)}getPublicContentItemByKey(e,t){return this.nuviotClient.request(`/api/sitecontent/${e}/${t}/public`)}getContentTypes(){return this.nuviotClient.request("/api/sitecontent/contenttypes")}getFilteredSiteContent(e){return this.nuviotClient.getListResponse(`/api/sitecontent/${e}/all`)}getSiteContentItemsForOrgNS(e,t){return this.nuviotClient.request(`/api/sitecontent/${e}/${t}/all`)}getSiteContentForOrgNS(e,t,n){return this.nuviotClient.request(`/api/content/${e}/${t}/${n}`)}getAllSiteContent(){return this.nuviotClient.getListResponse("/api/sitecontent/all")}createSiteContent(){return this.nuviotClient.getFormResponse("/api/sitecontent/factory")}getSiteContent(e){return this.nuviotClient.request(`/api/sitecontent/${e}`)}getSiteContentForEditing(e){return this.nuviotClient.getFormResponse(`/api/sitecontent/${e}/edit`)}editRevision(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/sitecontent/revision/factory");return n.model=e,n.isEditing=!0,n})()}addSiteContent(e){return this.nuviotClient.post("/api/sitecontent",e)}publishSiteContent(e){return this.nuviotClient.updateWithFormResponse("/api/sitecontent/revision/publish",e)}updateSiteContent(e){return this.nuviotClient.update("/api/sitecontent",e)}contentTypes(){return this.nuviotClient.request("/api/sitecontent/contenttypes")}deleteSiteContent(e){return this.nuviotClient.delete(`/api/sitecontent/${e}`)}getSharedContentItems(e){return this.nuviotClient.getListResponse(`/api/sharedcontent/${e}/list`)}getSharedContent(e){return this.nuviotClient.getFormResponse(`/api/sharedcontent/${e}`)}getRawSharedContent(e){return this.nuviotClient.request(`/api/sharedcontent/${e}/raw`)}createSharedContent(e){return this.nuviotClient.getFormResponse(`/api/sharedcontent/${e}/factory`)}addSharedContent(e){return this.nuviotClient.post("/api/sharedcontent",e)}updateSharedContent(e){return this.nuviotClient.update("/api/sharedcontent",e)}deleteSharedContent(e){return this.nuviotClient.delete(`/api/sharedcontent/${e}`)}saveSharedContent(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateSharedContent(e.model);{let n=yield t.addSharedContent(e.model);return n.successful&&(e.isEditing=!0),n}})()}createNewSiteContent(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/sitecontent/new")})()}saveSiteContent(e){var t=this;return O(function*(){return t.nuviotClient.post("/api/sitecontent/create",e.model)})()}addDocumentTemplate(e){var t=this;return O(function*(){return t.nuviotClient.post("/api/documenttemplate",e)})()}updateDocumentTemplate(e){var t=this;return O(function*(){return t.nuviotClient.post("/api/documenttemplate",e)})()}getDocumentTemplate(e){var t=this;return O(function*(){return t.nuviotClient.getFormResponse(`/api/documenttemplate/${e}`)})()}createDocumentTemplate(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/documenttemplate/factory")})()}getDocumentTemplates(){var e=this;return O(function*(){return e.nuviotClient.getListResponse("/api/documenttemplates")})()}getDocumentTemplatesByType(e){var t=this;return O(function*(){return t.nuviotClient.getListResponse(`/api/documenttemplates/${e}`)})()}deleteDocumentTemplate(e){var t=this;return O(function*(){return t.nuviotClient.delete(`/api/documenttemplate/${e}`)})()}saveDocumentTemplate(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateDocumentTemplate(e.model);{let n=yield t.addDocumentTemplate(e.model);return n.successful&&(e.isEditing=!0),n}})()}getProposalTemplateTags(){return this.nuviotClient.request("/api/business/proposal/tags")}getDocumentTags(e,t){return this.nuviotClient.request(`/api/document/${e}/tags?signature=${t}`)}getProposalPreviewHtml(e){return this.nuviotClient.postWithResponse("/api/business/proposal/template/preview",e)}static \u0275fac=function(t){return new(t||Pa)(Me(hn))};static \u0275prov=Ue({token:Pa,factory:Pa.\u0275fac,providedIn:"root"})}function Xoe(i,e){if(1&i&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1"),m(4),d(),B(5,"div",4),d()()()),2&i){const t=g();p(4),Ae(t.siteContent.published.title),p(1),h("innerHTML",t.html,Gn)}}class Ib{route;contentService;router;paramsSubscription;siteContent;html;constructor(e,t,n){var r=this;this.route=e,this.contentService=t,this.router=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=O(function*(a){let s=r.route.snapshot.params.orgns,l=r.route.snapshot.params.catgkey,u=r.route.snapshot.params.contentkey;r.siteContent=yield r.contentService.getSiteContentForOrgNS(s,l,u),console.log(r.siteContent);let f=r.siteContent.published.html,v=/\[VIEWCONTENT=([a-z,]+)]/,D=v.exec(f);for(;null!=D;){console.log(D[0],D[1]);let A=D[1].split(","),W=`${ft.moduleRouteHome}/${A.join("/")}`;f=f.replace(D[0],`view`),D=v.exec(f)}r.html=f});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}static \u0275fac=function(t){return new(t||Ib)(H(mi),H(Pa),H(_i))};static \u0275cmp=Oe({type:Ib,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(t,n){1&t&&b(0,Xoe,6,2,"div",0),2&t&&h("ngIf",n.siteContent)},dependencies:[rt],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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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 Ab{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||Ab)};static \u0275cmp=Oe({type:Ab,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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"h3"),m(3,"What We Do"),d(),c(4,"div")(5,"a",2),m(6," Services"),d()(),c(7,"div")(8,"a",3),m(9,"Platform"),d()()(),c(10,"div",1)(11,"h3"),m(12,"Resources"),d(),c(13,"div")(14,"a",4),m(15,"NuvIoT Login"),d()(),c(16,"div")(17,"a",5),m(18,"Careers"),d()(),c(19,"div")(20,"a",6),m(21,"Product Documentation"),d()(),c(22,"div")(23,"a",7),m(24,"Case Studies"),d()(),c(25,"div")(26,"a",8),m(27,"Privacy"),d()(),c(28,"div")(29,"a",9),m(30,"Terms and Conditions"),d()()(),c(31,"div",1)(32,"h3"),m(33,"Connect With Us"),d(),c(34,"div")(35,"a",10),m(36,"Send us an Email"),d()(),c(37,"div")(38,"a",11),m(39,"(727) 213-0803"),d()(),c(40,"div")(41,"ul",12)(42,"li")(43,"a",13)(44,"span"),B(45,"img",14),d()()(),c(46,"li")(47,"a",15)(48,"span"),B(49,"img",16),d()()(),c(50,"li")(51,"a",17)(52,"span"),B(53,"img",18),d()()()()()()())}})}function Joe(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g().$implicit;p(1),Ae(t.title)}}function eae(i,e){if(1&i){const t=re();c(0,"span",16),P("click",function(){E(t);const r=g().$implicit;return I(g().showView(r))}),m(1),d()}if(2&i){const t=g().$implicit;p(1),Ae(t.title)}}function tae(i,e){if(1&i&&(c(0,"li"),B(1,"i",26),b(2,Joe,2,1,"span",27),b(3,eae,2,1,"span",28),d()),2&i){const t=e.$implicit;p(2),h("ngIf",t.current),p(1),h("ngIf",!t.current)}}function nae(i,e){1&i&&(c(0,"span",29),m(1,">"),d())}function iae(i,e){1&i&&B(0,"i",30),2&i&&ko(g().view.icon)}function rae(i,e){if(1&i&&(c(0,"span",31),m(1),d()),2&i){const t=g();p(1),Ae(t.view.title)}}function oae(i,e){if(1&i){const t=re();c(0,"span",32),P("click",function(){return E(t),I(g().showProfile())}),m(1),c(2,"span",33),P("click",function(){return E(t),I(g().logout())}),m(3," Logout"),d()()}if(2&i){const t=g();p(1),dr(" ",t.user.firstName," ",t.user.lastName," ")}}function aae(i,e){if(1&i){const t=re();c(0,"span",32),P("click",function(){return E(t),I(g().login())}),m(1,"Login"),d()}}function sae(i,e){if(1&i&&(c(0,"div",34),B(1,"img",35)(2,"br"),c(3,"div"),m(4,"Please Wait"),d()()),2&i){const t=g();p(1),Ss("src","",t.root,"/app/ui-shared/assets/ajax-loader.gif",gi)}}function lae(i,e){1&i&&B(0,"div",36)}class Pb{userService;router;isLoggedIn;searchContent;org;user;view;isBusy=!1;root="";_onBeginCall;_onEndCall;_onBreadcrumbChanged;_onModuleChanged;_onPageChanged;_onAreaChanged;_onHeaderNameChanged;breadCrumb=[];headerName;moduleName;areaName;pageName;constructor(e,t,n,r){this.userService=n,this.router=r,ft.production&&(this.root=`/${ft.moduleRouteHome}`),this._onBreadcrumbChanged=t.onBreadCrumbChanged().subscribe(o=>{this.breadCrumb=o}),this._onHeaderNameChanged=t.onHeaderNameChanged().subscribe(o=>{this.headerName=o}),this._onModuleChanged=t.onModuleChanged().subscribe(o=>{this.moduleName=o.name}),this._onPageChanged=t.onPageChanged().subscribe(o=>{this.pageName=o.name}),this._onAreaChanged=t.onAreaChanged().subscribe(o=>{this.areaName=o.name}),this._onBeginCall=e.onCallBegin().subscribe(o=>{window.setTimeout(()=>{this.isBusy=!0},50)}),this._onEndCall=e.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 e=this;return O(function*(){e.isLoggedIn=yield e.userService.getIsLoggedIn(),e.isLoggedIn&&(e.org=yield e.userService.getCurrentOrg(),e.user=yield e.userService.getUser())})()}login(){this.router.navigate(["public","login"])}logout(){this.router.navigate(["public","logout"])}showView(e){e.route&&this.router.navigate(e.route)}showProfile(){this.router.navigate(["public","profile"])}search(){}goToHome(){window.location.href="https://www.software-logistics.com"}static \u0275fac=function(t){return new(t||Pb)(H(xc),H(zr),H(Hn),H(_i))};static \u0275cmp=Oe({type:Pb,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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2),P("click",function(){return n.goToHome()}),d(),c(3,"div",3)(4,"i",4),P("click",function(){return n.goToHome()}),d(),c(5,"i",5),P("click",function(){return n.goToHome()}),d(),c(6,"span",6),m(7),d()(),B(8,"div",7),c(9,"div",8)(10,"input",9),P("ngModelChange",function(o){return n.searchContent=o})("keydown.enter",function(){return n.search()}),d(),c(11,"button",10)(12,"i",11),P("click",function(){return n.search()}),d()()(),c(13,"div",12)(14,"a",13),m(15,"Help"),d()()(),c(16,"div",14)(17,"ul",15)(18,"li")(19,"span",16),P("click",function(){return n.goToHome()}),B(20,"i",17),m(21,"Home"),d()(),b(22,tae,4,2,"li",18),c(23,"li"),b(24,nae,2,0,"span",19),d(),c(25,"li"),b(26,iae,1,2,"i",20),d(),c(27,"li"),b(28,rae,2,1,"span",21),d()(),b(29,oae,4,2,"span",22),b(30,aae,2,0,"span",22),d()(),c(31,"div",23),B(32,"router-outlet"),d(),b(33,sae,5,1,"div",24),b(34,lae,1,0,"div",25),B(35,"app-public-footer")),2&t&&(p(7),$e(" ",n.headerName," "),p(3),h("ngModel",n.searchContent),p(12),h("ngForOf",n.breadCrumb),p(2),h("ngIf",n.view),p(2),h("ngIf",n.view),p(2),h("ngIf",n.view),p(1),h("ngIf",n.isLoggedIn&&n.user),p(1),h("ngIf",!n.isLoggedIn),p(3),h("ngIf",n.isBusy),p(1),h("ngIf",n.isBusy))},dependencies:[eb,Ab,Dn,en,qt,Ot,rt],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(--color-accent);--color-fg-panel-link-active: 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 Dc{nuviotClient;constructor(e){this.nuviotClient=e}createGlossary(){return this.nuviotClient.request("/api/glossary/factory")}createTerm(){return this.nuviotClient.getFormResponse("/api/glossary/term/factory")}editTerm(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/glossary/term/factory");return n.model=e,n.isEditing=!0,n})()}getGlossary(e){return this.nuviotClient.request(`/api/glossary/${e}`)}addGlossary(e){return this.nuviotClient.post("/api/glossary",e)}addNewGlossary(e){return this.nuviotClient.post("/api/glossary",e)}updateGlossary(e){return this.nuviotClient.update("/api/glossary",e)}getGlossaries(){return this.nuviotClient.getListResponse("/api/glossaries")}getTerm(e,t){return this.nuviotClient.request(`/api/glossary/${e}/term/${t}`)}getTermForKey(e,t,n){return this.nuviotClient.request(`/api/glossary/${e}/${t}/${n}`)}static \u0275fac=function(t){return new(t||Dc)(Me(hn))};static \u0275prov=Ue({token:Dc,factory:Dc.\u0275fac,providedIn:"root"})}function cae(i,e){if(1&i&&(c(0,"span",2),B(1,"span",3)(2,"span",4)(3,"span",5)(4,"span",6)(5,"span",7)(6,"span",8)(7,"span",9)(8,"span",10)(9,"span",11)(10,"span",12)(11,"span",13)(12,"span",14)(13,"span",15)(14,"span",16)(15,"span",17)(16,"span",18)(17,"span",19)(18,"span",20)(19,"span",21)(20,"span",22)(21,"span",23)(22,"span",24),d()),2&i){const t=g();cn("font-size",t.fontSize),h("className",t.iconName)}}function dae(i,e){if(1&i&&B(0,"img",25),2&i){const t=g();cn("width",t.getImageSizeCssValue())("height",t.getImageSizeCssValue()),h("src",t.getImageIconUrl(),gi)("alt",t.altText||"")}}class es{lagoVistaIconPrefix="lago-icon://";defaultGeneratedIconVersion="v1";defaultGeneratedIconSize=64;defaultGeneratedIconScale=1.5;generatedIconBaseUrl="https://lagoicons.blob.core.windows.net/lagovistaicons";iconName;fontSize="32pt";imageSize;generatedIconScale=this.defaultGeneratedIconScale;altText="";constructor(){}ngOnInit(){}isImageIcon(){return this.isAbsoluteImageUrl(this.iconName)||this.isLagoVistaIconReference(this.iconName)}getImageIconUrl(){return this.isAbsoluteImageUrl(this.iconName)?this.iconName:this.isLagoVistaIconReference(this.iconName)?this.resolveLagoVistaIconUrl(this.iconName):""}isAbsoluteImageUrl(e){return e?.startsWith("http://")||e?.startsWith("https://")}isLagoVistaIconReference(e){return e?.startsWith(this.lagoVistaIconPrefix)}resolveLagoVistaIconUrl(e){const t=this.parseLagoVistaIconReference(e);if(!t)return"";const n=this.resolveGeneratedIconSize();return`${this.generatedIconBaseUrl}/${t.orgNamespace}/${t.familyKey}/${t.iconKey}/${t.version}/icon-${n}.webp`}parseLagoVistaIconReference(e){if(!this.isLagoVistaIconReference(e))return null;const n=e.substring(this.lagoVistaIconPrefix.length).split("/").filter(r=>r&&r.trim().length>0);return n.length<3?null:{orgNamespace:n[0],familyKey:n[1],iconKey:n[2],version:n.length>3?n[3]:this.defaultGeneratedIconVersion}}resolveGeneratedIconSize(){if(32===this.imageSize||40===this.imageSize||48===this.imageSize||64===this.imageSize||128===this.imageSize||256===this.imageSize)return this.imageSize;const e=this.parsePixelSize(this.fontSize);return this.snapToSupportedIconSize(e)}getImageSizeCssValue(){return this.imageSize?`${this.imageSize}px`:this.fontSize||"32px"}parsePixelSize(e){if(!e)return 32;const t=e.trim().toLowerCase();if(t.endsWith("px")){const r=parseInt(t.replace("px",""),10);return isNaN(r)?32:r}if(t.endsWith("pt")){const r=parseInt(t.replace("pt",""),10);return isNaN(r)?32:Math.round(1.333*r)}const n=parseInt(t,10);return isNaN(n)?32:n}snapToSupportedIconSize(e){return e<=32?32:e<=40?40:e<=48?48:e<=64?64:e<=128?128:256}tryScaleCssSize(e,t){if(!e||!Number.isFinite(t)||t<=0)return null;const n=e.trim().match(/^(-?\d+(?:\.\d+)?)\s*([a-zA-Z%]+)$/);if(!n)return null;const r=Number(n[1]),o=n[2];return Number.isFinite(r)?`${r*t}${o}`:null}static \u0275fac=function(t){return new(t||es)};static \u0275cmp=Oe({type:es,selectors:[["nuv-icon"]],inputs:{iconName:"iconName",fontSize:"fontSize",imageSize:"imageSize",generatedIconScale:"generatedIconScale",altText:"altText"},decls:2,vars:2,consts:[[3,"className","fontSize",4,"ngIf"],["class","nuv-icon__image",3,"src","alt","width","height",4,"ngIf"],[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"],[1,"nuv-icon__image",3,"src","alt"]],template:function(t,n){1&t&&(b(0,cae,23,3,"span",0),b(1,dae,1,6,"img",1)),2&t&&(h("ngIf",!n.isImageIcon()),p(1),h("ngIf",n.isImageIcon()))},dependencies:[rt],styles:[".nuv-icon__image[_ngcontent-%COMP%]{display:inline-block;object-fit:contain;vertical-align:middle}.nuv-icon__image[_ngcontent-%COMP%]{transform:translateY(-.1em)}"]})}function uae(i,e){if(1&i&&(c(0,"div")(1,"h1"),m(2,"Example"),d(),c(3,"div",6),B(4,"div",4),d()()),2&i){const t=g(2);p(4),h("innerHTML",t.term.example,Gn)}}function pae(i,e){if(1&i&&(c(0,"li"),m(1),d()),2&i){const t=e.$implicit;p(1),$e(" ",t.text," ")}}function hae(i,e){if(1&i&&(c(0,"div")(1,"h1"),m(2,"Related"),d(),c(3,"ol"),b(4,pae,2,1,"li",7),d()()),2&i){const t=g(2);p(4),h("ngForOf",t.term.related)}}function gae(i,e){if(1&i&&(c(0,"div",1)(1,"div",2),B(2,"nuv-icon",3),m(3),d(),B(4,"hr")(5,"div",4),b(6,uae,5,1,"div",5),b(7,hae,5,1,"div",5),d()),2&i){const t=g();p(2),_t("iconName",t.term.icon),p(1),$e(" ",t.term.name,""),p(2),h("innerHTML",t.term.definition,Gn),p(1),h("ngIf",t.term.example),p(1),h("ngIf",t.term.related&&t.term.related.length>0)}}class bg{route;glossaryService;router;paramsSubscription;term;constructor(e,t,n){var r=this;this.route=e,this.glossaryService=t,this.router=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=O(function*(a){let s=r.route.snapshot.params.glossaryid,l=r.route.snapshot.params.termid,u=r.route.snapshot.params.orgns,f=r.route.snapshot.params.glossarykey,v=r.route.snapshot.params.termkey;if(s&&l)r.term=yield r.glossaryService.getTerm(s,l);else if(u&&f&&v){let D=yield r.glossaryService.getTermForKey(u,f,v);D.successful&&(r.term=D.result)}console.log("TermComponent: term",r.term)});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}ngOnDestroy(){this.paramsSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||bg)(H(mi),H(Dc),H(_i))};static \u0275cmp=Oe({type:bg,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(t,n){1&t&&b(0,gae,8,5,"div",0),2&t&&h("ngIf",n.term)},dependencies:[es,Ot,rt]})}const fae=function(i,e){return["/public",i,"career",e]};function mae(i,e){if(1&i&&(c(0,"div",5)(1,"h4"),m(2),d(),c(3,"p"),m(4),d(),c(5,"div",6)(6,"a",7),m(7,"More Information"),d()()()),2&i){const t=e.$implicit,n=g();p(2),Ae(t.title),p(2),Ae(t.summary),p(2),h("routerLink",ci(3,fae,n.orgNs,t.key))}}class Fb{route;nav;contentService;contentItems;paramsSubscription;orgNs;constructor(e,t,n){var r=this;this.route=e,this.nav=t,this.contentService=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=O(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 O(function*(){})()}ngOnDestroy(){this.paramsSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||Fb)(H(mi),H(zr),H(Pa))};static \u0275cmp=Oe({type:Fb,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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"img",2),c(3,"div",3),b(4,mae,8,6,"div",4),d()()()),2&t&&(p(4),h("ngForOf",n.contentItems))},dependencies:[cg,Ot],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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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 Id{clientService;constructor(e){this.clientService=e}getCreateOrgForm(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/org/factory")})()}createOrganization(e){var t=this;return O(function*(){return yield t.clientService.post("/api/org",e)})()}getSubscriptions(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/api/subscriptions")})()}getSubscription(e){var t=this;return O(function*(){return yield t.clientService.getFormResponse(`/api/subscription/${e}`)})()}createSubscription(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/subscription/factory")})()}updateSubscription(e){var t=this;return O(function*(){return yield t.clientService.update("/api/subscription",e)})()}addSubscription(e){var t=this;return O(function*(){return yield t.clientService.post("/api/subscription",e)})()}deleteSubscription(e){var t=this;return O(function*(){return yield t.clientService.delete(`/api/subscription/${e}`)})()}saveSubscription(e){var t=this;return O(function*(){return e.isEditing?yield t.updateSubscription(e.model):yield t.addSubscription(e.model)})()}getDistributionLists(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/api/distros")})()}getDistributionListsForCustomerAsync(e){var t=this;return O(function*(){return yield t.clientService.getListResponse(`/api/distros/customer/${e}`)})()}getDistributionList(e){var t=this;return O(function*(){return yield t.clientService.getFormResponse(`/api/distro/${e}`)})()}confirmDistributionList(e){var t=this;return O(function*(){return yield t.clientService.getFormResponse(`/api/distro/${e}/sendconfirmmessage`)})()}createDistributionList(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/distro/factory")})()}updateDistributionList(e){var t=this;return O(function*(){return yield t.clientService.update("/api/distro",e)})()}addDistributionList(e){var t=this;return O(function*(){return yield t.clientService.post("/api/distro",e)})()}deleteDistributionList(e){var t=this;return O(function*(){return yield t.clientService.delete(`/api/distro/${e}`)})()}createExternalContact(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/distro/externalcontact/factory")})()}editExternalContact(e){var t=this;return O(function*(){let n=yield t.clientService.getFormResponse("/api/distro/externalcontact/factory");return n.model=e,n.isEditing=!0,n})()}saveDistributionList(e){var t=this;return O(function*(){return e.isEditing?yield t.updateDistributionList(e.model):yield t.addDistributionList(e.model)})()}getHolidaySets(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/api/holidaysets")})()}getHolidaySet(e){var t=this;return O(function*(){return yield t.clientService.getFormResponse(`/api/holidayset/${e}`)})()}createHolidaySet(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/holidayset/factory")})()}updateHolidaySet(e){var t=this;return O(function*(){return yield t.clientService.update("/api/holidayset",e)})()}addHolidaySet(e){var t=this;return O(function*(){return yield t.clientService.post("/api/holidayset",e)})()}deleteHolidaySet(e){var t=this;return O(function*(){return yield t.clientService.delete(`/api/holidayset/${e}`)})()}saveHolidaySet(e){var t=this;return O(function*(){return e.isEditing?yield t.updateHolidaySet(e.model):yield t.addHolidaySet(e.model)})()}getAllOrgs(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/sys/api/orgs/all")})()}searchOrgs(e){var t=this;return O(function*(){return yield t.clientService.getListResponse(`/sys/api/orgs/search?filter=${e}`)})()}deleteOrg(e){var t=this;return O(function*(){return yield t.clientService.delete(`/sys/api/org/${e}`)})()}getScheduledDowntimes(){var e=this;return O(function*(){return yield e.clientService.getListResponse("/api/scheduleddowntimes")})()}getScheduledDowntime(e){var t=this;return O(function*(){return yield t.clientService.getFormResponse(`/api/scheduleddowntime/${e}`)})()}createScheduledDowntime(){var e=this;return O(function*(){return yield e.clientService.getFormResponse("/api/scheduleddowntime/factory")})()}updateScheduledDowntime(e){var t=this;return O(function*(){return yield t.clientService.update("/api/scheduleddowntime",e)})()}addScheduledDowntime(e){var t=this;return O(function*(){return yield t.clientService.post("/api/scheduleddowntime",e)})()}deleteScheduledDowntime(e){var t=this;return O(function*(){return yield t.clientService.delete(`/api/scheduleddowntime/${e}`)})()}saveScheduledDowntime(e){var t=this;return O(function*(){return e.isEditing?yield t.updateScheduledDowntime(e.model):yield t.addScheduledDowntime(e.model)})()}getLocations(e){let t={};return e&&(t.categoryKey=e),this.clientService.getListResponse("/api/org/locations",t)}getLocationsForCustomer(e){return this.clientService.getListResponse(`/api/org/locations/customer/${e}`)}createLocation(){return this.clientService.getFormResponse("/api/org/location/factory")}getLocation(e){return this.clientService.getFormResponse(`/api/org/location/${e}`)}addLocation(e){return this.clientService.post("/api/org/location",e)}deleteLocation(e){return this.clientService.delete(`/api/org/location/${e}`)}updateLocation(e){return this.clientService.update("/api/org/location",e)}saveLocation(e){var t=this;return O(function*(){return e.isEditing?yield t.updateLocation(e.model):yield t.addLocation(e.model)})()}getLocationDiagrams(){return this.clientService.getListResponse("/api/org/location/diagrams")}getLocationDiagramsForCustomer(e){return this.clientService.getListResponse("/api/customer/diagrams")}getLocationDiagram(e){return this.clientService.getFormResponse(`/api/org/location/diagram/${e}`)}getLocationDiagramOnly(e){return this.clientService.request(`/device/notifications/diagram/${e}`)}createLocationDiagram(){return this.clientService.getFormResponse("/api/org/location/diagram/factory")}createLocationDiagramForCustomer(e){return this.clientService.getFormResponse(`/api/customer/${e}/diagram/factory`)}createLocationDiagramShape(){return this.clientService.getFormResponse("/api/org/location/diagram/shape/factory")}editLocationDiagramShape(e){var t=this;return O(function*(){let n=yield t.clientService.getFormResponse("/api/org/location/diagram/shape/factory",!1);return n.isEditing=!0,n.model=e,n})()}updateLocationDiagram(e){var t=this;return O(function*(){return yield t.clientService.update("/api/org/location/diagram",e)})()}addLocationDiagram(e){var t=this;return O(function*(){return yield t.clientService.post("/api/org/location/diagram",e)})()}saveLocationDiagram(e){var t=this;return O(function*(){return e.isEditing?yield t.updateLocationDiagram(e.model):yield t.addLocationDiagram(e.model)})()}createLocationDiagramGroup(){var e=this;return O(function*(){return e.clientService.getFormResponse("/api/org/location/diagram/group/factory")})()}createLocationDiagramLayer(){var e=this;return O(function*(){return e.clientService.getFormResponse("/api/org/location/diagram/layer/factory")})()}editLocationDiagramGroup(e){var t=this;return O(function*(){let n=yield t.clientService.getFormResponse("/api/org/location/diagram/shape/factory",!1);return n.isEditing=!0,n.model=e,n})()}editLocationDiagramLayer(e){var t=this;return O(function*(){let n=yield t.clientService.getFormResponse("/api/org/location/diagram/shape/factory",!1);return n.isEditing=!0,n.model=e,n})()}addOrgLocation(e,t){var n=this;return O(function*(){return yield n.clientService.post(`/api/org/location/${e}/diagram`,t)})()}updateOrgLocation(e,t){var n=this;return O(function*(){return yield n.clientService.post(`/api/org/location/${e}/diagram`,t)})()}deleteOrgLocation(e,t){var n=this;return O(function*(){return yield n.clientService.delete(`/api/org/location/${e}/diagram/${t}`)})()}getOwnedObjects(e){var t=this;return O(function*(){return yield t.clientService.getListResponse(`/sys/api/org/${e}/ownedobjects`)})()}getOrgUsers(e){var t=this;return O(function*(){return yield t.clientService.getListResponse(`/sys/api/org/${e}/users`)})()}getOrgDeployments(e){var t=this;return O(function*(){return yield t.clientService.getListResponse(`/sys/api/deployment/instances/${e}`)})()}getSysAdminOrgs(e){var t=this;return O(function*(){return yield t.clientService.request(`/sys/api/org/${e}`)})()}getPublicOrgInfo(e){var t=this;return O(function*(){return t.clientService.request(`/api/org/${e}/public/summary`)})()}sysAdminUpdateOrg(e){var t=this;return O(function*(){return yield t.clientService.update("/sys/api/org",e)})()}static \u0275fac=function(t){return new(t||Id)(Me(hn))};static \u0275prov=Ue({token:Id,factory:Id.\u0275fac,providedIn:"root"})}function _ae(i,e){if(1&i){const t=re();c(0,"div"),B(1,"img",3),c(2,"div",4)(3,"div",5)(4,"a",6),P("click",function(){return E(t),I(g().apply())}),m(5,"Apply Now"),d()(),B(6,"div",7),d()()}if(2&i){const t=g();p(6),h("innerHTML",t.content.published.html,Gn)}}class Rb{route;contentService;userService;meta;orgService;nav;paramsSubscription;content;orgNs;orgInfo;constructor(e,t,n,r,o,a){var s=this;this.route=e,this.contentService=t,this.userService=n,this.meta=r,this.orgService=o,this.nav=a,this.paramsSubscription=this.route.params.subscribe(function(){var l=O(function*(u){let f=s.route.snapshot.params.key;s.orgNs=u.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(u){return l.apply(this,arguments)}}())}ngOnInit(){return O(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(t){return new(t||Rb)(H(mi),H(Pa),H(Hn),H(C4),H(Id),H(zr))};static \u0275cmp=Oe({type:Rb,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(t,n){1&t&&(c(0,"div",0)(1,"div",1),b(2,_ae,7,1,"div",2),d()()),2&t&&(p(2),h("ngIf",n.content))},dependencies:[rt],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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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 ip{nuviotClient;_currentSurvey;_allSurveys;_currentQuestion;_currentSurvey$=new Ut;_allSurveys$=new Ut;_currentQuestion$=new Ut;constructor(e){this.nuviotClient=e}getAvailableSurveys(){return this.nuviotClient.getListResponse("/api/surveys")}getAvailableSurveysByType(e){return this.nuviotClient.getListResponse(`/api/surveys/${e}`)}loadAllSurveys(){return this.nuviotClient.getListResponse("/api/surveyadmin/surveys")}getSurveysForCustomer(e){return this.nuviotClient.request(`/api/survey/responses/customer/${e}`)}createSurvey(e){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/${e}/factory`)}createSurveyForCustomer(e,t){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/${t}/customer/${e}/factory`)}getOrCreateASurveyForUser(e){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/user/${e}?autocreate=true`)}getSurveyForUser(e){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/user/${e}`)}createChildSurvey(e,t,n,r,o){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/${e}/${t}/${n}/${r}/${o}/factory`)}getSurveysForCurrentOrg(){return this.nuviotClient.request("/api/survey/responses")}completeSurvey(e){return this.nuviotClient.request(`/api/survey/${e}/complete`)}completeChildSurvey(e,t){return this.nuviotClient.request(`/api/survey/${e}/${t}/complete`)}getSurveysForUser(e){return this.nuviotClient.request(`/api/survey/responses/user/${e}`)}getSurveyResponse(e,t){return this.nuviotClient.request(e!==t?`/api/survey/response/${e}/${t}`:`/api/survey/response/${t}`)}getChildSurveyResult(e,t){return this.nuviotClient.request(`/api/survey/response/${e}/${t}`)}getChildSurveys(e,t,n){return this.nuviotClient.request(`/api/survey/${e}/${t}/${n}/children `)}getSurveyTemplate(e){return this.nuviotClient.request(`/api/survey/template/${e}`)}deleteSurvey(e,t){return this.nuviotClient.delete(`/api/survey/${e}/${t}`)}deleteChildSurvey(e,t){return this.nuviotClient.delete(`/api/survey/${e}/child/${t}`)}getAnswers(e,t){return this.nuviotClient.request(`/api/survey/result/answer/${e}/${t}`)}updateSurveyAnswer(e,t,n){return this.nuviotClient.update("/api/survey/answer",{surveyResponse:e,questionId:t,surveyResponseAnswers:n})}updateSurvey(e){return this.nuviotClient.update("/api/survey",e)}setSurveyCurrentQuestion(e,t,n){return this.nuviotClient.request(`/api/survey/status/${e}/${t}/${n}`)}getAllAnswersForSurvey(e){return this.nuviotClient.request(`/api/survey/result/answer/${e}`)}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(t){return new(t||ip)(Me(hn))};static \u0275prov=Ue({token:ip,factory:ip.\u0275fac,providedIn:"root"})}class Cg{nuviotClient;constructor(e){this.nuviotClient=e}addJobApplication(e){var t=this;return O(function*(){return yield t.nuviotClient.postWithResponse("/api/job/application",e)})()}updateJobApplication(e){var t=this;return O(function*(){yield t.nuviotClient.update("/api/job/application",e)})()}getJobApplication(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/job/application/${e}`)})()}getApplicationsForUser(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/job/applications/user/${e}`)})()}getMyApplications(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/job/applications/my")})()}removeApplication(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/job/application/${e}`)})()}updateJobApplicationStatus(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/job/applications/${e}/${t}`)})()}findJobApplicationsWithStatusAsync(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/job/applications/${e}/${t}`)})()}findJobApplicationsByJobIdAsync(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/job/applications/${e}`)})()}getAllJobApplications(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/job/applications")})()}getApplicationForUserByKey(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/job/application/my/${e}`)})()}addHistory(e,t){var n=this;return O(function*(){return yield n.nuviotClient.post(`/api/job/application/${e}/history`,t)})()}static \u0275fac=function(t){return new(t||Cg)(Me(hn))};static \u0275prov=Ue({token:Cg,factory:Cg.\u0275fac,providedIn:"root"})}class js{transform(e){if(e){const t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString()}`}return"-"}static \u0275fac=function(t){return new(t||js)};static \u0275pipe=qn({name:"dateTimePrinter",type:js,pure:!0})}const vae=function(i){return["/public","career",i]};function yae(i,e){if(1&i){const t=re();c(0,"div",4)(1,"div",5)(2,"div",6),B(3,"img",7),d(),c(4,"div",8)(5,"h4"),m(6,"Job Application"),d(),c(7,"p"),m(8),d(),c(9,"p"),m(10),d(),c(11,"div",9)(12,"a",10),m(13,"More Information"),d()()()(),B(14,"hr"),c(15,"p"),m(16,"To apply you will need to create an account, you can do so using your favorite login provider"),d(),c(17,"div",11)(18,"div")(19,"button",12),P("click",function(){return E(t),I(g(2).signIn("GitHub"))}),B(20,"img",13),m(21," Sign in with Github "),d()(),c(22,"div")(23,"button",12),P("click",function(){return E(t),I(g(2).signIn("Microsoft"))}),B(24,"img",14),m(25," Sign in with Microsoft "),d()(),c(26,"div")(27,"button",12),P("click",function(){return E(t),I(g(2).signIn("Google"))}),B(28,"img",15),m(29," Sign in with Google "),d()(),c(30,"div")(31,"button",12),P("click",function(){return E(t),I(g(2).signIn("LinkedIn"))}),B(32,"img",16),m(33," Sign in with Linked In "),d()(),c(34,"div")(35,"button",12),P("click",function(){return E(t),I(g(2).signIn("Twitter"))}),B(36,"img",17),m(37," Sign in with Twitter "),d()()()()}if(2&i){const t=g(2);p(8),$e("Thank you for your interest in the ",t.content.published.title," position."),p(2),Ae(t.content.published.summary),p(2),h("routerLink",bt(3,vae,t.content.key))}}function bae(i,e){1&i&&(c(0,"div",18)(1,"div",19),B(2,"hr"),d()())}function Cae(i,e){1&i&&B(0,"i",26)}function wae(i,e){1&i&&B(0,"i",26)}function xae(i,e){1&i&&B(0,"i",26)}function kae(i,e){if(1&i){const t=re();c(0,"button",30),P("click",function(){return E(t),I(g(4).applyNow())}),m(1,"Submit Application"),d()}}function Mae(i,e){if(1&i&&(c(0,"div")(1,"h5"),m(2,"Application Completed"),d(),c(3,"p"),m(4),Zt(5,"dateTimePrinter"),d(),c(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."),d(),c(8,"p"),m(9,"Thank you for taking the time to learn about us, our business and completing the application."),d(),c(10,"p"),m(11,"If there are other positions you feel you are qualified for, you are welcome to apply for those today. "),d()()),2&i){const t=g(4);p(4),dr("",t.currentApplication.status.text," ",Xt(5,2,t.currentApplication.statusDate),"")}}function Dae(i,e){if(1&i&&(c(0,"div",27),b(1,kae,2,0,"button",28),b(2,Mae,12,4,"div",29),d()),2&i){const t=g(3);p(1),h("ngIf",!t.currentApplication),p(1),h("ngIf",t.currentApplication)}}const Tae=function(){return["/site/profile"]};function Sae(i,e){if(1&i){const t=re();c(0,"div",18)(1,"div",19)(2,"h4"),m(3,"Application Check List"),d(),c(4,"table",20)(5,"thead")(6,"tr")(7,"th"),m(8,"Step"),d(),B(9,"th",21),c(10,"th",21),m(11,"Completed"),d()()(),c(12,"tr")(13,"td"),m(14," Review My Profile and accept Terms and Conditions "),d(),c(15,"td")(16,"a",10),m(17,"view"),d()(),c(18,"td",22),b(19,Cae,1,0,"i",23),d()(),c(20,"tr")(21,"td"),m(22,"Getting to Know You Questionnaire"),d(),c(23,"td")(24,"span",24),P("click",function(){return E(t),I(g(2).takeWelcomeSurvey())}),m(25,"view"),d()(),c(26,"td",22),b(27,wae,1,0,"i",23),d()(),c(28,"tr")(29,"td"),m(30,"Position Questionnaire "),d(),c(31,"td")(32,"span",24),P("click",function(){return E(t),I(g(2).takePositionSurvey())}),m(33,"view"),d()(),c(34,"td",22),b(35,xae,1,0,"i",23),d()()(),b(36,Dae,3,2,"div",25),d()()}if(2&i){const t=g(2);p(16),h("routerLink",dc(5,Tae)),p(3),h("ngIf",t.user&&t.user.termsAndConditionsAccepted),p(8),h("ngIf",t.welcomeSurvey&&"Completed"==t.welcomeSurvey.status),p(8),h("ngIf",t.jobSurvey&&"Completed"==t.jobSurvey.status),p(1),h("ngIf",t.allCompleted)}}function Eae(i,e){if(1&i&&(c(0,"div",1),b(1,yae,38,5,"div",2),b(2,bae,3,0,"div",3),b(3,Sae,37,6,"div",3),d()),2&i){const t=g();p(1),h("ngIf",!t.isLoggedIn),p(1),h("ngIf",t.isLoggedIn),p(1),h("ngIf",t.isLoggedIn)}}class Ob{route;contentService;surveyService;hrService;nav;userService;orgService;router;isLoggedInSubscription;paramsSubscription;content;welcomeSurvey;jobSurvey;ready=!1;allCompleted=!1;user;currentApplication;isLoggedIn;orgNs;orgInfo;constructor(e,t,n,r,o,a,s,l){var u=this;this.route=e,this.contentService=t,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=O(function*(v){u.ready=!1,u.orgNs=v.orgns,u.orgInfo=yield s.getPublicOrgInfo(u.orgNs),u.isLoggedInSubscription=u.userService.onLoggedIn().subscribe(A=>u.isLoggedIn=A),u.isLoggedIn=yield u.userService.getIsLoggedIn();const D=u.route.snapshot.params.key;if(u.content=yield u.contentService.getSiteContentForOrgNS(u.orgNs,"jobdescription",D),window.document.title=`${u.orgInfo.name} ${u.content.name}`,u.nav.setHeaderName(u.content.name),u.nav.setBreadCrumbs([{title:"Careers",route:["public",u.orgNs,"careers"]},{title:u.content.name,current:!0}]),u.isLoggedIn){u.user=yield u.userService.getUser(),u.allCompleted=u.user.termsAndConditionsAccepted;const A=yield u.surveyService.getSurveyForUser("welcome");A.successful?(u.welcomeSurvey=A.result,u.allCompleted=u.welcomeSurvey&&"Completed"===u.welcomeSurvey.status):u.allCompleted=!1;const W=yield u.surveyService.getSurveyForUser(u.content.key);W.successful?(u.jobSurvey=W.result,u.allCompleted=u.jobSurvey&&"Completed"===u.jobSurvey.status&&u.allCompleted):u.allCompleted=!1,u.allCompleted&&(u.currentApplication=yield u.hrService.getApplicationForUserByKey(u.content.key),console.log(u.currentApplication))}u.ready=!0});return function(v){return f.apply(this,arguments)}}())}takeWelcomeSurvey(){var e=this;return O(function*(){const t=yield e.surveyService.getOrCreateASurveyForUser("welcome");e.router.navigate(["public",e.orgNs,"profile","survey",t.result.topLevelSurveyResponseId,{fromservice:"jobapplication",fromservicekey:e.content.key}])})()}takePositionSurvey(){var e=this;return O(function*(){const t=yield e.surveyService.getOrCreateASurveyForUser(e.content.key);e.router.navigate(["site",e.orgNs,"profile","survey",t.result.topLevelSurveyResponseId,{fromservice:"jobapplication",fromservicekey:e.content.key}])})()}applyNow(){var e=this;return O(function*(){const t={surveyResults:[{id:e.jobSurvey.topLevelSurveyResponseId,text:e.jobSurvey.surveyResponseName,orgId:e.jobSurvey.orgId},{id:e.welcomeSurvey.topLevelSurveyResponseId,text:e.welcomeSurvey.surveyResponseName,orgId:e.jobSurvey.orgId}],job:{id:e.content.id,key:e.content.key,text:e.content.name}},n=yield e.hrService.addJobApplication(t);n.successful&&(e.currentApplication=n.result)})()}signIn(e){let t=window.location.pathname;window.location.href=`${ft.siteUri}/account/login/oauth/${e}?returnUrl=${t}`}ngOnDestroy(){this.paramsSubscription.unsubscribe(),this.isLoggedInSubscription.unsubscribe(),window.document.title="NuvIoT"}static \u0275fac=function(t){return new(t||Ob)(H(mi),H(Pa),H(ip),H(Cg),H(zr),H(Hn),H(Id),H(_i))};static \u0275cmp=Oe({type:Ob,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(t,n){1&t&&b(0,Eae,4,3,"div",0),2&t&&h("ngIf",n.content&&n.ready)},dependencies:[cg,rt,js],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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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 Lb{year;constructor(){this.year=(new Date).getFullYear()}ngOnInit(){}static \u0275fac=function(t){return new(t||Lb)};static \u0275cmp=Oe({type:Lb,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(t,n){1&t&&(c(0,"div",0)(1,"span",1),m(2),d(),c(3,"div",2)(4,"a",3),m(5,"Cookie"),d(),c(6,"a",4),m(7,"T&C"),d(),c(8,"a",5),m(9,"Privacy"),d()()()),2&t&&(p(2),$e("\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 Iae(i,e){if(1&i){const t=re();c(0,"div")(1,"div")(2,"button",10),P("click",function(){return E(t),I(g().signIn("GitHub"))}),B(3,"img",11),m(4," Sign in with Github "),d()(),c(5,"div")(6,"button",10),P("click",function(){return E(t),I(g().signIn("Microsoft"))}),B(7,"img",12),m(8," Sign in with Microsoft "),d()(),c(9,"div")(10,"button",10),P("click",function(){return E(t),I(g().signIn("Google"))}),B(11,"img",13),m(12," Sign in with Google "),d()(),c(13,"div")(14,"button",10),P("click",function(){return E(t),I(g().signIn("LinkedIn"))}),B(15,"img",14),m(16," Sign in with Linked In "),d()(),c(17,"div")(18,"button",10),P("click",function(){return E(t),I(g().signIn("Twitter"))}),B(19,"img",15),m(20," Sign in with Twitter "),d()(),c(21,"div")(22,"button",16),P("click",function(){return E(t),I(g().externalLogin=!1)}),B(23,"img",17),m(24," Sign in with Email "),d()()()}}function Aae(i,e){if(1&i&&(c(0,"div",34),m(1),d()),2&i){const t=g(2);p(1),$e(" ",t.loginResult," ")}}function Pae(i,e){if(1&i){const t=re();c(0,"div",18)(1,"form",19)(2,"div",20)(3,"label",21),m(4,"Email Address"),d(),c(5,"input",22),P("ngModelChange",function(r){return E(t),I(g().emailAddress=r)}),d(),B(6,"div",23),d(),c(7,"div",20)(8,"label",24),m(9,"Password"),d(),c(10,"input",25),P("ngModelChange",function(r){return E(t),I(g().password=r)}),d()(),c(11,"div",20)(12,"div",26)(13,"label")(14,"input",27),P("ngModelChange",function(r){return E(t),I(g().rememberMe=r)}),d(),m(15," Remember Me "),d()()(),c(16,"div",28)(17,"button",29),P("click",function(){return E(t),I(g().performEmailLogin())}),m(18,"Login"),d(),m(19,"\xa0 "),c(20,"button",30),P("click",function(){return E(t),I(g().cancelLogin())}),m(21,"Cancel"),d()(),c(22,"div",20)(23,"a",31),m(24,"Register"),d(),B(25,"br"),c(26,"a",32),m(27,"Forgot Password"),d()(),b(28,Aae,2,1,"div",33),d()()}if(2&i){const t=g();p(5),h("ngModel",t.emailAddress),p(5),h("ngModel",t.password),p(4),h("ngModel",t.rememberMe),p(14),h("ngIf",t.loginResult)}}function Fae(i,e){1&i&&B(0,"div",35)}function Rae(i,e){if(1&i&&(c(0,"div",36),B(1,"img",37)(2,"br"),c(3,"div"),m(4,"Please Wait"),d()()),2&i){const t=g();p(1),Ss("src","",t.root,"/app/ui-shared/assets/ajax-loader.gif",gi)}}class F_{userService;networkService;storage;router;constructor(e,t,n,r){this.userService=e,this.networkService=t,this.storage=n,this.router=r,ft.production&&(this.root=`/${ft.moduleRouteHome}`),this._onBeginCall=t.onCallBegin().subscribe(o=>{window.setTimeout(()=>{this.isBusy=!0})}),this._onEndCall=t.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 Ie;ngOnInit(){var e=this;return O(function*(){e.returnUrl||(e.returnUrl=`/${ft.moduleRouteHome}`),(yield e.userService.getIsLoggedIn())&&e.router.navigate([ft.moduleRouteHome]),yield e.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(e){this.returnUrl?.toLowerCase().startsWith("/api")&&(this.returnUrl=`/${ft.moduleRouteHome}`),window.location.href=`${ft.siteUri}/account/login/oauth/${e}?returnUrl=${this.returnUrl}`}performEmailLogin(){var e=this;return O(function*(){e.isLoggingIn=!0,e.loginResult=null;try{yield e.userService.login(e.emailAddress,e.password,e.rememberMe),e.isLoggingIn=!1;let t=yield e.storage.getItemAsync("loginRedirect");yield e.storage.removeItemAsync("loginRedirect"),!t||t.startsWith("/api")||t.startsWith("/auth")?e.router.navigate([ft.moduleRouteHome]):window.location.href=t}catch{e.loginResult="Sorry, we could not log you in with that email and password, please try again.",e.isLoggingIn=!1}})()}cancelLogin(){this.externalLogin=!0}ngOnDestroy(){this._onBeginCall.unsubscribe(),this._onEndCall.unsubscribe()}static \u0275fac=function(t){return new(t||F_)(H(Hn),H(xc),H(fo),H(_i))};static \u0275cmp=Oe({type:F_,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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2),B(3,"div",3),c(4,"div",4),B(5,"img",5),b(6,Iae,25,0,"div",6),b(7,Pae,29,4,"div",7),d(),B(8,"div",3),d()()(),b(9,Fae,1,0,"div",8),b(10,Rae,5,1,"div",9),B(11,"app-footer")),2&t&&(p(6),h("ngIf",n.externalLogin),p(1),h("ngIf",!n.externalLogin),p(2),h("ngIf",n.isBusy),p(1),h("ngIf",n.isBusy))},dependencies:[rt,UT,Dn,Ml,en,PT,n_,qt,eg,Lb],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(--color-accent);--color-fg-panel-link-active: 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{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||Nb)};static \u0275cmp=Oe({type:Nb,selectors:[["app-applicant-home"]],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," applicant-home works!\n"),d())}})}class rp{nuviotClient;userService;constructor(e,t){this.nuviotClient=e,this.userService=t}getProductCategory(e){return this.nuviotClient.getFormResponse(`/api/product/category/${e}`)}getProductCategories(){return this.nuviotClient.getListResponse("/api/product/categories")}createProductCategory(){return this.nuviotClient.getFormResponse("/api/product/category/factory")}updateProductCategory(e){return this.nuviotClient.update("/api/product/category",e)}insertProductCategory(e){return this.nuviotClient.insert("/api/product/category",e)}saveProductCategory(e){return e.isEditing?this.updateProductCategory(e.model):this.insertProductCategory(e.model)}getProduct(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/product/${e}`)})()}deleteProduct(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/product/${e}`)})()}getProducts(e){var t=this;return O(function*(){return yield t.nuviotClient.getListResponse(`/api/products/category/${e}`)})()}createProduct(e){return this.nuviotClient.getFormResponse(`/api/product/factory/${e}`)}updateProduct(e){return this.nuviotClient.update("/api/product",e)}insertProduct(e){return this.nuviotClient.insert("/api/product",e)}saveProduct(e){return e.isEditing?this.updateProduct(e.model):this.insertProduct(e.model)}getProductCategoryTypesList(){return this.nuviotClient.getListResponse("/api/product/category/types")}createProductCategoryType(){return this.nuviotClient.getFormResponse("/api/product/category/type/factory")}getProductCategoryType(e){return this.nuviotClient.getFormResponse(`/api/product/category/type/${e}`)}updateProductCategoryType(e){return this.nuviotClient.update("/api/product/category/type",e)}insertProductCategoryType(e){return this.nuviotClient.insert("/api/product/category/type",e)}saveProductCategoryType(e){return e.isEditing?this.updateProductCategoryType(e.model):this.insertProductCategoryType(e.model)}getProductPageLayoutList(){return this.nuviotClient.getListResponse("/api/productpage/layouts")}createProductPageLayoutType(){return this.nuviotClient.getFormResponse("/api/productpage/layout/factory")}getProductPageLayoutType(e){return this.nuviotClient.getFormResponse(`/api/productpage/layout/${e}`)}deleteProductPageLayoutType(e){return this.nuviotClient.delete(`/api/productpage/layout//${e}`)}updateProductPageLayoutType(e){return this.nuviotClient.update("/api/productpage/layout",e)}insertProductPageLayoutType(e){return this.nuviotClient.insert("/api/productpage/layout",e)}saveProductPageLayoutType(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateProductPageLayoutType(e.model);{let n=yield t.insertProductPageLayoutType(e.model);return n.successful&&(e.isEditing=!0),n}})()}createProductPage(){return this.nuviotClient.getFormResponse("/api/product/page/factory")}getProductPages(){return this.nuviotClient.getListResponse("/api/product/page/list")}getProductPage(e){return this.nuviotClient.getFormResponse(`/api/product/page/${e}`)}getProductPageByKey(e,t){return this.nuviotClient.request(`/api/${e}/product/page/${t}`)}deleteProductPage(e){return this.nuviotClient.delete(`/api/product/page/${e}`)}updateProductPage(e){return this.nuviotClient.update("/api/product/page",e)}insertProductPage(e){return this.nuviotClient.insert("/api/product/page",e)}addProductPageProduct(e){return this.nuviotClient.post("/api/product/page/product",e)}updateProductPageProduct(e){return this.nuviotClient.update("/api/product/page/product",e)}removeProductPageProduct(e){return this.nuviotClient.delete(`/api/product/page/product/${e}`)}saveProductPage(e){return e.isEditing?this.updateProductPage(e.model):this.insertProductPage(e.model)}getPublicProductCategoryTypesAsync(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/${e}/product/category/types`)})()}getPublicProductCategoryTypeAsync(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/${e}/product/categories/${t}`)})()}getPublicProductCategoryAsync(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/${e}/product/category/${t}`)})()}getPublicProductsForOrgAsync(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/${e}/products`)})()}getPublicProductAsync(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/${e}/product/${t}`)})()}getCartAsync(e){var t=this;return O(function*(){return t.nuviotClient.request(`/api/cart/${e}`)})()}addToCartAsync(e,t,n){var r=this;return O(function*(){return yield r.nuviotClient.updateWithResponse(`/api/${e}/cart/add/${t}?qty=${n}`,null)})()}removeItemFromCartAsync(e,t){var n=this;return O(function*(){return yield n.nuviotClient.deleteWithResponse(`/api/${e}/cart/item/${t}`)})()}static \u0275fac=function(t){return new(t||rp)(Me(hn),Me(Hn))};static \u0275prov=Ue({token:rp,factory:rp.\u0275fac,providedIn:"root"})}class op{transform(e,t){return 0==e||e?(e=parseFloat(e)).toLocaleString("en-US",{style:"currency",currency:"USD"}):""}static \u0275fac=function(t){return new(t||op)};static \u0275pipe=qn({name:"moneyPrinter",type:op,pure:!0})}class R_{transform(e,t){if(0!=e&&!e)return"";e=parseFloat(e);let n=Math.floor(e),r=Math.round(100*(e-n));return`$${n}${r<10?`0${r}`:r.toString()}`}static \u0275fac=function(t){return new(t||R_)};static \u0275pipe=qn({name:"moneyPrinterLarge",type:R_,pure:!0})}class wg{sanitized;constructor(e){this.sanitized=e}transform(e){return this.sanitized.bypassSecurityTrustHtml(e)}static \u0275fac=function(t){return new(t||wg)(H(Ns,16))};static \u0275pipe=qn({name:"safeHtml",type:wg,pure:!0})}function Oae(i,e){if(1&i&&(c(0,"div",6)(1,"div",7),m(2),d(),c(3,"div",8),m(4),d()()),2&i){const t=g();p(2),$e(" ",t.info.heroTitle," "),p(2),$e(" ",t.info.tagLine," ")}}function Lae(i,e){if(1&i){const t=re();c(0,"span")(1,"span",9),P("click",function(){return E(t),I(g().showCategoryTypes())}),m(2,"Product Types"),d(),c(3,"span",10),m(4," > "),d()()}}function Nae(i,e){if(1&i){const t=re();c(0,"span")(1,"span",9),P("click",function(){E(t);const r=g();return I(r.showCategoryType(r.categoryType.key))}),m(2),d(),c(3,"span",10),m(4," > "),d()()}if(2&i){const t=g();p(2),Ae(t.categoryType.name)}}function Bae(i,e){if(1&i){const t=re();c(0,"span")(1,"span",9),P("click",function(){E(t);const r=g();return I(r.showProducts(r.category.id))}),m(2),d(),c(3,"span",10),m(4," > "),d()()}if(2&i){const t=g();p(2),Ae(t.category.name)}}function Vae(i,e){1&i&&(c(0,"span")(1,"span",11),m(2,"All Products"),d()())}function $ae(i,e){1&i&&(c(0,"span")(1,"span",11),m(2,"Product Types"),d()())}function Hae(i,e){if(1&i&&(c(0,"span")(1,"span",11),m(2),d()()),2&i){const t=g();p(2),Ae(t.categoryType.name)}}function Uae(i,e){if(1&i&&(c(0,"span",11),m(1),d()),2&i){const t=g();p(1),Ae(t.category.name)}}function jae(i,e){if(1&i&&(c(0,"span",11),m(1),d()),2&i){const t=g();p(1),$e(" ",t.product.name,"")}}const XS=function(i){return{"background-image":i}};function Yae(i,e){if(1&i){const t=re();c(0,"div",16),B(1,"div",17),c(2,"div",18)(3,"h4"),m(4),d(),B(5,"div",19),c(6,"button",20),P("click",function(){const o=E(t).$implicit;return I(g(3).showCategoryType(o.key))}),m(7,"View"),d()()()}if(2&i){const t=e.$implicit,n=g(3);p(1),h("ngStyle",bt(3,XS,"url("+n.getProductCategoryTypeImage(t))),p(3),Ae(t.name),p(1),h("innerHTML",t.shortSummary,Gn)}}function zae(i,e){if(1&i&&(c(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. "),d(),c(3,"div",14),b(4,Yae,8,5,"div",15),d()()),2&i){const t=g(2);p(4),h("ngForOf",t.categoryTypes.model)}}function Wae(i,e){if(1&i){const t=re();c(0,"div",22),B(1,"div",23),c(2,"div",24)(3,"h4"),m(4),d(),B(5,"p",19),c(6,"div")(7,"button",20),P("click",function(){const o=E(t).$implicit;return I(g(3).showProducts(o.id))}),m(8,"View Products"),d()()()()}if(2&i){const t=e.$implicit,n=g(3);p(1),h("ngStyle",bt(3,XS,"url("+n.getThumbnailImageUri(t)+")")),p(3),Ae(t.name),p(1),h("innerHTML",t.shortSummaryHTML,Gn)}}function qae(i,e){if(1&i&&(c(0,"div",12)(1,"span"),m(2),d(),c(3,"div",14),b(4,Wae,9,5,"div",21),d()()),2&i){const t=g(2);p(2),Ae(t.categoryType.description),p(2),h("ngForOf",t.categories.model)}}function Gae(i,e){1&i&&B(0,"span",19),2&i&&h("innerHTML",g(3).category.shortSummaryHTML,Gn)}function Kae(i,e){if(1&i){const t=re();c(0,"div")(1,"span",43),P("click",function(){E(t);const r=g().$implicit;return I(g(3).editProduct(r))}),B(2,"i",44),m(3," Edit"),d()()}}function Qae(i,e){if(1&i){const t=re();c(0,"div",27)(1,"div",28),B(2,"div",29),d(),c(3,"div",30)(4,"h4",31),P("click",function(){const o=E(t).$implicit;return I(g(3).showProductDetail(o.id))}),m(5),d(),c(6,"div",32),B(7,"span",19),Zt(8,"moneyPrinterLarge"),m(9),d(),c(10,"div")(11,"span",33),m(12,"Lead Time:"),d(),m(13),d(),c(14,"div"),B(15,"span",19),d(),c(16,"div",34),B(17,"div",35),c(18,"div",36)(19,"div",37),P("click",function(){const o=E(t).$implicit;return I(g(3).incrementCount(o))}),B(20,"i",38),d(),c(21,"input",39),P("ngModelChange",function(r){return I(E(t).$implicit.qtyToPurchase=r)}),d(),c(22,"div",37),P("click",function(){const o=E(t).$implicit;return I(g(3).decrementCount(o))}),B(23,"i",40),d()(),c(24,"div")(25,"button",41),P("click",function(){const o=E(t).$implicit;return I(g(3).addToCart(o))}),m(26,"Add to Cart "),B(27,"i",42),d()()()(),b(28,Kae,4,0,"div",2),d()}if(2&i){const t=e.$implicit,n=g(3);p(2),h("ngStyle",bt(10,XS,"url("+n.siteRoot+t.thumbnailImageUrl+")")),p(3),Ae(t.name),p(2),h("innerHTML",Xt(8,8,t.unitPrice),Gn),p(2),$e(" (USD) ",t.unitType," "),p(4),$e(" ",t.leadTime,""),p(2),h("innerHTML",t.shortSummaryHTML,Gn),p(6),h("ngModel",t.qtyToPurchase),p(7),h("ngIf",n.canEditProduct)}}function Zae(i,e){if(1&i&&(c(0,"div"),b(1,Gae,1,1,"span",25),b(2,Qae,29,12,"div",26),d()),2&i){const t=g(2);p(1),h("ngIf",t.category),p(1),h("ngForOf",t.products.model)}}function Xae(i,e){if(1&i&&(c(0,"div")(1,"a",53),m(2,"Product Home Page"),d()()),2&i){const t=g(3);p(1),h("href",t.product.productHomePage,gi)}}function Jae(i,e){if(1&i&&B(0,"img",54),2&i){const t=g(3);h("src",t.getThumbnailImageUri(t.product),gi)}}function ese(i,e){1&i&&B(0,"img",55),2&i&&Ss("src","",g(3).base,"/app/ui-shared/assets/product.png",gi)}function tse(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g().$implicit;p(1),$e("",t.discountPercent,"%")}}function nse(i,e){1&i&&(c(0,"span"),m(1,"-"),d())}function ise(i,e){if(1&i){const t=re();c(0,"tr")(1,"td",58),m(2),d(),c(3,"td"),m(4),d(),c(5,"td"),m(6),d(),c(7,"td",58),m(8),Zt(9,"moneyPrinter"),d(),c(10,"td",59),b(11,tse,2,1,"span",2),b(12,nse,2,0,"span",2),d(),c(13,"td",58),m(14),Zt(15,"moneyPrinter"),d(),c(16,"td",58),m(17),Zt(18,"moneyPrinter"),d(),c(19,"td")(20,"span",43),P("click",function(){const o=E(t).$implicit;return I(g(4).showSubProduct(o))}),m(21,"view"),d()()()}if(2&i){const t=e.$implicit;p(2),Ae(t.quantity),p(2),Ae(t.name),p(2),Ae(t.unitType.text),p(2),Ae(Xt(9,8,t.unitPrice)),p(3),h("ngIf",t.discountPercent>0),p(1),h("ngIf",0==t.discountPercent),p(2),$e(" ",Xt(15,10,t.extendedPrice)," "),p(3),$e(" ",Xt(18,12,t.subTotal)," ")}}function rse(i,e){if(1&i&&(c(0,"table",56)(1,"thead")(2,"tr")(3,"th"),m(4,"Qty"),d(),c(5,"th"),m(6,"Product"),d(),c(7,"th"),m(8,"Unit Type"),d(),c(9,"th"),m(10,"List"),d(),c(11,"th"),m(12,"Discount"),d(),c(13,"th"),m(14,"Extended"),d(),c(15,"th"),m(16,"Subtotal"),d(),B(17,"th"),d()(),c(18,"tbody"),b(19,ise,22,14,"tr",57),d()()),2&i){const t=g(3);p(19),h("ngForOf",t.product.includedProducts)}}function ose(i,e){if(1&i&&(c(0,"div")(1,"h5"),m(2),Zt(3,"moneyPrinter"),d()()),2&i){const t=g(3);p(2),$e("Due Today: ",Xt(3,1,t.purchasePrice),"")}}function ase(i,e){if(1&i&&(c(0,"div",61),m(1),Zt(2,"moneyPrinter"),d()),2&i){const t=g(4);p(1),$e(" ",Xt(2,1,t.perMonthPrice)," Per Month (First month included) ")}}function sse(i,e){if(1&i&&(c(0,"div",61),m(1),Zt(2,"moneyPrinter"),d()),2&i){const t=g(4);p(1),$e(" ",Xt(2,1,t.perYearPrice)," Per Year (First year included) ")}}function lse(i,e){if(1&i&&(c(0,"div")(1,"h5"),m(2,"Recurring Charges"),d(),b(3,ase,3,3,"div",60),b(4,sse,3,3,"div",60),d()),2&i){const t=g(3);p(3),h("ngIf",t.perMonthPrice),p(1),h("ngIf",t.perYearPrice)}}function cse(i,e){if(1&i&&(c(0,"div")(1,"h6"),m(2,"On Demand Charges (Billed Monthly)"),d(),c(3,"div",62),m(4),Zt(5,"moneyPrinter"),d()()),2&i){const t=g(3);p(4),$e(" ",Xt(5,1,t.perHourPrice)," Per Hour ")}}function dse(i,e){if(1&i){const t=re();c(0,"div")(1,"div",45)(2,"div",35)(3,"h2"),m(4),d(),b(5,Xae,3,1,"div",2),c(6,"div",46),B(7,"p",19),Zt(8,"safeHtml"),B(9,"hr"),d()(),c(10,"div")(11,"div",47)(12,"div",36)(13,"div",37),P("click",function(){E(t);const r=g(2);return I(r.incrementCount(r.product))}),B(14,"i",38),d(),c(15,"input",39),P("ngModelChange",function(r){return E(t),I(g(2).product.qtyToPurchase=r)}),d(),c(16,"div",37),P("click",function(){E(t);const r=g(2);return I(r.decrementCount(r.product))}),B(17,"i",40),d()(),c(18,"div")(19,"button",41),P("click",function(){E(t);const r=g(2);return I(r.addToCart(r.product))}),m(20,"Add to Cart "),B(21,"i",42),d()()()(),B(22,"hr"),d(),c(23,"div",45)(24,"div"),b(25,Jae,1,1,"img",48),b(26,ese,1,1,"img",49),d(),c(27,"div",50),B(28,"p",19),Zt(29,"safeHtml"),d()(),B(30,"hr"),b(31,rse,20,1,"table",51),c(32,"div",45),B(33,"div",35),c(34,"div",52),b(35,ose,4,3,"div",2),b(36,lse,5,2,"div",2),b(37,cse,6,3,"div",2),d()()()}if(2&i){const t=g(2);p(4),Ae(t.product.name),p(1),h("ngIf",t.product.productHomePage&&!1),p(2),h("innerHTML",Xt(8,11,t.product.shortSummaryHTML),Gn),p(8),h("ngModel",t.product.qtyToPurchase),p(10),h("ngIf",t.product.imageResource),p(1),h("ngIf",!t.product.imageResource),p(2),h("innerHTML",Xt(29,13,t.product.detailsHTML),Gn),p(3),h("ngIf",t.product.includedProducts.length>0),p(4),h("ngIf",t.purchasePrice),p(1),h("ngIf",t.perMonthPrice>0||t.perYearPrice>0),p(1),h("ngIf",t.perHourPrice>0)}}function use(i,e){if(1&i&&(c(0,"div",12),b(1,zae,5,1,"div",2),b(2,qae,5,2,"div",5),b(3,Zae,3,2,"div",2),b(4,dse,38,15,"div",2),d()),2&i){const t=g();p(1),h("ngIf",t.categoryTypes&&!t.categories&&!t.products),p(1),h("ngIf",t.categories&&!t.products),p(1),h("ngIf",t.products&&!t.product),p(1),h("ngIf",t.product)}}function pse(i,e){if(1&i){const t=re();c(0,"div",66)(1,"div")(2,"h5"),m(3),d(),c(4,"div"),m(5),Zt(6,"moneyPrinter"),d(),c(7,"div"),m(8),Zt(9,"moneyPrinter"),d()(),c(10,"div",58)(11,"button",67),P("click",function(){const o=E(t).$implicit;return I(g(2).removeFromCart(o))}),B(12,"i",68),d()(),B(13,"hr"),d()}if(2&i){const t=e.$implicit;p(3),Ae(t.product.text),p(2),cc("",t.quantity," x ",Xt(6,5,t.price)," (USD) ",t.unitType.text,""),p(3),$e("Item Total: ",Xt(9,7,t.price*t.quantity)," (USD)")}}function hse(i,e){if(1&i){const t=re();c(0,"div")(1,"div",63)(2,"h4"),m(3,"Cart"),d(),b(4,pse,14,9,"div",64),c(5,"div",58)(6,"h4"),m(7),Zt(8,"moneyPrinter"),d(),c(9,"div")(10,"button",65),P("click",function(){return E(t),I(g().checkout())}),m(11,"Checkout"),d()()()()()}if(2&i){const t=g();p(4),h("ngForOf",t.cart.lineItems),p(3),$e("Total: ",Xt(8,2,t.cart.total)," (USD)")}}class Pl{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=ft.siteUri;constructor(e,t,n,r,o,a){var s=this;this.route=e,this.userService=t,this.productService=n,this.cookieService=r,this.navService=o,this.localStorageService=a,this.base=ft.production?`/${ft.moduleRouteHome}`:"",this._routeSubscription=this.route.params.subscribe(function(){var l=O(function*(u){if(s.isLoggedIn=yield s.userService.getIsLoggedIn(),s.busy=!0,s.orgNs=u.orgns?u.orgns:"softwarelogistics",s.isLoggedIn){let v=yield t.getCurrentOrg();s.canEditProduct=v.isForProductLine&&v.namespace==s.orgNs,console.log(v.isForProductLine,v.namespace,s.orgNs,s.canEditProduct)}if(2==s.route.snapshot.url.length&&"products"==s.route.snapshot.url[1].path){s.clearAll();let v=yield s.productService.getPublicProductsForOrgAsync(s.orgNs);v.successful&&(s.products=v.result.products,s.info=v.result.organizationInformation);for(let D of s.products.model)D.qtyToPurchase=D.minimumQuantity;console.log(s.products.model)}else u.productid?yield s.showProductDetail(u.productid):u.catgid?yield s.showProducts(u.catgid):u.catgtype?yield s.showCategoryType(u.catgtype):yield s.showCategoryTypes();let f=yield a.getItemAsync(`${s.orgNs}cartid`);if(f){let v=yield s.productService.getCartAsync(f);v.successful&&(s.cart=v.result)}s.busy=!1});return function(u){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 e=this;return O(function*(){e.clearAll();let t=yield e.productService.getPublicProductCategoryTypesAsync(e.orgNs);console.log("Category Types",t),e.info=t.result.organizationInformation,e.categoryTypes=t.result.categoryTypes,e.navService.setLocation(`/public/${e.orgNs}/productcategories`)})()}showCategoryType(e){var t=this;return O(function*(){t.clearAll();let n=yield t.productService.getPublicProductCategoryTypeAsync(t.orgNs,e);console.log("Category Type",n),t.info=n.result.organizationInformation,t.categoryType=n.result.categoryType,t.categories=n.result.categories,t.navService.setLocation(`/public/${t.orgNs}/productcategories/${t.categoryType.key}`)})()}showProducts(e){var t=this;return O(function*(){t.clearAll();let n=yield t.productService.getPublicProductCategoryAsync(t.orgNs,e);console.log("Product Category",n),t.info=n.result.organizationInformation,t.category=n.result.category,t.categoryType=n.result.categoryType,t.products=n.result.products;for(let r of t.products.model)r.qtyToPurchase=r.minimumQuantity;t.navService.setLocation(`/public/${t.orgNs}/productcategories/${t.categoryType.id}/${t.category.id}/products`)})()}showProductDetail(e){var t=this;return O(function*(){t.clearAll();let n=yield t.productService.getPublicProductAsync(t.orgNs,e);console.log("Show Product: "+n.result.product.name,n),t.info=n.result.organizationInformation,t.categoryType=n.result.categoryType,t.category=n.result.category;let r=n.result.product;switch(t.purchasePrice=0,t.perMonthPrice=0,t.perHourPrice=0,r.qtyToPurchase=r.minimumQuantity,r.unitType.id){case"1":t.perHourPrice=r.unitPrice;break;case"2":t.perMonthPrice=r.unitPrice;break;case"9":t.purchasePrice=12*r.unitPrice,t.perYearPrice=t.purchasePrice;break;default:t.purchasePrice=r.unitPrice}console.log(t.purchasePrice,t.perMonthPrice,t.perHourPrice,r.unitType.id),console.log(r);for(let o of r.includedProducts)switch(o.extendedPrice=Math.round(100*(o.unitPrice-o.discountPercent/100*o.unitPrice))/100,o.subTotal=o.extendedPrice*o.quantity,o.unitType.id){case"1":t.perHourPrice+=o.subTotal;break;case"2":t.perMonthPrice+=o.subTotal,t.purchasePrice+=o.subTotal;break;case"9":o.subTotal=12*o.subTotal,t.perYearPrice+=o.subTotal,t.purchasePrice+=o.subTotal;break;default:t.purchasePrice+=o.subTotal}t.product=r,console.log(t.categoryType),t.navService.setLocation(`/public/${t.orgNs}/productcategories/${t.categoryType.key}/${t.category.id}/product/${t.product.id}`)})()}getThumbnailImageUri(e){return e.thumbnailImageResource||e.thumbnailImageResourceId?`${ft.siteUri}/api/media/resource/${this.info.id}/${e.thumbnailImageResourceId??e.thumbnailImageResource.id}/download`:`${this.base}/app/ui-shared/assets/product.png`}getProductCategoryTypeImage(e){return e.imageResource?`${ft.siteUri}/api/media/resource/${e.ownerOrganization.id}/${e.imageResource.id}/download`:`${this.base}/app/ui-shared/assets/product.png`}getImageUri(e){return`${ft.siteUri}/api/media/resource/${e.ownerOrgId??this.category.orgId}/${e.imageResourceId??e.imageResource.id}/download`}showSubProduct(e){var t=this;return O(function*(){let n=(yield t.productService.getProduct(e.product.id)).model,r=(yield t.productService.getProductCategory(n.productCategory.id)).model;t.navService.goto(["public","productcategories",t.category.categoryType.id,r.id,"product",n.id])})()}editProduct(e){this.navService.openInNewWindow(`/business/productcatalog/category/${e.categoryId}/product/${e.id}`)}addToCart(e){var t=this;return O(function*(){let n=yield t.productService.addToCartAsync(t.orgNs,e.id,e.qtyToPurchase);n.successful&&(yield t.localStorageService.setItemAsync(`${t.orgNs}cartid`,n.result.id),yield t.localStorageService.setItemAsync(`${t.orgNs}cartcount`,n.result.lineItems.length.toString()),t.cart=n.result)})()}removeFromCart(e){var t=this;return O(function*(){let n=yield t.productService.removeItemFromCartAsync(t.orgNs,e.id);n.successful&&(yield t.localStorageService.setItemAsync(`${t.orgNs}cartid`,n.result.id),yield t.localStorageService.setItemAsync(`${t.orgNs}cartcount`,n.result.lineItems.length.toString()),t.cart=n.result)})()}incrementCount(e){e.qtyToPurchase++,e.qtyToPurchase=Math.min(e.qtyToPurchase,e.maximumQuantity)}decrementCount(e){e.qtyToPurchase--,e.qtyToPurchase=Math.max(e.qtyToPurchase,e.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 e=this;return O(function*(){let n=yield new PaymentRequest(e.buildSupportedPaymentMethodData(),e.buildShoppingCartDetails()).show();console.log(n)})()}static \u0275fac=function(t){return new(t||Pl)(H(mi),H(Hn),H(rp),H(Dd),H(zr),H(fo))};static \u0275cmp=Oe({type:Pl,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(t,n){1&t&&(b(0,Oae,5,2,"div",0),c(1,"div",1),b(2,Lae,5,0,"span",2),b(3,Nae,5,1,"span",2),b(4,Bae,5,1,"span",2),b(5,Vae,3,0,"span",2),b(6,$ae,3,0,"span",2),b(7,Hae,3,1,"span",2),b(8,Uae,2,1,"span",3),b(9,jae,2,1,"span",3),d(),c(10,"div",4),b(11,use,5,4,"div",5),b(12,hse,12,4,"div",2),d()),2&t&&(h("ngIf",n.info),p(2),h("ngIf",n.categoryType),p(1),h("ngIf",n.categoryType&&n.category),p(1),h("ngIf",n.category&&n.product),p(1),h("ngIf",!n.categoryType&&n.products),p(1),h("ngIf",!n.categoryType&&!n.products),p(1),h("ngIf",n.categoryType&&!n.category),p(1),h("ngIf",n.category&&!n.product),p(1),h("ngIf",n.product),p(2),h("ngIf",!n.busy),p(1),h("ngIf",n.cart))},dependencies:[Dn,Ea,en,qt,Ot,rt,Rs,op,R_,wg],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 gse(i,e){if(1&i&&(c(0,"h4"),m(1),d()),2&i){const t=g();p(1),Ae(t.subHeader)}}function fse(i,e){1&i&&(B(0,"pre",8),Zt(1,"preformattedHtml")),2&i&&h("innerHtml",Xt(1,1,g().helpContent),Gn)}function mse(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g();p(1),Ae(t.helpContent)}}class O_{activeModal;modalHeader;helpContent="";subHeader="";isHtml=!1;constructor(e){this.activeModal=e}ngOnInit(){}closeModal(){this.helpContent=null,this.subHeader=null,this.activeModal.close()}static \u0275fac=function(t){return new(t||O_)(H(ar))};static \u0275cmp=Oe({type:O_,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(t,n){1&t&&(c(0,"div",0)(1,"span"),m(2),d(),c(3,"button",1),P("click",function(){return n.closeModal()}),c(4,"span",2),m(5,"\xd7"),d()()(),c(6,"div",3),b(7,gse,2,1,"h4",4),b(8,fse,2,3,"pre",5),b(9,mse,2,1,"span",4),d(),c(10,"div",6)(11,"button",7),P("click",function(){return n.closeModal()}),m(12,"Ok"),d()()),2&t&&(p(2),Ae(n.modalHeader),p(5),h("ngIf",n.subHeader),p(1),h("ngIf",n.isHtml),p(1),h("ngIf",!n.isHtml))},dependencies:[rt,Ed]})}class L_{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(e){this.nuviotClient=e}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(t){return new(t||L_)(Me(hn))};static \u0275prov=Ue({token:L_,factory:L_.\u0275fac,providedIn:"root"})}class ap{constructor(){}caption;ngOnInit(){}static \u0275fac=function(t){return new(t||ap)};static \u0275cmp=Oe({type:ap,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(t,n){1&t&&(c(0,"div",0)(1,"p"),B(2,"i",1),d(),c(3,"p"),m(4),d()()),2&t&&(p(4),Ae(n.caption))}})}function _se(i,e){1&i&&B(0,"i",12)}function vse(i,e){1&i&&B(0,"i",13)}function yse(i,e){1&i&&B(0,"i",12)}function bse(i,e){1&i&&B(0,"i",13)}function Cse(i,e){1&i&&B(0,"i",12)}function wse(i,e){1&i&&B(0,"i",13)}const Pr=function(i){return{"active-answer":i}};function xse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,Cse,1,0,"i",7),b(2,wse,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function kse(i,e){1&i&&B(0,"i",12)}function Mse(i,e){1&i&&B(0,"i",13)}function Dse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,kse,1,0,"i",7),b(2,Mse,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function Tse(i,e){if(1&i){const t=re();$r(0),c(1,"div",6),P("click",function(){return E(t),I(g(3).toggleAnswer("yes","Yes"))}),b(2,_se,1,0,"i",7),b(3,vse,1,0,"i",8),c(4,"label",9),m(5,"Yes"),d()(),c(6,"div",6),P("click",function(){return E(t),I(g(3).toggleAnswer("no","No"))}),b(7,yse,1,0,"i",7),b(8,bse,1,0,"i",8),c(9,"label",9),m(10,"No"),d()(),b(11,xse,5,5,"div",10),b(12,Dse,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngIf",t.isAnswerSelected("yes")),p(1),h("ngIf",!t.isAnswerSelected("yes")),p(4),h("ngIf",t.isAnswerSelected("no")),p(1),h("ngIf",!t.isAnswerSelected("no")),p(3),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Sse(i,e){1&i&&B(0,"i",12)}function Ese(i,e){1&i&&B(0,"i",13)}function Ise(i,e){1&i&&B(0,"i",12)}function Ase(i,e){1&i&&B(0,"i",13)}function Pse(i,e){1&i&&B(0,"i",12)}function Fse(i,e){1&i&&B(0,"i",13)}function Rse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,Pse,1,0,"i",7),b(2,Fse,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function Ose(i,e){1&i&&B(0,"i",12)}function Lse(i,e){1&i&&B(0,"i",13)}function Nse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,Ose,1,0,"i",7),b(2,Lse,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function Bse(i,e){if(1&i){const t=re();$r(0),c(1,"div",6),P("click",function(){return E(t),I(g(3).toggleAnswer("true","True"))}),b(2,Sse,1,0,"i",7),b(3,Ese,1,0,"i",8),c(4,"label",9),m(5,"True"),d()(),c(6,"div",6),P("click",function(){return E(t),I(g(3).toggleAnswer("false","False"))}),b(7,Ise,1,0,"i",7),b(8,Ase,1,0,"i",8),c(9,"label",9),m(10,"False"),d()(),b(11,Rse,5,5,"div",10),b(12,Nse,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngIf",t.isAnswerSelected("true")),p(1),h("ngIf",!t.isAnswerSelected("true")),p(4),h("ngIf",t.isAnswerSelected("false")),p(1),h("ngIf",!t.isAnswerSelected("false")),p(3),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Vse(i,e){1&i&&B(0,"i",12)}function $se(i,e){1&i&&B(0,"i",13)}function Hse(i,e){if(1&i){const t=re();c(0,"i",19),P("click",function(){E(t);const r=g().$implicit;return I(g(4).showAnswerHelp(r))}),d()}}function Use(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){const o=E(t).$implicit;return I(g(4).toggleAnswer(o.id,o.answerText))}),b(1,Vse,1,0,"i",7),b(2,$se,1,0,"i",8),c(3,"label",9),m(4),d(),b(5,Hse,1,0,"i",18),d()}if(2&i){const t=e.$implicit,n=g(4);h("ngClass",bt(5,Pr,n.isAnswerSelected(t.id))),p(1),h("ngIf",n.isAnswerSelected(t.id)),p(1),h("ngIf",!n.isAnswerSelected(t.id)),p(2),Ae(t.answerText),p(1),h("ngIf",t.helpText)}}function jse(i,e){1&i&&B(0,"i",12)}function Yse(i,e){1&i&&B(0,"i",13)}function zse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,jse,1,0,"i",7),b(2,Yse,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function Wse(i,e){1&i&&B(0,"i",12)}function qse(i,e){1&i&&B(0,"i",13)}function Gse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,Wse,1,0,"i",7),b(2,qse,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function Kse(i,e){if(1&i){const t=re();$r(0),b(1,Use,6,7,"div",15),c(2,"div",16)(3,"i",17),P("click",function(){return E(t),I(g(3).setNotListed())}),d(),c(4,"label",9),m(5,"My Answer Isn't Listed"),d()(),b(6,zse,5,5,"div",10),b(7,Gse,5,5,"div",10),Hr()}if(2&i){const t=g(3);p(1),h("ngForOf",t.currentQuestion.answers),p(5),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Qse(i,e){1&i&&B(0,"i",12)}function Zse(i,e){1&i&&B(0,"i",13)}function Xse(i,e){if(1&i){const t=re();c(0,"i",19),P("click",function(){E(t);const r=g().$implicit;return I(g(4).showAnswerHelp(r))}),d()}}function Jse(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){const o=E(t).$implicit;return I(g(4).toggleAnswer(o.id,o.answerText))}),b(1,Qse,1,0,"i",7),b(2,Zse,1,0,"i",8),c(3,"label",9),m(4),d(),b(5,Xse,1,0,"i",18),d()}if(2&i){const t=e.$implicit,n=g(4);h("ngClass",bt(5,Pr,n.isAnswerSelected(t.id))),p(1),h("ngIf",n.isAnswerSelected(t.id)),p(1),h("ngIf",!n.isAnswerSelected(t.id)),p(2),Ae(t.answerText),p(1),h("ngIf",t.helpText)}}function ele(i,e){1&i&&B(0,"i",12)}function tle(i,e){1&i&&B(0,"i",13)}function nle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,ele,1,0,"i",7),b(2,tle,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function ile(i,e){1&i&&B(0,"i",12)}function rle(i,e){1&i&&B(0,"i",13)}function ole(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,ile,1,0,"i",7),b(2,rle,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function ale(i,e){if(1&i){const t=re();$r(0),b(1,Jse,6,7,"div",15),c(2,"div",16)(3,"i",17),P("click",function(){return E(t),I(g(3).setNotListed())}),d(),c(4,"label",9),m(5,"My Answer Isn't Listed"),d()(),b(6,nle,5,5,"div",10),b(7,ole,5,5,"div",10),Hr()}if(2&i){const t=g(3);p(1),h("ngForOf",t.currentQuestion.answers),p(5),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function sle(i,e){1&i&&B(0,"i",12)}function lle(i,e){1&i&&B(0,"i",13)}function cle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,sle,1,0,"i",7),b(2,lle,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function dle(i,e){1&i&&B(0,"i",12)}function ule(i,e){1&i&&B(0,"i",13)}function ple(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,dle,1,0,"i",7),b(2,ule,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function hle(i,e){if(1&i){const t=re();$r(0),c(1,"div")(2,"textarea",20),P("ngModelChange",function(r){return E(t),I(g(3).answerTextChanged(r))})("ngModelChange",function(r){return E(t),I(g(3).answerText=r)}),d(),B(3,"br"),d(),b(4,cle,5,5,"div",10),b(5,ple,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngModel",t.answerText),p(2),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function gle(i,e){1&i&&B(0,"i",12)}function fle(i,e){1&i&&B(0,"i",13)}function mle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,gle,1,0,"i",7),b(2,fle,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function _le(i,e){1&i&&B(0,"i",12)}function vle(i,e){1&i&&B(0,"i",13)}function yle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,_le,1,0,"i",7),b(2,vle,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function ble(i,e){if(1&i){const t=re();$r(0),c(1,"div",21)(2,"input",22),P("ngModelChange",function(r){return E(t),I(g(3).answerTextChanged(r))})("ngModelChange",function(r){return E(t),I(g(3).answerText=r)}),d(),B(3,"br"),d(),b(4,mle,5,5,"div",10),b(5,yle,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngModel",t.answerText),p(2),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Cle(i,e){1&i&&B(0,"i",12)}function wle(i,e){1&i&&B(0,"i",13)}function xle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,Cle,1,0,"i",7),b(2,wle,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function kle(i,e){1&i&&B(0,"i",12)}function Mle(i,e){1&i&&B(0,"i",13)}function Dle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,kle,1,0,"i",7),b(2,Mle,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function Tle(i,e){if(1&i){const t=re();$r(0),c(1,"div",21)(2,"input",22),P("ngModelChange",function(r){return E(t),I(g(3).answerTextChanged(r))})("ngModelChange",function(r){return E(t),I(g(3).answerText=r)}),d(),B(3,"br"),d(),b(4,xle,5,5,"div",10),b(5,Dle,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngModel",t.answerText),p(2),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Sle(i,e){1&i&&B(0,"i",12)}function Ele(i,e){1&i&&B(0,"i",13)}function Ile(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,Sle,1,0,"i",7),b(2,Ele,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function Ale(i,e){1&i&&B(0,"i",12)}function Ple(i,e){1&i&&B(0,"i",13)}function Fle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,Ale,1,0,"i",7),b(2,Ple,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function Rle(i,e){if(1&i){const t=re();$r(0),c(1,"div",21)(2,"input",23),P("ngModelChange",function(r){return E(t),I(g(3).answerTextChanged(r))})("ngModelChange",function(r){return E(t),I(g(3).answerText=r)}),d(),B(3,"br"),d(),b(4,Ile,5,5,"div",10),b(5,Fle,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngModel",t.answerText),p(2),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Ole(i,e){1&i&&B(0,"i",12)}function Lle(i,e){1&i&&B(0,"i",13)}function Nle(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).dontKnowTapped())}),b(1,Ole,1,0,"i",7),b(2,Lle,1,0,"i",8),c(3,"label",9),m(4,"Don't Know"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("dontknow"))),p(1),h("ngIf",t.isAnswerSelected("dontknow")),p(1),h("ngIf",!t.isAnswerSelected("dontknow"))}}function Ble(i,e){1&i&&B(0,"i",12)}function Vle(i,e){1&i&&B(0,"i",13)}function $le(i,e){if(1&i){const t=re();c(0,"div",14),P("click",function(){return E(t),I(g(4).notApplicableTapped())}),b(1,Ble,1,0,"i",7),b(2,Vle,1,0,"i",8),c(3,"label",9),m(4,"Not Applicable"),d()()}if(2&i){const t=g(4);h("ngClass",bt(3,Pr,t.isAnswerSelected("notapplicable"))),p(1),h("ngIf",t.isAnswerSelected("notapplicable")),p(1),h("ngIf",!t.isAnswerSelected("notapplicable"))}}function Hle(i,e){if(1&i){const t=re();$r(0),c(1,"div",21)(2,"input",23),P("ngModelChange",function(r){return E(t),I(g(3).answerTextChanged(r))})("ngModelChange",function(r){return E(t),I(g(3).answerText=r)}),d(),B(3,"br"),d(),b(4,Nle,5,5,"div",10),b(5,$le,5,5,"div",11),Hr()}if(2&i){const t=g(3);p(2),h("ngModel",t.answerText),p(2),h("ngIf",t.currentQuestion.addDontKnowOption),p(1),h("ngIf",t.currentQuestion.addNotApplicableOption)}}function Ule(i,e){if(1&i&&($r(0),m(1),Hr()),2&i){const t=g(3);p(1),$e(" Question type not not supported: ",t.currentQuestion.questionType.id," ")}}function jle(i,e){if(1&i&&(c(0,"div"),$r(1,3),b(2,Tse,13,6,"ng-container",4),b(3,Bse,13,6,"ng-container",4),b(4,Kse,8,3,"ng-container",4),b(5,ale,8,3,"ng-container",4),b(6,hle,6,3,"ng-container",4),b(7,ble,6,3,"ng-container",4),b(8,Tle,6,3,"ng-container",4),b(9,Rle,6,3,"ng-container",4),b(10,Hle,6,3,"ng-container",4),b(11,Ule,2,1,"ng-container",5),Hr(),d()),2&i){const t=g(2);p(1),h("ngSwitch",!0),p(1),h("ngSwitchCase","yesno"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","truefalse"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","selectmany"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","multiplechoice"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","freeformtext"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","singlelinetext"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","string"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","integer"==t.currentQuestion.questionType.id),p(1),h("ngSwitchCase","decimal"==t.currentQuestion.questionType.id)}}function Yle(i,e){if(1&i){const t=re();c(0,"div")(1,"div")(2,"h5"),m(3,"Other Answer"),d(),c(4,"textarea",20),P("ngModelChange",function(r){return E(t),I(g(2).otherAnswerText=r)}),d(),B(5,"br"),c(6,"div",24)(7,"button",25),P("click",function(){return E(t),I(g(2).saveOtherOption())}),m(8,"Save"),d(),c(9,"button",26),P("click",function(){return E(t),I(g(2).cancelOtherOption())}),m(10,"Select Answer"),d()()()()}if(2&i){const t=g(2);p(4),h("ngModel",t.otherAnswerText),p(3),h("disabled",""===t.otherAnswerText)}}function zle(i,e){if(1&i&&(c(0,"div"),b(1,jle,12,10,"div",2),b(2,Yle,11,2,"div",2),d()),2&i){const t=g();p(1),h("ngIf",!t.otherAnswer),p(1),h("ngIf",t.otherAnswer)}}class Bb{modalsService;constructor(e){this.modalsService=e}currentSurveyResult;currentQuestionSet;currentQuestion;_answers=[];get answers(){return this._answers}set answers(e){this._answers=e,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 Ie;otherAnswer=!1;otherAnswerText;answerText;ngOnInit(){}isAnswerSelected(e){for(const t of this.answers)if(e===t.answerId||"dontknow"===e&&t.isDontKnow||"notapplicable"===e&&t.isNotApplicable)return!0;return!1}toggleAnswer(e,t){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 lce(i,e){if(1&i){const t=re();c(0,"app-survey-question",55),P("saveAnswer",function(){return E(t),I(g(3).nextQuestion())}),d()}if(2&i){const t=g(3);h("currentSurveyResult",t.backingStore.response)("currentQuestionSet",t.backingStore.currentQuestionSet)("currentQuestion",t.backingStore.currentQuestion)("answers",t.backingStore.currentAnswers)}}function cce(i,e){if(1&i){const t=re();c(0,"button",56),P("click",function(){return E(t),I(g(3).previousQuestion())}),B(1,"i",57),d()}}function dce(i,e){if(1&i){const t=re();c(0,"button",58),P("click",function(){return E(t),I(g(3).nextQuestion())}),m(1,"Next Question "),B(2,"i",59),d()}}function uce(i,e){1&i&&B(0,"app-loading-spinner",60),2&i&&h("caption","saving...")}function pce(i,e){1&i&&B(0,"app-loading-spinner",60),2&i&&h("caption","creating...")}function hce(i,e){1&i&&B(0,"app-loading-spinner",60),2&i&&h("caption","deleting...")}function gce(i,e){1&i&&B(0,"app-loading-spinner",60),2&i&&h("caption","loading...")}function fce(i,e){1&i&&B(0,"app-loading-spinner",60),2&i&&h("caption","loading survey...")}function mce(i,e){if(1&i&&(c(0,"div",23),b(1,tce,4,0,"div",24),c(2,"div",1)(3,"div",25)(4,"div",26)(5,"div",27)(6,"div",28)(7,"div",29)(8,"button",30),m(9),d(),c(10,"div",31),b(11,nce,2,1,"a",32),d()()(),c(12,"div",1)(13,"div",33),b(14,rce,2,5,"button",34),d()(),c(15,"div",1)(16,"div",25)(17,"h4",35),m(18),d(),c(19,"p"),m(20),d()()(),b(21,sce,6,2,"div",36),b(22,lce,1,4,"app-survey-question",37),c(23,"div",38)(24,"div",39),b(25,cce,2,0,"button",40),d(),c(26,"div",41),b(27,dce,3,0,"button",42),d()()()()(),b(28,uce,1,1,"app-loading-spinner",43),b(29,pce,1,1,"app-loading-spinner",43),b(30,hce,1,1,"app-loading-spinner",43),b(31,gce,1,1,"app-loading-spinner",43),b(32,fce,1,1,"app-loading-spinner",43),d()()),2&i){const t=g(2);p(1),h("ngIf",!1),p(8),$e(" ",t.backingStore.currentQuestionSet.name," "),p(2),h("ngForOf",t.backingStore.survey.questionSets),p(3),h("ngForOf",t.backingStore.currentQuestionSet.questions),p(4),Ae(t.backingStore.currentQuestion.questionText),p(2),Ae(t.backingStore.currentQuestion.description),p(1),h("ngIf","childsurveys"==t.backingStore.currentQuestion.questionType.id),p(1),h("ngIf","childsurveys"!=t.backingStore.currentQuestion.questionType.id),p(3),h("ngIf",t.backingStore.hasPreviousQuestion),p(2),h("ngIf",t.backingStore.hasNextQuestion||!t.backingStore.isTopLevel),p(1),h("ngIf",t.backingStore.isSavingAnswer),p(1),h("ngIf",t.backingStore.isCreatingChildSurvey),p(1),h("ngIf",t.backingStore.isDeletingChildSurvey),p(1),h("ngIf",t.backingStore.isLoadingQuestion),p(1),h("ngIf",t.backingStore.isLoadingSurvey)}}function _ce(i,e){if(1&i&&(c(0,"div")(1,"div",3),b(2,Wle,1,0,"i",4),b(3,qle,1,0,"i",4),b(4,Gle,3,1,"span",2),b(5,Kle,3,1,"span",5),b(6,Qle,2,1,"span",2),d(),c(7,"p"),m(8),d(),c(9,"div",6)(10,"div",7),b(11,Jle,6,2,"div",8),b(12,ece,3,0,"div",9),d(),b(13,mce,33,15,"div",10),d()()),2&i){const t=g();p(2),h("ngIf",t.backingStore.isTopLevel&&t.backingStore.fromService),p(1),h("ngIf",!t.backingStore.isTopLevel),p(1),h("ngIf",t.isEditingResponseName),p(1),h("ngIf",!t.isEditingResponseName),p(1),h("ngIf",t.backingStore.survey.name!=t.backingStore.responseName),p(2),Ae(t.backingStore.survey.description),p(3),h("ngForOf",t.backingStore.survey.questionSets),p(1),h("ngIf",t.backingStore.survey.isForWizard&&!1),p(1),h("ngIf",t.backingStore.currentQuestion&&!t.backingStore.isLoadingQuestion&&!t.backingStore.isSavingAnswer&&!t.backingStore.isDeletingChildSurvey&&!t.backingStore.isCreatingChildSurvey)}}class xg{surveysService;modalsService;navService;backingStore;activeRoute;isEditingResponseName=!1;orgNs;constructor(e,t,n,r,o){var a=this;this.surveysService=e,this.modalsService=t,this.navService=n,this.backingStore=r,this.activeRoute=o,this.backingStore.paramsSubscription=this.activeRoute.params.subscribe(function(){var s=O(function*(l){a.orgNs=l.orgns;const u=l.toplevelsurveyid,f=l.childresponseid,v=l.questionid;a.backingStore.fromService=l.fromservice?l.fromservice:"survey",l.fromservicekey&&(a.backingStore.fromServiceKey=l.fromservicekey),console.log(`Top Level Survey Response Id ${u} bstlid: ${a.backingStore.topLevelSurveyResponseId}`),console.log(`Current Child Response Id ${f}`),console.log(`Active Question Id ${v}`),u!==a.backingStore.topLevelSurveyResponseId||f&&a.backingStore.response.rowKey!==f||!f&&a.backingStore.response.rowKey!==u?(a.backingStore.topLevelSurveyResponseId=u,f?yield a.loadChildSurvey(f,v):yield a.loadTopLevelSurvey(v)):yield a.showQuestion(v)});return function(l){return s.apply(this,arguments)}}())}ngOnInit(){}loadTopLevelSurvey(e){var t=this;return O(function*(){t.backingStore.isLoadingSurvey=!0;let n=yield t.surveysService.getSurveyResponse(t.backingStore.topLevelSurveyResponseId,t.backingStore.topLevelSurveyResponseId);console.log(n.response),console.log(n.response.currentQuestionId),t.backingStore.isLoadingSurvey=!1,t.backingStore.response=n.response,t.backingStore.survey=n.survey,t.backingStore.isTopLevel=!0,t.backingStore.responseName=n.response.surveyResponseName,t.backingStore.surveyAnswers=n.answers,t.refreshAnswerStatus(),console.log("Question: ",e,"Current Question Id: ",t.backingStore.response.currentQuestionId),t.showQuestion(void 0!==e?e:t.backingStore.response.currentQuestionId),window.document.title="NuvIoT Survey - "+n.survey.name})()}loadChildSurvey(e,t){var n=this;return O(function*(){n.backingStore.isLoadingSurvey=!0;let r=yield n.surveysService.getSurveyResponse(n.backingStore.topLevelSurveyResponseId,e);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!==t?t:n.backingStore.response.currentQuestionId)})()}findQuestion(e){if(!e||"first"===e)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 t=0;t0||t>0,this.backingStore.hasNextQuestion=t ${t.backingStore.currentQuestion.id}`,t.backingStore.currentQuestion.questionType.id,t.backingStore.currentQuestion.questionText),t.backingStore.isLoadingQuestion=!0,"childsurveys"===t.backingStore.currentQuestion.questionType.id)t.backingStore.childSurveys=yield t.surveysService.getChildSurveys(t.backingStore.topLevelSurveyResponseId,t.backingStore.response.rowKey,t.backingStore.currentQuestion.id),t.backingStore.response.currentQuestionId=t.backingStore.currentQuestion.id,t.backingStore.currentAnswers=null;else{let n=yield t.surveysService.getAnswers(t.backingStore.response.rowKey,t.backingStore.currentQuestion.id);t.backingStore.currentAnswers=n}t.backingStore.isLoadingQuestion=!1,yield t.surveysService.setSurveyCurrentQuestion(t.backingStore.topLevelSurveyResponseId,t.backingStore.response.rowKey,t.backingStore.currentQuestion.id)})()}gotoQuestionSet(e){this.selectQuestion(e.questions[0].id)}gotoNextQuestion(e){for(let t=0;tr.questionId===t.id);t.isAnswered=!1,t.isDontKnow=!1,n&&(t.isDontKnow?t.isDontKnow=!0:t.isAnswered=!0)}}navigate(e){if("customer"==this.backingStore.fromService){let t=["business","customer",this.backingStore.fromServiceKey,"survey","response"];t=t.concat(e),this.navService.goto(t)}else{let t="jobapplication"==this.backingStore.fromService?["public",this.orgNs,"profile","survey"]:[ft.moduleRouteHome,"surveys"];t=t.concat(e),this.navService.goto(t)}}saveAnswers(e="forward"){var t=this;return O(function*(){const n=t.backingStore.currentQuestion.id;t.backingStore.isSavingAnswer=!0,t.backingStore.surveyAnswers=t.backingStore.surveyAnswers.filter(o=>o.questionId!==t.backingStore.currentQuestion.id),yield t.surveysService.updateSurveyAnswer(t.backingStore.response,n,t.backingStore.currentAnswers);for(const o of t.backingStore.currentAnswers)t.backingStore.surveyAnswers.push(o);"up"==e&&t.surveysService.completeChildSurvey(t.backingStore.topLevelSurveyResponseId,t.backingStore.response.rowKey),t.refreshAnswerStatus(),t.backingStore.isSavingAnswer=!1,"forward"===e?t.gotoNextQuestion(n):"back"===e?t.gotoPreviousQuestion(n):"up"==e&&t.showParentResponse()})()}selectQuestion(e){this.navigate(this.backingStore.topLevelSurveyResponseId===this.backingStore.response.rowKey?[this.backingStore.topLevelSurveyResponseId,"question",e]:[this.backingStore.topLevelSurveyResponseId,"child",this.backingStore.response.rowKey,"question",e])}openChildSurvey(e){this.navigate([this.backingStore.topLevelSurveyResponseId,"child",e.rowKey])}showParentResponse(){const e=this.backingStore.response.parentSurveyResponseId;this.navigate(e===this.backingStore.topLevelSurveyResponseId?[this.backingStore.topLevelSurveyResponseId]:[this.backingStore.topLevelSurveyResponseId,"child",e])}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(e=>{this.backingStore.isCreatingChildSurvey=!1,e.successful&&(this.backingStore.childSurveys.push(e.result),this.openChildSurvey(e.result))}).catch(e=>{this.backingStore.isCreatingChildSurvey=!1})}deleteChildSurvey(e){confirm("A you sure you wish to delete this response? This can not be undone.")&&(this.backingStore.isDeletingChildSurvey=!0,this.surveysService.deleteChildSurvey(e.topLevelSurveyResponseId,e.rowKey).then(t=>{if(this.backingStore.isDeletingChildSurvey=!1,t.successful){const n=this.backingStore.childSurveys.indexOf(e);this.backingStore.childSurveys.splice(n,1)}}).catch(t=>{this.backingStore.isDeletingChildSurvey=!1}))}showHelp(e){const t=this.modalsService.open(O_,{size:"lg",container:"nb-layout"});t.componentInstance.modalHeader=`${this.backingStore.survey.name}`,t.componentInstance.subHeader=e.questionText,t.componentInstance.helpContent=e.helpText}nextQuestion(){var e=this;return O(function*(){if("childsurveys"===e.backingStore.currentQuestion.questionType.id)e.gotoNextQuestion(e.backingStore.currentQuestion.id);else if(e.backingStore.hasNextQuestion)e.saveAnswers("forward");else if(e.backingStore.topLevelSurveyResponseId===e.backingStore.response.rowKey){const t=e.backingStore.currentQuestion.id;yield e.surveysService.updateSurveyAnswer(e.backingStore.response,t,e.backingStore.currentAnswers),yield e.completeSurvey()}else e.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(e){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 e=this;return O(function*(){(yield e.surveysService.completeSurvey(e.backingStore.response.topLevelSurveyResponseId)).successful&&(e.backingStore.isTopLevel?e.returnToFromService():e.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"==ft.moduleRouteHome?["public","survey","thankyou"]:[ft.moduleRouteHome,"survey","existing"])}this.backingStore.reset()}export(){window.open(`${ft.siteUri}/api/dataservices/yaml/SurveyResponse/${this.backingStore.topLevelSurveyResponseId}/generate`)}finish(){var e=this;return O(function*(){yield e.saveAnswers(),e.completeSurvey()})()}ngOnDestroy(){this.backingStore.paramsSubscription.unsubscribe(),window.document.title="NuvIoT"}static \u0275fac=function(t){return new(t||xg)(H(ip),H(Pn),H(zr),H(L_),H(mi))};static \u0275cmp=Oe({type:xg,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(t,n){1&t&&(c(0,"div",0)(1,"div",1),b(2,_ce,14,9,"div",2),d()()),2&t&&(p(2),h("ngIf",n.backingStore.survey&&!n.backingStore.isLoadingSurvey))},dependencies:[Vi,Ot,rt,Dn,en,qt,ap,Bb,js],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 JS{lastModifiedDate;size;type;name;constructor(e){let n=function vce(i){return!(!i||!(i.nodeName||i.prop&&i.attr&&i.find))}(e)?e.value:e;this["_createFrom"+("string"==typeof n?"FakePath":"Object")](n)}_createFromFakePath(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+e.slice(e.lastIndexOf(".")+1).toLowerCase(),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)}_createFromObject(e){this.size=e.size,this.type=e.type,this.name=e.name}}class yce{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(e,t,n){this.uploader=e,this.some=t,this.options=n,this.file=new JS(t),this._file=t,this.url=e.options.url,this._zone=new $t({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(e){return{form:e}}onProgress(e){return{progress:e}}onSuccess(e,t,n){return{response:e,status:t,headers:n}}onError(e,t,n){return{response:e,status:t,headers:n}}onCancel(e,t,n){return{response:e,status:t,headers:n}}onComplete(e,t,n){return{response:e,status:t,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(e){this.onBuildForm(e)}_onProgress(e){this._zone.run(()=>{this.progress=e}),this.onProgress(e)}_onSuccess(e,t,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(e,t,n)}_onError(e,t,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(e,t,n)}_onCancel(e,t,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(e,t,n)}_onComplete(e,t,n){this.onComplete(e,t,n),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}class N_{authToken;isUploading=!1;queue=[];progress=0;_nextIndex=0;autoUpload;options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1};_failFilterIndex;constructor(e){this.setOptions(e)}setOptions(e){this.options=Object.assign(this.options,e),this.authToken=e.authToken,this.autoUpload=e.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(e,t,n){let r=[];for(let l of e)r.push(l);let o=this._getFilters(n),a=this.queue.length,s=[];r.map(l=>{t||(t=this.options);let u=new JS(l);if(this._isValidFile(u,o,t)){let f=new yce(this,l,t);s.push(f),this.queue.push(f),this._onAfterAddingFile(f)}else this._onWhenAddingFileFailed(u,o[this._failFilterIndex],t)}),this.queue.length!==a&&(this._onAfterAddingAll(s),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(e){let t=this.getIndexOfItem(e),n=this.queue[t];n.isUploading&&n.cancel(),this.queue.splice(t,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(e){let t=this.getIndexOfItem(e),n=this.queue[t],r=this.options.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[r](n))}cancelItem(e){let t=this.getIndexOfItem(e),n=this.queue[t];n&&n.isUploading&&n[this.options.isHTML5?"_xhr":"_form"].abort()}uploadAll(){let e=this.getNotUploadedItems().filter(t=>!t.isUploading);!e.length||(e.map(t=>t._prepareToUploading()),e[0].upload())}cancelAll(){this.getNotUploadedItems().map(t=>t.cancel())}isFile(e){return function Cce(i){return File&&i instanceof File}(e)}isFileLikeObject(e){return e instanceof JS}getIndexOfItem(e){return"number"==typeof e?e:this.queue.indexOf(e)}getNotUploadedItems(){return this.queue.filter(e=>!e.isUploaded)}getReadyItems(){return this.queue.filter(e=>e.isReady&&!e.isUploading).sort((e,t)=>e.index-t.index)}destroy(){}onAfterAddingAll(e){return{fileItems:e}}onBuildItemForm(e,t){return{fileItem:e,form:t}}onAfterAddingFile(e){return{fileItem:e}}onWhenAddingFileFailed(e,t,n){return{item:e,filter:t,options:n}}onBeforeUploadItem(e){return{fileItem:e}}onProgressItem(e,t){return{fileItem:e,progress:t}}onProgressAll(e){return{progress:e}}onSuccessItem(e,t,n,r){return{item:e,response:t,status:n,headers:r}}onErrorItem(e,t,n,r){return{item:e,response:t,status:n,headers:r}}onCancelItem(e,t,n,r){return{item:e,response:t,status:n,headers:r}}onCompleteItem(e,t,n,r){return{item:e,response:t,status:n,headers:r}}onCompleteAll(){}_mimeTypeFilter(e){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.indexOf(e.type))}_fileSizeFilter(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}_fileTypeFilter(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(class bce{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(e){let t="application";return-1!==this.mime_psd.indexOf(e.type)||e.type.match("image.*")?t="image":e.type.match("video.*")?t="video":e.type.match("audio.*")?t="audio":"application/pdf"===e.type?t="pdf":-1!==this.mime_compress.indexOf(e.type)?t="compress":-1!==this.mime_doc.indexOf(e.type)?t="doc":-1!==this.mime_xsl.indexOf(e.type)?t="xls":-1!==this.mime_ppt.indexOf(e.type)&&(t="ppt"),"application"===t&&(t=this.fileTypeDetection(e.name)),t}static fileTypeDetection(e){let t={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=e.split(".");if(n.length<2)return"application";let r=n[n.length-1].toLowerCase();return void 0===t[r]?"application":t[r]}}.getMimeClass(e)))}_onErrorItem(e,t,n,r){e._onError(t,n,r),this.onErrorItem(e,t,n,r)}_onCompleteItem(e,t,n,r){e._onComplete(t,n,r),this.onCompleteItem(e,t,n,r);let o=this.getReadyItems()[0];this.isUploading=!1,o?o.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}_headersGetter(e){return t=>t?e[t.toLowerCase()]||void 0:e}_xhrTransport(e){let t=e._xhr=new XMLHttpRequest,n=new FormData;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this._onBuildItemForm(e,n),n.append(e.alias,e._file,e.file.name||e._file.some.name),t.upload.onprogress=o=>{let a=Math.round(o.lengthComputable?100*o.loaded/o.total:0);this._onProgressItem(e,a)},t.onload=()=>{let o=this._parseHeaders(t.getAllResponseHeaders()),a=this._transformResponse(t.response,o);this["_on"+(this._isSuccessCode(t.status)?"Success":"Error")+"Item"](e,a,t.status,o),this._onCompleteItem(e,a,t.status,o)},t.onerror=()=>{alert("Upload error");let o=this._parseHeaders(t.getAllResponseHeaders()),a=this._transformResponse(t.response,o);this._onErrorItem(e,a,t.status,o),this._onCompleteItem(e,a,t.status,o)},t.onabort=()=>{alert("Upload canceled");let o=this._parseHeaders(t.getAllResponseHeaders()),a=this._transformResponse(t.response,o);this._onCancelItem(e,a,t.status,o),this._onCompleteItem(e,a,t.status,o)},t.open(e.method,e.url,!0),t.withCredentials=e.withCredentials,this.options.headers)for(let o of this.options.headers)t.setRequestHeader(o.name,o.value);this.authToken&&t.setRequestHeader("Authorization",this.authToken),t.send(n),this._render()}_getTotalProgress(e=0){if(this.options.removeAfterUpload)return e;let t=this.getNotUploadedItems().length,r=100/this.queue.length;return Math.round((t?this.queue.length-t:this.queue.length)*r+e*r/100)}_getFilters(e){if(!e)return this.options.filters;if(Array.isArray(e))return e;if("string"==typeof e){let t=e.match(/[^\s,]+/g);return this.options.filters.filter(n=>-1!==t.indexOf(n.name))}return this.options.filters}_render(){}_queueLimitFilter(){return void 0===this.options.queueLimit||this.queue.length(this._failFilterIndex++,r.fn.call(this,e,n)))}_isSuccessCode(e){return e>=200&&e<300||304===e}_transformResponse(e,t){return e}_parseHeaders(e){let n,r,o,t={};return e&&e.split("\n").map(a=>{o=a.indexOf(":"),n=a.slice(0,o).trim().toLowerCase(),r=a.slice(o+1).trim(),n&&(t[n]=t[n]?t[n]+", "+r:r)}),t}_onWhenAddingFileFailed(e,t,n){this.onWhenAddingFileFailed(e,t,n)}_onAfterAddingFile(e){this.onAfterAddingFile(e)}_onAfterAddingAll(e){this.onAfterAddingAll(e)}_onBeforeUploadItem(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}_onBuildItemForm(e,t){e._onBuildForm(t),this.onBuildItemForm(e,t)}_onProgressItem(e,t){let n=this._getTotalProgress(t);this.progress=n,e._onProgress(t),this.onProgressItem(e,t),this.onProgressAll(n),this._render()}_onSuccessItem(e,t,n,r){e._onSuccess(t,n,r),this.onSuccessItem(e,t,n,r)}_onCancelItem(e,t,n,r){e._onCancel(t,n,r),this.onCancelItem(e,t,n,r)}}class Vb{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class eE{static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new eE(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const r=e.x-t.x,o=e.y-t.y,a=t.x-n.x,s=t.y-n.y,l_x=(e.x+t.x)/2,l_y=(e.y+t.y)/2,u_x=(t.x+n.x)/2,u_y=(t.y+n.y)/2,f=Math.sqrt(r*r+o*o),v=Math.sqrt(a*a+s*s),W=f+v==0?0:v/(f+v),pe=t.x-(u_x+(l_x-u_x)*W),fe=t.y-(u_y+(l_y-u_y)*W);return{c1:new Vb(l_x+pe,l_y+fe),c2:new Vb(u_x+pe,u_y+fe)}}constructor(e,t,n,r,o,a){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=a}length(){let n,r,t=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 u=s-n,f=l-r;t+=Math.sqrt(u*u+f*f)}n=s,r=l}return t}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class Tc extends class wce{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}{constructor(e,t={}){var n,r,o;super(),this.canvas=e,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=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle=null!==(n=t.throttle)&&void 0!==n?n:16,this.minDistance=null!==(r=t.minDistance)&&void 0!==r?r:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions=null!==(o=t.canvasContextOptions)&&void 0!==o?o:{},this._strokeMoveUpdate=this.throttle?function xce(i,e=250){let r,o,a,t=0,n=null;const s=()=>{t=Date.now(),n=null,r=i.apply(o,a),n||(o=null,a=[])};return function(...u){const f=Date.now(),v=e-(f-t);return o=this,a=u,v<=0||v>e?(n&&(clearTimeout(n),n=null),t=f,r=i.apply(o,a),n||(o=null,a=[])):n||(n=window.setTimeout(s,v)),r}}(Tc.prototype._strokeUpdate,this.throttle):Tc.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((n,r)=>{const o=new Image,a=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/a,l=t.height||this.canvas.height/a,u=t.xOffset||0,f=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,u,f,s,l),n()},o.onerror=v=>{r(v)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1})}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?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 e;const t=window.document===this.canvas.ownerDocument?window:null!==(e=this.canvas.ownerDocument.defaultView)&&void 0!==e?e:this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:e}=this._getListenerFunctions();e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp),e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp),e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_isLeftButtonPressed(e,t){return t?1===e.buttons:1==(1&e.buttons)}_pointerEventToSignatureEvent(e){return{event:e,type:e.type,x:e.clientX,y:e.clientY,pressure:"pressure"in e?e.pressure:0}}_touchEventToSignatureEvent(e){const t=e.changedTouches[0];return{event:e,type:e.type,x:t.clientX,y:t.clientY,pressure:t.force}}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;const{addEventListener:n}=this._getListenerFunctions();switch(e.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(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=this._createPoint(e.x,e.y,e.pressure),n=this._data[this._data.length-1],r=n.points,o=r.length>0&&r[r.length-1],a=!!o&&t.distanceTo(o)<=this.minDistance,s=this._getPointGroupOptions(n);if(!o||!o||!a){const l=this._addPoint(t,s);o?l&&this._drawCurve(l,s):this._drawDot(t,s),r.push({time:t.time,x:t.x,y:t.y,pressure:t.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e,t=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(t&&this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_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(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const r=this.canvas.getBoundingClientRect();return new Vb(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],t),o=eE.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(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(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let a=0;a0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const r of e){const{points:o}=r,a=this._getPointGroupOptions(r);if(o.length>1)for(let s=0;s{const v=document.createElement("path");if(!(isNaN(u.control1.x)||isNaN(u.control1.y)||isNaN(u.control2.x)||isNaN(u.control2.y))){const D=`M ${u.startPoint.x.toFixed(3)},${u.startPoint.y.toFixed(3)} C ${u.control1.x.toFixed(3)},${u.control1.y.toFixed(3)} ${u.control2.x.toFixed(3)},${u.control2.y.toFixed(3)} ${u.endPoint.x.toFixed(3)},${u.endPoint.y.toFixed(3)}`;v.setAttribute("d",D),v.setAttribute("stroke-width",(2.25*u.endWidth).toFixed(3)),v.setAttribute("stroke",f),v.setAttribute("fill","none"),v.setAttribute("stroke-linecap","round"),l.appendChild(v)}},(u,{penColor:f,dotSize:v,minWidth:D,maxWidth:A})=>{const W=document.createElement("circle");W.setAttribute("r",(v>0?v:(D+A)/2).toString()),W.setAttribute("cx",u.x.toString()),W.setAttribute("cy",u.y.toString()),W.setAttribute("fill",f),l.appendChild(W)}),l.outerHTML}}class Ys{nuviotClient;_mediaLibraries;_mediaLibrary;_mediaResoures;_mediaResource;_libraries$=new Ut;_library$=new Ut;_resources$=new Ut;_resource$=new Ut;constructor(e){this.nuviotClient=e}loadMediaLibraries(){return this.nuviotClient.getListResponse("/api/media/libraries")}loadMediaLibrariesForCustomer(e){return this.nuviotClient.getListResponse(`/api/customer/${e}/media/libraries`)}loadMediaResources(e){return this.nuviotClient.getListResponse(`/api/media/library/${e}/resources`)}loadMediaResourcesForMediaTypeKey(e){return this.nuviotClient.getListResponse(`/api/media/mediatype/key/${e}/resources`)}createMediaLibrary(){return this.nuviotClient.getFormResponse("/api/media/library/factory")}loadMediaLibrary(e){return this.nuviotClient.getFormResponse(`/api/media/library/${e}`)}insertMediaLibrary(e){return this.nuviotClient.insert("/api/media/library",e)}updateMediaLibrary(e){return this.nuviotClient.update("/api/media/library",e)}saveMediaLibrary(e){return e.isEditing?this.updateMediaLibrary(e.model):this.insertMediaLibrary(e.model)}generateMediaResource(e){return this.nuviotClient.postWithResponse("/api/media/resource/texttospeech",e)}updateGeneratedMediaResource(e,t){return this.nuviotClient.update(`/api/media/resource/texttospeech/${e}`,t)}getVoices(e){return this.nuviotClient.request(`/api/media/resource/texttospeech/voices/${e}`)}createMediaResource(e){return this.nuviotClient.postWithResponse("/api/media/resource/request",e)}cloneMediaResource(e,t,n,r){let o=`/api/media/resource/${e}/clone?t=1`;return n&&(o+=`&entityFieldName=${n}`),t&&(o+=`&entityTypeName=${t}`),r&&(o+=`&resourceName=${r}`),this.nuviotClient.request(o)}setRating(e,t){return this.nuviotClient.updateWithResponse(`/api/entity/${e}/rate/${t}`,{})}clearRating(e){return this.nuviotClient.deleteWithResponse(`/api/entity/${e}/rating`)}assignCategory(e,t){return this.nuviotClient.updateWithResponse(`/api/entity/${e}/category`,t)}newMediaResource(){return this.nuviotClient.getFormResponse("/api/media/resource/factory")}loadMediaResource(e){return this.nuviotClient.getFormResponse(`/api/media/resource/${e}`)}insertMediaResource(e){return this.nuviotClient.postWithResponse("/api/media/resource",e)}updateMediaResource(e){return this.nuviotClient.updateWithResponse("/api/media/resource",e)}setMediaRevision(e,t){return this.nuviotClient.request(`/api/media/resource/${e}/revision/${t}/set`)}getMediaByCategory(e){return this.nuviotClient.getListResponse("/api/media/resources",{categoryKey:e})}getAllMedia(e=1,t=10){return this.nuviotClient.getListResponse("/api/media/resources",{pageIndex:e,pageSize:t})}saveMediaResource(e){return e.isEditing?this.updateMediaResource(e.model):this.insertMediaResource(e.model)}onMediaLibraries(){this._libraries$.asObservable()}onMediaLibrary(){this._library$.asObservable()}onMediaResources(){this._resources$.asObservable()}onMediaResource(){this._resource$.asObservable()}setMediaLibraries(e){this._mediaLibraries=e,this._libraries$.next(e)}setMediaLibrary(e){this._mediaLibrary=e,this._library$.next(e)}setMediaResources(e){this._mediaResoures=e,this._resources$.next(e)}setMediaResource(e){this._mediaResource=e,this._resource$.next(e)}getMediaLibraries(){return this._mediaLibraries}getMediaLibrary(){return this._mediaLibrary}getMediaResources(){return this._mediaResoures}getMediaResource(){return this._mediaResource}searchImages(e,t="smithsonian_air_and_space_museum",n=1){return this.nuviotClient.getListResponse(`/api/media/images/search?term=${e}&source=${t}`,{pageIndex:n,pageSize:20})}resizeMediaResource(e,t){return this.nuviotClient.updateWithResponse(`/api/media/resource/${e}/resize`,t)}static \u0275fac=function(t){return new(t||Ys)(Me(hn))};static \u0275prov=Ue({token:Ys,factory:Ys.\u0275fac,providedIn:"root"})}class ca{nuviotClient;storage;constructor(e,t){this.nuviotClient=e,this.storage=t}getTimeEntriesForTask(e,t,n,r){return this.nuviotClient.postForListResponse("/api/time/entries",{startDate:e,endDate:t,userId:r,workTaskId:n})}getTimeEntriesForUser(e,t,n){return this.nuviotClient.postForListResponse("/api/time/entries",{startDate:e,endDate:t,userId:n})}addTimeEntry(e){var t=this;return O(function*(){const n={project:e.project,workTask:e.workTask},r=yield t.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 t.storage.setItemAsync("time-entry-mru",JSON.stringify(o))}else{const o=[];o.unshift(n),yield t.storage.setItemAsync("time-entry-mru",JSON.stringify(o))}return yield t.nuviotClient.postWithResponse("/api/time/entry",e)})()}updateTimeEntry(e){return this.nuviotClient.updateWithResponse("/api/time/entry",e)}deleteTimeEntry(e){return this.nuviotClient.delete(`/api/time/entry/${e}`)}getExpensesForTask(e,t,n,r){return this.nuviotClient.postForListResponse("/api/expense",{startDate:e,endDate:t,userId:r,taskId:n})}createLocationDiagram(){return this.nuviotClient.getFormResponse("/api/customer/diagram/factory")}getExpensesForUser(e,t,n){return this.nuviotClient.postForListResponse("/api/expense",{startDate:e,endDate:t,userId:n})}addExpenses(e){return this.nuviotClient.postWithResponse("/api/expense",e)}updateExpenses(e){return this.nuviotClient.updateWithResponse("/api/expense",e)}deleteExpenses(e){return this.nuviotClient.delete(`/api/expense/${e}`)}getCallLogForCustomer(e){return this.nuviotClient.getListResponse(`/api/customer/${e}/calllogs`)}getCallLogForCustomerContact(e,t){return this.nuviotClient.getListResponse(`/api/customer/${e}/contact/${t}/calllogs`)}createWorkRole(){return this.nuviotClient.getFormResponse("/api/workrole/factory")}getWorkRole(e){return this.nuviotClient.getFormResponse(`/api/workrole/${e}`)}addWorkRole(e){return this.nuviotClient.post("/api/workrole",e)}updateWorkRole(e){return this.nuviotClient.update("/api/workrole",e)}getWorkRoles(){return this.nuviotClient.getListResponse("/api/workroles")}createBudgetItem(e,t){return this.nuviotClient.getFormResponse(`/api/budget/lineitem/${e}/${t}/factory`)}getBudgetItem(e){return this.nuviotClient.getFormResponse(`/api/budget/lineitem/${e}`)}deleteBudgetItem(e){return this.nuviotClient.delete(`/api/budget/lineitem/${e}`)}addBudgetItem(e){return this.nuviotClient.post("/api/budget/lineitem",e)}updateBudgetItem(e){return this.nuviotClient.update("/api/budget/lineitem",e)}getBudgetItemsForMonth(e,t){return this.nuviotClient.request(`/api/budget/month/${e}/${t}`)}getBudgetItemsForYear(e){return this.nuviotClient.request(`/api/budget/year/${e}`)}cloneBudgetItemsForMonth(e,t,n,r){return this.nuviotClient.request(`/api/budget/clone/${e}/${t}/to/${n}/${r}`)}createIndustry(){return this.nuviotClient.getFormResponse("/api/industry/factory")}getIndustry(e){return this.nuviotClient.getFormResponse(`/api/industry/${e}`)}getIndustriesForPicker(){return this.nuviotClient.request("/api/industries/picker")}getIndustryNichesForPicker(e){return this.nuviotClient.request(`/api/industry/${e}/niches/picker`)}addIndustry(e){return this.nuviotClient.post("/api/industry",e)}updateIndustry(e){return this.nuviotClient.update("/api/industry",e)}generateVPC(e,t){return this.nuviotClient.request(`/api/persona/vpc/generate?q=${encodeURIComponent(e)}&r=${encodeURIComponent(t)}`)}createPersona(){return this.nuviotClient.getFormResponse("/api/persona/factory")}getPersona(e){return this.nuviotClient.getFormResponse(`/api/persona/${e}`)}getPersonas(){return this.nuviotClient.getListResponse("/api/personas")}addPersona(e){return this.nuviotClient.post("/api/persona",e)}updatePersona(e){return this.nuviotClient.update("/api/persona",e)}savePersona(e){var t=this;return O(function*(){if(e.isEditing)return yield t.nuviotClient.updateWithResponse("/api/persona",e.model);{let n=yield t.nuviotClient.postWithResponse("/api/persona",e.model);return n&&n.successful&&(e.isEditing=!0),n}})()}getIndustries(){return this.nuviotClient.getListResponse("/api/industries")}createFollowup(e){return this.nuviotClient.getFormResponse(`/api/customer/${e}/followup/factory`)}editFollowup(e,t){var n=this;return O(function*(){let r=yield n.nuviotClient.getFormResponse(`/api/customer/${e}/followup/factory`);return r.model=t,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(e){return e.isEditing?this.nuviotClient.update("/api/industry",e.model):this.nuviotClient.post("/api/industry",e.model)}getPaymentAccounts(e){return this.nuviotClient.request(`/api/user/${e}/paymentaccounts`)}savePaymentAccounts(e,t){return this.nuviotClient.post(`/api/user/${e}/paymentaccounts`,t)}getTimePeriods(e){return this.nuviotClient.getListResponse(`/api/time/timeperiods/${e}`)}getAllTimePeriods(){return this.nuviotClient.getListResponse("/api/time/timeperiods")}createTimePeriods(e){return this.nuviotClient.getListResponse(`/api/time/timeperiods/${e}/create`)}rateSalesScript(e,t){var n=this;return O(function*(){return n.nuviotClient.request(`/api/sales/script/${e}/stars/${t}`)})()}clearScriptRating(e){var t=this;return O(function*(){return t.nuviotClient.request(`/api/sales/script/${e}/stars/clear`)})()}addLessonLearned(e,t){var n=this;return O(function*(){return n.nuviotClient.post(`/api/sales/script/${e}/lessonslearned`,t)})()}addObjectionHandler(e,t){var n=this;return O(function*(){return n.nuviotClient.post(`/api/sales/script/${e}/objectionhandler`,t)})()}updateObjectionHandler(e,t){var n=this;return O(function*(){return n.nuviotClient.updateWithResponse(`/api/sales/script/${e}/objectionhandler`,t)})()}updateSalesScriptContent(e,t){var n=this;return O(function*(){return n.nuviotClient.updateWithResponse(`/api/sales/script/${e}/content`,t)})()}getSalesScripts(){var e=this;return O(function*(){return e.nuviotClient.getListResponse("/api/sales/scripts")})()}createSalesScript(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/sales/script/factory")})()}createSalesScriptContent(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/sales/script/content/factory")})()}createSalesScriptObjectionHandler(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/sales/script/objectionhandler/factory")})()}getSalesScript(e){var t=this;return O(function*(){return t.nuviotClient.getFormResponse(`/api/sales/script/${e}`)})()}editSalesScriptContentRevision(e){var t=this;return O(function*(){var n=yield t.nuviotClient.getFormResponse("/api/sales/script/content/factory");return n.model=e,n})()}publishSalesScriptContent(e){var t=this;return O(function*(){return t.nuviotClient.updateWithFormResponse("/api/sales/script/content/publish",e)})()}saveSalesScript(e){var t=this;return O(function*(){return e.isEditing?t.updateSalesScript(e.model):t.addSalesScript(e.model)})()}addSalesScript(e){var t=this;return O(function*(){return t.nuviotClient.post("/api/sales/script",e)})()}updateSalesScript(e){var t=this;return O(function*(){return t.nuviotClient.update("/api/sales/script",e)})()}createCustomer(){return this.nuviotClient.getFormResponse("/api/customer/factory")}createCustomerLocation(){return this.nuviotClient.getFormResponse("/api/customer/location/factory")}getCustomerLocation(e){return this.nuviotClient.getFormResponse(`/api/customer/location/${e}`)}editCustomerLocation(e){var t=this;return O(function*(){let n=yield t.createCustomerLocation();return n.model=e,n.isEditing=!0,n})()}createCustomerContact(){return this.nuviotClient.getFormResponse("/api/customer/contact/factory")}editCustomerContact(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/customer/contact/factory");return n.model=e,n.isEditing=!0,n})()}getCustomers(e="-1",t="-1"){let n="/api/customers";return"-1"!=e&&"-1"!=t?n+=`?industry=${t}&stage=${e}`:"-1"!=e?n+=`?stage=${e}`:"-1"!=t&&(n+=`?industry=${t}`),this.nuviotClient.getListResponse(n)}getYearEndTaxReport(e,t){return this.nuviotClient.postWithResponse("/api/reports/taxes/yearend",{startDate:e,endDate:t})}getIncomeStatement(e,t){return this.nuviotClient.request(`/api/business/reports/incomestatment?month=${e}&year=${t}`)}getPayrollForYear(e){return this.nuviotClient.request(`/api/payroll/year/${e}`)}generatePayroll(e){return this.nuviotClient.request(`/api/payroll/generate/${e}`)}getPaymentsForPeriod(e){return this.nuviotClient.request(`/api/payroll/payments/${e}`)}sendPaystub(e){return this.nuviotClient.get(`/api/payroll/paystub/${e}/email`)}getMyPayments(){return this.nuviotClient.request("/api/payroll/payments/my")}updatePayment(e){return this.nuviotClient.updateWithResponse("/api/payment/update",e)}generatePaymentsForPeriod(e){return this.nuviotClient.requestForInvokeResultEx(`/api/payroll/generate/${e}`)}addCustomer(e){return this.nuviotClient.postWithResponse("/api/customer",e)}updateCustomer(e){return this.nuviotClient.updateWithResponse("/api/customer",e)}saveCustomer(e){return e.isEditing?this.nuviotClient.updateWithResponse("/api/customer",e.model):this.nuviotClient.postWithResponse("/api/customer",e.model)}setCustomerAccount(e){return this.nuviotClient.get(`/api/auth/customer/${e}`)}getCustomer(e){return this.nuviotClient.getFormResponse(`/api/customer/${e}`)}getCommunicationTypes(){return this.nuviotClient.request("/api/customer/communication/types")}getCustomerReadOnly(e){return this.nuviotClient.request(`/api/customer/${e}/view`)}createCustomerCommunications(){return this.nuviotClient.request("/api/customer/communications/factory")}deleteCustomer(e){return this.nuviotClient.delete(`/api/customer/${e}`)}getActiveAgreements(e){return this.nuviotClient.request(`/api/agreements/${e}`)}getAgreements(e){return this.nuviotClient.request(`/api/agreements/${e}/active`)}getActiveAgreementSummaries(e){return this.nuviotClient.request(`/api/agreements/${e}/active`)}getAgreementSummariesForCustomer(e){return this.nuviotClient.request(`/api/agreements/${e}`)}getAgreementSummaries(){return this.nuviotClient.request("/api/agreements")}createAgreement(e){return this.nuviotClient.request(`/api/agreement/${e}/factory`)}createAgreementFromProposal(e){return this.nuviotClient.request(`/api/business/proposal/${e}/agreement`)}getAgreement(e){return this.nuviotClient.request(`/api/agreement/${e}`)}addAgreement(e){return this.nuviotClient.postWithResponse("/api/agreement",e)}updateAgreement(e){return this.nuviotClient.updateWithResponse("/api/agreement",e)}saveAgreement(e){return e.isEditing?this.updateAgreement(e.model):this.addAgreement(e.model)}deleteAgreement(e){return this.nuviotClient.delete(`/api/agreement/${e}`)}getCurrentPayRate(e){return this.nuviotClient.request(`/api/payrate/user/${e}/current`)}getUserPayRates(e){return this.nuviotClient.getListResponse(`/api/payrate/user/${e}`)}getPayRate(e){return this.nuviotClient.request(`/api/payrate/${e}`)}savePayRate(e){return e.id?this.nuviotClient.updateWithResponse("/api/payrate",e):this.nuviotClient.postWithResponse("/api/payrate",e)}deletePayRate(e){return this.nuviotClient.delete(`/api/payrate/${e}`)}getTimeReport(e){return this.nuviotClient.postWithResponse("/api/reports/time",e)}downloadExcel(e){let t=`${ft.siteUri}/api/reports/time/xlsx?entityGroupBy=${e.entityGroupBy}`;e.startDate&&(t+=`&startDate=${encodeURIComponent(e.startDate)}`),e.endDate&&(t+=`&endDate=${encodeURIComponent(e.endDate)}`),e.userId&&(t+=`&userId=${encodeURIComponent(e.userId)}`),e.clientId&&(t+=`&userId=${encodeURIComponent(e.clientId)}`),e.agreementId&&(t+=`&userId=${encodeURIComponent(e.agreementId)}`),e.projectId&&(t+=`&projectId=${encodeURIComponent(e.projectId)}`),e.workTaskId&&(t+=`&workTaskId=${encodeURIComponent(e.workTaskId)}`),e.includeFinancial&&(t+="&includeFinancial=true"),e.includeTaskDetails&&(t+="&includeTaskDetails=true"),e.timePeriodId&&(t+=`&timePeriodId=${encodeURIComponent(e.timePeriodId)}`),window.open(t,"_blank")}lockTimePeriod(e){return this.nuviotClient.request(`/api/time/timeperiod/${e}/lock`)}unlockTimePeriod(e){return this.nuviotClient.request(`/api/time/timeperiod/${e}/unlock`)}getInvoices(){return this.nuviotClient.request("/api/invoices")}getInvoiceStatusList(){return this.nuviotClient.request("/api/invoice/status/options")}getInvoicesForCustomer(e){return this.nuviotClient.request(`/api/customer/${e}/invoices`)}getInvoicesForAgreement(e){return this.nuviotClient.request(`/api/agreement/${e}/invoices`)}getChildInvoices(e){return this.nuviotClient.request(`/api/invoice/${e}/splits`)}getInvoicesForSubscription(e){return this.nuviotClient.request(`/api/subscription/${e}/invoices`)}getInvoice(e){return this.nuviotClient.request(`/api/invoice/${e}`)}deleteInvoice(e){return this.nuviotClient.delete(`/api/invoice/${e}`)}updateInvoice(e){return this.nuviotClient.update("/api/invoice",e)}updateInvoiceNotes(e,t){return this.nuviotClient.get(`/api/invoice/${e}/notes?notes=${encodeURIComponent(t)}`)}updateInvoiceDueDate(e,t){return this.nuviotClient.get(`/api/invoice/${e}/dueDate/${encodeURIComponent(t)}`)}updateInvoiceStatus(e,t){return this.nuviotClient.get(`/api/invoice/${e}/status/${t}`)}createInvoice(e,t,n){return this.nuviotClient.request(`/api/invoice/${e}/${t}/${n}`)}generatePreviewInvoice(e,t,n){window.open(`${ft.siteUri}/api/invoice/${e}/${t}/${n}/preview`)}createSplitInvoiceRequest(){return this.nuviotClient.getFormResponse("/api/invoice/split/request/factory")}splitInvoice(e,t){return this.nuviotClient.postForListResponse(`/api/invoice/${e}/split`,t)}removeSplitInvoice(e){return this.nuviotClient.delete(`/api/invoice/${e}/split`)}getAccounts(){return this.nuviotClient.getListResponse("/api/accounts")}getActiveAccounts(){return this.nuviotClient.getListResponse("/api/accounts/active")}getAccount(e){return this.nuviotClient.request(`/api/account/${e}`)}getAccountTransactions(e,t,n){var r=this;return O(function*(){return yield r.nuviotClient.getListResponse(`/api/account/${e}/transactions`,{start:t,end:n})})()}addAccount(e){return this.nuviotClient.postWithResponse("/api/account",e)}updateAccount(e){return this.nuviotClient.updateWithResponse("/api/account",e)}getTransactionCategories(){return this.nuviotClient.getListResponse("/api/account/transaction/categories")}createTransactionCategory(){return this.nuviotClient.getFormResponse("/api/account/transaction/category/factory")}getTransactionCategory(e){return this.nuviotClient.getFormResponse(`/api/account/transaction/category/${e}`)}getActiveTransactionCategories(){return this.nuviotClient.getListResponse("/api/account/transaction/categories/active")}addTransactionCategory(e){return this.nuviotClient.postWithResponse("/api/account/transaction/category",e)}updateTransactionCategory(e){return this.nuviotClient.updateWithResponse("/api/account/transaction/category",e)}getVendors(){return this.nuviotClient.getListResponse("/api/vendors")}createVendor(){return this.nuviotClient.getFormResponse("/api/vendor/factory")}getVendor(e){return this.nuviotClient.getFormResponse(`/api/vendor/${e}`)}getActiveVendors(){return this.nuviotClient.getListResponse("/api/vendors/active")}addVendor(e){return this.nuviotClient.postWithResponse("/api/vendor",e)}updateVendor(e){return this.nuviotClient.updateWithResponse("/api/vendor",e)}saveVendor(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateVendor(e.model);{let n=yield t.addVendor(e.model);return n.successful&&(e.isEditing=!0),n}})()}getTransaction(e,t){return this.nuviotClient.request(`/api/account/${e}/transaction/${t}`)}addTransaction(e,t){return this.nuviotClient.postWithResponse(`/api/account/${e}/transaction`,t)}updateTransaction(e,t){return this.nuviotClient.updateWithResponse(`/api/account/${e}/transaction`,t)}voidTransaction(e,t){return this.nuviotClient.deleteWithResponse(`/api/account/${e}/transaction/${t}/void`)}createCalendarEvent(){return this.nuviotClient.getFormResponse("/api/calendar/event/factory")}getCalendarEvent(e){return this.nuviotClient.getFormResponse(`/api/calendar/event/${e}`)}addCalendarEvent(e){return this.nuviotClient.postWithResponse("/api/calendar/event",e)}updateCalendarEvent(e){return this.nuviotClient.updateWithResponse("/api/calendar/event",e)}getCalendarEventsForMonth(e,t){return this.nuviotClient.getListResponse(`/api/calendar/month/${e}/${t}`)}getCalendarEventsForWeek(e,t,n){return this.nuviotClient.getListResponse(`/api/calendar/week/${e}/${t}/${n}`)}getCalendarEventsForDay(e,t,n){return this.nuviotClient.getListResponse(`/api/calendar/day/${e}/${t}/${n}`)}getExpensesForMonth(e,t){return this.nuviotClient.getListResponse(`/api/expenses/${e}/${t}`)}getExpenseDetailsForMonthForCategory(e,t,n){return this.nuviotClient.getListResponse(`/api/expenses/${e}/${t}/category/${n}`)}getExpenseDetailsForYearForCategory(e,t){return this.nuviotClient.getListResponse(`/api/expenses/${e}/category/${t}`)}getExpensesSummariesForMonth(e,t){return this.nuviotClient.getListResponse(`/api/expenses/${e}/${t}/summary/category`)}getExpensesForYear(e){return this.nuviotClient.getListResponse(`/api/expenses/${e}`)}getExpensesSummariesForYear(e){return this.nuviotClient.getListResponse(`/api/expenses/${e}/summary/category`)}validatePhoneNumber(e){return this.nuviotClient.request(`/api/customer/contact/phone/${e}/verify`)}sendEmailAsync(e,t,n){return this.nuviotClient.postWithResponse(`/api/customer/${e}/${t}/email`,n)}getCustomerMetricsByIndustryNiche(e){return this.nuviotClient.request(`/api/customers/counts?onlytargetted=${e}`)}addSalesScriptDiscussion(e,t){var n=this;return O(function*(){let r=yield n.nuviotClient.request("/api/discussion/factory");return r.note=t,(yield n.nuviotClient.postWithResponse(`/api/sales/script/${e}/discussion`,r)).result})()}getEmailCommunicationsLog(e){var t=this;return O(function*(){return t.nuviotClient.getListResponse(`/api/customer/communications/email/${e}`)})()}addEmailTemplate(e){return this.nuviotClient.post("/api/sales/emailtemplate",e)}getEmailTemplates(){return this.nuviotClient.getListResponse("/api/sales/emailtemplates")}renderEmail(e){return this.nuviotClient.postWithResponse("/api/sales/emailtemplate/render",e)}sendTestEmail(e){return this.nuviotClient.post("/api/sales/emailtemplates/testsend",e)}getEmailTemplate(e){return this.nuviotClient.request(`/api/sales/emailtemplate/${e}`)}updateEmailTemplate(e){return this.nuviotClient.update("/api/sales/emailtemplate",e)}deleteEmailTemplate(e){return this.nuviotClient.delete(`/api/sales/emailtemplate/${e}`)}saveEmailTemplate(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateEmailTemplate(e.model);{let n=yield t.addEmailTemplate(e.model);return e.isEditing=!0,n}})()}createEmailTemplateLayout(){return this.nuviotClient.getFormResponse("/api/sales/emailtemplate/layout/factory")}addEmailTemplateLayout(e){return this.nuviotClient.post("/api/sales/emailtemplate/layout",e)}getEmailTemplateLayouts(){return this.nuviotClient.getListResponse("/api/sales/emailtemplate/layouts")}getEmailTemplateLayout(e){return this.nuviotClient.request(`/api/sales/emailtemplate/layout/${e}`)}updateEmailTemplateLayout(e){return this.nuviotClient.update("/api/sales/emailtemplate/layout",e)}deleteEmailTemplateLayout(e){return this.nuviotClient.delete(`/api/sales/emailtemplate/layout/${e}`)}saveEmailTemplateLayout(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateEmailTemplateLayout(e.model);{let n=yield t.addEmailTemplateLayout(e.model);return e.isEditing=!0,n}})()}createEmailTemplateColorPalette(){return this.nuviotClient.getFormResponse("/api/sales/emailtemplate/palette/factory")}addEmailTemplateColorPalette(e){return this.nuviotClient.post("/api/sales/emailtemplate/palette",e)}getEmailTemplateColorPalettes(){return this.nuviotClient.getListResponse("/api/sales/emailtemplate/palettes")}getEmailTemplateColorPalette(e){return this.nuviotClient.request(`/api/sales/emailtemplate/palette/${e}`)}updateEmailTemplateColorPalette(e){return this.nuviotClient.update("/api/sales/emailtemplate/palette",e)}deleteEmailTemplateColorPalette(e){return this.nuviotClient.delete(`/api/sales/emailtemplate/palette/${e}`)}saveEmailTemplateColorPalette(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateEmailTemplateColorPalette(e.model);{let n=yield t.addEmailTemplateColorPalette(e.model);return e.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(e){return this.nuviotClient.post("/api/email/send",e)}refreshEmailLinks(e,t){var n=this;return O(function*(){return yield n.nuviotClient.postWithResponse("/api/email/refreshlinks",{body:e,pageLinks:t})})()}moveCustomer(e){return this.nuviotClient.post("/api/customer/move",e)}getIndustriesForOrgAsync(e){return this.nuviotClient.getListResponse(`/api/industries/org/${e}`)}getIndustryForOtherOrgAsync(e){return this.nuviotClient.request(`/api/industry/crossorg/${e}`)}createRecipient(){return this.nuviotClient.getFormResponse("/api/recipient/factory")}createContactIntake(e,t,n,r,o,a,s,l,u,f=null,v=null,D){let A="/api/public/contacts/intake?t=1";return e&&(A+=`&ons=${e}`),t&&(A+=`&o=${t}`),n&&(A+=`&l=${n}`),r&&(A+=`&c=${r}`),o&&(A+=`&p=${o}`),a&&(A+=`&i=${a}`),s&&(A+=`&n=${s}`),u&&(A+=`&ipr=${u}`),l&&(A+=`&npr=${l}`),f&&(A+=`&e=${f}`),v&&(A+=`&t=${v}`),D&&(A+=`&s=${D}`),this.nuviotClient.request(A)}saveContact(e){return this.nuviotClient.postWithResponse("/api/public/contact/intake",e)}getLandingPagesForIndustry(e){return this.nuviotClient.getListResponse(`/api/industry/${e}/landingpages`)}getLandingPagesForIndustryPersona(e,t){return this.nuviotClient.getListResponse(`/api/industry/${e}/persona/${t}/landingpages`)}getLandingPagesForIndustryNiche(e,t){return this.nuviotClient.getListResponse(`/api/industry/${e}/niche/${t}/landingpages`)}getLandingPagesForIndustryNichePersona(e,t,n){return this.nuviotClient.getListResponse(`/api/industry/${e}/niche/${t}/persona/${n}/landingpages`)}createPaymentProcessor(){return this.nuviotClient.getFormResponse("/api/paymentprocessor/factory")}getPaymentProcessors(){return this.nuviotClient.getListResponse("/api/paymentprocessors")}getPaymentProcessor(e){return this.nuviotClient.getFormResponse(`/api/paymentprocessor/${e}`)}addPaymentProcessor(e){return this.nuviotClient.post("/api/paymentprocessor",e)}updatePaymentProcessor(e){return this.nuviotClient.update("/api/paymentprocessor",e)}savePaymentProcessor(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updatePaymentProcessor(e.model);{let n=t.addPaymentProcessor(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}initApplePaySession(e,t){var n=this;return O(function*(){return n.nuviotClient.request(`/api/paymentprocessor/${e}/applepay/${t}/init`)})()}createCustomerOpportunity(){return this.nuviotClient.getFormResponse("/api/customer/opportunity/factory")}getCustomerOpportunities(){return this.nuviotClient.getListResponse("/api/customer/opportunities")}getOpportunitiesForCustomer(e){return this.nuviotClient.getListResponse(`/api/customer/${e}/opportunities`)}getCustomerOpportunity(e){return this.nuviotClient.getFormResponse(`/api/customer/opportunity/${e}`)}addCustomerOpportunity(e){return this.nuviotClient.post("/api/customer/opportunity",e)}updateCustomerOpportunity(e){return this.nuviotClient.update("/api/customer/opportunity",e)}saveCustomerOpportunity(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateCustomerOpportunity(e.model);{let n=t.addCustomerOpportunity(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}createCustomerOpportunityBlocker(){return this.nuviotClient.getFormResponse("/api/customer/opportunity/blocker/factory")}createCustomerOpportunityNextStep(){return this.nuviotClient.getFormResponse("/api/customer/opportunity/nextstep/factory")}getProposalPreview(e){return this.nuviotClient.request(`/api/business/proposal/${e}/preview`)}createProposal(){return this.nuviotClient.getFormResponse("/api/business/proposal/factory")}createProposalForCustomer(e){return this.nuviotClient.getFormResponse(`/api/business/proposal/${e}/factory`)}getAllProposals(){return this.nuviotClient.getListResponse("/api/business/proposals")}getProposalForCustomers(e){return this.nuviotClient.getListResponse(`/api/business/proposals/${e}`)}getProposal(e){return this.nuviotClient.getFormResponse(`/api/business/proposal/${e}`)}addProposal(e){return this.nuviotClient.post("/api/business/proposal",e)}updateProposal(e){return this.nuviotClient.update("/api/business/proposal",e)}saveProposal(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateProposal(e.model);{let n=t.addProposal(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}createProposalLineItem(e,t){return this.nuviotClient.getFormResponse(`/api/business/proposal/${e}/lineitem/${t}/factory`)}editProposalLineItem(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/business/proposal/lineitem/factory");return n.model=e,n.isEditing=!0,n})()}deleteProposal(e){return this.nuviotClient.delete(`/api/business/proposal/${e}`)}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(e){return this.nuviotClient.getFormResponse(`/api/projection/${e}`)}addProjection(e){return this.nuviotClient.post("/api/projection",e)}calculateProjection(e){return this.nuviotClient.updateWithResponse("/api/projection/calculate",e)}updateProjection(e){return this.nuviotClient.update("/api/projection",e)}saveProjection(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateProjection(e.model);{let n=t.addProjection(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}addCapTable(e){return this.nuviotClient.post("/api/captable",e)}updateCapTable(e){return this.nuviotClient.update("/api/captable",e)}getCapTable(e){return this.nuviotClient.getFormResponse(`/api/captable/${e}`)}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(e,t){return this.nuviotClient.request(`/api/captable/${e}/distributions/${t}`)}saveCapTable(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateCapTable(e.model);{let n=t.addCapTable(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getCapTables(){return this.nuviotClient.getListResponse("/api/captables")}addCapTableTransaction(e,t){return this.nuviotClient.post(`/api/captable/${e}/transaction`,t)}addShareHolder(e,t){return this.nuviotClient.post(`/api/captable/${e}/shareholder`,t)}updateShareHolder(e,t){return this.nuviotClient.update(`/api/captable/${e}shareholder`,t)}saveShareHolder(e,t){var n=this;return O(function*(){if(t.isEditing)return yield n.updateShareHolder(e,t.model);{let r=yield n.addShareHolder(e,t.model);return r.successful&&(t.isEditing=!0),r}})()}createSignedDocument(){return this.nuviotClient.getFormResponse("/api/business/signeddocument/factory")}addSignedDocument(e){return this.nuviotClient.post("/api/business/signeddocument",e)}updateSignedDocument(e){return this.nuviotClient.update("/api/business/signeddocument",e)}saveSignedDocument(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateSignedDocument(e.model);let n=t.addSignedDocument(e.model);return(yield n).successful&&(e.isEditing=!0),n})()}deleteSignedDocument(e){return this.nuviotClient.delete(`/api/business/signeddocument/${e}`)}getSignedDocument(e){return this.nuviotClient.getFormResponse(`/api/business/signeddocument/${e}`)}getSignedDocuments(){return this.nuviotClient.getListResponse("/api/business/signeddocuments")}getSignedDocumentsForCustomer(e,t){let n=`/api/business/signeddocuments/customer/${e}`;return t&&(n+=`?type=${t}`),this.nuviotClient.getListResponse(n)}getSignedDocumentsForAppUser(e){return this.nuviotClient.getListResponse(`/api/business/signeddocuments/appuser/${e}`)}createSignee(){return this.nuviotClient.getFormResponse("/api/business/signeddocument/signee/factory")}attachSignee(e,t){return this.nuviotClient.post(`/api/business/signeddocument/${e}/signee`,t)}updateSignee(e,t){return this.nuviotClient.updateWithResponse(`/api/business/signeddocument/${e}/signee`,t)}requestSignatures(e){return this.nuviotClient.request(`/api/business/signeddocument/${e}/signees/request`)}sentPinViaEmail(e,t){return this.nuviotClient.request(`/api/business/signeddocument/${e}/signee/${t}/pin/email/send`)}sentPinViaPhone(e,t){return this.nuviotClient.request(`/api/business/signeddocument/${e}/signee/${t}/pin/email/send`)}completeSignature(e,t){return this.nuviotClient.post(`/api/business/signeddocument/${e}/signee/complete`,t)}getDocumentToSign(e,t){return this.nuviotClient.request(`/api/business/signeddocument/${e}/signee/${t}/sign`)}createUserAgreement(e,t){return this.nuviotClient.postWithResponse(`/api/customer/useragreement/${e}/factory`,t)}createServicesAgreement(e,t){return this.nuviotClient.postWithResponse(`/api/customer/servicesagreement/${e}/factory`,t)}getSalesProcesses(){return this.nuviotClient.getListResponse("/api/sales/processes")}addSalesProcess(e){return this.nuviotClient.post("/api/sales/process",e)}updateSalesProcess(e){return this.nuviotClient.update("/api/sales/process",e)}getSalesProcess(e){return this.nuviotClient.getFormResponse(`/api/sales/process/${e}`)}deleteSalesProcess(e){return this.nuviotClient.delete(`/api/sales/process/${e}`)}createSalesProcess(){return this.nuviotClient.getFormResponse("/api/sales/process/factory")}createSalesProcessMileStone(){return this.nuviotClient.getFormResponse("/api/sales/process/milestone/factory")}saveSalesProcess(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateSalesProcess(e.model);{let n=t.addSalesProcess(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getLandingPages(){return this.nuviotClient.getListResponse("/api/landingpages")}addLandingPage(e){return this.nuviotClient.post("/api/landingpage",e)}updateLandingPage(e){return this.nuviotClient.update("/api/landingpage",e)}getLandingPage(e){return this.nuviotClient.getFormResponse(`/api/landingpage/${e}`)}deleteLandingPage(e){return this.nuviotClient.delete(`/api/landingpage/${e}`)}createLandingPage(){return this.nuviotClient.getFormResponse("/api/landingpage/factory")}saveLandingPage(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateLandingPage(e.model);{let n=t.addLandingPage(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getLandingPagePalettes(){return this.nuviotClient.getListResponse("/api/landingpage/palettes")}addLandingPagePalette(e){return this.nuviotClient.post("/api/landingpage/palette",e)}updateLandingPagePalette(e){return this.nuviotClient.update("/api/landingpage/palette",e)}getLandingPagePalette(e){return this.nuviotClient.getFormResponse(`/api/landingpage/palette/${e}`)}deleteLandingPagePalette(e){return this.nuviotClient.delete(`/api/landingpage/palette/${e}`)}createLandingPagePalette(){return this.nuviotClient.getFormResponse("/api/landingpage/palette/factory")}saveLandingPagePalette(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateLandingPagePalette(e.model);{let n=t.addLandingPagePalette(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getProductPageLayouts(){return this.nuviotClient.getListResponse("/api/productpage/layouts")}addProductPageLayout(e){return this.nuviotClient.post("/api/productpage/layout",e)}updateProductPageLayout(e){return this.nuviotClient.update("/api/productpage/layout",e)}getProductPageLayout(e){return this.nuviotClient.getFormResponse(`/api/productpage/layout/${e}`)}deleteProductPageLayout(e){return this.nuviotClient.delete(`/api/productpage/layout/${e}`)}createProductPageLayout(){return this.nuviotClient.getFormResponse("/api/productpage/layout/factory")}saveProductPageLayout(e){var t=this;return O(function*(){if(e.isEditing)return yield t.addProductPageLayout(e.model);{let n=t.updateProductPageLayout(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getLandingPageLayouts(){return this.nuviotClient.getListResponse("/api/landingpage/layouts")}addLandingPageLayout(e){return this.nuviotClient.post("/api/landingpage/layout",e)}updateLandingPageLayout(e){return this.nuviotClient.update("/api/landingpage/layout",e)}getLandingPageLayout(e){return this.nuviotClient.getFormResponse(`/api/landingpage/layout/${e}`)}deleteLandingPageLayout(e){return this.nuviotClient.delete(`/api/landingpage/layout/${e}`)}createLandingPageLayout(){return this.nuviotClient.getFormResponse("/api/landingpage/layout/factory")}saveLandingPageLayout(e){var t=this;return O(function*(){if(e.isEditing)return yield t.addLandingPageLayout(e.model);{let n=t.updateLandingPageLayout(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getLandingPageMenus(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/landingpage/menus")})()}getLandingPageMenu(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/landingpage/menu/${e}`)})()}createLandingPageMenu(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/landingpage/menu/factory")})()}addLandingPageMenu(e){return this.nuviotClient.insert("/api/landingpage/menu",e)}updateLandingPageMenu(e){return this.nuviotClient.insert("/api/landingpage/menu",e)}deleteLandingPageMenu(e){return this.nuviotClient.delete(`/api/landingpage/menu/${e}`)}saveLandingPageMenu(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateLandingPageMenu(e.model);var n=yield t.addLandingPageMenu(e.model);return e.isEditing=!0,n})()}createPageLink(){return this.nuviotClient.getFormResponse("/api/pagelink/factory")}editPageLink(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/pagelink/factory");return n.model=e,n.isEditing=!0,n})()}static \u0275fac=function(t){return new(t||ca)(Me(hn),Me(fo))};static \u0275prov=Ue({token:ca,factory:ca.\u0275fac,providedIn:"root"})}let tE;try{tE=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tE=!1}let kg,mo=(()=>{class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Ls(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&&!tE)&&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(t){return new(t||i)(Me(_d))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const XB=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function JB(){if(kg)return kg;if("object"!=typeof document||!document)return kg=new Set(XB),kg;let i=document.createElement("input");return kg=new Set(XB.filter(e=>(i.setAttribute("type",e),i.type===e))),kg}let B_,sp,nE;function Sc(i){return function kce(){if(null==B_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>B_=!0}))}finally{B_=B_||!1}return B_}()?i:!!i.capture}function Mce(){if(null==sp){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return sp=!1,sp;if("scrollBehavior"in document.documentElement.style)sp=!0;else{const i=Element.prototype.scrollTo;sp=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return sp}function iE(i){if(function Dce(){if(null==nE){const i=typeof document<"u"?document.head:null;nE=!(!i||!i.createShadowRoot&&!i.attachShadow)}return nE}()){const e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function V_(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function zs(i){return i.composedPath?i.composedPath()[0]:i.target}function rE(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Fd(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function oE(i,e=b_){return Be((t,n)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const u=o;o=null,n.next(u)}};function l(){const u=a+i,f=e.now();if(f{o=u,a=e.now(),r||(r=e.schedule(l,i),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function Mi(i){return null!=i&&"false"!=`${i}`}function pp(i,e=0){return function Nce(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):e}function H_(i){return Array.isArray(i)?i:[i]}function Fr(i){return null==i?"":"string"==typeof i?i:`${i}px`}function vr(i){return i instanceof At?i.nativeElement:i}let e6=(()=>{class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Vce=(()=>{class i{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){const n=vr(t);return new S(r=>{const a=this._observeElement(n).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const n=new Ce,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:n,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:n,stream:r}=this._observedElements.get(t);n&&n.disconnect(),r.complete(),this._observedElements.delete(t)}}}return i.\u0275fac=function(t){return new(t||i)(Me(e6))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),aE=(()=>{class i{constructor(t,n,r){this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new Ie,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Mi(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pp(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(oE(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)(H(Vce),H(At),H($t))},i.\u0275dir=ot({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),zb=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[e6]}),i})();const t6=new Set;let Mg,$ce=(()=>{class i{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Uce}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function Hce(i){if(!t6.has(i))try{Mg||(Mg=document.createElement("style"),Mg.setAttribute("type","text/css"),document.head.appendChild(Mg)),Mg.sheet&&(Mg.sheet.insertRule(`@media ${i} {body{ }}`,0),t6.add(i))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return i.\u0275fac=function(t){return new(t||i)(Me(mo))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Uce(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let jce=(()=>{class i{constructor(t,n){this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return n6(H_(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=r_(n6(H_(t)).map(a=>this._registerQuery(a).observable));return o=tg(o.pipe(Xn(1)),o.pipe(fb(1),oE(0))),o.pipe(Ve(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const n=this._mediaMatcher.matchMedia(t),o={observable:new S(a=>{const s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(rr(n),Ve(({matches:a})=>({query:t,matches:a})),Lt(this._destroySubject)),mql:n};return this._queries.set(t,o),o}}return i.\u0275fac=function(t){return new(t||i)(Me($ce),Me($t))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function n6(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}class o6 extends class Wce{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ce,this._typeaheadSubscription=x.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Ce,this.change=new Ce,e instanceof md&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ir(t=>this._pressedLetters.push(t)),oE(e),Li(()=>this._pressedLetters.length>0),Ve(()=>this._pressedLetters.join(""))).subscribe(t=>{const n=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){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||Fd(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.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(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e);this._activeItem=t[n]??null,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof md?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let Wb=(()=>{class i{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function Gce(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const n=function qce(i){try{return i.frameElement}catch{return null}}(function nde(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(t));if(n&&(-1===s6(n)||!this.isVisible(n)))return!1;let r=t.nodeName.toLowerCase(),o=s6(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function ede(i){let e=i.nodeName.toLowerCase(),t="input"===e&&i.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,n){return function tde(i){return!function Qce(i){return function Xce(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function Kce(i){let e=i.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(i)||function Zce(i){return function Jce(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||a6(i))}(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}}return i.\u0275fac=function(t){return new(t||i)(Me(mo))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function a6(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let e=i.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function s6(i){if(!a6(i))return null;const e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class ide{constructor(e,t,n,r,o=!1){this._element=e,this._checker=t,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(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.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(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let n=0;n=0;n--){const r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Xn(1)).subscribe(e)}}let qb=(()=>{class i{constructor(t,n,r){this._checker=t,this._ngZone=n,this._document=r}create(t,n=!1){return new ide(t,this._checker,this._ngZone,this._document,n)}}return i.\u0275fac=function(t){return new(t||i)(Me(Wb),Me($t),Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),rde=(()=>{class i{constructor(t,n,r){this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Mi(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Mi(t)}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(t){const n=t.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=V_(),this.focusTrap.focusInitialElementWhenReady()}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(qb),H(Jt))},i.\u0275dir=ot({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[li]}),i})();function Gb(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function Kb(i){const e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const ode=new Xe("cdk-input-modality-detector-options"),ade={ignoreKeys:[18,17,224,91,16]},Dg=Sc({passive:!0,capture:!0});let sde=(()=>{class i{constructor(t,n,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Ai(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=zs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Gb(a)?"keyboard":"mouse"),this._mostRecentTarget=zs(a))},this._onTouchstart=a=>{Kb(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=zs(a))},this._options={...ade,...o},this.modalityDetected=this._modality.pipe(fb(1)),this.modalityChanged=this.modalityDetected.pipe(pg()),t.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dg),r.addEventListener("mousedown",this._onMousedown,Dg),r.addEventListener("touchstart",this._onTouchstart,Dg)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dg),document.removeEventListener("mousedown",this._onMousedown,Dg),document.removeEventListener("touchstart",this._onTouchstart,Dg))}}return i.\u0275fac=function(t){return new(t||i)(Me(mo),Me($t),Me(Jt),Me(ode,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const cde=new Xe("cdk-focus-monitor-default-options"),Qb=Sc({passive:!0,capture:!0});let Rd=(()=>{class i{constructor(t,n,r,o,a){this._ngZone=t,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 Ce,this._rootNodeFocusAndBlurListener=s=>{for(let u=zs(s);u;u=u.parentElement)"focus"===s.type?this._onFocus(s,u):this._onBlur(s,u)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,n=!1){const r=vr(t);if(!this._platform.isBrowser||1!==r.nodeType)return Pt(null);const o=iE(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new Ce,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(t){const n=vr(t),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(t,n,r){const o=vr(t);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((t,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused","touch"===n),t.classList.toggle("cdk-keyboard-focused","keyboard"===n),t.classList.toggle("cdk-mouse-focused","mouse"===n),t.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,n){const r=this._elementInfo.get(n),o=zs(t);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(t,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Qb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Qb)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Lt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const n=t.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,Qb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Qb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,r){this._setClasses(t,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){const n=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let a=0;a{class i{constructor(t,n){this._elementRef=t,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new Ie}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.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(t){return new(t||i)(H(At),H(Rd))},i.\u0275dir=ot({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),i})();const d6="cdk-high-contrast-black-on-white",u6="cdk-high-contrast-white-on-black",sE="cdk-high-contrast-active";let p6=(()=>{class i{constructor(t,n){this._platform=t,this._document=n,this._breakpointSubscription=ji(jce).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.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 t=this._document.body.classList;t.remove(sE,d6,u6),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?t.add(sE,d6):2===n&&t.add(sE,u6)}}}return i.\u0275fac=function(t){return new(t||i)(Me(mo),Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lE=(()=>{class i{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(t){return new(t||i)(Me(p6))},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[zb]}),i})();class cE{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class U_ extends cE{constructor(e,t,n,r){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=r}}class Zb extends cE{constructor(e,t,n,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class dde extends cE{constructor(e){super(),this.element=e instanceof At?e.nativeElement:e}}class dE{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof U_?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Zb?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof dde?(this._attachedPortal=e,this.attachDomPortal(e)):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(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ude extends dE{constructor(e,t,n,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,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(e){const n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||Bi.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=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(n);-1!==r&&t.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let Od=(()=>{class i extends dE{constructor(t,n,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new Ie,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(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=n.createComponent(o,n.length,t.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return i.\u0275fac=function(t){return new(t||i)(H(rc),H(Sr),H(Jt))},i.\u0275dir=ot({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[it]}),i})(),Tg=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})();const pde=new Xe("cdk-dir-doc",{providedIn:"root",factory:function hde(){return ji(Jt)}}),gde=/^(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(t){if(this.value="ltr",this.change=new Ie,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function fde(i){const e=i?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?gde.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(t){return new(t||i)(Me(pde,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),j_=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})();const _de=new Xe("mat-sanity-checks",{providedIn:"root",factory:function mde(){return!0}});let yr=(()=>{class i{constructor(t,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!rE()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return i.\u0275fac=function(t){return new(t||i)(Me(p6),Me(_de,8),Me(Jt))},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[j_,j_]}),i})();function Y_(i){return class extends i{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Mi(e)}}}function Sg(i,e){return class extends i{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const n=t||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 Xb(i){return class extends i{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Mi(e)}}}function yde(i){return class extends i{constructor(...e){super(...e),this.errorState=!1}updateErrorState(){const e=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==e&&(this.errorState=o,this.stateChanges.next())}}}const f6=new Xe("MAT_DATE_LOCALE",{providedIn:"root",factory:function bde(){return ji(xl)}});class _o{constructor(){this._localeChanges=new Ce,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}sameDate(e,t){if(e&&t){let n=this.isValid(e),r=this.isValid(t);return n&&r?!this.compareDate(e,t):n==r}return e==t}clampDate(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}}const hp=new Xe("mat-date-formats");let m6=(()=>{class i{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class Cde{constructor(e,t,n,r=!1){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const _6={enterDuration:225,exitDuration:150},uE=Sc({passive:!0}),v6=["mousedown","touchstart"],y6=["mouseup","mouseleave","touchend","touchcancel"];class xde{constructor(e,t,n,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=vr(n))}fadeInRipple(e,t,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={..._6,...n.animation};n.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const a=n.radius||function kde(i,e,t){const n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=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=`${u}ms`,this._containerElement.appendChild(f);const v=window.getComputedStyle(f),A=v.transitionDuration,W="none"===v.transitionProperty||"0s"===A||"0s, 0s"===A,J=new Cde(this,f,n,W);f.style.transform="scale3d(1, 1, 1)",J.state=0,n.persistent||(this._mostRecentTransientRipple=J);let pe=null;return!W&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const fe=()=>this._finishRippleTransition(J),ye=()=>this._destroyRipple(J);f.addEventListener("transitionend",fe),f.addEventListener("transitioncancel",ye),pe={onTransitionEnd:fe,onTransitionCancel:ye}}),this._activeRipples.set(J,pe),(W||!u)&&this._finishRippleTransition(J),J}fadeOutRipple(e){if(2===e.state||3===e.state)return;const t=e.element,n={..._6,...e.config.animation};t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=vr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(v6))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(y6),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){0===e.state?this._startFadeOutTransition(e):2===e.state&&this._destroyRipple(e)}_startFadeOutTransition(e){const t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=1,!n&&(!t||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){const t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,null!==t&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel)),e.element.remove()}_onMousedown(e){const t=Gb(e),n=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,uE)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(v6.forEach(e=>{this._triggerElement.removeEventListener(e,this,uE)}),this._pointerUpEventsRegistered&&y6.forEach(e=>{this._triggerElement.removeEventListener(e,this,uE)}))}}const Mde=new Xe("mat-ripple-global-options");let Eg=(()=>{class i{constructor(t,n,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new xde(this,n,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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(t,n=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}}return i.\u0275fac=function(t){return new(t||i)(H(At),H($t),H(mo),H(Mde,8),H(aa,8))},i.\u0275dir=ot({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&St("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})(),Jb=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[yr,yr]}),i})();class b6{}const Ec="*";function Ld(i,e){return{type:7,name:i,definitions:e,options:{}}}function Yo(i,e=null){return{type:4,styles:e,timings:i}}function C6(i,e=null){return{type:3,steps:i,options:e}}function w6(i,e=null){return{type:2,steps:i,options:e}}function $i(i){return{type:6,styles:i,offset:null}}function ts(i,e,t){return{type:0,name:i,styles:e,options:t}}function x6(i){return{type:5,steps:i}}function zo(i,e,t=null){return{type:1,expr:i,animation:e,options:t}}function k6(i=null){return{type:9,options:i}}function M6(i,e,t=null){return{type:11,selector:i,animation:e,options:t}}function D6(i){Promise.resolve().then(i)}class W_{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){D6(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}class T6{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const o=this.players.length;0==o?D6(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){const e=this.players.reduce((t,n)=>null===t||n.totalTime>t.totalTime?n:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}const q_={schedule(i){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:n}=q_;n&&(e=n.requestAnimationFrame,t=n.cancelAnimationFrame);const r=e(o=>{t=void 0,i(o)});return new x(()=>t?.(r))},requestAnimationFrame(...i){const{delegate:e}=q_;return(e?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:e}=q_;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0},S6=new class Sde extends SS{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}(class Tde extends TS{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=q_.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(q_.cancelAnimationFrame(t),e._scheduled=void 0)}});let hE,Ede=1;const eC={};function E6(i){return i in eC&&(delete eC[i],!0)}const Ide={setImmediate(i){const e=Ede++;return eC[e]=!0,hE||(hE=Promise.resolve()),hE.then(()=>E6(e)&&i()),e},clearImmediate(i){E6(i)}},{setImmediate:Ade,clearImmediate:Pde}=Ide,tC={setImmediate(...i){const{delegate:e}=tC;return(e?.setImmediate||Ade)(...i)},clearImmediate(i){const{delegate:e}=tC;return(e?.clearImmediate||Pde)(i)},delegate:void 0},gE=new class Rde extends SS{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}(class Fde extends TS{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=tC.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(tC.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}});function I6(i,e=b_){return function Ode(i){return Be((e,t)=>{let n=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const u=r;r=null,t.next(u)}a&&t.complete()},l=()=>{o=null,a&&t.complete()};e.subscribe(je(t,u=>{n=!0,r=u,o||Sn(i(u)).subscribe(o=je(t,s,l))},()=>{a=!0,(!n||!o||o.closed)&&t.complete()}))})}(()=>Ku(i,e))}let A6=(()=>{class i{constructor(t,n,r){this._ngZone=t,this._platform=n,this._scrolled=new Ce,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new S(n=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(I6(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Pt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){const r=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Li(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let r=vr(n),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>_n(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(t){return new(t||i)(Me($t),Me(mo),Me(Jt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ig=(()=>{class i{constructor(t,n,r){this._platform=t,this._change=new Ce,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(t.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 t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,n=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(I6(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(t){return new(t||i)(Me(mo),Me($t),Me(Jt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gp=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})(),P6=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[j_,gp,j_,gp]}),i})();function Bde(i,e){1&i&&ki(0)}const F6=["*"];function Vde(i,e){}const $de=function(i){return{animationDuration:i}},Hde=function(i,e){return{value:i,params:e}},Ude=["tabListContainer"],jde=["tabList"],Yde=["tabListInner"],zde=["nextPaginator"],Wde=["previousPaginator"],qde=["tabBodyWrapper"],Gde=["tabHeader"];function Kde(i,e){}function Qde(i,e){1&i&&b(0,Kde,0,0,"ng-template",10),2&i&&h("cdkPortalOutlet",g().$implicit.templateLabel)}function Zde(i,e){1&i&&m(0),2&i&&Ae(g().$implicit.textLabel)}function Xde(i,e){if(1&i){const t=re();c(0,"div",6),P("click",function(){const r=E(t),o=r.$implicit,a=r.index,s=g(),l=Vr(1);return I(s._handleClick(o,l,a))})("cdkFocusChange",function(r){const a=E(t).index;return I(g()._tabFocusChanged(r,a))}),c(1,"div",7),b(2,Qde,1,1,"ng-template",8),b(3,Zde,1,1,"ng-template",null,9,jr),d()()}if(2&i){const t=e.$implicit,n=e.index,r=Vr(4),o=g();St("mat-tab-label-active",o.selectedIndex===n),h("id",o._getTabLabelId(n))("ngClass",t.labelClass)("disabled",t.disabled)("matRippleDisabled",t.disabled||o.disableRipple),mt("tabIndex",o._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),p(2),h("ngIf",t.templateLabel)("ngIfElse",r)}}function Jde(i,e){if(1&i){const t=re();c(0,"mat-tab-body",11),P("_onCentered",function(){return E(t),I(g()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return E(t),I(g()._setTabBodyWrapperHeight(r))}),d()}if(2&i){const t=e.$implicit,n=e.index,r=g();St("mat-tab-body-active",r.selectedIndex===n),h("id",r._getTabContentId(n))("ngClass",t.bodyClass)("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),mt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const eue=new Xe("MatInkBarPositioner",{providedIn:"root",factory:function tue(){return e=>({left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"})}});let R6=(()=>{class i{constructor(t,n,r,o){this._elementRef=t,this._ngZone=n,this._inkBarPositioner=r,this._animationMode=o}alignToElement(t){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>{const n=this._inkBarPositioner(t),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(t){return new(t||i)(H(At),H($t),H(eue),H(aa,8))},i.\u0275dir=ot({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,n){2&t&&St("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),i})();const nue=new Xe("MatTabContent"),iue=new Xe("MatTabLabel"),rue=new Xe("MAT_TAB"),oue=Y_(class{}),O6=new Xe("MAT_TAB_GROUP");let L6=(()=>{class i extends oue{constructor(t,n){super(),this._viewContainerRef=t,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ce,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Zb(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}}return i.\u0275fac=function(t){return new(t||i)(H(Sr),H(O6,8))},i.\u0275cmp=Oe({type:i,selectors:[["mat-tab"]],contentQueries:function(t,n,r){if(1&t&&(An(r,iue,5),An(r,nue,7,Yi)),2&t){let o;ut(o=pt())&&(n.templateLabel=o.first),ut(o=pt())&&(n._explicitContent=o.first)}},viewQuery:function(t,n){if(1&t&&Wt(Yi,7),2&t){let r;ut(r=pt())&&(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:[On([{provide:rue,useExisting:i}]),it,li],ngContentSelectors:F6,decls:1,vars:0,template:function(t,n){1&t&&(ho(),b(0,Bde,1,0,"ng-template"))},encapsulation:2}),i})();const aue={translateTab:Ld("translateTab",[ts("center, void, left-origin-center, right-origin-center",$i({transform:"none"})),ts("left",$i({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ts("right",$i({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),zo("* => left, * => right, left => center, right => center",Yo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zo("void => left-origin-center",[$i({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Yo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zo("void => right-origin-center",[$i({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Yo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let sue=(()=>{class i extends Od{constructor(t,n,r,o){super(t,n,o),this._host=r,this._centeringSub=x.EMPTY,this._leavingSub=x.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(rr(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!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(t){return new(t||i)(H(rc),H(Sr),H(Rn(()=>N6)),H(Jt))},i.\u0275dir=ot({type:i,selectors:[["","matTabBodyHost",""]],features:[it]}),i})(),lue=(()=>{class i{constructor(t,n,r){this._elementRef=t,this._dir=n,this._dirChangeSubscription=x.EMPTY,this._translateTabComplete=new Ce,this._onCentering=new Ie,this._beforeCentering=new Ie,this._afterLeavingCenter=new Ie,this._onCentered=new Ie(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(pg((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(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const n=this._isCenterPosition(t.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const n=this._getLayoutDirection();return"ltr"==n&&t<=0||"rtl"==n&&t>0?"left-origin-center":"right-origin-center"}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(Do,8),H(oi))},i.\u0275dir=ot({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i})(),N6=(()=>{class i extends lue{constructor(t,n,r){super(t,n,r)}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(Do,8),H(oi))},i.\u0275cmp=Oe({type:i,selectors:[["mat-tab-body"]],viewQuery:function(t,n){if(1&t&&Wt(Od,5),2&t){let r;ut(r=pt())&&(n._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[it],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,n){1&t&&(c(0,"div",0,1),P("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),b(2,Vde,0,0,"ng-template",2),d()),2&t&&h("@translateTab",ci(3,Hde,n._position,bt(1,$de,n.animationDuration)))},dependencies:[sue],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:[aue.translateTab]}}),i})();const B6=new Xe("MAT_TABS_CONFIG"),cue=Y_(class{});let V6=(()=>{class i extends cue{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return i.\u0275fac=function(t){return new(t||i)(H(At))},i.\u0275dir=ot({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){2&t&&(mt("aria-disabled",!!n.disabled),St("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[it]}),i})();const $6=Sc({passive:!0});let pue=(()=>{class i{constructor(t,n,r,o,a,s,l){this._elementRef=t,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 Ce,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ce,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ie,this.indexFocused=new Ie,a.runOutsideAngular(()=>{_n(t.nativeElement,"mouseleave").pipe(Lt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(t){this._disablePagination=Mi(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=pp(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){_n(this._previousPaginator.nativeElement,"touchstart",$6).pipe(Lt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),_n(this._nextPaginator.nativeElement,"touchstart",$6).pipe(Lt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Pt("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new o6(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Xn(1)).subscribe(r),Qr(t,n,this._items.changes,this._itemsResized()).pipe(Lt(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(Lt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Lr:this._items.changes.pipe(rr(this._items),to(t=>new S(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{n.next()});return t.forEach(o=>{r.observe(o.elementRef.nativeElement)}),()=>{r.disconnect()}}))),fb(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(t){if(!Fd(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const n=this._items?this._items.toArray()[t]:null;return!!n&&!n.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].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 t=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-t:t;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(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const n=this._items?this._items.toArray()[t]: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 u=this.scrollDistance,f=this.scrollDistance+r;sf&&(this.scrollDistance+=l-f+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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 t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),Ku(650,100).pipe(Lt(Qr(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(t);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(oi),H(Ig),H(Do,8),H($t),H(mo),H(aa,8))},i.\u0275dir=ot({type:i,inputs:{disablePagination:"disablePagination"}}),i})(),hue=(()=>{class i extends pue{constructor(t,n,r,o,a,s,l){super(t,n,r,o,a,s,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Mi(t)}_itemSelected(t){t.preventDefault()}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(oi),H(Ig),H(Do,8),H($t),H(mo),H(aa,8))},i.\u0275dir=ot({type:i,inputs:{disableRipple:"disableRipple"},features:[it]}),i})(),gue=(()=>{class i extends hue{constructor(t,n,r,o,a,s,l){super(t,n,r,o,a,s,l)}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(oi),H(Ig),H(Do,8),H($t),H(mo),H(aa,8))},i.\u0275cmp=Oe({type:i,selectors:[["mat-tab-header"]],contentQueries:function(t,n,r){if(1&t&&An(r,V6,4),2&t){let o;ut(o=pt())&&(n._items=o)}},viewQuery:function(t,n){if(1&t&&(Wt(R6,7),Wt(Ude,7),Wt(jde,7),Wt(Yde,7),Wt(zde,5),Wt(Wde,5)),2&t){let r;ut(r=pt())&&(n._inkBar=r.first),ut(r=pt())&&(n._tabListContainer=r.first),ut(r=pt())&&(n._tabList=r.first),ut(r=pt())&&(n._tabListInner=r.first),ut(r=pt())&&(n._nextPaginator=r.first),ut(r=pt())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,n){2&t&&St("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[it],ngContentSelectors:F6,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(t,n){1&t&&(ho(),c(0,"button",0,1),P("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),B(2,"div",2),d(),c(3,"div",3,4),P("keydown",function(o){return n._handleKeydown(o)}),c(5,"div",5,6),P("cdkObserveContent",function(){return n._onContentChanges()}),c(7,"div",7,8),ki(9),d(),B(10,"mat-ink-bar"),d()(),c(11,"button",9,10),P("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),B(13,"div",2),d()),2&t&&(St("mat-tab-header-pagination-disabled",n._disableScrollBefore),h("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),p(5),St("_mat-animation-noopable","NoopAnimations"===n._animationMode),p(6),St("mat-tab-header-pagination-disabled",n._disableScrollAfter),h("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[Eg,aE,R6],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})(),fue=0;class mue{}const _ue=Sg(Xb(class{constructor(i){this._elementRef=i}}),"primary");let vue=(()=>{class i extends _ue{constructor(t,n,r,o){super(t),this._changeDetectorRef=n,this._animationMode=o,this._tabs=new md,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=x.EMPTY,this._tabLabelSubscription=x.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ie,this.focusChange=new Ie,this.animationDone=new Ie,this.selectedTabChange=new Ie(!0),this._groupId=fue++,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(t){this._dynamicHeight=Mi(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=pp(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t+"")?t+"ms":t}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=pp(t,null)}get disablePagination(){return this._disablePagination}set disablePagination(t){this._disablePagination=Mi(t)}get preserveContent(){return this._preserveContent}set preserveContent(t){this._preserveContent=Mi(t)}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const n=this._elementRef.nativeElement;n.classList.remove(`mat-background-${this.backgroundColor}`),t&&n.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===t),n||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-t,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){const n=this._tabs.toArray();let r;for(let o=0;o{n[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(rr(this._allTabs)).subscribe(t=>{this._tabs.reset(t.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(t){const n=this._tabHeader;n&&(n.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const n=new mue;return n.index=t,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[t]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Qr(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,n,r){t.disabled||(this.selectedIndex=n.focusIndex=r)}_getTabIndex(t,n){return t.disabled?null:n===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(t,n){t&&"mouse"!==t&&"touch"!==t&&(this._tabHeader.focusIndex=n)}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(oi),H(B6,8),H(aa,8))},i.\u0275dir=ot({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:[it]}),i})(),yue=(()=>{class i extends vue{constructor(t,n,r,o){super(t,n,r,o)}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(oi),H(B6,8),H(aa,8))},i.\u0275cmp=Oe({type:i,selectors:[["mat-tab-group"]],contentQueries:function(t,n,r){if(1&t&&An(r,L6,5),2&t){let o;ut(o=pt())&&(n._allTabs=o)}},viewQuery:function(t,n){if(1&t&&(Wt(qde,5),Wt(Gde,5)),2&t){let r;ut(r=pt())&&(n._tabBodyWrapper=r.first),ut(r=pt())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,n){2&t&&St("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[On([{provide:O6,useExisting:i}]),it],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(t,n){1&t&&(c(0,"mat-tab-header",0,1),P("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),b(2,Xde,5,15,"div",2),d(),c(3,"div",3,4),b(5,Jde,1,11,"mat-tab-body",5),d()),2&t&&(h("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),p(2),h("ngForOf",n._tabs),p(1),St("_mat-animation-noopable","NoopAnimations"===n._animationMode),p(2),h("ngForOf",n._tabs))},dependencies:[Vi,Ot,rt,Od,Eg,c6,V6,N6,gue],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})(),U6=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[fi,yr,Tg,Jb,zb,lE,yr]}),i})();function j6(i,e,t){let n,r=!1;return i&&"object"==typeof i?({bufferSize:n=1/0,windowTime:e=1/0,refCount:r=!1,scheduler:t}=i):n=i??1/0,Vf({connector:()=>new Ut(n,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function bue(i,e){}const nC=()=>{const i=typeof window<"u"?window:void 0;return i&&i.tinymce?i.tinymce:null};let Cue=(()=>{class i{constructor(){this.onBeforePaste=new Ie,this.onBlur=new Ie,this.onClick=new Ie,this.onContextMenu=new Ie,this.onCopy=new Ie,this.onCut=new Ie,this.onDblclick=new Ie,this.onDrag=new Ie,this.onDragDrop=new Ie,this.onDragEnd=new Ie,this.onDragGesture=new Ie,this.onDragOver=new Ie,this.onDrop=new Ie,this.onFocus=new Ie,this.onFocusIn=new Ie,this.onFocusOut=new Ie,this.onKeyDown=new Ie,this.onKeyPress=new Ie,this.onKeyUp=new Ie,this.onMouseDown=new Ie,this.onMouseEnter=new Ie,this.onMouseLeave=new Ie,this.onMouseMove=new Ie,this.onMouseOut=new Ie,this.onMouseOver=new Ie,this.onMouseUp=new Ie,this.onPaste=new Ie,this.onSelectionChange=new Ie,this.onActivate=new Ie,this.onAddUndo=new Ie,this.onBeforeAddUndo=new Ie,this.onBeforeExecCommand=new Ie,this.onBeforeGetContent=new Ie,this.onBeforeRenderUI=new Ie,this.onBeforeSetContent=new Ie,this.onChange=new Ie,this.onClearUndos=new Ie,this.onDeactivate=new Ie,this.onDirty=new Ie,this.onExecCommand=new Ie,this.onGetContent=new Ie,this.onHide=new Ie,this.onInit=new Ie,this.onInitNgModel=new Ie,this.onLoadContent=new Ie,this.onNodeChange=new Ie,this.onPostProcess=new Ie,this.onPostRender=new Ie,this.onPreInit=new Ie,this.onPreProcess=new Ie,this.onProgressState=new Ie,this.onRedo=new Ie,this.onRemove=new Ie,this.onReset=new Ie,this.onResizeEditor=new Ie,this.onSaveContent=new Ie,this.onSetAttrib=new Ie,this.onObjectResizeStart=new Ie,this.onObjectResized=new Ie,this.onObjectSelected=new Ie,this.onSetContent=new Ie,this.onShow=new Ie,this.onSubmit=new Ie,this.onUndo=new Ie,this.onVisualAid=new Ie}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({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 Y6=["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"],iC=(i,e,t)=>_n(i,e).pipe(Lt(t)),z6=(i,e)=>"string"==typeof i?i.split(",").map(t=>t.trim()):Array.isArray(i)?i:e;let W6=0;const q6=i=>typeof i<"u"&&"textarea"===i.tagName.toLowerCase(),G6=i=>typeof i>"u"||""===i?[]:Array.isArray(i)?i:i.split(" "),Mue=(i,e)=>G6(i).concat(G6(e)),Due=()=>{},K6=i=>null==i,Tue=(()=>{let i={script$:null};return{load:(n,r)=>i.script$||(i.script$=o_(()=>{const o=n.createElement("script");return o.referrerPolicy="origin",o.type="application/javascript",o.src=r,n.head.appendChild(o),_n(o,"load").pipe(Xn(1),j0(void 0))}).pipe(j6({bufferSize:1,refCount:!0}))),reinitialize:()=>{i={script$:null}}}})(),Sue=new Xe("TINYMCE_SCRIPT_SRC"),Eue={provide:la,useExisting:Rn(()=>Nd),multi:!0};let Nd=(()=>{class i extends Cue{constructor(t,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=Due,this.destroy$=new Ce,this.initialise=()=>{const a={...this.init,selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,plugins:Mue(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:s=>{this._editor=s,iC(s,"init",this.destroy$).subscribe(()=>{this.initEditor(s)}),((i,e,t)=>{(i=>{const e=z6(i.ignoreEvents,[]);return z6(i.allowedEvents,Y6).filter(n=>Y6.includes(n)&&!e.includes(n))})(i).forEach(r=>{const o=i[r];iC(e,r.substring(2),t).subscribe(a=>{o.observers.length>0&&i.ngZone.run(()=>o.emit({event:a,editor:e}))})})})(this,s,this.destroy$),this.init&&"function"==typeof this.init.setup&&this.init.setup(s)}};q6(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{nC().init(a)})},this._elementRef=t,this.ngZone=n}set disabled(t){this._disabled=t,this._editor&&this._editor.initialized&&("function"==typeof this._editor.mode?.set?this._editor.mode.set(t?"readonly":"design"):this._editor.setMode(t?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(t){this._editor&&this._editor.initialized?this._editor.setContent(K6(t)?"":t):this.initialValue=null===t?void 0:t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}ngAfterViewInit(){Ls(this.platformId)&&(this.id=this.id||(i=>{const t=(new Date).getTime(),n=Math.floor(1e9*Math.random());return W6++,"tiny-angular_"+n+W6+String(t)})(),this.inline=void 0!==this.inline?!1!==this.inline:!!this.init?.inline,this.createElement(),null!==nC()?this.initialise():this._element&&this._element.ownerDocument&&Tue.load(this._element.ownerDocument,this.getScriptSrc()).pipe(Lt(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),null!==nC()&&nC().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,q6(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}getScriptSrc(){return K6(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(t){iC(t,"blur",this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.onTouchedCallback())}),iC(t,this.modelEvents,this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.emitOnChange(t))}),"string"==typeof this.initialValue&&this.ngZone.run(()=>{t.setContent(this.initialValue),t.getContent()!==this.initialValue&&this.emitOnChange(t),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(t)})}emitOnChange(t){this.onChangeCallback&&this.onChangeCallback(t.getContent({format:this.outputFormat}))}}return i.\u0275fac=function(t){return new(t||i)(H(At),H($t),H(_d),H(Sue,8))},i.\u0275cmp=Oe({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:[On([Eue]),it,wD],decls:1,vars:0,template:function(t,n){1&t&&b(0,bue,0,0,"ng-template")},dependencies:[fi,Dl],styles:["[_nghost-%COMP%]{display:block}"]}),i})(),Z6=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[Nd]}),i})();class Bd{uploader;fileOver=new Ie;onFileDrop=new Ie;element;constructor(e){this.element=e}getOptions(){return this.uploader.options}getFilters(){return{}}onDrop(e){let t=this._getTransfer(e);if(!t)return;let n=this.getOptions(),r=this.getFilters();this._preventAndStop(e),this.uploader.addToQueue(t.files,n,r),this.fileOver.emit(!1),this.onFileDrop.emit(t.files)}onDragOver(e){let t=this._getTransfer(e);!this._haveFiles(t.types)||(t.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}onDragLeave(e){e.currentTarget!==this.element[0]&&(this._preventAndStop(e),this.fileOver.emit(!1))}_getTransfer(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}_preventAndStop(e){e.preventDefault(),e.stopPropagation()}_haveFiles(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}static \u0275fac=function(t){return new(t||Bd)(H(At))};static \u0275dir=ot({type:Bd,selectors:[["","ng2FileDrop",""]],hostBindings:function(t,n){1&t&&P("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 Vd{uploader;element;constructor(e){this.element=e}getOptions(){return this.uploader.options}getFilters(){}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onChange(){let e=this.element.nativeElement.files,t=this.getOptions(),n=this.getFilters();this.uploader.addToQueue(e,t,n),this.isEmptyAfterSelection()}static \u0275fac=function(t){return new(t||Vd)(H(At))};static \u0275dir=ot({type:Vd,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,n){1&t&&P("change",function(){return n.onChange()})},inputs:{uploader:"uploader"}})}class Ic{storage;clientService;userService;ua;_favoritesChanged$=new Ut;constructor(e,t,n,r){this.storage=e,this.clientService=t,this.userService=n,this.ua=r}onFavoritesChanged(){return this._favoritesChanged$.asObservable()}getUserFavorites(){var e=this;return O(function*(){var t=yield e.userService.getUserFavorites();return e._favoritesChanged$.next(t),t})()}addUserFavorites(e){var t=this;return O(function*(){let n=yield t.clientService.postWithResponse("/api/user/favorite",e,!1);if(n.successful){let r=yield t.userService.getCurrentOrg();yield t.storage.setItemAsync(`user_favorites_${r.id}`,JSON.stringify(n.result)),t._favoritesChanged$.next(n.result)}return n.result})()}removeUserFavorite(e){var t=this;return O(function*(){let n=yield t.clientService.deleteWithResponse(`/api/user/favorite/${e}`,!1),r=yield t.userService.getCurrentOrg();return yield t.storage.setItemAsync(`user_favorites_${r.id}`,JSON.stringify(n.result)),t._favoritesChanged$.next(n.result),n.result})()}getFavoriteForUrl(e){var t=this;return O(function*(){return(yield t.userService.getUserFavorites()).favorites.find(r=>r.link==e)})()}static \u0275fac=function(t){return new(t||Ic)(Me(fo),Me(hn),Me(Hn),Me(Hn))};static \u0275prov=Ue({token:Ic,factory:Ic.\u0275fac,providedIn:"root"})}class Ac{storage;clientService;userService;ua;_mruTasks$=new Ut;_mruChanged$=new Ut;constructor(e,t,n,r){this.storage=e,this.clientService=t,this.userService=n,this.ua=r}_recentTasks;getRecentTasks(){var e=this;return O(function*(){if(e._recentTasks)return e._recentTasks;let t=yield e.ua.getCurrentOrg(),n=yield e.storage.getItemAsync(`mru_tasks-org-${t.id}`);return e._recentTasks=n?JSON.parse(n):[],e._recentTasks})()}addMurTask(e){var t=this;return O(function*(){let n=yield t.getRecentTasks(),r=n.find(l=>l.workTask.id==e.id);r&&n.splice(n.indexOf(r),1),n.unshift({project:{id:e.project.id,text:e.project.text},workTask:{id:e.id,text:e.name},taskCode:e.taskCode,externalTaskLink:e.externalTaskLink}),n.length>10&&n.splice(10,1),t._recentTasks=n,t._mruTasks$.next(n);let o=yield t.ua.getCurrentOrg();t.storage.setItemAsync(`mru_tasks-org-${o.id}`,JSON.stringify(n));let a=window.location.pathname,s=a.substring(1).split("/");t.addMRU({name:e.name,type:"Task",moduleKey:ft.moduleRouteHome,icon:e.icon,summary:e.icon,route:s,link:a})})()}onMruChanged(){return this._mruChanged$.asObservable()}onMruTasksChanged(){return this._mruTasks$.asObservable()}getMruDevices(){var e=this;return O(function*(){let t=yield e.ua.getCurrentOrg();return JSON.parse(yield e.storage.getItemAsync(`mru-devices-org-${t.id}`,"[]"))})()}getMruDeviceRepos(){var e=this;return O(function*(){let t=yield e.ua.getCurrentOrg();return JSON.parse(yield e.storage.getItemAsync(`mru-device-repos-org-${t.id}`,"[]"))})()}addRepoToMru(e){var t=this;return O(function*(){let n={repositoryType:e.repositoryType.text,isPublic:e.isPublic,id:e.id,name:e.name,description:e.description,icon:e.icon,key:e.key},r=yield t.getMruDeviceRepos(),o=r.find(s=>s.id==n.id);o&&r.splice(r.indexOf(o),1),r.unshift(n);let a=yield t.ua.getCurrentOrg();yield t.storage.setItemAsync(`mru-device-repos-org-${a.id}`,JSON.stringify(r))})()}addDeviceToMru(e){var t=this;return O(function*(){let n={id:e.id,deviceName:e.name,deviceId:e.deviceId,deviceType:e.deviceType.text,deviceTypeId:e.deviceType.id,balances:e.balances,deviceConfiguration:e.deviceConfiguration.text,deviceConfigurationId:e.deviceConfiguration.id,customStatus:e.customStatus,deviceRepo:e.deviceRepository.text,deviceRepoId:e.deviceRepository.id,icon:e.icon,geoLocation:e.geoLocation,internalSummary:e.internalSummary,lastContact:e.lastContact,status:e.status.text,selected:!1,testingMode:e.testingMode,debugMode:e.debugMode},r=yield t.getMruDevices(),o=r.find(s=>s.id==n.id);o&&r.splice(r.indexOf(o),1),r.unshift(n);let a=yield t.ua.getCurrentOrg();yield t.storage.setItemAsync(`mru-devices-org-${a.id}`,JSON.stringify(r))})()}get(e,t){var n=this;return O(function*(){let r=yield n.ua.getCurrentOrg();return yield n.storage.getItemAsync(`mru-setting-${e}-org-${r.id}`,t)})()}set(e,t){var n=this;return O(function*(){let r=yield n.ua.getCurrentOrg();yield n.storage.setItemAsync(`mru-setting-${e}-org-${r.id}`,t)})()}getMRU(){var e=this;return O(function*(){var t=yield e.userService.getMRU();return e._mruChanged$.next(t),t})()}addMRU(e){var t=this;return O(function*(){let n=yield t.clientService.postWithResponse("/api/mru/item",e,!1),r=yield t.userService.getCurrentOrg();return yield t.storage.setItemAsync(`user_mru_${r.id}`,JSON.stringify(n.result)),t._mruChanged$.next(n.result),n.result})()}clearMru(){var e=this;return O(function*(){let t=yield e.clientService.deleteWithResponse("/api/mru"),n=yield e.userService.getCurrentOrg();return yield e.storage.setItemAsync(`user_mru_${n.id}`,JSON.stringify(t.result)),e._mruChanged$.next(t.result),t.result})()}static \u0275fac=function(t){return new(t||Ac)(Me(fo),Me(hn),Me(Hn),Me(Hn))};static \u0275prov=Ue({token:Ac,factory:Ac.\u0275fac,providedIn:"root"})}function Iue(i,e){if(1&i){const t=re();c(0,"span",4),P("click",function(){return E(t),I(g().addFavorite())}),B(1,"i",5),d()}}function Aue(i,e){if(1&i){const t=re();c(0,"span",4),P("click",function(){return E(t),I(g().clearFavorite())}),B(1,"i",6),d()}}function Pue(i,e){if(1&i){const t=re();c(0,"span",4),P("click",function(){return E(t),I(g().edit.emit())}),B(1,"i",7),d()}}function Fue(i,e){if(1&i){const t=re();c(0,"span",4),P("click",function(){return E(t),I(g().refresh.emit())}),B(1,"i",8),d()}}class rC{favoriteService;route;router;mruService;favorite;showRefreshLink=!1;showEditLink=!1;icon;title;pageType;pageSummary;refresh=new Ie;edit=new Ie;back=new Ie;constructor(e,t,n,r){this.favoriteService=e,this.route=t,this.router=n,this.mruService=r}ngOnInit(){var e=this;return O(function*(){let t=e.route.snapshot.url.map(r=>r.path);t.unshift(ft.moduleRouteHome),e.mruService.addMRU({name:e.title,type:e.pageType,moduleKey:ft.moduleRouteHome,icon:e.icon,summary:"Customer Surveys",route:t,link:e.pageSummary}),e.favorite=yield e.favoriteService.getFavoriteForUrl(e.router.url),console.log(e.favorite)})()}addFavorite(){let e=this.route.snapshot.url.map(t=>t.path);e.unshift(ft.moduleRouteHome),this.favorite={id:Yn.newGuid(),name:this.title,type:this.pageType,moduleKey:ft.moduleRouteHome,icon:this.icon,summary:this.pageSummary,route:e,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(t){return new(t||rC)(H(Ic),H(mi),H(_i),H(Ac))};static \u0275cmp=Oe({type:rC,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(t,n){1&t&&(c(0,"div")(1,"h1")(2,"i",0),P("click",function(){return null==n.back?null:n.back.emit()}),d(),B(3,"nuv-icon",1),c(4,"span",2),m(5),d(),b(6,Iue,2,0,"span",3),b(7,Aue,2,0,"span",3),b(8,Pue,2,0,"span",3),b(9,Fue,2,0,"span",3),d()()),2&t&&(p(3),h("iconName",n.icon),p(2),$e(" ",n.title," "),p(1),h("ngIf",!n.favorite),p(1),h("ngIf",n.favorite),p(1),h("ngIf",n.showEditLink),p(1),h("ngIf",n.showRefreshLink))},dependencies:[es,rt]})}function Rue(i,e){if(1&i){const t=re();c(0,"div",5)(1,"div",6)(2,"h4"),m(3,"Terms and Conditions"),d()(),c(4,"div",6)(5,"p"),m(6,"Please Review our "),c(7,"a",7),m(8,"Terms and Conditions"),d(),m(9," as well as our "),c(10,"a",8),m(11,"Privacy Statement"),d(),m(12," and "),c(13,"a",9),m(14,"Cookie Policy"),d()()(),c(15,"div",10)(16,"button",11),P("click",function(){return E(t),I(g(2).acceptTermsAndConditions())}),m(17,"Accept"),d()()()}}function Oue(i,e){1&i&&(c(0,"label",346),m(1,"State or Province"),d())}function Lue(i,e){1&i&&(c(0,"label",347),m(1,"State"),d())}function Nue(i,e){if(1&i){const t=re();c(0,"input",348),P("ngModelChange",function(r){return E(t),I(g(3).coreInfo.state=r)}),d()}2&i&&h("ngModel",g(3).coreInfo.state)}function Bue(i,e){if(1&i){const t=re();c(0,"select",349),P("ngModelChange",function(r){return E(t),I(g(3).coreInfo.state=r)}),c(1,"option",58),m(2,"-please select your state-"),d(),c(3,"option",350),m(4,"Alabama"),d(),c(5,"option",351),m(6,"Alaska"),d(),c(7,"option",352),m(8,"Arizona"),d(),c(9,"option",353),m(10,"Arkansas"),d(),c(11,"option",354),m(12,"California"),d(),c(13,"option",355),m(14,"Colorado"),d(),c(15,"option",356),m(16,"Connecticut"),d(),c(17,"option",357),m(18,"Delaware"),d(),c(19,"option",358),m(20,"District Of Columbia"),d(),c(21,"option",359),m(22,"Florida"),d(),c(23,"option",360),m(24,"Georgia"),d(),c(25,"option",361),m(26,"Hawaii"),d(),c(27,"option",362),m(28,"Idaho"),d(),c(29,"option",363),m(30,"Illinois"),d(),c(31,"option",364),m(32,"Indiana"),d(),c(33,"option",365),m(34,"Iowa"),d(),c(35,"option",366),m(36,"Kansas"),d(),c(37,"option",367),m(38,"Kentucky"),d(),c(39,"option",368),m(40,"Louisiana"),d(),c(41,"option",369),m(42,"Maine"),d(),c(43,"option",370),m(44,"Maryland"),d(),c(45,"option",371),m(46,"Massachusetts"),d(),c(47,"option",372),m(48,"Michigan"),d(),c(49,"option",373),m(50,"Minnesota"),d(),c(51,"option",374),m(52,"Mississippi"),d(),c(53,"option",375),m(54,"Missouri"),d(),c(55,"option",376),m(56,"Montana"),d(),c(57,"option",377),m(58,"Nebraska"),d(),c(59,"option",378),m(60,"Nevada"),d(),c(61,"option",379),m(62,"New Hampshire"),d(),c(63,"option",380),m(64,"New Jersey"),d(),c(65,"option",381),m(66,"New Mexico"),d(),c(67,"option",382),m(68,"New York"),d(),c(69,"option",383),m(70,"North Carolina"),d(),c(71,"option",384),m(72,"North Dakota"),d(),c(73,"option",385),m(74,"Ohio"),d(),c(75,"option",386),m(76,"Oklahoma"),d(),c(77,"option",387),m(78,"Oregon"),d(),c(79,"option",388),m(80,"Pennsylvania"),d(),c(81,"option",389),m(82,"Rhode Island"),d(),c(83,"option",390),m(84,"South Carolina"),d(),c(85,"option",391),m(86,"South Dakota"),d(),c(87,"option",392),m(88,"Tennessee"),d(),c(89,"option",393),m(90,"Texas"),d(),c(91,"option",394),m(92,"Utah"),d(),c(93,"option",395),m(94,"Vermont"),d(),c(95,"option",396),m(96,"Virginia"),d(),c(97,"option",397),m(98,"Washington"),d(),c(99,"option",398),m(100,"West Virginia"),d(),c(101,"option",399),m(102,"Wisconsin"),d(),c(103,"option",400),m(104,"Wyoming"),d()()}2&i&&(h("ngModel",g(3).coreInfo.state),p(1),h("ngValue",null))}function Vue(i,e){if(1&i&&(c(0,"option",401),m(1),d()),2&i){const t=e.$implicit;h("value",t.id),p(1),Ae(t.text)}}function $ue(i,e){1&i&&(c(0,"div",20)(1,"div",6)(2,"h4"),m(3,"My Files"),d(),c(4,"p"),m(5,"Add files to your profile such as a resume or other information about yourself."),d()()())}function Hue(i,e){if(1&i&&(c(0,"tr")(1,"td"),m(2),d(),B(3,"td"),d()),2&i){const t=e.$implicit;p(2),Ae(t.text)}}function Uue(i,e){if(1&i){const t=re();c(0,"div",6)(1,"div",330)(2,"span",331),P("click",function(){return E(t),I(g(4).fileAddMode="addfilename")}),B(3,"i",403),m(4,"Add File"),d()(),c(5,"table",404)(6,"thead")(7,"th"),m(8,"File"),d(),c(9,"th"),m(10,"View"),d()(),c(11,"tbody"),b(12,Hue,4,1,"tr",405),d()()()}if(2&i){const t=g(4);p(12),h("ngForOf",t.user.mediaResources)}}function jue(i,e){if(1&i){const t=re();c(0,"div",6)(1,"h5"),m(2,"Step 1 - Tell us about the file"),d(),c(3,"form",406)(4,"div",407)(5,"label",408),m(6,"Document Name"),c(7,"span",25),m(8,"*"),d()(),c(9,"input",409),P("ngModelChange",function(r){return E(t),I(g(4).resourceName=r)}),d(),B(10,"div",27),d(),c(11,"div",410)(12,"label",411),m(13,"Description"),d(),c(14,"textarea",412),P("ngModelChange",function(r){return E(t),I(g(4).resourceDescription=r)}),m(15," "),d()(),c(16,"div",330)(17,"button",18),P("click",function(){return E(t),I(g(4).fileAddMode="viewallfiles")}),m(18,"Cancel"),d(),c(19,"button",413),P("click",function(){return E(t),I(g(4).fileAddMode="uploadfile")}),m(20,"Add File"),d()()()()}if(2&i){const t=g(4);p(9),h("ngModel",t.resourceName),p(5),h("ngModel",t.resourceDescription),p(5),h("disabled",!t.resourceName)}}const X6=function(i){return{width:i}};function Yue(i,e){if(1&i&&(c(0,"div"),m(1),c(2,"div",418),B(3,"div",419),d()()),2&i){const t=g(5);p(1),$e(" ",t.fileNameOrStatus," "),p(2),h("ngStyle",bt(2,X6,t.uploader.progress+"%"))}}const J6=function(i){return{"nv-file-over":i}};function zue(i,e){if(1&i){const t=re();c(0,"div",6)(1,"h5"),m(2,"Step 2 - Upload your file"),d(),c(3,"span",414),P("fileOver",function(r){return E(t),I(g(4).fileOverBase(r))}),B(4,"i",415),d(),c(5,"span",416)(6,"span"),m(7,"Select File"),d(),B(8,"input",417),d(),b(9,Yue,4,4,"div",333),c(10,"div",330)(11,"button",18),P("click",function(){return E(t),I(g(4).fileAddMode="viewallfiles")}),m(12,"Cancel"),d()()()}if(2&i){const t=g(4);p(3),h("ngClass",bt(4,J6,t.hasBaseDropZoneOver))("uploader",t.uploader),p(5),h("uploader",t.uploader),p(1),h("ngIf",t.fileNameOrStatus)}}function Wue(i,e){if(1&i&&(c(0,"div",20),b(1,Uue,13,1,"div",402),b(2,jue,21,3,"div",402),b(3,zue,13,6,"div",402),d()),2&i){const t=g(3);p(1),h("ngIf","viewallfiles"==t.fileAddMode),p(1),h("ngIf","addfilename"==t.fileAddMode),p(1),h("ngIf","uploadfile"==t.fileAddMode)}}function que(i,e){1&i&&(c(0,"div",20)(1,"div",6),B(2,"hr")(3,"br"),d()())}function Gue(i,e){1&i&&(c(0,"div",20)(1,"div",6)(2,"h4"),m(3,"Profile Picture"),d(),c(4,"p"),m(5,"Upload a profile picture to be used in the system, recommended size is 255x255."),d()()())}function Kue(i,e){1&i&&B(0,"img",420),2&i&&_t("src",g(3).user.profileImage.imageUrl,gi)}function Que(i,e){if(1&i){const t=re();c(0,"div",20)(1,"div",6)(2,"span",414),P("fileOver",function(r){return E(t),I(g(3).fileOverBase(r))}),B(3,"i",415),d(),c(4,"span",416)(5,"span"),m(6,"Select File"),d(),B(7,"input",417),d(),c(8,"div",418),B(9,"div",419),d()()()}if(2&i){const t=g(3);p(2),h("ngClass",bt(4,J6,t.hasBaseDropZoneOver))("uploader",t.profilePictureUploader),p(5),h("uploader",t.profilePictureUploader),p(2),h("ngStyle",bt(6,X6,t.profilePictureUploader.progress+"%"))}}function Zue(i,e){if(1&i){const t=re();c(0,"div"),B(1,"div",423),c(2,"div",330)(3,"button",11),P("click",function(){return E(t),I(g(4).updateSignature())}),m(4,"Update Signature"),d(),c(5,"button",424),P("click",function(){return E(t),I(g(4).removeSignature())}),m(6,"Remove Signature"),d()()()}if(2&i){const t=g(4);p(1),h("innerHTML",t.existingSignature,Gn)}}function Xue(i,e){if(1&i){const t=re();c(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. "),d()(),c(5,"div",330)(6,"button",428),P("click",function(){return E(t),I(g(4).saveSignature())}),m(7,"Save"),d(),c(8,"button",424),P("click",function(){return E(t),I(g(4).clearSignature())}),m(9,"Clear"),d()()()}}function Jue(i,e){if(1&i){const t=re();c(0,"div"),B(1,"div",423),c(2,"div",330)(3,"button",11),P("click",function(){return E(t),I(g(4).updateInitials())}),m(4,"Update Initials"),d(),c(5,"button",424),P("click",function(){return E(t),I(g(4).removeInitials())}),m(6,"Remove Initials"),d()()()}if(2&i){const t=g(4);p(1),h("innerHTML",t.existingInitials,Gn)}}function epe(i,e){if(1&i){const t=re();c(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. "),d()(),c(5,"div",330)(6,"button",428),P("click",function(){return E(t),I(g(4).saveInitials())}),m(7,"Save"),d(),c(8,"button",424),P("click",function(){return E(t),I(g(4).clearInitials())}),m(9,"Clear"),d()()()}}function tpe(i,e){if(1&i&&(c(0,"div",20)(1,"h4"),m(2,"Digital Signature"),d(),c(3,"p"),m(4,"Create or update your digital signature to be used to sign documents."),d(),c(5,"div",421)(6,"div",422)(7,"h4"),m(8,"Signature"),d(),b(9,Zue,7,1,"div",333),b(10,Xue,10,0,"div",333),d(),c(11,"div",422)(12,"h4"),m(13,"Initials"),d(),b(14,Jue,7,1,"div",333),c(15,"div"),b(16,epe,10,0,"div",333),d()()()()),2&i){const t=g(3);p(9),h("ngIf",t.existingSignature&&!t.updatingSignature),p(1),h("ngIf",!t.existingSignature||t.updatingSignature),p(4),h("ngIf",t.existingInitials&&!t.updatingInitials),p(2),h("ngIf",!t.existingInitials||t.updatingInitials)}}const fE=function(i){return[i]};function npe(i,e){if(1&i&&(c(0,"a",436),m(1,"edit"),d()),2&i){const t=g().$implicit;h("routerLink",bt(1,fE,"/site/profile/survey/"+t.topLevelSurveyResponseId))}}function ipe(i,e){if(1&i){const t=re();c(0,"i",437),P("click",function(r){E(t);const o=g().$implicit;return g(4).removeSurvey(o),I(r.stopPropagation())}),d()}}function rpe(i,e){if(1&i){const t=re();c(0,"tr")(1,"td"),m(2),d(),c(3,"td"),m(4),d(),c(5,"td"),b(6,npe,2,3,"a",433),c(7,"i",434),P("click",function(){const o=E(t).$implicit;return I(g(4).viewSurveyResults(o.id,o.topLevelSurveyResponseId))}),d(),b(8,ipe,1,0,"i",435),d()()}if(2&i){const t=e.$implicit,n=g(4);p(2),Ae(t.surveyResponseName),p(2),Ae(t.status),p(2),h("ngIf",n.isSelf),p(2),h("ngIf",n.isSelf)}}function ope(i,e){if(1&i&&(c(0,"div",20)(1,"div",6)(2,"table",404)(3,"thead")(4,"th"),m(5,"Name"),d(),c(6,"th",431),m(7,"Status"),d(),B(8,"th",432),d(),b(9,rpe,9,4,"tr",405),d(),B(10,"hr"),d()()),2&i){const t=g(3);p(9),h("ngForOf",t.responses)}}function ape(i,e){if(1&i&&(c(0,"a",436),m(1,"view"),d()),2&i){const t=g().$implicit;h("routerLink",bt(1,fE,"/hr/hiring/application/"+t.id))}}function spe(i,e){if(1&i&&(c(0,"a",436),m(1,"view"),d()),2&i){const t=g().$implicit;h("routerLink",bt(1,fE,"/site/job/"+t.key))}}function lpe(i,e){if(1&i){const t=re();c(0,"i",437),P("click",function(r){E(t);const o=g().$implicit;return g(4).removeApplication(o.id),I(r.stopPropagation())}),d()}}function cpe(i,e){if(1&i&&(c(0,"tr")(1,"td"),m(2),d(),c(3,"td"),m(4),d(),c(5,"td"),m(6),d(),c(7,"td"),b(8,ape,2,3,"a",433),b(9,spe,2,3,"a",433),b(10,lpe,1,0,"i",435),d()()),2&i){const t=e.$implicit,n=g(4);p(2),Ae(t.name),p(2),Ae(t.jobName),p(2),Ae(t.status),p(2),h("ngIf",!n.isSelf),p(1),h("ngIf",n.isSelf),p(1),h("ngIf",n.isSelf)}}function dpe(i,e){if(1&i&&(c(0,"div",20)(1,"div",6)(2,"table",404)(3,"thead")(4,"th",438),m(5,"Name"),d(),c(6,"th"),m(7,"Description"),d(),c(8,"th",431),m(9,"Status"),d(),B(10,"th",439),d(),b(11,cpe,11,6,"tr",405),d()()()),2&i){const t=g(3);p(11),h("ngForOf",t.applications)}}function upe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(3);p(1),Ae(t.passwordChangedMessage)}}function ppe(i,e){if(1&i&&(c(0,"div",343),m(1),d()),2&i){const t=g(3);p(1),Ae(t.pwdError)}}function hpe(i,e){if(1&i&&(c(0,"div",343),m(1),d()),2&i){const t=g(3);p(1),Ae(t.error)}}const e8=function(){return{standalone:!0}},mpe=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 _pe(i,e){if(1&i){const t=re();c(0,"mat-tab-group",12),P("selectedTabChange",function(r){return E(t),I(g(2).tabChanged(r))})("selectedIndexChange",function(r){return E(t),I(g(2).currentTabIndex=r)}),c(1,"mat-tab",13)(2,"form",14)(3,"div",15)(4,"div",16)(5,"span",17)(6,"button",18),P("click",function(){return E(t),I(g(2).updateCoreInfo())}),B(7,"i",19),m(8," Save"),d()()(),c(9,"div",20)(10,"div",21)(11,"label",22),m(12,"User Id/Login Name"),d(),B(13,"input",23),d()(),c(14,"div",20)(15,"div",24)(16,"label",22),m(17,"First Name"),c(18,"span",25),m(19,"*"),d()(),c(20,"input",26),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.firstName=r)}),d(),B(21,"div",27),d(),c(22,"div",24)(23,"label",28),m(24,"Last Name"),c(25,"span",25),m(26,"*"),d()(),c(27,"input",29),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.lastName=r)}),d(),B(28,"div",27),d(),c(29,"div",24)(30,"label",30),m(31,"Social Security Number"),d(),c(32,"div",31)(33,"input",32),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.ssn=r)}),d(),c(34,"span",33),P("click",function(r){return E(t),g(2).showSSN(),I(r.stopPropagation())}),B(35,"i",34),d(),B(36,"div",27),d(),c(37,"label"),m(38," Encrypted and protected on server"),d()()(),c(39,"div",20)(40,"div",35)(41,"label",36),m(42,"Title"),d(),c(43,"input",37),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.title=r)}),d()(),c(44,"div",35)(45,"label",38),m(46,"MS Teams Account Name"),d(),c(47,"input",39),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.teamsAccountName=r)}),d()()(),c(48,"div",20)(49,"div",21)(50,"label",40),m(51,"Email"),c(52,"span",25),m(53,"*"),d()(),c(54,"input",41),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.email=r)}),d(),B(55,"div",27),d(),c(56,"div",21)(57,"label",42),m(58,"Phone Number"),c(59,"span",25),m(60,"*"),d()(),c(61,"input",43),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.phoneNumber=r)}),d(),B(62,"div",27),d()(),c(63,"div",20)(64,"div",44)(65,"label",45),m(66,"Address 1"),d(),c(67,"input",46),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.address1=r)}),d()()(),c(68,"div",20)(69,"div",44)(70,"label",47),m(71,"Address 2"),d(),c(72,"input",48),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.address2=r)}),d()()(),c(73,"div",20)(74,"div",49)(75,"label",50),m(76,"City"),d(),c(77,"input",51),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.city=r)}),d()(),c(78,"div",24),b(79,Oue,2,0,"label",52),b(80,Lue,2,0,"label",53),b(81,Nue,1,1,"input",54),b(82,Bue,105,2,"select",55),d(),c(83,"div",24)(84,"label",56),m(85,"Country"),d(),c(86,"select",57),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.country=r)}),c(87,"option",58),m(88,"-please select your country-"),d(),c(89,"option",59),m(90,"United States"),d(),c(91,"option",60),m(92,"Afghanistan"),d(),c(93,"option",61),m(94,"Aland Islands"),d(),c(95,"option",62),m(96,"Albania"),d(),c(97,"option",63),m(98,"Algeria"),d(),c(99,"option",64),m(100,"American Samoa"),d(),c(101,"option",65),m(102,"Andorra"),d(),c(103,"option",66),m(104,"Angola"),d(),c(105,"option",67),m(106,"Anguilla"),d(),c(107,"option",68),m(108,"Antarctica"),d(),c(109,"option",69),m(110,"Antigua and Barbuda"),d(),c(111,"option",70),m(112,"Argentina"),d(),c(113,"option",71),m(114,"Armenia"),d(),c(115,"option",72),m(116,"Aruba"),d(),c(117,"option",73),m(118,"Australia"),d(),c(119,"option",74),m(120,"Austria"),d(),c(121,"option",75),m(122,"Azerbaijan"),d(),c(123,"option",76),m(124,"Bahamas"),d(),c(125,"option",77),m(126,"Bahrain"),d(),c(127,"option",78),m(128,"Bangladesh"),d(),c(129,"option",79),m(130,"Barbados"),d(),c(131,"option",80),m(132,"Belarus"),d(),c(133,"option",81),m(134,"Belgium"),d(),c(135,"option",82),m(136,"Belize"),d(),c(137,"option",83),m(138,"Benin"),d(),c(139,"option",84),m(140,"Bermuda"),d(),c(141,"option",85),m(142,"Bhutan"),d(),c(143,"option",86),m(144,"Bolivia"),d(),c(145,"option",87),m(146,"Bonaire, Sint Eustatius and Saba"),d(),c(147,"option",88),m(148,"Bosnia and Herzegovina"),d(),c(149,"option",89),m(150,"Botswana"),d(),c(151,"option",90),m(152,"Bouvet Island"),d(),c(153,"option",91),m(154,"Brazil"),d(),c(155,"option",92),m(156,"British Indian Ocean Territory"),d(),c(157,"option",93),m(158,"Brunei Darussalam"),d(),c(159,"option",94),m(160,"Bulgaria"),d(),c(161,"option",95),m(162,"Burkina Faso"),d(),c(163,"option",96),m(164,"Burundi"),d(),c(165,"option",97),m(166,"Cambodia"),d(),c(167,"option",98),m(168,"Cameroon"),d(),c(169,"option",99),m(170,"Canada"),d(),c(171,"option",100),m(172,"Cape Verde"),d(),c(173,"option",101),m(174,"Cayman Islands"),d(),c(175,"option",102),m(176,"Central African Republic"),d(),c(177,"option",103),m(178,"Chad"),d(),c(179,"option",104),m(180,"Chile"),d(),c(181,"option",105),m(182,"China"),d(),c(183,"option",106),m(184,"Christmas Island"),d(),c(185,"option",107),m(186,"Cocos (Keeling) Islands"),d(),c(187,"option",108),m(188,"Colombia"),d(),c(189,"option",109),m(190,"Comoros"),d(),c(191,"option",110),m(192,"Congo"),d(),c(193,"option",111),m(194,"Congo, Democratic Republic of the Congo"),d(),c(195,"option",112),m(196,"Cook Islands"),d(),c(197,"option",113),m(198,"Costa Rica"),d(),c(199,"option",114),m(200,"Cote D'Ivoire"),d(),c(201,"option",115),m(202,"Croatia"),d(),c(203,"option",116),m(204,"Cuba"),d(),c(205,"option",117),m(206,"Curacao"),d(),c(207,"option",118),m(208,"Cyprus"),d(),c(209,"option",119),m(210,"Czech Republic"),d(),c(211,"option",120),m(212,"Denmark"),d(),c(213,"option",121),m(214,"Djibouti"),d(),c(215,"option",122),m(216,"Dominica"),d(),c(217,"option",123),m(218,"Dominican Republic"),d(),c(219,"option",124),m(220,"Ecuador"),d(),c(221,"option",125),m(222,"Egypt"),d(),c(223,"option",126),m(224,"El Salvador"),d(),c(225,"option",127),m(226,"Equatorial Guinea"),d(),c(227,"option",128),m(228,"Eritrea"),d(),c(229,"option",129),m(230,"Estonia"),d(),c(231,"option",130),m(232,"Ethiopia"),d(),c(233,"option",131),m(234,"Falkland Islands (Malvinas)"),d(),c(235,"option",132),m(236,"Faroe Islands"),d(),c(237,"option",133),m(238,"Fiji"),d(),c(239,"option",134),m(240,"Finland"),d(),c(241,"option",135),m(242,"France"),d(),c(243,"option",136),m(244,"French Guiana"),d(),c(245,"option",137),m(246,"French Polynesia"),d(),c(247,"option",138),m(248,"French Southern Territories"),d(),c(249,"option",139),m(250,"Gabon"),d(),c(251,"option",140),m(252,"Gambia"),d(),c(253,"option",141),m(254,"Georgia"),d(),c(255,"option",142),m(256,"Germany"),d(),c(257,"option",143),m(258,"Ghana"),d(),c(259,"option",144),m(260,"Gibraltar"),d(),c(261,"option",145),m(262,"Greece"),d(),c(263,"option",146),m(264,"Greenland"),d(),c(265,"option",147),m(266,"Grenada"),d(),c(267,"option",148),m(268,"Guadeloupe"),d(),c(269,"option",149),m(270,"Guam"),d(),c(271,"option",150),m(272,"Guatemala"),d(),c(273,"option",151),m(274,"Guernsey"),d(),c(275,"option",152),m(276,"Guinea"),d(),c(277,"option",153),m(278,"Guinea-Bissau"),d(),c(279,"option",154),m(280,"Guyana"),d(),c(281,"option",155),m(282,"Haiti"),d(),c(283,"option",156),m(284,"Heard Island and Mcdonald Islands"),d(),c(285,"option",157),m(286,"Holy See (Vatican City State)"),d(),c(287,"option",158),m(288,"Honduras"),d(),c(289,"option",159),m(290,"Hong Kong"),d(),c(291,"option",160),m(292,"Hungary"),d(),c(293,"option",161),m(294,"Iceland"),d(),c(295,"option",162),m(296,"India"),d(),c(297,"option",163),m(298,"Indonesia"),d(),c(299,"option",164),m(300,"Iran, Islamic Republic of"),d(),c(301,"option",165),m(302,"Iraq"),d(),c(303,"option",166),m(304,"Ireland"),d(),c(305,"option",167),m(306,"Isle of Man"),d(),c(307,"option",168),m(308,"Israel"),d(),c(309,"option",169),m(310,"Italy"),d(),c(311,"option",170),m(312,"Jamaica"),d(),c(313,"option",171),m(314,"Japan"),d(),c(315,"option",172),m(316,"Jersey"),d(),c(317,"option",173),m(318,"Jordan"),d(),c(319,"option",174),m(320,"Kazakhstan"),d(),c(321,"option",175),m(322,"Kenya"),d(),c(323,"option",176),m(324,"Kiribati"),d(),c(325,"option",177),m(326,"Korea, Democratic People's Republic of"),d(),c(327,"option",178),m(328,"Korea, Republic of"),d(),c(329,"option",179),m(330,"Kosovo"),d(),c(331,"option",180),m(332,"Kuwait"),d(),c(333,"option",181),m(334,"Kyrgyzstan"),d(),c(335,"option",182),m(336,"Lao People's Democratic Republic"),d(),c(337,"option",183),m(338,"Latvia"),d(),c(339,"option",184),m(340,"Lebanon"),d(),c(341,"option",185),m(342,"Lesotho"),d(),c(343,"option",186),m(344,"Liberia"),d(),c(345,"option",187),m(346,"Libyan Arab Jamahiriya"),d(),c(347,"option",188),m(348,"Liechtenstein"),d(),c(349,"option",189),m(350,"Lithuania"),d(),c(351,"option",190),m(352,"Luxembourg"),d(),c(353,"option",191),m(354,"Macao"),d(),c(355,"option",192),m(356,"Macedonia, the Former Yugoslav Republic of "),d(),c(357,"option",193),m(358,"Madagascar"),d(),c(359,"option",194),m(360,"Malawi"),d(),c(361,"option",195),m(362,"Malaysia"),d(),c(363,"option",196),m(364,"Maldives"),d(),c(365,"option",197),m(366,"Mali"),d(),c(367,"option",198),m(368,"Malta"),d(),c(369,"option",199),m(370,"Marshall Islands"),d(),c(371,"option",200),m(372,"Martinique"),d(),c(373,"option",201),m(374,"Mauritania"),d(),c(375,"option",202),m(376,"Mauritius"),d(),c(377,"option",203),m(378,"Mayotte"),d(),c(379,"option",204),m(380,"Mexico"),d(),c(381,"option",205),m(382,"Micronesia, Federated States of"),d(),c(383,"option",206),m(384,"Moldova, Republic of"),d(),c(385,"option",207),m(386,"Monaco"),d(),c(387,"option",208),m(388,"Mongolia"),d(),c(389,"option",209),m(390,"Montenegro"),d(),c(391,"option",210),m(392,"Montserrat"),d(),c(393,"option",211),m(394,"Morocco"),d(),c(395,"option",212),m(396,"Mozambique"),d(),c(397,"option",213),m(398,"Myanmar"),d(),c(399,"option",214),m(400,"Namibia"),d(),c(401,"option",215),m(402,"Nauru"),d(),c(403,"option",216),m(404,"Nepal"),d(),c(405,"option",217),m(406,"Netherlands"),d(),c(407,"option",218),m(408,"Netherlands Antilles"),d(),c(409,"option",219),m(410,"New Caledonia"),d(),c(411,"option",220),m(412,"New Zealand"),d(),c(413,"option",221),m(414,"Nicaragua"),d(),c(415,"option",222),m(416,"Niger"),d(),c(417,"option",223),m(418,"Nigeria"),d(),c(419,"option",224),m(420,"Niue"),d(),c(421,"option",225),m(422,"Norfolk Island"),d(),c(423,"option",226),m(424,"Northern Mariana Islands"),d(),c(425,"option",227),m(426,"Norway"),d(),c(427,"option",228),m(428,"Oman"),d(),c(429,"option",229),m(430,"Pakistan"),d(),c(431,"option",230),m(432,"Palau"),d(),c(433,"option",231),m(434,"Palestinian Territory, Occupied"),d(),c(435,"option",232),m(436,"Panama"),d(),c(437,"option",233),m(438,"Papua New Guinea"),d(),c(439,"option",234),m(440,"Paraguay"),d(),c(441,"option",235),m(442,"Peru"),d(),c(443,"option",236),m(444,"Philippines"),d(),c(445,"option",237),m(446,"Pitcairn"),d(),c(447,"option",238),m(448,"Poland"),d(),c(449,"option",239),m(450,"Portugal"),d(),c(451,"option",240),m(452,"Puerto Rico"),d(),c(453,"option",241),m(454,"Qatar"),d(),c(455,"option",242),m(456,"Reunion"),d(),c(457,"option",243),m(458,"Romania"),d(),c(459,"option",244),m(460,"Russian Federation"),d(),c(461,"option",245),m(462,"Rwanda"),d(),c(463,"option",246),m(464,"Saint Barthelemy"),d(),c(465,"option",247),m(466,"Saint Helena"),d(),c(467,"option",248),m(468,"Saint Kitts and Nevis"),d(),c(469,"option",249),m(470,"Saint Lucia"),d(),c(471,"option",250),m(472,"Saint Martin"),d(),c(473,"option",251),m(474,"Saint Pierre and Miquelon"),d(),c(475,"option",252),m(476,"Saint Vincent and the Grenadines"),d(),c(477,"option",253),m(478,"Samoa"),d(),c(479,"option",254),m(480,"San Marino"),d(),c(481,"option",255),m(482,"Sao Tome and Principe"),d(),c(483,"option",256),m(484,"Saudi Arabia"),d(),c(485,"option",257),m(486,"Senegal"),d(),c(487,"option",258),m(488,"Serbia"),d(),c(489,"option",259),m(490,"Serbia and Montenegro"),d(),c(491,"option",260),m(492,"Seychelles"),d(),c(493,"option",261),m(494,"Sierra Leone"),d(),c(495,"option",262),m(496,"Singapore"),d(),c(497,"option",263),m(498,"Sint Maarten"),d(),c(499,"option",264),m(500,"Slovakia"),d(),c(501,"option",265),m(502,"Slovenia"),d(),c(503,"option",266),m(504,"Solomon Islands"),d(),c(505,"option",267),m(506,"Somalia"),d(),c(507,"option",268),m(508,"South Africa"),d(),c(509,"option",269),m(510,"South Georgia and the South Sandwich Islands "),d(),c(511,"option",270),m(512,"South Sudan"),d(),c(513,"option",271),m(514,"Spain"),d(),c(515,"option",272),m(516,"Sri Lanka"),d(),c(517,"option",273),m(518,"Sudan"),d(),c(519,"option",274),m(520,"Suriname"),d(),c(521,"option",275),m(522,"Svalbard and Jan Mayen"),d(),c(523,"option",276),m(524,"Swaziland"),d(),c(525,"option",277),m(526,"Sweden"),d(),c(527,"option",278),m(528,"Switzerland"),d(),c(529,"option",279),m(530,"Syrian Arab Republic"),d(),c(531,"option",280),m(532,"Taiwan, Province of China"),d(),c(533,"option",281),m(534,"Tajikistan"),d(),c(535,"option",282),m(536,"Tanzania, United Republic of"),d(),c(537,"option",283),m(538,"Thailand"),d(),c(539,"option",284),m(540,"Timor-Leste"),d(),c(541,"option",285),m(542,"Togo"),d(),c(543,"option",286),m(544,"Tokelau"),d(),c(545,"option",287),m(546,"Tonga"),d(),c(547,"option",288),m(548,"Trinidad and Tobago"),d(),c(549,"option",289),m(550,"Tunisia"),d(),c(551,"option",290),m(552,"Turkey"),d(),c(553,"option",291),m(554,"Turkmenistan"),d(),c(555,"option",292),m(556,"Turks and Caicos Islands"),d(),c(557,"option",293),m(558,"Tuvalu"),d(),c(559,"option",294),m(560,"Uganda"),d(),c(561,"option",295),m(562,"Ukraine"),d(),c(563,"option",296),m(564,"United Arab Emirates"),d(),c(565,"option",297),m(566,"United Kingdom"),d(),c(567,"option",298),m(568,"United States Minor Outlying Islands"),d(),c(569,"option",299),m(570,"Uruguay"),d(),c(571,"option",300),m(572,"Uzbekistan"),d(),c(573,"option",301),m(574,"Vanuatu"),d(),c(575,"option",302),m(576,"Venezuela"),d(),c(577,"option",303),m(578,"Viet Nam"),d(),c(579,"option",304),m(580,"Virgin Islands, British"),d(),c(581,"option",305),m(582,"Virgin Islands, U.s."),d(),c(583,"option",306),m(584,"Wallis and Futuna"),d(),c(585,"option",307),m(586,"Western Sahara"),d(),c(587,"option",308),m(588,"Yemen"),d(),c(589,"option",309),m(590,"Zambia"),d(),c(591,"option",310),m(592,"Zimbabwe"),d()(),B(593,"div",27),d()(),c(594,"div",20)(595,"div",311)(596,"label",312),m(597,"Postal Code"),d(),c(598,"input",313),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.postalCode=r)}),d()(),c(599,"div",24)(600,"label",56),m(601,"Time Zone"),d(),c(602,"select",314),P("ngModelChange",function(r){return E(t),I(g(2).selectedTimeZone=r)}),c(603,"option",315),m(604,"-select your time zone-"),d(),b(605,Vue,2,2,"option",316),d()()(),c(606,"div",20)(607,"div",317)(608,"label",318),m(609,"Bio"),d(),c(610,"textarea",319),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.bio=r)}),d()()(),c(611,"div",20)(612,"div",6)(613,"label",318),m(614,"Email Signature"),d(),c(615,"editor",320),P("ngModelChange",function(r){return E(t),I(g(2).coreInfo.emailSignature=r)}),d()()()()()(),c(616,"mat-tab",321)(617,"div",15),b(618,$ue,6,0,"div",322),b(619,Wue,4,3,"div",322),b(620,que,4,0,"div",322),d()(),c(621,"mat-tab",323)(622,"div",15),b(623,Gue,6,0,"div",322),b(624,Kue,1,1,"img",324),b(625,Que,10,8,"div",322),d()(),c(626,"mat-tab",325)(627,"div",15),b(628,tpe,17,4,"div",322),d()(),c(629,"mat-tab",326)(630,"div",15),b(631,ope,11,1,"div",322),d()(),c(632,"mat-tab",327)(633,"div",15),b(634,dpe,12,1,"div",322),d()(),c(635,"mat-tab",328)(636,"div",329)(637,"div",330)(638,"span",331),P("click",function(){return E(t),I(g(2).changePassword())}),B(639,"i",332),m(640," Change Password "),d()(),b(641,upe,2,1,"div",333),b(642,ppe,2,1,"div",334),c(643,"div",335)(644,"label",336),m(645,"Current Password"),c(646,"span",25),m(647,"*"),d()(),c(648,"input",337),P("ngModelChange",function(r){return E(t),I(g(2).currentPassword=r)}),d()(),c(649,"div",335)(650,"label",338),m(651,"New Password"),c(652,"span",25),m(653,"*"),d()(),c(654,"input",339),P("ngModelChange",function(r){return E(t),I(g(2).newPassword=r)}),d()(),c(655,"div",335)(656,"label",340),m(657,"Confirm Password"),c(658,"span",25),m(659,"*"),d()(),c(660,"input",341),P("ngModelChange",function(r){return E(t),I(g(2).newPasswordConfirm=r)}),d()()()(),c(661,"mat-tab",342)(662,"div")(663,"p"),m(664,"Please be sure you wish to delete your user account."),d(),c(665,"p"),m(666,"If you are the only or last user within your organization, your organization will also be removed."),d(),c(667,"p",343),m(668,"This can not be undone."),d(),c(669,"h4"),m(670),d(),c(671,"p")(672,"strong"),m(673,"If you wish to continue please type your name exactly as it appears above."),d()(),b(674,hpe,2,1,"div",334),c(675,"input",344),P("ngModelChange",function(r){return E(t),I(g(2).deleteAccountName=r)}),d()(),c(676,"button",345),P("click",function(){return E(t),I(g(2).deleteAccount())}),m(677,"Delete Account"),d()()()}if(2&i){const t=g(2);h("selectedIndex",t.currentTabIndex),p(13),_t("value",t.user.userName),p(7),h("ngModel",t.coreInfo.firstName),p(7),h("ngModelOptions",dc(43,e8))("ngModel",t.coreInfo.lastName),p(6),h("ngModelOptions",dc(44,e8))("ngModel",t.coreInfo.ssn),p(10),h("ngModel",t.coreInfo.title),p(4),h("ngModel",t.coreInfo.teamsAccountName),p(7),h("ngModel",t.coreInfo.email),p(7),h("ngModel",t.coreInfo.phoneNumber),p(6),h("ngModel",t.coreInfo.address1),p(5),h("ngModel",t.coreInfo.address2),p(5),h("ngModel",t.coreInfo.city),p(2),h("ngIf","United States"!=t.coreInfo.country),p(1),h("ngIf","United States"==t.coreInfo.country),p(1),h("ngIf","United States"!=t.coreInfo.country),p(1),h("ngIf","United States"==t.coreInfo.country),p(4),h("ngModel",t.coreInfo.country),p(1),h("ngValue",null),p(511),h("ngModel",t.coreInfo.postalCode),p(4),h("ngModel",t.selectedTimeZone),p(3),h("ngForOf",t.timeZones),p(5),h("ngModel",t.coreInfo.bio),p(5),h("init",dc(45,mpe))("ngModel",t.coreInfo.emailSignature),p(3),h("ngIf",t.user&&t.uploader),p(1),h("ngIf",t.user&&t.uploader),p(1),h("ngIf",t.user&&t.uploader),p(3),h("ngIf",t.user&&t.uploader),p(1),h("ngIf",t.user&&t.user.profileImage),p(1),h("ngIf",t.user&&t.uploader),p(3),h("ngIf",t.user&&t.uploader),p(3),h("ngIf",t.responses&&t.responses.length>0),p(3),h("ngIf",t.applications&&t.applications.length>0),p(7),h("ngIf",t.passwordChangedMessage),p(1),h("ngIf",t.pwdError),p(6),h("ngModel",t.currentPassword),p(6),h("ngModel",t.newPassword),p(6),h("ngModel",t.newPasswordConfirm),p(10),Ae(t.user.name),p(4),h("ngIf",t.error),p(1),h("ngModel",t.deleteAccountName)}}function vpe(i,e){if(1&i){const t=re();c(0,"div",1)(1,"app-page-title",2),P("back",function(){return E(t),I(g().back())}),d(),b(2,Rue,18,0,"div",3),b(3,_pe,678,46,"mat-tab-group",4),d()}if(2&i){const t=g();p(1),h("title",t.user.name),p(1),h("ngIf",t.user&&!t.user.termsAndConditionsAccepted),p(1),h("ngIf",t.coreInfo)}}const t8="viewallfiles";class oC{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=t8;resourceDescription;selectedTimeZone;timeZones;distributions;updatingSignature=!1;updatingInitials=!1;signaturePad;initialsPad;constructor(e,t,n,r,o,a,s,l){var u=this;this.route=e,this.userService=t,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=O(function*(v){window.document.title="NuvIoT - User Profile";const D=v.id;if(D)u.showUserProfile(D);else{let W=yield u.userService.getUser();u.showUserProfile(W.id)}const A=v.tab;if(A)switch(A.toLowerCase()){case"account":default:u.currentTabIndex=0;break;case"files":u.currentTabIndex=1;break;case"avatar":u.currentTabIndex=2;break;case"digitalsignature":u.currentTabIndex=3,yield u.loadSignatures();break;case"surveys":u.currentTabIndex=4;break;case"applications":u.currentTabIndex=5;break;case"distributions":u.currentTabIndex=6}});return function(v){return f.apply(this,arguments)}}())}fileOverBase(e){this.hasBaseDropZoneOver=e}showUserProfile(e){var t=this;return O(function*(){e===(yield t.userService.getUser()).id?(yield t.userService.loadCurrentUser(),t.user=yield t.userService.getUser(),t.isSelf=!0):(t.user=(yield t.userService.loadUser(e)).model,t.isSelf=!1),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},t.selectedTimeZone=t.coreInfo.timeZone?.id||"-1",console.log(t.selectedTimeZone,t.coreInfo.timeZone),t.responses=yield t.surveysService.getSurveysForUser(e),t.applications=yield t.hrService.getApplicationsForUser(e),t.distributions=(yield t.businessService.getCurrentUserDistributions()).model})()}ngOnInit(){var e=this;return O(function*(){var t=window.location.hostname;let n=`https://${t="localhost"==t?t="localhost:5001":t}/api/user/profile/picture/upload`,r=`https://${t}/api/media/resources/${Yn.newGuid()}`;e.profilePictureUploader=new N_({url:n}),e.profilePictureUploader.onAfterAddingFile=a=>{e.profileFileNameOrStatus=`Uploading: ${a.some.name}`,e.profilePictureUploader.uploadItem(a)},e.profilePictureUploader.onCompleteItem=function(){var a=O(function*(s,l,u,f){e.user.profileImage=JSON.parse(l).result,yield e.userService.updateUserProfileImage(e.user.profileImage)});return function(s,l,u,f){return a.apply(this,arguments)}}(),e.uploader=new N_({url:r}),e.uploader.onAfterAddingFile=a=>{e.fileNameOrStatus=`Uploading: ${a.some.name}`,e.uploader.uploadItem(a)},e.uploader.onCompleteItem=function(){var a=O(function*(s,l,u,f){const v=JSON.parse(l).result;v.name=e.resourceName,v.key=`resource${e.user.mediaResources.length+1}`,v.description=e.resourceDescription,v.isPublic=!0;const D={id:v.id,text:v.name,key:v.key};e.user.mediaResources.push(D),e.currentResourceId=Yn.newGuid(),e.fileNameOrStatus=`Success uploading: ${s.some.name}`,yield e.userService.addMediaResourceForUser(e.user.id,D),yield e.mediaService.insertMediaResource(v),r=`${ft.siteUri}/api/media/resource/${Yn.newGuid()}`,e.uploader.setOptions({url:r}),e.fileAddMode=t8,e.resourceName="",e.resourceDescription=""});return function(s,l,u,f){return a.apply(this,arguments)}}();let o=yield e.userService.getTimeZones();e.timeZones=o.map(a=>({id:a.id,key:a.id,text:a.displayName})),console.log(e.timeZones,o)})()}removeApplication(e){var t=this;return O(function*(){yield t.hrService.removeApplication(e),t.applications=yield t.hrService.getMyApplications()})()}removeSurvey(e){var t=this;return O(function*(){yield t.surveysService.deleteSurvey(e.orgId,e.rowKey);let n=yield t.userService.getUser();t.responses=yield t.surveysService.getSurveysForUser(n.id)})()}updateCoreInfo(){var e=this;return O(function*(){e.ssn==e.coreInfo.ssn&&(e.coreInfo.ssn=void 0),e.coreInfo.timeZone=e.selectedTimeZone&&"-1"!=e.selectedTimeZone?e.timeZones.find(t=>t.id===e.selectedTimeZone):void 0,yield e.userService.updateCoreInfo(e.coreInfo),e.user=yield e.userService.loadCurrentUser(),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},console.log("update info")})()}existingSignature;existingInitials;loadSignatures(){var e=this;return O(function*(){let t=yield e.userService.getSvgSignature();Math.max(window.devicePixelRatio||1,1),t.successful?e.existingSignature=e.sanitizer.bypassSecurityTrustHtml(t.result):window.setTimeout(()=>{const o=document.querySelector("#signatureCanvas");e.signaturePad=new Tc(o)},1500);let r=yield e.userService.getSvgInitials();r.successful?(e.existingInitials=e.sanitizer.bypassSecurityTrustHtml(r.result),console.log("existing initials",e.existingInitials)):window.setTimeout(()=>{const o=document.querySelector("#initialsCanvas");e.initialsPad=new Tc(o)},1500)})()}tabChanged(e){var t=this;return O(function*(){switch(e.index){case 0:t.navService.setLocation("/userprofile/info/account");break;case 1:t.navService.setLocation("/userprofile/info/files");break;case 2:t.navService.setLocation("/userprofile/info/avatar");break;case 3:t.navService.setLocation("/userprofile/info/digitalsignature"),yield t.loadSignatures();break;case 4:t.navService.setLocation("/userprofile/info/surveys");break;case 5:t.navService.setLocation("/userprofile/info/applications"),t.currentTabIndex=5;break;case 6:t.navService.setLocation("/userprofile/info/distributions")}})()}acceptTermsAndConditions(){var e=this;return O(function*(){const t=yield e.userService.acceptTermsAndConditions();t.successful&&(e.user=t.result)})()}viewSurveyResults(e,t){return O(function*(){console.log(e),window.open(`${ft.siteUri}/api/survey/${e}/${t}/download`)})()}showSSN(){var e=this;return O(function*(){let t=yield e.userService.getUserSSN(e.user.id);console.log(t),t.successful&&(e.coreInfo.ssn=t.result,e.ssn=t.result)})()}deleteAccount(){var e=this;return O(function*(){let t=yield e.userService.getUser();e.deleteAccountName==t.name?(e.error=void 0,(yield e.userService.deleteUser(t.id)).successful&&e.navService.goToLogout()):e.error="Name does not match, please try again"})()}changePassword(){var e=this;return O(function*(){console.log(e.currentPassword);let t=yield e.userService.changePassword(e.user.id,e.currentPassword,e.newPassword,e.newPasswordConfirm);console.log(t),t.successful?(e.currentPassword="",e.newPassword="",e.newPasswordConfirm="",e.pwdError=void 0,e.passwordChangedMessage="Your password has successfully been updated."):(e.pwdError=t.errors[0].message,console.log(t.errors[0].message))})()}back(){this.navService.gotoModuleHome()}saveSignature(){var e=this;return O(function*(){if(0==e.signaturePad.toData().length)return void alert("Please provide a signature before saving");let n=e.signaturePad.toSVG();e.updatingSignature=!1,(yield e.userService.setSvgSignature(n)).successful&&(e.existingSignature=e.sanitizer.bypassSecurityTrustHtml(n))})()}clearSignature(){this.signaturePad.clear()}saveInitials(){var e=this;return O(function*(){if(0==e.initialsPad.toData().length)return void alert("Please provide initials before saving");let n=e.initialsPad.toSVG();(yield e.userService.setSvgInitials(n)).successful&&(e.existingInitials=e.sanitizer.bypassSecurityTrustHtml(n))})()}clearInitials(){this.initialsPad.clear()}updateSignature(){this.updatingSignature=!0,window.setTimeout(()=>{Math.max(window.devicePixelRatio||1,1);const t=document.querySelector("#signatureCanvas");this.signaturePad=new Tc(t)},500)}updateInitials(){this.updatingInitials=!0,window.setTimeout(()=>{const e=document.querySelector("#initialsCanvas");Math.max(window.devicePixelRatio||1,1),this.initialsPad=new Tc(e)},500)}removeInitials(){var e=this;return O(function*(){(yield e.userService.clearSvgInitials()).successful&&(e.existingInitials=void 0,window.setTimeout(()=>{const n=document.querySelector("#initialsCanvas");e.initialsPad=new Tc(n)},500))})()}removeSignature(){var e=this;return O(function*(){(yield e.userService.clearSvgSignature()).successful&&(e.existingSignature=void 0,window.setTimeout(()=>{const n=document.querySelector("#signatureCanvas");e.signaturePad=new Tc(n)},500))})()}ngOnDestroy(){this.paramsSubscription.unsubscribe(),window.document.title="NuvIoT"}static \u0275fac=function(t){return new(t||oC)(H(mi),H(Hn),H(Cg),H(Ns),H(Ys),H(ca),H(zr),H(ip))};static \u0275cmp=Oe({type:oC,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(t,n){1&t&&b(0,vpe,4,3,"div",0),2&t&&h("ngIf",n.user)},dependencies:[Vi,Ot,rt,Rs,UT,Mr,Dr,Dn,pr,en,PT,n_,qt,eg,yue,L6,Nd,cg,Bd,Vd,rC],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 aC{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||aC)};static \u0275cmp=Oe({type:aC,selectors:[["app-about-sl"]],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," about-sl works!\n"),d())}})}class G_{html;constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||G_)};static \u0275cmp=Oe({type:G_,selectors:[["app-preformatted-html-renderer"]],inputs:{html:"html"},decls:2,vars:3,consts:[[3,"innerHtml"]],template:function(t,n){1&t&&(B(0,"div",0),Zt(1,"preformattedHtml")),2&t&&h("innerHtml",Xt(1,1,n.html),Gn)},dependencies:[Ed],styles:["p[_ngcontent-%COMP%]{margin-bottom:0!important;background-color:#ff0}"]})}class fp{transform(e){if(e){let o=new Date(e.toString()),s=+new Date(Date.now())-+o;var t=6e4,n=60*t,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>t?`${Math.floor(s/t)} minute(s) ago`:"just now"}return"-"}static \u0275fac=function(t){return new(t||fp)};static \u0275pipe=qn({name:"lastAccessPrinter",type:fp,pure:!0})}function ype(i,e){1&i&&(c(0,"div",6)(1,"div",7),m(2," IoT and Software Engineering Blog "),d()())}function bpe(i,e){1&i&&B(0,"nuv-icon",16),2&i&&h("iconName",g().$implicit.icon)}function Cpe(i,e){if(1&i&&B(0,"img",17),2&i){const t=g().$implicit;_t("src",g(2).baseUrl+t.imageUrl,gi)}}function wpe(i,e){if(1&i){const t=re();c(0,"div",10),P("click",function(){const o=E(t).$implicit;return I(g(2).showBlog(o))}),c(1,"div",11)(2,"div",12),b(3,bpe,1,1,"nuv-icon",13),b(4,Cpe,1,1,"img",14),c(5,"h3"),m(6),d(),c(7,"p"),m(8),d()(),c(9,"div",15),m(10),Zt(11,"lastAccessPrinter"),d()()()}if(2&i){const t=e.$implicit;p(3),h("ngIf",!t.imageUrl&&t.icon),p(1),h("ngIf",t.imageUrl),p(2),Ae(t.name),p(2),Ae(t.summary),p(2),$e(" ",Xt(11,5,t.datePublished),"")}}function xpe(i,e){if(1&i&&(c(0,"div",8),b(1,wpe,12,7,"div",9),d()),2&i){const t=g();p(1),h("ngForOf",t.blogItems)}}function kpe(i,e){1&i&&B(0,"img",17),2&i&&_t("src",g(2).getImageUrl(),gi)}function Mpe(i,e){if(1&i){const t=re();c(0,"div",18)(1,"h4",19),P("click",function(){return E(t),I(g().showAllPosts())}),B(2,"i",20),m(3,"All Posts"),d(),c(4,"div",21),b(5,kpe,1,1,"img",14),c(6,"h4"),m(7),d(),c(8,"div",0)(9,"span",22),m(10),d(),m(11),Zt(12,"lastAccessPrinter"),d(),B(13,"app-preformatted-html-renderer",23),d()()}if(2&i){const t=g();p(5),h("ngIf",t.blogItem.mediaResource),p(2),Ae(t.blogItem.name),p(3),Ae(t.blogItem.createdBy.text),p(1),$e(" - ",Xt(12,5,t.blogItem.datePublished),""),p(2),h("html",t.blogItem.published.html)}}class K_{route;navService;contentService;paramsSubscription;baseUrl;blogItems;blogItem;orgNs;constructor(e,t,n){var r=this;this.route=e,this.navService=t,this.contentService=n,this.baseUrl=ft.siteUri,this.paramsSubscription=this.route.params.subscribe(function(){var o=O(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,u)=>l.datePublished>u.datePublished?-1:1)});return function(a){return o.apply(this,arguments)}}())}ngOnDestroy(){this.paramsSubscription.unsubscribe()}showBlog(e){var t=this;return O(function*(){t.blogItem=yield t.contentService.getSiteContentForOrgNS(t.orgNs,"blog",e.key),t.navService.setLocation(`/public/${t.orgNs}/blog/${e.key}`)})()}getImageUrl(){if(this.blogItem.mediaResource)return`${ft.siteUri}/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(t){return new(t||K_)(H(mi),H(zr),H(Pa))};static \u0275cmp=Oe({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(t,n){1&t&&(c(0,"div",0),b(1,ype,3,0,"div",1),c(2,"div",2),B(3,"div",3),c(4,"div"),b(5,xpe,2,1,"div",4),b(6,Mpe,14,7,"div",5),d(),B(7,"div",3),d()()),2&t&&(p(1),h("ngIf",!n.blogItem),p(4),h("ngIf",n.blogItems&&!n.blogItem),p(1),h("ngIf",n.blogItem))},dependencies:[es,G_,Ot,rt,fp],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 Q_{client;constructor(e){this.client=e}getDeviceGroups(e){return this.client.getListResponse(`api/repo/${e}/groups`)}createDeviceGroup(e){return this.client.getFormResponse(`api/repo/${e}/group/factory`)}getDeviceGroup(e,t){return this.client.getFormResponse(`api/repo/${e}/group/${t}`)}getSummaryDataForDeviceGroup(e,t){return this.client.getListResponse(`/api/repo/${e}/group/${t}/devices/summarydata`)}insertDeviceGroup(e,t){return this.client.insert(`/api/repo/${t}/group`,e)}updateDeviceGroup(e,t){return console.log(t),this.client.update(`/api/repo/${t}/group`,e)}saveDeviceGroup(e,t){return t.isEditing?this.updateDeviceGroup(t.model,e):this.insertDeviceGroup(t.model,e)}deleteDeviceGroup(e,t){return this.client.delete(`/api/repo/${e}/group/${t}`)}addDeviceToGroup(e,t,n){return this.client.requestForInvokeResultEx(`/api/repo/${e}/group/${t}/add/${n}`)}removeDeviceFromGroup(e,t,n){return this.client.get(`/api/repo/${e}/group/${t}/remove/${n}`)}static \u0275fac=function(t){return new(t||Q_)(Me(hn))};static \u0275prov=Ue({token:Q_,factory:Q_.\u0275fac,providedIn:"root"})}class mp{deviceGroupService;nuviotClient;constructor(e,t){this.deviceGroupService=e,this.nuviotClient=t}_deviceIdForLogs;_deviceId;_repoId;_device;_deviceGroup;_devices=[];_deviceRepo;_deviceRepos=[];_deviceGroups=[];_deviceGroups$=new Ut;_device$=new Ut;_deviceCleared$=new Ut;_deviceLoading$=new Ut;_devices$=new Ut;_devicesLoading$=new Ut;_deviceRepo$=new Ut;_deviceGroup$=new Ut;_deviceRepos$=new Ut;_deviceMetadataCache={};_deviceLogs$=new Ut;_deviceLogCleared$=new Ut;_deviceLogLoading$=new Ut;_deviceNotificationSubscription$=new Ut;_deviceGroupNotificationSubscription$=new Ut;_deviceRepoNotificationSubscription$=new Ut;_deviceNotificationWebSocket;_deviceGroupWebSocket;_deviceRepoWebSocket;loadDeviceRepositories(){var e=this;return O(function*(){let t=e.nuviotClient.getListResponse("/api/devicerepos");return e.setDeviceRepos((yield t).model),t})()}deviceSafeInit(e){e.primaryAccessKey||(e.primaryAccessKey=btoa(Math.random().toString(36).substring(2)+(new Date).getTime().toString(36))),e.secondaryAccessKey||(e.secondaryAccessKey=btoa(Math.random().toString(36).substring(2)+(new Date).getTime().toString(36))),e.properties||(e.properties=[])}createDevice(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse(`/api/device/${e}/factory`);return t.deviceSafeInit(n.model),n})()}addDeviceToLocation(e,t,n){var r=this;return O(function*(){return yield r.nuviotClient.request(`/api/device/${e}/${t}/location/${n}/add`)})()}removeDeviceFromLocation(e,t,n){var r=this;return O(function*(){return yield r.nuviotClient.delete(`/api/device/${e}/${t}/location/${n}/remove`)})()}sendCommand(e,t,n,r=[]){return this.nuviotClient.post(`/api/device/remoteconfig/${e}/${t}/command/${n}`,r)}sendCommandWithPin(e,t,n,r,o,a=[]){return this.nuviotClient.post(`/api/device/remoteconfig/${e}/${t}/${n}/${r}/command/${o}`,a)}createDeviceWithModelKey(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/device/${e}/key/${t}/create`)})()}loadDevice(e,t){var n=this;return O(function*(){return yield n.nuviotClient.getFormResponse(`/api/device/${e}/${t}/metadata`)})()}loadDeviceArchive(e,t){var n=this;return O(function*(){return yield n.nuviotClient.getListResponse(`/api/device/${e}/archives/${t}`)})()}getDeviceTypes(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/devicetypes")})()}deleteDevice(e,t){var n=this;return O(function*(){return yield n.nuviotClient.delete(`/api/device/${e}/${t}`)})()}completeProductionQA(e){var t=this;return O(function*(){return t.nuviotClient.request(`/api/devicetype/${e}/qa/completed`)})()}getDeviceType(e){return this.nuviotClient.getFormResponse(`/api/devicetype/${e}`)}createDeviceType(){return this.nuviotClient.getFormResponse("/api/devicetype/factory")}insertDeviceType(e){var t=this;return O(function*(){return yield t.nuviotClient.insert("/api/devicetype",e)})()}updateDeviceType(e){var t=this;return O(function*(){return yield t.nuviotClient.update("/api/devicetype",e)})()}deleteDeviceType(e){return this.nuviotClient.delete(`/api/devicetype/${e}`)}sendDeviceCommand(e,t,n){return this.nuviotClient.request(`/api/device/remoteconfig/${e}/${t}/command/${n}`)}getDeviceConfigurations(){return this.nuviotClient.request("/api/deviceconfigs")}getDeviceConfiguration(e){return this.nuviotClient.request(`/api/deviceconfig/${e}`)}createDeviceConfiguration(){return this.nuviotClient.request("/api/deviceconfig/factory")}addDeviceConfiguration(e){return this.nuviotClient.insert("/api/deviceconfig",e)}deleteDeviceConfiguration(e){return this.nuviotClient.delete(`/api/deviceconfig/${e}`)}updateDeviceConfiguration(e){return this.nuviotClient.update("/api/deviceconfig",e)}createDeviceConfigurationRoute(){return this.nuviotClient.request("/api/deviceconfig/route/factory")}editDeviceConfigurationRoute(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/deviceconfig/route/factory");return n.model=e,n.isEditing=!0,n})()}saveDeviceConfiguration(e){return e.isEditing?this.updateDeviceConfiguration(e.model):this.addDeviceConfiguration(e.model)}getDeviceOwners(e,t){var n=this;return O(function*(){return n.nuviotClient.getListResponse(`/api/devices/${e}/device/${t}/owners`)})()}addFirmware(e){var t=this;return O(function*(){return t.nuviotClient.post("/api/firmware",e)})()}updateFirmware(e){var t=this;return O(function*(){return t.nuviotClient.update("/api/firmware",e)})()}getFirmwares(){var e=this;return O(function*(){return e.nuviotClient.request("/api/firmwares")})()}createFirmware(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/firmware/factory")})()}createFirmwareRevision(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/firmware/revision/factory")})()}createBOMItem(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/devicetype/bomitem/factory")})()}getFirmware(e){return this.nuviotClient.getFormResponse(`/api/firmware/${e}`)}getDeviceProperties(e){return this.nuviotClient.request(`/api/deviceconfig/${e}/properties`)}getDeviceConnectionEvents(e,t){return this.nuviotClient.request(`/api/device/${e}/${t}/connectionlog`)}LoadRepoGroupsAndDevices(e,t=!1){e===this._repoId&&this._deviceRepo&&this._devices&&this._deviceGroups&&!t?(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=e,this.nuviotClient.getFormResponse(`/api/devicerepo/${e}`).then(n=>this.setDeviceRepo(n.model)),this.nuviotClient.getListResponse(`/api/devices/${e}`).then(n=>{this.setDevices(n.model),this.setDevicesLoading(!1)}),this.nuviotClient.getListResponse(`api/repo/${e}/groups`).then(n=>this.setDeviceGroups(n.model)))}createDeviceRepo(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/devicerepo/factory")})()}loadDeviceRepo(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse(`/api/devicerepo/${e}`);return t.setDeviceRepo(n.model),n})()}loadDeviceOntoPage(e,t){if(e&&t&&t!==this._deviceId){this._deviceLoading$.next(null),this._deviceCleared$.next(null);const n=`/api/device/${e}/${t}/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=t,this._repoId=e,this._deviceMetadataCache[n]=o.model,this.deviceSafeInit(o.model),this.setDeviceDetail(o.model),console.log("--\x3e initial injection complete.")})}}loadDeviceGroups(e){var t=this;return O(function*(){return yield t.nuviotClient.getListResponse(`api/repo/${e}/groups`)})()}updateRemoteDeviceProperties(e,t){return this.nuviotClient.request(`/api/device/remoteconfig/${e}/${t}/all/send`)}restartDevice(e,t){return this.nuviotClient.request(`/api/device/remoteconfig/${e}/${t}/restart`)}refreshDeviceTwin(e,t){return this.nuviotClient.request(`/api/device/remoteconfig/${e}/${t}/query`)}requestFirmwareUpdate(e,t,n,r){return this.nuviotClient.request(`/api/device/remoteconfig/${e}/${t}/firmware/${n}/revision/${r}?triggeredRemotely=true`)}getFirmwareHistory(e,t){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/firmware/history/${e}/${t}`).then(a=>{r(a.model)}).catch(a=>o(a))})}getDeviceGeoBoundingBox(e,t){return this.nuviotClient.request(`/api/device/${e}/${t}/boundingbox`,!1,!1)}loadDeviceLogs(e,t){if(t!==this._deviceIdForLogs){const n=`device/${e}/logs/${t}`;this._deviceLogLoading$.next(null),this._deviceCleared$.next(null),this.nuviotClient.getListResponse(n).then(r=>{this._deviceId=t,this._repoId=e,this._deviceLogs$.next(r.model)})}}downloadDeviceTypeResource(e,t,n){this.nuviotClient.getBlobResponse(`/api/devicetype/${t}/resources/${n}`,e)}getMediaItemsForDevice(e,t){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/${e}/devices/${t}/media`).then(s=>{r(s)}).catch(s=>{o(s)})})}getDeviceUnCached(e,t){var n=this;return O(function*(){const r=`/api/device/${e}/${t}/metadata`;return(yield n.nuviotClient.getFormResponse(r)).model})()}getDeviceCustomPage(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/deviceconfig/${e}/custompage`)})()}getDevice(e,t,n=!0){var r=this;return O(function*(){const o=`/api/device/${e}/${t}/metadata`;return e&&t?(n&&(r.setDeviceDetail(null),r._deviceLoading$.next(null)),new Promise((s,l)=>{let u=r.deviceMetadataEntry(o);if(u.hasEntry){let f=0;const v=setInterval(()=>{f+=1,u.isLoaded?(clearInterval(v),s(u.value),n&&r.setDeviceDetail(u.value)):u=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(e,t){if(e&&t){const n=`/api/device/${e}/${t}/metadata`;this._deviceMetadataCache[n]=void 0,this.nuviotClient.getFormResponse(n).then(r=>{this.setDeviceDetail(r.model),this._deviceMetadataCache[n]=r.model})}}createDeviceGroup(e){var t=this;return O(function*(){return t.deviceGroupService.createDeviceGroup(e)})()}loadDeviceGroup(e,t){var n=this;return O(function*(){n.setDeviceGroup(null);let r=yield n.deviceGroupService.getDeviceGroup(e,t);return n.setDeviceGroup(r.model),r})()}loadDeviceExceptions(e,t){return this.nuviotClient.getListResponse(`/api/device/${e}/errors/${t}`)}clearDevice(){this.setDeviceDetail(null)}clearDeviceErrorCode(e,t,n){return this.nuviotClient.delete(`/api/device/${e}/${t}/error/${n}`)}addDevice(e){var t=this;return O(function*(){let n=yield t.nuviotClient.insert(`/api/device/${e.deviceRepository.id}`,e);return n.successful&&t.setDeviceDetail(null),n})()}addUserDevice(e){return new Promise((n,r)=>{this.nuviotClient.insert(`/api/device/${e.device.deviceRepository.id}/userdevice`,e).then(o=>{this.setDeviceDetail(null),n(o)}).catch(o=>r(o))})}getUserDevices(e,t){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/users/repo/${e}`,t).then(a=>{r(a)}).catch(a=>o(a))})}updateCustomStatus(e,t,n){var r=this;return O(function*(){return r.nuviotClient.request(`/api/device/${e}/${t}/status/${n}`)})()}resetCustomStatus(e,t){var n=this;return O(function*(){return n.nuviotClient.request(`/api/device/${e}/${t}/status/reset`)})()}updateDevice(e,t=!0){var n=this;return O(function*(){let r=yield n.nuviotClient.updateWithResponse(`/api/device/${e.deviceRepository.id}`,e);return r.successful&&n.setDeviceDetail(t?null:e),r})()}saveSensor(e,t){var n=this;return O(function*(){return yield n.nuviotClient.postWithResponse(`/api/device/${e.deviceRepository.id}/device/${e.id}/sensor`,t)})()}removeSensor(e,t){var n=this;return O(function*(){return yield n.nuviotClient.deleteWithResponse(`/api/device/${e.deviceRepository.id}/device/${e.id}/sensor/${t.id}`)})()}addDeviceNote(e,t,n){return new Promise((o,a)=>{this.nuviotClient.post(`/api/device/${e}/${t}/note`,n).then(s=>{o(s)}).catch(s=>a(s))})}validateDevice(e){const t=[];return e.name||t.push({message:"Device Name is a required field."}),e.deviceId||t.push({message:"Device Id is a required field."}),e.primaryAccessKey||t.push({message:"Primary access key is a required field."}),e.secondaryAccessKey||t.push({message:"Secondary access key is a required field."}),e.deviceType&&e.deviceType.id?(!e.deviceConfiguration||!e.deviceConfiguration.id)&&t.push({message:"Device Configuration is a required field (device type may be invalid)"}):t.push({message:"Device Type is a required Field."}),t}createDeviceSensor(){return this.nuviotClient.getFormResponse("/api/device/sensor/factory")}editDeviceSensor(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/device/sensor/factory");return n.model=e,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(e){return this.nuviotClient.getListResponse(`/api/devices/${e}`)}getPublicDevicesForRepo(e,t){return this.nuviotClient.request(`/device/org/${e}/repo/${t}`)}getDevicesForCustomer(e,t){return this.nuviotClient.getListResponse(`/api/devices/${e}/customer/${t}`)}getDevicesForCustomerLocation(e,t,n){return this.nuviotClient.getListResponse(`/api/devices/${e}/customer/${t}/location/${n}`)}getDevicesForRepoByDeviceType(e,t){return this.nuviotClient.getListResponse(`/api/devices/${e}/devicetype/${t}`)}getDevicesForRepoByDeviceTypeKey(e,t){return this.nuviotClient.getListResponse(`/api/devices/${e}/devicetype/key/${t}`)}getDeviceRepo(){return this._deviceRepo}getDeviceRepos(){return this._deviceRepos}getDeviceDetail(){return this._device}getConnectedDevices(e){return this.nuviotClient.getListResponse(`/api/deployment/instance/${e}/connected/monitored`)}getDeviceStatusHistory(e,t){return this.nuviotClient.getListResponse(`/api/device/${e}/status/${t}/history`)}getCurrentDevicesStatus(e){return this.nuviotClient.getListResponse(`/api/devices/${e}/status`)}setDevices(e){this._devices=e,this._devices$.next(e)}setDevicesLoading(e){this._devicesLoading$.next(e)}setDeviceRepo(e){this._deviceRepo=e,this._deviceRepo$.next(e)}setDeviceDetail(e){this._deviceId=e?e.id:null,this._device=e,this._device$.next(e)}setDeviceGroups(e){this._deviceGroups=e,this._deviceGroups$.next(e)}setDeviceRepos(e){this._deviceRepos=e,this._deviceRepos$.next(e)}setDeviceGroup(e){this._deviceGroup=e,this._deviceGroup$.next(e)}deviceMetadataEntry(e){const t=Object.keys(this._deviceMetadataCache).find(o=>o===e),n=t?this._deviceMetadataCache[t]:void 0;return{hasEntry:void 0!==t,isLoaded:void 0!==n,value:n}}getErrorCodes(){return this.nuviotClient.getListResponse("/api/errorcodes")}getErrorCode(e){return this.nuviotClient.getFormResponse(`/api/errorcode/${e}`)}createErrorCode(){return this.nuviotClient.getFormResponse("/api/errorcode/factory")}addErrorCode(e){return this.nuviotClient.insert("/api/errorcode",e)}updateErrorCode(e){return this.nuviotClient.update("/api/errorcode",e)}saveErrorCode(e){return e.isEditing?this.updateErrorCode(e.model):this.addErrorCode(e.model)}raiseDeviceError(e,t){return this.nuviotClient.request(`/api/device/${e.deviceRepository.id}/${e.id}/error/${t}/raise`)}deleteErrorCode(e){return this.nuviotClient.delete(`/api/errorcode/${e}`)}sendDeviceNotification(e,t,n=!1,r=!1){return this.nuviotClient.request(`/api/notifications/${e.deviceRepository.id}/${e.id}/${t}?testing=${n}&dryrun=${r}`)}testDeviceNotification(e,t,n,r=!1,o=!1){return this.nuviotClient.request(`/api/notifications/${e}/${t}/${n}?testing=${r}&dryrun=${o}`)}setDevicePinCode(e,t,n=!1){return this.nuviotClient.request(`/api/device/${e.deviceRepository.id}/${e.id}/pin/set/${t}?mustchange=${n}`)}setDeviceCustomState(e,t,n){return this.nuviotClient.request(`/api/device/${e}/${t}/customstatus/${n}`)}clearDevicePinCode(e){return this.nuviotClient.delete(`/api/device/${e.deviceRepository.id}/${e.id}/pin`)}getDeviceWithPin(e,t,n,r){return this.nuviotClient.request(`/api/device/${e}/${t}/${n}/${r}/view`)}signInWithNotification(e,t,n){return this.nuviotClient.request(`/device/notififcation/${e}/${t}/${n}/signin`)}silenceNotification(e,t){return this.nuviotClient.request(`/api/deployment/instance/${e}/device/${t}/notifications/silence`)}enableNotification(e,t){return this.nuviotClient.request(`/api/deployment/instance/${e}/device/${t}/notifications/enable`)}getDevicePems(e,t){return this.nuviotClient.getListResponse(`/api/device/${e}/pems/${t}`)}getDevicePin(e,t){return this.nuviotClient.request(`/api/device/${e}/${t}/pin`)}getDeviceTransactions(e){return this.nuviotClient.getListResponse(`/api/device/${e}/records`)}getShortenedLink(e,t){return this.nuviotClient.request(`/api/device/${e}/${t}/link/short`)}addDeviceContactListWithPin(e,t,n,r,o){return this.nuviotClient.post("/api/device/current/contacts",o)}sendOnlineNotification(e,t){return this.nuviotClient.request(`/api/notification/device/${e}/${t}/online/test`)}sendOfflineNotification(e,t){return this.nuviotClient.request(`/api/notification/device/${e}/${t}/offline/test`)}getSilencedAlarms(e,t){return this.nuviotClient.getListResponse(`/api/device/${e}/${t}/alarms/silenced`)}setCustomerLocation(e,t,n){return this.nuviotClient.postWithResponse(`/api/device/${e}/${t}/location`,n)}associateDeviceWithDiagram(e,t,n){return this.nuviotClient.post(`/api/device/${e}/${t}/diagram`,n)}removeDeviceFromDiagram(e,t){return this.nuviotClient.delete(`/api/device/${e}/${t}/diagram`)}setDeviceName(e,t,n){return this.nuviotClient.request(`/api/device/${e}/${t}/name?devicename=${encodeURIComponent(n)}`)}enableTestMode(e,t){return this.nuviotClient.request(`/api/device/${e}/${t}/testmode/true`)}disableTestMode(e,t){return this.nuviotClient.request(`/api/device/${e}/${t}/testmode/false`)}resetCustomStatusForCustomerAsync(e,t){return this.nuviotClient.request(`/api/devices/${e}/customer/${t}/reset`)}static \u0275fac=function(t){return new(t||mp)(Me(Q_),Me(hn))};static \u0275prov=Ue({token:mp,factory:mp.\u0275fac,providedIn:"root"})}class _p{nuviotClient;constructor(e){this.nuviotClient=e}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(e){return this.nuviotClient.getFormResponse(`/api/deployment/host/${e}`)}GetHostWithKeys(e){return this.nuviotClient.getFormResponse(`/api/deployment/host/${e}/secure`)}AddHost(e){return this.nuviotClient.post("/api/deployment/host",e)}RegenHostKey(e,t){return this.nuviotClient.request(`/api/deployment/host/${e}/generate/${t}`)}UpdateHost(e){return this.nuviotClient.update("/api/deployment/host",e)}DeleteHost(e){return this.nuviotClient.delete(`/api/deployment/host/${e}`)}GetSolutions(){return this.nuviotClient.getListResponse("/api/deployment/solutions")}GetSolution(e){return this.nuviotClient.getFormResponse(`/api/deployment/solution/${e}`)}CreateSolution(){return this.nuviotClient.getFormResponse("/api/deployment/solution/factory")}AddSolution(e){return this.nuviotClient.post("/api/deployment/solution",e)}UpdateSolution(e){return this.nuviotClient.update("/api/deployment/solution",e)}GetDeploymentActivities(e,t){return this.nuviotClient.getListResponse(`/api/deployment/solution/${e}/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(e){return this.nuviotClient.request(`/api/deployment/instance/${e}/testmode/true`)}disableTestMode(e){return this.nuviotClient.request(`/api/deployment/instance/${e}/testmode/false`)}getInstance(e){return this.nuviotClient.getFormResponse(`/api/deployment/instance/${e}`)}CreateInstance(){return this.nuviotClient.getFormResponse("/api/deployment/instance/factory")}GetWebSocketUrl(e,t){return this.nuviotClient.request(`/api/wsuri/${e}/${t}/normal`)}GetUsageMetrics(e,t){return this.nuviotClient.getListResponse(`/api/usagemetrics/${e}/${t}`)}ValidateSolution(e){return this.nuviotClient.request(`/api/deployment/solution/${e}/validate`)}SendAction(e,t,n){return this.nuviotClient.request(`/api/deployment/${e}/${t}/${n}`)}DeployInstance(e){return this.nuviotClient.request(`/api/deployment/instance/${e}/deploy`)}RemoveSharedInstance(e,t){return this.nuviotClient.delete(`/api/deployment/host/${e}/remove/${t}`)}LoadStatusHistory(e,t,n){return this.nuviotClient.getListResponse(`/api/deployment/${e}/${t}/statushistory`,n)}LoadTelemetry(e,t,n,r){return this.nuviotClient.getListResponse(`/api/telemetry/${e}/${t}/${n}`,r)}GetContainerRepos(){return this.nuviotClient.getListResponse("/api/container/repos")}GetContainer(e){return this.nuviotClient.getFormResponse(`/api/container/repo/${e}`)}GetContainerTags(e){return this.nuviotClient.getListResponse(`/api/container/${e}/registry/tags`)}CreateContainerTag(){return this.nuviotClient.getFormResponse("/api/container/tag/factory")}CreateContainer(){return this.nuviotClient.getFormResponse("/api/container/repo/factory")}SaveContainer(e){return e.isEditing?this.nuviotClient.update("/api/container/repo",e.model):this.nuviotClient.post("/api/container/repo",e.model)}UpdateInstanceRuntime(e,t,n){return this.nuviotClient.get(`/api/deployment/instance/${e}/image/${t}/${n}`)}GetFailedPems(e,t){return this.nuviotClient.getListResponse(`/api/device/${e}/pems/errors/${t}`)}GetPem(e,t,n){let r=`/api/device/${e}/${t}/${n.replace(".","_")}/pem`;return this.nuviotClient.request(r)}GetSecret(e){return this.nuviotClient.request(`/api/secret/${e}`)}getClientApps(){return this.nuviotClient.getListResponse("/api/clientapps")}getClientApp(e){return this.nuviotClient.getFormResponse(`/api/clientapp/${e}`)}createClientApp(){return this.nuviotClient.getFormResponse("/api/clientapp/factory")}addClientApp(e){return this.nuviotClient.post("/api/clientapp",e)}updateClientApp(e){return this.nuviotClient.update("/api/clientapp",e)}deleteClientApp(e){return this.nuviotClient.delete(`/api/clientapp/${e}`)}saveClientApp(e){return e.isEditing?this.nuviotClient.update("/api/clientapp",e.model):this.nuviotClient.post("/api/clientapp",e.model)}getDeviceNotifications(){return this.nuviotClient.getListResponse("/api/notifications")}getDeviceNotificationsForCustomer(e){return this.nuviotClient.getListResponse(`/api/notifications/customer/${e}`)}getDeviceNotificationHistory(e){return this.nuviotClient.getListResponse(`/api/device/notification/${e}/history`)}getRaisedNotificationSummary(e,t){return this.nuviotClient.request(`/api/device/notification/raised/${e}/${t}/summary`)}getDeviceRepoNotificationHistory(e){return this.nuviotClient.getListResponse(`/api/device/notification/repo/${e}/history`)}getRaisedDeviceNotificationHistory(e){return this.nuviotClient.getListResponse(`/api/device/notification/raised/${e}/history`)}getRaisedDeviceRepoNotificationHistory(e){return this.nuviotClient.getListResponse(`/api/device/notification/raised/repo/${e}/history`)}getPublicRaisedDeviceRepoNotificationHistory(e,t){return this.nuviotClient.getListResponse(`/deviceapi/device/notification/${e}/raised/repo/${t}/history`)}getDeviceNotification(e){return this.nuviotClient.getFormResponse(`/api/notification/${e}`)}createDeviceNotification(){return this.nuviotClient.getFormResponse("/api/notification/factory")}addDeviceNotification(e){return this.nuviotClient.post("/api/notification",e)}updateDeviceNotification(e){return this.nuviotClient.update("/api/notification",e)}deleteDeviceNotification(e){return this.nuviotClient.delete(`/api/notification/${e}`)}saveDeviceNotification(e){return e.isEditing?this.nuviotClient.update("/api/clientapp",e.model):this.nuviotClient.post("/api/clientapp",e.model)}getSystemTests(){return this.nuviotClient.getListResponse("/api/systemtests")}getSystemTest(e){return this.nuviotClient.getFormResponse(`/api/systemtest/${e}`)}createSystemTest(){return this.nuviotClient.getFormResponse("/api/systemtest/factory")}addSystemTest(e){return this.nuviotClient.post("/api/systemtest",e)}updateSystemTest(e){return this.nuviotClient.update("/api/systemtest",e)}deleteSystemTest(e){return this.nuviotClient.delete(`/api/systemtest/${e}`)}saveSystemTest(e){return e.isEditing?this.nuviotClient.update("/api/systemtest",e.model):this.nuviotClient.post("/api/systemtest",e.model)}createTestExecution(e){return this.nuviotClient.request(`/api/systemtest/${e}/start`)}abortTestExecution(e){return this.nuviotClient.request(`/api/systemtest/${e}/abort`)}getTestExecution(e){var t=this;return O(function*(){return(yield t.nuviotClient.request(`/api/systemtest/execution/${e}/result`)).result})()}getTestExecutions(){return this.nuviotClient.getListResponse("/api/systemtest/execution/results")}completeTestStep(e,t,n){var r=this;return O(function*(){return(yield r.nuviotClient.postWithResponse(`/api/systemtest/${e}/step/${t}/complete`,n)).result})()}undoTestStep(e,t){var n=this;return O(function*(){return(yield n.nuviotClient.request(`/api/systemtest/${e}/step/${t}/undo`)).result})()}getIncidentProtocols(){return this.nuviotClient.getListResponse("/api/incident/protocols")}getIncidentProtocol(e){return this.nuviotClient.getFormResponse(`/api/incident/protocol/${e}`)}createIncidentProtocol(){return this.nuviotClient.getFormResponse("/api/incident/protocol/factory")}addIncidentProtocol(e){return this.nuviotClient.post("/api/incident/protocol",e)}updateIncidentProtocol(e){return this.nuviotClient.update("/api/incident/protocol",e)}deleteIncidentProtocol(e){return this.nuviotClient.delete(`/api/incident/protocol/${e}`)}saveIncidentProtocol(e){return e.isEditing?this.nuviotClient.update("/api/incident/protocol",e.model):this.nuviotClient.post("/api/incident/protocol",e.model)}createIntegration(){return this.nuviotClient.getFormResponse("/api/integration/factory")}getIntegration(e){return this.nuviotClient.getFormResponse(`/api/integration/${e}`)}deleteIntegration(e){return this.nuviotClient.delete(`/api/integration/${e}`)}getIntegrations(){return this.nuviotClient.getListResponse("/api/integrations")}insertIntegration(e){return this.nuviotClient.post("/api/integration",e)}updateIntegration(e){return this.nuviotClient.update("/api/integration",e)}saveIntegration(e){return e.isEditing?this.nuviotClient.update("/api/integration",e.model):this.nuviotClient.post("/api/integration",e.model)}getTelemetryData(e){return this.nuviotClient.getListResponse(e)}getStatusHistory(e){return this.nuviotClient.getListResponse(e)}createWiFiConnectionProfile(){return this.nuviotClient.getFormResponse("/api/wificonnectionprofile/factory")}editWiFiConnectionProfile(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/wificonnectionprofile/factory");return n.model=e,n.isEditing=!0,n})()}getWiFiConnectionProfile(e,t){return this.nuviotClient.request(`/api/deployment/instance/${e}/wifiprofile/${t}`)}saveWiFiConnectionProfile(e,t){return console.log(t),t.isEditing?this.nuviotClient.updateWithResponse(`/api/deployment/instance/${e}/wifiprofile`,t.model):this.nuviotClient.postWithResponse(`/api/deployment/instance/${e}/wifiprofile`,t.model)}static \u0275fac=function(t){return new(t||_p)(Me(hn))};static \u0275prov=Ue({token:_p,factory:_p.\u0275fac,providedIn:"root"})}class Ag{nuviotClient;createPage(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/page")}constructor(e){this.nuviotClient=e}getWorkflow(e){return this.nuviotClient.getFormResponse(`/api/deviceadmin/deviceworkflow/${e}`)}createWorkflow(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/deviceworkflow")}getWorkflows(){return this.nuviotClient.getListResponse("/api/deviceadmin/deviceworkflows")}insertWorkflow(e){return this.nuviotClient.post("/api/deviceadmin/deviceworkflow",e)}updateWorkflow(e){return this.nuviotClient.update("/api/deviceadmin/deviceworkflow",e)}deleteWorkflow(e){return this.nuviotClient.delete("/api/deviceadmin/deviceworkflow")}createPlanner(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/planner/factory")}getPlanner(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/planner/${e}`)}getPlanners(){return this.nuviotClient.getListResponse("/api/pipeline/admin/planners")}addPlanner(e){return this.nuviotClient.post("/api/pipeline/admin/planner",e)}updatePlanner(e){return this.nuviotClient.update("/api/pipeline/admin/planner",e)}savePlanner(e){return e.isEditing?this.updatePlanner(e.model):this.addPlanner(e.model)}removePlanner(e){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/planner/${e}`)}createAppCache(){return this.nuviotClient.getFormResponse("/api/appcache/factory")}getAppCache(e){return this.nuviotClient.getFormResponse(`/api/appcache/${e}`)}getAppCaches(){return this.nuviotClient.getListResponse("/api/appcaches")}addAppCache(e){return this.nuviotClient.post("/api/appcache",e)}updateAppCache(e){return this.nuviotClient.update("/api/appcache",e)}saveAppCache(e){return e.isEditing?this.updateAppCache(e.model):this.addAppCache(e.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(e){var t=this;return O(function*(){let n=yield t.createStateMachineNode();return n.model=e,n.isEditing=!0,n})()}getStateSets(){return this.nuviotClient.getListResponse("/api/statemachine/statesets")}getStateSet(e){return this.nuviotClient.getFormResponse(`/api/statemachine/stateset/${e}`)}createStateSet(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/stateset")}createState(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/state")}editState(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/statemachine/factory/state");return n.model=e,n.isEditing=!0,n})()}createTransmitter(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/transmitter/factory")}getTransmitter(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/transmitter/${e}`)}createTransition(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/transition")}editTransition(e){var t=this;return O(function*(){let n=yield t.createTransition();return n.model=e,n.isEditing=!0,n})()}addStateSet(e){return this.nuviotClient.post("/api/statemachine/stateset",e)}updateStateSet(e){return this.nuviotClient.update("/api/statemachine/stateset",e)}saveStateSet(e){return e.isEditing?this.updateStateSet(e.model):this.addStateSet(e.model)}deleteStateSet(e){return this.nuviotClient.deleteWithResponse(`/api/statemachine/stateset/${e}`)}createEvent(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/event")}editEvent(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/statemachine/factory/event");return n.model=e,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(e){return this.nuviotClient.getFormResponse(`/api/deviceadmin/unitset/${e}`)}addUnitSet(e){return this.nuviotClient.post("/api/deviceadmin/unitset",e)}updateUnitSet(e){return this.nuviotClient.update("/api/deviceadmin/unitset",e)}saveUnitSet(e){return e.isEditing?this.updateUnitSet(e.model):this.addUnitSet(e.model)}createCustomModule(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/custommodule/factory")}getCustomModule(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/custommodule/${e}`)}getCustomModules(){return this.nuviotClient.getListResponse("/api/pipeline/admin/custommodules")}addCustomModule(e){return this.nuviotClient.post("/api/pipeline/admin/custommodule",e)}updateCustomModule(e){return this.nuviotClient.update("/api/pipeline/admin/custommodule",e)}saveCustomModule(e){return e.isEditing?this.updateCustomModule(e.model):this.addCustomModule(e.model)}createDataStream(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("api/datastream/factory")})()}getDataStream(e){return this.nuviotClient.getFormResponse(`api/datastream/${e}`)}getDataStreams(){return this.nuviotClient.getListResponse("/api/datastreams")}getDataStreamField(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/datastreamfield/factory");return n.model=e,n.isEditing=!0,n})()}createDataStreamField(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/datastreamfield/factory")})()}createOutputTranslator(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/outputtranslator/factory")}getOutputTranslator(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/outputtranslator/${e}`)}getInputTranslators(){return this.nuviotClient.getListResponse("/api/pipeline/admin/inputtranslators")}createInputTranslator(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/inputtranslator/factory")}getInputTranslator(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/inputtranslator/${e}`)}removeInputTranslator(e){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/inputtranslator/${e}`)}insertInputTranslator(e){return this.nuviotClient.post("/api/pipeline/admin/inputtranslator",e)}updateInputTranslator(e){return this.nuviotClient.update("/api/pipeline/admin/inputtranslator",e)}getSentinels(){return this.nuviotClient.getListResponse("/api/pipeline/admin/sentinels")}createSentinel(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/sentinel/factory")}getSentinel(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/sentinel/${e}`)}removeSentinel(e){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/sentinel/${e}`)}insertSentinel(e){return this.nuviotClient.post("/api/pipeline/admin/sentinel",e)}updateSentinel(e){return this.nuviotClient.update("/api/pipeline/admin/sentinel",e)}saveSentinel(e){return e.isEditing?this.updateSentinel(e.model):this.insertSentinel(e.model)}createListener(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/listener/factory")}insertListener(e){return this.nuviotClient.post("/api/pipeline/admin/listener",e)}getDefaultListenerForRepo(e){return this.nuviotClient.request(`/api/device/repo/${e}/defaultlistener`)}getListener(e){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/listener/${e}`)}getListeners(){return this.nuviotClient.getListResponse("/api/pipeline/admin/listeners")}removeListener(e){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/listener/${e}`)}updateListener(e){return this.nuviotClient.update("/api/pipeline/admin/listener",e)}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(e){return this.nuviotClient.getFormResponse(`/api/sharedconnection/${e}`)}createSharedConnection(){return this.nuviotClient.getFormResponse("/api/sharedconnection/factory")}insertSharedConnection(e){return this.nuviotClient.post("/api/sharedconnection",e)}updateSharedConnection(e){return this.nuviotClient.update("/api/sharedconnection",e)}saveSharedConnection(e){return e.isEditing?this.updateSharedConnection(e.model):this.insertSharedConnection(e.model)}removeSharedConnection(e){return this.nuviotClient.deleteWithResponse(`/api/sharedconnection/${e}`)}static \u0275fac=function(t){return new(t||Ag)(Me(hn))};static \u0275prov=Ue({token:Ag,factory:Ag.\u0275fac,providedIn:"root"})}const Dpe=["gmapContainer"];function Tpe(i,e){if(1&i&&(c(0,"div",6)(1,"span"),m(2),d()()),2&i){const t=g(2);p(2),Ae(t.location.address1)}}function Spe(i,e){if(1&i&&(c(0,"div",6)(1,"span"),m(2),d()()),2&i){const t=g(2);p(2),dr("",t.location.city," ",t.location.state,"")}}function Epe(i,e){if(1&i&&(c(0,"div",6)(1,"span"),m(2),d()()),2&i){const t=g(2);p(2),dr("Contact: ",t.adminContact.firstName," ",t.adminContact.lastName," ")}}function Ipe(i,e){if(1&i&&(c(0,"div",6)(1,"span")(2,"a",40),m(3),d()()()),2&i){const t=g(2);p(2),Ss("href","tel:",t.adminContact.phone,"",gi),p(1),Ae(t.adminContact.phone)}}function Ape(i,e){if(1&i&&(c(0,"div",38,4)(2,"div",5),m(3),d(),b(4,Tpe,3,1,"div",39),b(5,Spe,3,2,"div",39),b(6,Epe,3,2,"div",39),b(7,Ipe,4,2,"div",39),d()),2&i){const t=g();p(3),Ae(t.customer.name),p(1),h("ngIf",t.location.address1),p(1),h("ngIf",t.location.city),p(1),h("ngIf",t.adminContact),p(1),h("ngIf",null==t.adminContact?null:t.adminContact.phone)}}function Ppe(i,e){if(1&i&&(c(0,"div",41),B(1,"img",42),c(2,"h2"),m(3),d()()),2&i){const t=g();p(3),Ae(t.commandDevice.customStatus.text)}}function Fpe(i,e){if(1&i){const t=re();c(0,"li")(1,"div",45),P("click",function(){const o=E(t).$implicit;return I(g(2).setIncidentState(o))}),B(2,"img",46),c(3,"div",47)(4,"h4"),m(5),d(),c(6,"span"),m(7),d()()()()}if(2&i){const t=e.$implicit;p(2),Ss("src","https://nuviot.blob.core.windows.net/cdn/ilug/",t.key,".png",gi),p(3),Ae(t.name),p(2),Ae(t.description)}}function Rpe(i,e){if(1&i&&(c(0,"div")(1,"h3",43),m(2,"Change Condition"),d(),c(3,"ol"),b(4,Fpe,8,3,"li",44),d()()),2&i){const t=g();p(4),h("ngForOf",t.incidentStates.states)}}function Ope(i,e){if(1&i&&(c(0,"li",49)(1,"div"),m(2),d(),c(3,"div"),m(4),d(),c(5,"div"),m(6),Zt(7,"dateTimePrinter"),d()()),2&i){const t=e.$implicit;p(2),$e("Room: ",t.title,""),p(2),$e("Status: ",t.notification,""),p(2),$e("Time: ",Xt(7,3,t.timeStamp),"")}}function Lpe(i,e){if(1&i&&(c(0,"div"),m(1," Notifications "),c(2,"ol"),b(3,Ope,8,5,"li",48),d()()),2&i){const t=g();p(3),h("ngForOf",t.notifications)}}const mE="#A0A0A0";class Pg{deviceService;notificationServer;pipelineService;route;paramsSubscription;repoWebSocket;busy=!1;longitude;latitude;polygons=[];markers=[];MinRoomLabelZoom=20;FullRoomLabelZoom=22;MinAlertIconZoom=20;gmap;map;incidentStates;commandDevice;devices;notifications;diagram;layerId;shapeId;orgId;repoId;flashingShapeId;flashOn=!1;customer;location;adminContact;doorLabelMarkers=[];doorLabelElements=[];mapAlertIconImages=new Map;mapAlertIcons=new Map;mapPolylines=[];overlaysById=new Map;normalizeState(e){switch(e.toLowerCase()){case"cold":case"blue":return"cold";case"warm":case"yellow":return"warm";case"hot":case"red":return"hot";case"green":return"green";default:return"unknown"}}getZBaseForState(e){return"hot"===e?40:"warm"===e?30:"cold"===e?20:10}stateToColor(e){return"hot"===e?"#E53935":"warm"===e?"#FBC02D":"cold"==e?"#00ff00":"green"==e?"#00FF00":mE}createDoorLabelContent(e){const t=document.createElement("div");return t.className="map-door-label",t.innerText=e,t}getDoorCenter(e){const t=e.slice(0,4);return{lat:t.reduce((n,r)=>n+r.lat,0)/t.length,lng:t.reduce((n,r)=>n+r.lon,0)/t.length}}drawDoorLabel(e,t){if(!t?.trim())return;const n=this.createDoorLabelContent(t),r=this.getDoorCenter(e),o=new google.maps.marker.AdvancedMarkerElement({map:this.map,position:r,content:n,zIndex:200});this.doorLabelElements.push(n),this.doorLabelMarkers.push(o)}clamp01(e){return Math.max(0,Math.min(1,e))}severityToRingWeight(e){let t=.2;"hot"===e?t=2:"warm"===e?t=1:"cold"===e&&(t=.5);const n=this.clamp01(t);return 3+Math.round(5*n)}constructor(e,t,n,r,o,a,s){var l=this;this.deviceService=t,this.notificationServer=n,this.pipelineService=a,this.route=s,this.paramsSubscription=this.route.params.subscribe(function(){var u=O(function*(f){let v=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: ${v}, 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 e.getLocationDiagramOnly(v),l.configureMap(l.diagram),l.orgId&&l.repoId){let D=yield t.getDevicesForCustomer(l.repoId,l.diagram.customer.id);if(D.successful){let W=D.model;l.devices=W.filter(ye=>ye.diagramReference),l.commandDevice=W.find(ye=>ye.location?.id==l.diagram.location?.id);let J=yield l.pipelineService.getStateSet("97B2762316F74389A8449004702C4E8B");l.incidentStates=J.model;let fe=(yield r.getPublicRaisedDeviceRepoNotificationHistory(l.orgId,l.repoId)).model.filter(ye=>"Device Online"!=ye.notification&&"Device Offline"!=ye.notification);for(let ye of fe){let we=l.devices.find(Te=>Te.id==ye.deviceUniqueId);ye.title=we?we.diagramReference.locationDiagramShape.text:"?"}l.refreshRooms(),l.notifications=fe,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=ye=>{let we=JSON.parse(ye.data);var Te=JSON.parse(we.payloadJSON);let Re=l.devices.find(Ye=>Ye.id==Te.id);Re&&(Re.lastContact=Te.lastContact,Re.customStatus=Te.customStatus,Re.icon=Te.icon,console.log("Received notification for device ",Re.deviceName," new state ",Re.customStatus.id,Re.icon),"hot"==Te.customStatus.id&&(l.flashingShapeId=Re.diagramReference.locationDiagramShape.id),l.refreshRooms(),l.notifications.unshift({deviceUniqueId:Te.id,deviceId:Te.deviceId,deviceRepoId:"-",orgId:"-",testMode:!1,notification:Te.customStatus.text,title:Re.diagramReference.locationDiagramShape.text,timeStamp:(new Date).toISOString(),notificationId:""}))})}let A=yield o.getCustomer(l.diagram.customer.id);A.successful&&(l.customer=A.model,l.location=A.model.locations.find(W=>v==W.diagram?.id),l.location&&(l.adminContact=l.customer.contacts.find(function(){var W=O(function*(J){return J.id==l.location.adminContact?.id});return function(J){return W.apply(this,arguments)}}())),l.adminContact||(l.adminContact=l.customer.contacts.find(function(){var W=O(function*(J){return J.id==l.customer.adminContact?.id});return function(J){return W.apply(this,arguments)}}())))}});return function(f){return u.apply(this,arguments)}}()),window.setInterval(()=>{if(this.flashingShapeId){let u=this.polygons.find(D=>D.get("shapeId")==this.flashingShapeId);u&&u.setOptions({fillColor:this.flashOn?"#ff0000":"#fcfcfc"});let f=this.markers.find(D=>D.get("shapeId")==this.flashingShapeId),v=f.getLabel();v.color=this.flashOn?"#ffffff":"#000000",f.setLabel(v),this.flashOn=!this.flashOn}},500)}ngOnInit(){}ngOnDestroy(){this.repoWebSocket&&this.repoWebSocket.socket.close(),this.paramsSubscription.unsubscribe()}setIncidentState(e){var t=this;return O(function*(){if(t.busy=!0,console.log(e.key),yield t.deviceService.testDeviceNotification(t.repoId,t.commandDevice.id,e.key),yield t.deviceService.setDeviceCustomState(t.repoId,t.commandDevice.id,e.key),t.commandDevice.customStatus={id:e.key,key:e.key,text:e.name},"ilugnormal"==e.key){for(let n of t.devices)yield t.deviceService.setDeviceCustomState(t.repoId,n.id,"warm"),n.customStatus={id:"warm",key:"warm",text:"Warm"};t.refreshRooms()}t.busy=!1})()}drawArcFromBoundingBox(e,t,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(!e||e.length<5)throw console.log(e),new Error("bbox must contain 5 points: TL,TR,BR,BL,TL.");const o=We=>(We%360+360)%360,a=e.slice(0,4).map(We=>({lat:We.lat,lng:We.lon})),l="TL"===(We=t)?0:"TR"===We?1:"BR"===We?2:3,f=(l+2)%4,v="CW"===n?(l+3)%4:(l+1)%4,D=new google.maps.LatLng(a[l].lat,a[l].lng),A=new google.maps.LatLng(a[f].lat,a[f].lng),W=new google.maps.LatLng(a[v].lat,a[v].lng),J=google.maps.geometry.spherical.computeDistanceBetween(W,D),pe=o(google.maps.geometry.spherical.computeHeading(W,D)),fe=o(google.maps.geometry.spherical.computeHeading(W,A));var We;let ye;ye="CW"===n?(fe-pe+360)%360:-(pe-fe+360)%360;const we=[];for(let We=0;We<=r;We++){const vt=google.maps.geometry.spherical.computeOffset(W,J,pe+ye*(We/r));we.push(vt.toJSON())}const Te=new google.maps.Polyline({map:this.map,path:we,strokeWeight:2,strokeOpacity:1,strokeColor:mE,zIndex:9}),Re=we[we.length-1];return{arc:Te,leaf:new google.maps.Polyline({map:this.map,path:[W.toJSON(),Re],strokeWeight:1,strokeColor:mE,strokeOpacity:1,zIndex:10})}}createRoomLabelContent(e,t,n){const r=document.createElement("div");return r.className=n?"map-room-label map-room-label-rotated":"map-room-label",r.innerText=e,r.style.setProperty("--room-label-font-size",`${t}px`),r}configureMap(e){this.diagram=e,window.setTimeout(()=>{if(e.geoLocationCenter){this.longitude=e.geoLocationCenter.longitude,this.latitude=e.geoLocationCenter.latitude;let a={center:new google.maps.LatLng(this.latitude,this.longitude),zoom:e.defaultGeoZoomLevel-3,mapId:"3736dc9f0c8836e7115beace"};this.map=new google.maps.Map(this.gmap.nativeElement,a)}let t=0,n=0;google.maps.event.addListener(this.map,"zoom_changed",()=>{this.updateMapOverlayScale()});for(let o of e.layers){for(let a of o.shapes){console.log(`Layer: ${o.name}, Shape: ${a.name}, Type: ${a.shapeType.key}, Name: ${a.name} Points: ${a.geoPoints.length}`);let s=a.geoPoints.map(l=>new google.maps.LatLng(l.latitude,l.longitude));if("door"==a.shapeType.key){var r=a.geoPoints.map(f=>({lat:f.latitude,lon:f.longitude}));let l="TL";0==a.rotation?l=a.flipX&&a.flipY?"BR":a.flipX?"TR":a.flipY?"BL":"TL":90==a.rotation?l=a.flipX&&a.flipY?"BL":a.flipX?"TL":a.flipY?"BR":"TR":180==a.rotation?l=a.flipX&&a.flipY?"TL":a.flipX?"BL":a.flipY?"TR":"BR":270==a.rotation&&(l=a.flipX&&a.flipY?"TR":a.flipX?"BR":a.flipY?"TL":"BL"),this.drawDoorLabel(r,a.name)}else{const l=new google.maps.Polygon({paths:s,strokeColor:"#000000",strokeOpacity:.25,strokeWeight:1,fillColor:"#ffffff",fillOpacity:.08,map:this.map,clickable:!0,zIndex:1}),u="unknown",f=.2,v=new google.maps.Polygon({paths:s,strokeColor:this.stateToColor(u),strokeOpacity:.9,strokeWeight:this.severityToRingWeight(u),fillOpacity:0,map:this.map,clickable:!1,zIndex:10});l.set("shapeId",a.id),v.set("shapeId",a.id),this.polygons.push(l);let D=(a.geoPoints[0].longitude+a.geoPoints[1].longitude)/2,A=(a.geoPoints[1].latitude+a.geoPoints[2].latitude)/2;a.id==this.shapeId&&(t=A,n=D);let W=Math.abs(a.geoPoints[0].longitude-a.geoPoints[1].longitude),pe=Math.abs(a.geoPoints[1].latitude-a.geoPoints[2].latitude)>W;const fe=new google.maps.Polygon({paths:s,strokeColor:this.stateToColor(u),strokeOpacity:0,strokeWeight:18,fillOpacity:0,map:this.map,clickable:!1,zIndex:8}),ye=this.createRoomLabelContent(a.name,a.fontSize,pe);ye.dataset.shapeId=a.id;const we=new google.maps.marker.AdvancedMarkerElement({map:this.map,position:new google.maps.LatLng(A,D),content:ye,zIndex:200});we.shapeId=a.id,this.overlaysById.set(a.id,{id:a.id,base:l,ring:v,glow:fe,labelMarker:we,labelContent:ye,state:u,severity:f});const Ze=this.getBoundsFromPath(s).getNorthEast(),ht=this.makeCornerIconFromExisting();ht.classList.add("map-alert-icon"),ht.classList.add("is-hidden"),ht.style.display="none",new google.maps.marker.AdvancedMarkerElement({map:this.map,position:Ze,content:ht,zIndex:201}),this.mapAlertIcons.set(a.id,ht)}}o.polylineGeoPoints.forEach(a=>{const s=a.map(l=>new google.maps.LatLng(l.latitude,l.longitude));this.mapPolylines.push(new google.maps.Polyline({path:s,strokeColor:"#909090",strokeOpacity:.5,strokeWeight:1,map:this.map}))})}this.refreshRooms(),this.updateMapOverlayScale(),this.animateMapTo({lat:t,lng:n},e.defaultGeoZoomLevel)},100)}updateMapOverlayScale(){if(!this.map)return;const e=this.map.getZoom()||0,t=this.getRoomLabelScale(e),n=this.getDoorLabelScale(e),r=this.getAlertIconScale(e),o=e>=this.MinRoomLabelZoom,a=n>0,s=e>=this.MinAlertIconZoom;for(const l of this.overlaysById.values()){const u=l.labelContent;u&&(u.classList.toggle("is-hidden",!o),u.style.setProperty("--room-label-scale",t.toString()))}console.log(e,n,a,r,s);for(const l of this.doorLabelElements)l.style.setProperty("--door-label-scale",n.toString());for(const l of this.mapAlertIcons.values())l.classList.toggle("is-hidden",!s),l.style.setProperty("--alert-icon-scale",r.toString())}getDoorLabelScale(e){return e<12?0:e>=23?1:.5+.25*(e-12)}getRoomLabelScale(e){return e<20?0:e>=22?1:.55+.225*(e-20)}getAlertIconScale(e){return e<19?0:e>=22?1:.45+.183*(e-19)}makeCornerIconFromExisting(){const e=document.querySelector(".icon-ae-core-2");if(!e)throw new Error("Could not find a rendered .icon-ae-core-2 to clone.");const t=e.cloneNode(!0);return t.style.fontSize="48px",t.style.lineHeight="1",t.style.display="inline-block",t}getBoundsFromPath(e){const t=new google.maps.LatLngBounds;for(const n of e)t.extend(n);return t}setShapeState(e,t,n,r=.5){const o=this.overlaysById.get(e);if(!o)return;o.state=t,o.severity=this.clamp01(r);const a=this.stateToColor(t);if(console.log(`Setting shape ${e} to state ${t} (color ${a}) with severity ${r}`),o.base.setOptions({fillColor:a,fillOpacity:.1,zIndex:this.getZBaseForState(t)}),o.ring.setOptions({strokeColor:a,strokeWeight:this.severityToRingWeight(t),strokeOpacity:.9,zIndex:this.getZBaseForState(t)}),o.glow?.setOptions({strokeColor:a,zIndex:this.getZBaseForState(t),strokeOpacity:"hot"===o.state?.25:0,strokeWeight:"hot"===o.state?16:0}),n.startsWith("http")){let s=this.mapAlertIconImages.get(e);s&&s.setIcon({url:n,scaledSize:new google.maps.Size(48,48),anchor:new google.maps.Point(64,-18)}),this.mapAlertIcons.get(e).style.display="none"}else this.mapAlertIcons.get(e).classList.add(n),this.mapAlertIcons.get(e).style.display="block"}refreshRooms(){if(this.devices)for(let e of this.devices)if(e.diagramReference&&e.customStatus){let t=this.normalizeState(e.customStatus.id);console.log(e.deviceName,e.customStatus.id),this.setShapeState(e.diagramReference.locationDiagramShape.id,t,e.icon,1)}}activeMapAnimationFrame=null;animateMapTo(e,t,n=700){if(!this.map)return;null!==this.activeMapAnimationFrame&&(cancelAnimationFrame(this.activeMapAnimationFrame),this.activeMapAnimationFrame=null);const r=this.map.getCenter();if(!r)return this.map.setCenter(e),void this.map.setZoom(t);const o=this.map.getZoom()||t,a=r.lat(),s=r.lng(),l=e instanceof google.maps.LatLng?e.lat():e.lat,u=e instanceof google.maps.LatLng?e.lng():e.lng,f=performance.now(),v=D=>{const W=Math.min((D-f)/n,1),J=this.easeInOutCubic(W),ye=o+(t-o)*J;this.map.setCenter({lat:a+(l-a)*J,lng:s+(u-s)*J}),this.map.setZoom(ye),this.updateMapOverlayScale(),W<1?this.activeMapAnimationFrame=requestAnimationFrame(v):(this.map.setCenter({lat:l,lng:u}),this.map.setZoom(t),this.updateMapOverlayScale(),this.activeMapAnimationFrame=null)};this.activeMapAnimationFrame=requestAnimationFrame(v)}easeInOutCubic(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}static \u0275fac=function(t){return new(t||Pg)(H(Id),H(mp),H(ug),H(_p),H(ca),H(Ag),H(mi))};static \u0275cmp=Oe({type:Pg,selectors:[["app-location-diagram"]],viewQuery:function(t,n){if(1&t&&Wt(Dpe,5),2&t){let r;ut(r=pt())&&(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(t,n){1&t&&(c(0,"div",0),B(1,"div",1,2),c(3,"div",3,4)(5,"div",5),m(6,"Legend"),d(),c(7,"div",6),B(8,"span",7),c(9,"span"),m(10,"Hot"),d()(),c(11,"div",6),B(12,"span",8),c(13,"span"),m(14,"Warm"),d()(),c(15,"div",6),B(16,"span",9),c(17,"span"),m(18,"Green"),d()(),c(19,"div",6),B(20,"span",10),c(21,"span"),m(22,"Unknown"),d()()(),c(23,"span",11),B(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),d(),b(46,Ape,8,5,"div",34),c(47,"div",35),b(48,Ppe,4,1,"div",36),b(49,Rpe,5,1,"div",37),b(50,Lpe,4,1,"div",37),d()()),2&t&&(p(46),h("ngIf",n.customer&&n.location),p(2),h("ngIf",null==n.commandDevice?null:n.commandDevice.customStatus),p(1),h("ngIf",n.incidentStates),p(1),h("ngIf",n.notifications))},dependencies:[Ot,rt,js],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)}}.map-alert-icon{--alert-icon-scale: 1;transform:translate(-48px,12px) scale(var(--alert-icon-scale));transform-origin:top right;pointer-events:none}.is-hidden{display:none!important}.map-room-label{--room-label-scale: 1;--room-label-font-size: 18px;color:#2a2a2a;font-size:calc(var(--room-label-font-size) * var(--room-label-scale));font-weight:700;line-height:1.1;white-space:nowrap;text-align:center;text-shadow:0 1px 2px rgba(255,255,255,.95),0 -1px 2px rgba(255,255,255,.95),1px 0 2px rgba(255,255,255,.95),-1px 0 2px rgba(255,255,255,.95);transform:translate(-50%,-50%);transform-origin:center center;pointer-events:none}.map-room-label-rotated{transform:translate(-50%,-50%) rotate(-90deg)}.map-room-label.is-hidden{display:none}@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:#00FF00}.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}@media screen and (max-width: 1023px){.map-legend{top:50px;right:20px}}.map-door-label{padding:2px 5px;border-radius:3px;color:#404040;font-size:10px;font-weight:600;line-height:1;white-space:nowrap;pointer-events:none}.map-door-label{transform:translateY(-12px) scale(var(--door-label-scale, 1));transform-origin:center}\n"],encapsulation:2})}class Z_{router;userService;logo;constructor(e,t){this.router=e,this.userService=t,this.logo=ft.logo??"https://www.nuviot.com/images/nuviot-blue.png"}ngOnInit(){var e=this;return O(function*(){(yield e.userService.getIsLoggedIn())&&(yield e.userService.logout())})()}login(){ft.supportOAuth?ft.production?window.location.href=`/${ft.moduleRouteHome}/welcome`:this.router.goto(["login"]):ft.production?window.location.href=`/${ft.moduleRouteHome}/login/email`:this.router.goto(["login"])}static \u0275fac=function(t){return new(t||Z_)(H(zr),H(Hn))};static \u0275cmp=Oe({type:Z_,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(t,n){1&t&&(c(0,"div"),B(1,"i",0),m(2,"Logging out of server\n"),d(),c(3,"div"),B(4,"i",0),m(5,"Clearing Browser State\n"),d(),c(6,"div"),B(7,"i",0),m(8,"Done\n"),d(),c(9,"div",1),B(10,"hr"),c(11,"button",2),P("click",function(){return n.login()}),m(12,"Login"),d()())},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(--color-accent);--color-fg-panel-link-active: 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)}[_nghost-%COMP%]{--auth-brand-primary: #1976D2;--auth-brand-primary-soft: #E8F2FB;--auth-brand-primary-border: #A3C8ED;--auth-brand-primary-focus: #75ADE4;--auth-brand-primary-hover: #13589D;--auth-surface-page: #F4F4F4;--auth-surface-panel: #FFFFFF;--auth-surface-panel-border: #E9E9E9;--auth-surface-control-border: #D3D3D3;--auth-surface-glyph: #F4F4F4;--auth-surface-subtle: #F4F4F4;--auth-surface-subtle-border: #E9E9E9;--auth-text-title: #222222;--auth-text-body: #4E4E4E;--auth-text-muted: #6F6F6F;--auth-text-placeholder: #B2B2B2;--auth-text-on-primary: #FBFBFB;--auth-status-error: #E5463B;--auth-control-radius: 12px;--auth-control-card-radius: 18px;--auth-control-glyph-radius: 18px;--auth-control-button-height: 44px;--auth-control-input-height: 46px;--auth-space-xs: 6px;--auth-space-sm: 8px;--auth-space-md: 12px;--auth-space-lg: 16px;--auth-space-xl: 24px;--auth-space-xxl: 32px;--auth-shadow-panel: 0 28px 80px rgba(34, 34, 34, .16);--auth-shadow-button-hover: 0 10px 24px rgba(34, 34, 34, .1);--auth-shadow-primary-button: 0 10px 22px rgba(25, 118, 210, .16);--auth-focus-ring-color: rgba(25, 118, 210, .12);--auth-focus-ring-width: 4px;--auth-type-title-size: 25px;--auth-type-title-line-height: 29px;--auth-type-title-weight: 800;--auth-type-body-size: 15px;--auth-type-body-line-height: 22px;--auth-type-body-weight: 400;--auth-type-label-size: 12px;--auth-type-label-line-height: 16px;--auth-type-label-weight: 700;--auth-type-button-size: 14px;--auth-type-button-line-height: 18px;--auth-type-button-weight: 750;--auth-type-link-size: 14px;--auth-type-link-line-height: 18px;--auth-type-link-weight: 700;--auth-type-input-size: 15px;--auth-type-input-line-height: 20px;--auth-type-input-weight: 400;--auth-type-placeholder-size: 15px;--auth-type-placeholder-line-height: 20px;--auth-type-placeholder-weight: 400;--auth-type-helper-size: 13px;--auth-type-helper-line-height: 18px;--auth-type-helper-weight: 400;--auth-type-error-size: 13px;--auth-type-error-line-height: 18px;--auth-type-error-weight: 400;--auth-icon-button: 14px;--auth-icon-glyph: 25px;--auth-icon-choice: 18px;--auth-layout-card-max-width: 560px;--auth-layout-body-max-width: 420px;--auth-layout-card-padding-x: 32px;--auth-layout-card-padding-top: 30px;--auth-layout-card-padding-bottom: 32px;--auth-layout-mobile-card-padding-x: 18px;--auth-layout-mobile-card-padding-top: 26px;--auth-layout-mobile-card-padding-bottom: 24px;--auth-elevation-card-shadow-color: #222222;--auth-elevation-card-shadow-opacity: .16;--auth-elevation-card-shadow-radius: 40px;--auth-elevation-card-shadow-offset-y: 18px;--auth-elevation-card-android-elevation: 12;--auth-elevation-primary-button-shadow-color: #1976D2;--auth-elevation-primary-button-shadow-opacity: .16;--auth-elevation-primary-button-shadow-radius: 12px;--auth-elevation-primary-button-shadow-offset-y: 6px;--auth-elevation-primary-button-android-elevation: 4}.auth-page[_ngcontent-%COMP%]{min-height:calc(100vh - 40px);display:grid;place-items:start center;padding:clamp(56px,12vh,120px) var(--auth-space-lg) var(--auth-space-xxl);background:radial-gradient(circle at 50% -10%,rgba(25,118,210,.16),transparent 34rem),radial-gradient(circle at 15% 20%,rgba(25,118,210,.05),transparent 22rem),radial-gradient(circle at 85% 28%,rgba(117,173,228,.06),transparent 24rem),linear-gradient(180deg,#fff 0%,var(--auth-surface-page) 68%)}.auth-card[_ngcontent-%COMP%]{position:relative;width:100%;max-width:560px;background:var(--auth-surface-panel);border:1px solid var(--auth-surface-panel-border);border-radius:24px;box-shadow:0 28px 80px #22222229;overflow:hidden;padding:30px 32px}.auth-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--auth-brand-primary),var(--auth-brand-primary-focus))}.auth-header[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:22px;padding-top:2px}.logo-img[_ngcontent-%COMP%]{display:block;max-height:48px;max-width:205px;width:auto;height:auto}.auth-body[_ngcontent-%COMP%]{max-width:420px;margin:0 auto}.auth-screen[_ngcontent-%COMP%]{width:100%}.auth-hero[_ngcontent-%COMP%]{text-align:center;margin:0 0 18px}.auth-glyph[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:17px;background:linear-gradient(180deg,#fff,var(--auth-brand-primary-soft));color:var(--auth-brand-primary);box-shadow:inset 0 0 0 1px var(--auth-brand-primary-border),0 10px 22px #1976d21a;display:grid;place-items:center;margin:0 auto 15px;line-height:1}.auth-glyph[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:27px;opacity:.96}.auth-title[_ngcontent-%COMP%]{color:var(--auth-text-title);font-size:var(--auth-type-title-size);line-height:var(--auth-type-title-line-height);font-weight:var(--auth-type-title-weight);margin:0 0 var(--auth-space-sm)}.auth-subtitle[_ngcontent-%COMP%]{margin:0 auto;max-width:38ch;color:var(--auth-text-body);font-size:var(--auth-type-body-size);line-height:var(--auth-type-body-line-height)}.auth-section[_ngcontent-%COMP%]{margin-top:var(--auth-space-lg)}.auth-muted[_ngcontent-%COMP%], .auth-helper[_ngcontent-%COMP%]{font-size:var(--auth-type-helper-size);line-height:var(--auth-type-helper-line-height);font-weight:var(--auth-type-helper-weight)}.auth-row[_ngcontent-%COMP%]{display:flex;gap:var(--auth-space-md);align-items:center;justify-content:space-between;margin-top:var(--auth-space-md)}.auth-divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--auth-space-md);margin:18px 0}.auth-divider[_ngcontent-%COMP%]:before, .auth-divider[_ngcontent-%COMP%]:after{content:"";height:1px;background:var(--auth-surface-panel-border);flex:1}.auth-divider-text[_ngcontent-%COMP%]{font-size:12px;color:var(--auth-text-muted);text-transform:uppercase;letter-spacing:.08em}.auth-actions[_ngcontent-%COMP%]{display:grid;gap:10px;margin-top:18px}.auth-btn[_ngcontent-%COMP%]{width:100%;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:var(--auth-space-sm);border-radius:12px;padding:9px 16px;border:1px solid rgba(34,34,34,.16);background:#fff;color:var(--auth-text-title);font-weight:var(--auth-type-button-weight);font-size:var(--auth-type-button-size);line-height:var(--auth-type-button-line-height);cursor:pointer;transition:transform .05s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease}.auth-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--auth-text-body);flex:0 0 auto;width:1.15em;text-align:center;opacity:1;margin:0}.auth-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{min-width:0}.auth-btn[_ngcontent-%COMP%]:hover{background:var(--auth-brand-primary-soft);border-color:var(--auth-brand-primary-border);box-shadow:0 8px 18px #22222214}.auth-btn[_ngcontent-%COMP%]:active{transform:translateY(1px)}.auth-btn[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.auth-btn--primary[_ngcontent-%COMP%]{min-height:44px;background:linear-gradient(180deg,#2B83D9,var(--auth-brand-primary));border-color:var(--auth-brand-primary);color:var(--auth-text-on-primary);box-shadow:0 10px 22px #1976d229}.auth-btn--primary[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--auth-text-on-primary)}.auth-btn--primary[_ngcontent-%COMP%]:hover{background:linear-gradient(180deg,var(--auth-brand-primary),var(--auth-brand-primary-hover));border-color:var(--auth-brand-primary-hover);box-shadow:0 14px 28px #1976d242}.auth-btn--subtle[_ngcontent-%COMP%]{background:var(--auth-surface-subtle);border-color:var(--auth-surface-subtle-border);color:var(--auth-text-title);box-shadow:none}.auth-btn--subtle[_ngcontent-%COMP%]:hover{background:var(--auth-brand-primary-soft);border-color:var(--auth-brand-primary-border);box-shadow:none}.auth-linkbtn[_ngcontent-%COMP%]{font-size:var(--auth-type-link-size);line-height:var(--auth-type-link-line-height);border:0;background:transparent;padding:6px 0;color:var(--auth-brand-primary);font-weight:var(--auth-type-link-weight);cursor:pointer}.auth-linkbtn[_ngcontent-%COMP%]:hover{color:var(--auth-brand-primary-hover);text-decoration:underline}.auth-btn__icon[_ngcontent-%COMP%]{flex:0 0 auto;width:1.15em;text-align:center}.auth-btn__label[_ngcontent-%COMP%]{min-width:0}.auth-label[_ngcontent-%COMP%]{display:block;font-size:var(--auth-type-label-size);font-weight:var(--auth-type-label-weight);color:var(--auth-text-title);line-height:var(--auth-type-label-line-height);margin:0 0 8px}.auth-input[_ngcontent-%COMP%]{width:100%;min-height:48px;box-sizing:border-box;border-radius:13px;border:1px solid var(--auth-surface-control-border);background:var(--auth-surface-panel);color:var(--auth-text-title);padding:12px 15px;font-size:var(--auth-type-input-size);line-height:var(--auth-type-input-line-height);font-weight:var(--auth-type-input-weight);outline:none;transition:border-color .15s ease,box-shadow .15s ease}.auth-input[_ngcontent-%COMP%]:focus{border-color:var(--auth-brand-primary-focus);box-shadow:0 0 0 var(--auth-focus-ring-width) var(--auth-focus-ring-color)}.auth-error[_ngcontent-%COMP%]{font-size:var(--auth-type-error-size);margin-top:var(--auth-space-sm);color:var(--auth-status-error);line-height:var(--auth-type-error-line-height)}[_ngcontent-%COMP%]::placeholder{color:var(--auth-text-placeholder);font-size:var(--auth-type-placeholder-size);line-height:var(--auth-type-placeholder-line-height);font-weight:var(--auth-type-placeholder-weight)}.busyMask[_ngcontent-%COMP%]{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:20000}.busyMsg[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:20001;color:var(--auth-text-on-primary);text-align:center;font-size:16px}.busyMsg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:32px;height:32px;margin-bottom:10px}.auth-choice[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--auth-space-md);padding:12px 14px;border-radius:14px;border:1px solid var(--auth-surface-control-border);background:var(--auth-surface-panel);color:var(--auth-text-title);cursor:pointer;transition:box-shadow .15s ease,transform .05s ease,background-color .15s ease,border-color .15s ease}.auth-choice[_ngcontent-%COMP%]:hover{background:var(--auth-brand-primary-soft);border-color:var(--auth-brand-primary-border);box-shadow:var(--auth-shadow-button-hover)}.auth-choice[_ngcontent-%COMP%]:active{transform:translateY(1px)}.auth-choice__icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:var(--auth-control-radius);background:var(--auth-surface-glyph);color:var(--auth-text-body);display:grid;place-items:center;font-size:18px}.auth-choice__text[_ngcontent-%COMP%]{display:grid;gap:2px;min-width:0}.auth-choice__title[_ngcontent-%COMP%]{font-weight:700;color:var(--auth-text-title)}.auth-choice__subtitle[_ngcontent-%COMP%]{font-size:13px;color:var(--auth-text-muted)}@media (max-width: 480px){.auth-page[_ngcontent-%COMP%]{min-height:calc(100vh - 60px);padding:18px var(--auth-space-md);place-items:start center}.auth-card[_ngcontent-%COMP%]{max-width:none;padding:26px 18px 24px;border-radius:18px}.auth-header[_ngcontent-%COMP%]{margin-bottom:24px}.logo-img[_ngcontent-%COMP%]{max-height:48px;max-width:210px}.auth-body[_ngcontent-%COMP%]{max-width:none}.auth-title[_ngcontent-%COMP%]{font-size:23px}.auth-glyph[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:17px}.auth-glyph[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:25px}}']})}function Npe(i,e){if(1&i){const t=re();c(0,"div",4)(1,"h4"),m(2,"Contact Form"),d(),c(3,"div",5)(4,"label"),m(5,"First Name"),d(),c(6,"input",6),P("ngModelChange",function(r){return E(t),I(g().contact.firstName=r)}),d()(),c(7,"div",5)(8,"label"),m(9,"Last Name"),d(),c(10,"input",6),P("ngModelChange",function(r){return E(t),I(g().contact.lastName=r)}),d()(),c(11,"div",5)(12,"label"),m(13,"Company"),d(),c(14,"input",6),P("ngModelChange",function(r){return E(t),I(g().contact.company=r)}),d()(),c(15,"div",5)(16,"label"),m(17,"Phone"),d(),c(18,"input",6),P("ngModelChange",function(r){return E(t),I(g().contact.phone=r)}),d()(),c(19,"div",5)(20,"label"),m(21,"Email"),d(),c(22,"input",6),P("ngModelChange",function(r){return E(t),I(g().contact.email=r)}),d()(),c(23,"div",5)(24,"label"),m(25,"Contact Me"),d(),c(26,"input",7),P("ngModelChange",function(r){return E(t),I(g().contact.contactMe=r)}),d()(),c(27,"div",5)(28,"label"),m(29,"Comments"),d(),c(30,"textarea",6),P("ngModelChange",function(r){return E(t),I(g().contact.comment=r)}),d()(),c(31,"div",8)(32,"button",9),P("click",function(){return E(t),I(g().saveContact())}),m(33,"Submit"),d()()()}if(2&i){const t=g();p(6),h("ngModel",t.contact.firstName),p(4),h("ngModel",t.contact.lastName),p(4),h("ngModel",t.contact.company),p(4),h("ngModel",t.contact.phone),p(4),h("ngModel",t.contact.email),p(4),h("ngModel",t.contact.contactMe),p(4),h("ngModel",t.contact.comment)}}function Bpe(i,e){if(1&i&&(c(0,"div",10)(1,"h4"),m(2),d()()),2&i){const t=g();p(2),Ae(t.thankYouMessage)}}class X_{businessService;route;navService;campaignId;promoId;industryId;industryNicheId;industryPersonaId;nichePersonaId;orgId;email;templateId;surveyId;landingPageId;orgNs;thankYouMessage;paramsSubscription;querySubscription;contact;constructor(e,t,n){var r=this;this.businessService=e,this.route=t,this.navService=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=O(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=O(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 e.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 e=this;return O(function*(){yield e.businessService.saveContact(e.contact),e.thankYouMessage="Thank you for your interest. We will be in touch soon.",e.contact=null})()}static \u0275fac=function(t){return new(t||X_)(H(ca),H(mi),H(zr))};static \u0275cmp=Oe({type:X_,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(t,n){1&t&&(c(0,"div",0),B(1,"div",1),b(2,Npe,34,7,"div",2),b(3,Bpe,3,1,"div",3),B(4,"div",1),d()),2&t&&(p(2),h("ngIf",n.contact),p(1),h("ngIf",n.thankYouMessage))},dependencies:[Dn,Ml,en,qt,rt],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 ns{nuviotClient;cookieService;constructor(e,t){this.nuviotClient=e,this.cookieService=t}addModule(e){return this.nuviotClient.post("/api/module",e)}updateModule(e){return this.nuviotClient.update("/api/module",e)}getAllModules(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/modules")})()}getFullAppTreeForUserAsync(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/modules/tree")})()}getModules(e=!0){var t=this;return O(function*(){return yield t.nuviotClient.request("/api/modules/my",e)})()}getModulesForUser(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/modules/user/${e}`,!1)})()}getUserModule(e,t=!0){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/module/${e}/my`,t)})()}getModuleForUser(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/module/${e}/user/${t}`)})()}getModule(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/module/${e}`)})()}removeModule(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/module/${e}`)})()}createModule(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/module/factory")})()}createArea(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/module/area/factory")})()}createCategory(e){return this.nuviotClient.request(`/api/category/${e}/factory`)}getCategory(e){return this.nuviotClient.request(`/api/category/${e}`)}getCategories(e){return this.nuviotClient.getListResponse(`/api/categories/${e}`)}addCategory(e){return this.nuviotClient.post("/api/category",e)}updateCategory(e){return this.nuviotClient.update("/api/category",e)}moveUp(e,t){var n=this;return O(function*(){return yield n.nuviotClient.get(`/api/module/moveup/${e}/${t}`)})()}moveDown(e,t){var n=this;return O(function*(){return yield n.nuviotClient.get(`/api/module/movedown/${e}/${t}`)})()}getLogs(e){var t=this;return O(function*(){return yield t.nuviotClient.getListResponse(e)})()}getArea(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/module/area/factory");return n.model=e,n.isEditing=!0,n})()}createPage(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/module/page/factory")})()}getPage(e){var t=this;return O(function*(){var n=yield t.nuviotClient.getFormResponse("/api/module/page/factory");return n.model=e,n.isEditing=!0,n})()}createFeature(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/module/feature/factory")})()}getFeature(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/module/feature/factory");return n.model=e,n.isEditing=!0,n})()}getModuleAreasByKey(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/module/${e}/areas`)})()}getPagesByKey(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/module/${e}/area/${t}/pages`)})()}getSysAllModulesForOrg(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/sys/api/modules/${e}/all`)})()}getSysAllModules(){var e=this;return O(function*(){return yield e.nuviotClient.request("/sys/api/modules/all")})()}getRoles(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/sys/roles")})()}getAssignableRoles(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/sys/roles/assignable")})()}addRole(e){var t=this;return O(function*(){return yield t.nuviotClient.post("/api/sys/role",e)})()}updateRole(e){var t=this;return O(function*(){return yield t.nuviotClient.update("/api/sys/role",e)})()}getRole(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/sys/role/${e}`)})()}newRole(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/sys/role/factory")})()}getRoleAccess(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/sys/role/${e}/access`)})()}newRoleAccess(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/sys/role/${e}/access/factory`)})()}addRoleAccess(e){var t=this;return O(function*(){return yield t.nuviotClient.post("/api/sys/role/access",e)})()}removeRoleAccess(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/sys/role/access/${e}`)})()}getRoleAccessForModule(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/sys/role/access/module/${e}`)})()}getRoleAccessForArea(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/sys/role/access/module/${e}/area/${t}`)})()}getRoleAccessForPage(e,t,n){var r=this;return O(function*(){return yield r.nuviotClient.request(`/api/sys/role/access/module/${e}/area/${t}/page/${n}`)})()}getRoleAccessForModuleFeature(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/sys/role/access/module/${e}/feature/${t}`)})()}getRoleAccessForAreaFeature(e,t,n){var r=this;return O(function*(){return yield r.nuviotClient.request(`/api/sys/role/access/module/${e}/area/${t}/feature/${n}`)})()}getRoleAccessForPageFeature(e,t,n,r){var o=this;return O(function*(){return yield o.nuviotClient.request(`/api/sys/role/access/module/${e}/area/${t}/page/${n}/feature/${r}`)})()}getProductLines(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/productlines")})()}getProductLine(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/productline/${e}`)})()}createProductLine(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/productline/factory")})()}createToDoTemplate(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/productline/todotemplate/factory")})()}createProductLineObject(){var e=this;return O(function*(){return yield e.nuviotClient.request("/api/productline/object/factory")})()}addProductLine(e){var t=this;return O(function*(){return t.nuviotClient.post("/api/productline",e)})()}updateProductLine(e){var t=this;return O(function*(){return t.nuviotClient.update("/api/productline",e)})()}deleteProductLine(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/productline/${e}`)})()}addFunctionMap(e){return this.nuviotClient.post("/api/function/map",e)}updateFunctionMap(e){return this.nuviotClient.update("/api/function/map",e)}getFunctionMap(e){return this.nuviotClient.getFormResponse(`/api/function/map/${e}`)}getFunctionMapByKey(e){return this.nuviotClient.getFormResponse(`/api/function/map/key/${e}`)}getTopLevelFunctionMap(){return this.nuviotClient.getFormResponse("/api/function/map/root")}deleteFunctionMap(e){return this.nuviotClient.delete(`/api/function/map/${e}`)}createFunctionMap(){return this.nuviotClient.getFormResponse("/api/function/map/factory")}createFunctionMapFunction(){return this.nuviotClient.getFormResponse("/api/function/map/function/factory")}editFunctionMapFunction(e){var t=this;return O(function*(){let n=yield t.createFunctionMapFunction();return n.model=e,n.isEditing=!0,n})()}getBackgroundTaskStatus(){return this.nuviotClient.request("/api/diagnostics/hostedservices/local")}getClusterTaskStatus(){return this.nuviotClient.request("/api/diagnostics/hostedservices/cluster")}saveFunctionMap(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateFunctionMap(e.model);{let n=t.addFunctionMap(e.model);return(yield n).successful&&(e.isEditing=!0),n}})()}getFunctionMaps(){return this.nuviotClient.getListResponse("/api/function/maps")}static \u0275fac=function(t){return new(t||ns)(Me(hn),Me(Dd))};static \u0275prov=Ue({token:ns,factory:ns.\u0275fac,providedIn:"root"})}function Vpe(i,e){if(1&i&&(c(0,"li"),m(1),d()),2&i){const t=e.$implicit;p(1),Ae(t)}}function $pe(i,e){if(1&i&&(c(0,"li")(1,"div")(2,"span",5),m(3,"Area Feature: "),d(),m(4),d(),c(5,"div"),m(6),d()()),2&i){const t=e.$implicit,n=g(2).$implicit,r=g(3);p(4),cc(" ",r.module.key,"/",n.key,"/",t.key,""),p(2),hD("(",t.key,") (",1==t.userAccess.create?"Create":"","",1==t.userAccess.read?", Read":"","",1==t.userAccess.update?", Update":"","",1==t.userAccess.delete?", Delete":"",")")}}function Hpe(i,e){if(1&i&&(c(0,"div"),b(1,$pe,7,8,"li",3),d()),2&i){const t=g().$implicit;p(1),h("ngForOf",t.features)}}function Upe(i,e){if(1&i&&(c(0,"li")(1,"div")(2,"span",5),m(3,"Page Feature:"),d(),m(4),d(),c(5,"div"),m(6),d()()),2&i){const t=e.$implicit,n=g().$implicit,r=g(2).$implicit,o=g(3);p(4),Nu(" ",o.module.key,"/",r.key,"/",n.key,"/",t.key,""),p(2),Nu("(",1==t.userAccess.create?"Create":"","",1==t.userAccess.read?", Read":"","",1==t.userAccess.update?", Update":"","",1==t.userAccess.delete?", Delete":"",")")}}function jpe(i,e){if(1&i&&(c(0,"li")(1,"div")(2,"span",5),m(3,"Page:"),d(),m(4),d(),c(5,"span"),m(6),d(),c(7,"ol"),b(8,Upe,7,8,"li",3),d()()),2&i){const t=e.$implicit,n=g(2).$implicit,r=g(3);p(4),cc(" ",r.module.key,"/",n.key,"/",t.key,""),p(2),Nu("(",1==t.userAccess.create?"Create":"","",1==t.userAccess.read?", Read":"","",1==t.userAccess.update?", Update":"","",1==t.userAccess.delete?", Delete":"",")"),p(2),h("ngForOf",t.features)}}function Ype(i,e){if(1&i&&(c(0,"div"),b(1,jpe,9,8,"li",3),d()),2&i){const t=g().$implicit;p(1),h("ngForOf",t.pages)}}function zpe(i,e){if(1&i&&(c(0,"li",7)(1,"div")(2,"span",5),m(3,"Area: "),d(),m(4),d(),c(5,"span"),m(6),d(),c(7,"ol",7),b(8,Hpe,2,1,"div",4),b(9,Ype,2,1,"div",4),d()()),2&i){const t=e.$implicit,n=g(3);p(4),dr("",n.module.key,"/",t.key,""),p(2),Nu("(",1==t.userAccess.create?"Create":"","",1==t.userAccess.read?", Read":"","",1==t.userAccess.update?", Update":"","",1==t.userAccess.delete?", Delete":"",")"),p(2),h("ngIf",t.features.length>0),p(1),h("ngIf",t.pages.length>0)}}function Wpe(i,e){if(1&i&&(c(0,"ol")(1,"div")(2,"span",5),m(3,"Module:"),d(),m(4),d(),c(5,"span"),m(6),d(),c(7,"div"),b(8,zpe,10,8,"li",6),d()()),2&i){const t=g(2);p(4),$e(" ",t.module.key,""),p(2),Nu("(",1==t.module.userAccess.create?"Create":"","",1==t.module.userAccess.read?", Read":"","",1==t.module.userAccess.update?", Update":"","",1==t.module.userAccess.delete?", Delete":"",")"),p(2),h("ngForOf",t.module.areas)}}function qpe(i,e){if(1&i&&(c(0,"li"),m(1),d()),2&i){const t=e.$implicit;p(1),Ae(t)}}function Gpe(i,e){if(1&i&&(c(0,"table",2)(1,"tr")(2,"td"),m(3,"Version:"),d(),c(4,"td"),m(5),d()(),c(6,"tr")(7,"td"),m(8,"Build Date:"),d(),c(9,"td"),m(10),Zt(11,"dateTimePrinter"),d()(),c(12,"tr")(13,"td"),m(14,"User:"),d(),c(15,"td"),m(16),d()(),c(17,"tr")(18,"td"),m(19,"Email:"),d(),c(20,"td"),m(21),d()(),c(22,"tr")(23,"td"),m(24,"Roles:"),d(),c(25,"td")(26,"ul"),b(27,Vpe,2,1,"li",3),d()()(),c(28,"tr")(29,"td"),m(30,"Module Access"),d(),c(31,"td"),b(32,Wpe,9,6,"ol",4),d()(),c(33,"tr")(34,"td"),m(35,"Claims:"),d(),c(36,"td")(37,"ul"),b(38,qpe,2,1,"li",3),d()()()()),2&i){const t=g();p(5),Ae(t.versionNumber),p(5),Ae(Xt(11,8,t.buildDate)),p(6),dr("",t.user.firstName," ",t.user.lastName,""),p(5),Ae(t.user.email),p(6),h("ngForOf",t.roles),p(5),h("ngIf",t.module),p(6),h("ngForOf",t.claims)}}class sC{adminService;userService;versionNumber;buildDate;user;org;module;claims;roles;constructor(e,t){this.adminService=e,this.userService=t}ngOnInit(){var e=this;return O(function*(){e.versionNumber="4.0.3347.1408",e.buildDate="2026-07-16T18:08:54Z",yield e.userService.getCurrentOrg(),e.user=yield e.userService.getUser(),e.module=yield e.adminService.getUserModule(ft.moduleRouteHome),e.claims=yield e.userService.getClaims(),e.roles=yield e.userService.getRoles()})()}static \u0275fac=function(t){return new(t||sC)(H(ns),H(Hn))};static \u0275cmp=Oe({type:sC,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(t,n){1&t&&(c(0,"div",0)(1,"h4"),m(2,"About"),d(),b(3,Gpe,39,10,"table",1),d()),2&t&&(p(3),h("ngIf",n.user))},dependencies:[Ot,rt,js],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 lC{navService;constructor(e){this.navService=e}ngOnInit(){}gotoModuleHome(){this.navService.gotoModuleHome()}static \u0275fac=function(t){return new(t||lC)(H(zr))};static \u0275cmp=Oe({type:lC,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(t,n){1&t&&(c(0,"p",0),B(1,"img",1),d(),c(2,"h1",0),m(3,"404 Oops!"),d(),c(4,"h4",0),m(5," Sorry, we did the best we could but that page you requested, it just isn't around."),d(),c(6,"div",0),B(7,"img",2)(8,"br"),c(9,"div",3),m(10," Click"),c(11,"span",4),P("click",function(){return n.gotoModuleHome()}),m(12,"here"),d(),m(13,"to get back on the trail."),d()())}})}function Kpe(i,e){if(1&i&&(c(0,"div")(1,"h2"),m(2),d(),c(3,"div",3),B(4,"div",4),c(5,"div",5),m(6),Zt(7,"moneyPrinter"),d()(),B(8,"hr"),d()),2&i){const t=e.$implicit;p(2),Ae(t.name),p(2),h("innerHTML",t.detailsHTML,Gn),p(2),dr("",Xt(7,4,t.extended)," ",t.unitType,"")}}class cC{route;productService;navService;_routeSubscription;productPage;constructor(e,t,n){var r=this;this.route=e,this.productService=t,this.navService=n,this._routeSubscription=this.route.params.subscribe(function(){var o=O(function*(a){const s=a.orgns,l=a.ppkey;let u=yield r.productService.getProductPageByKey(s,l);u.successful&&(r.productPage=u.result)});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}ngOnDestroy(){this._routeSubscription.unsubscribe()}getThumbnailImageUri(e){return e.thumbnailImageResource||e.thumbnailImageResourceId?`${ft.siteUri}/api/media/resource/${this.productPage.orgId}/${e.thumbnailImageResourceId??e.thumbnailImageResource.id}/download`:`${ft.siteUri}/app/ui-shared/assets/product.png`}getImageUri(e){return`${ft.siteUri}/api/media/resource/${this.productPage.orgId}/${e.imageResourceId??e.imageResource.id}/download`}static \u0275fac=function(t){return new(t||cC)(H(mi),H(rp),H(zr))};static \u0275cmp=Oe({type:cC,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(t,n){1&t&&(c(0,"div",0)(1,"h1"),m(2),d(),B(3,"div",1)(4,"hr"),b(5,Kpe,9,6,"div",2),d()),2&t&&(p(2),Ae(n.productPage.name),p(1),h("innerHTML",n.productPage.shortSummaryHTML,Gn),p(2),h("ngForOf",n.productPage.products))},dependencies:[Ot,op]})}const Qpe=["pdfViewer"];function Zpe(i,e){if(1&i){const t=re();c(0,"h4"),m(1,"Signature"),d(),c(2,"canvas",0,1),m(4," Your browser does not support the HTML5 canvas tag and can not be used to sign documents. "),d(),B(5,"br"),c(6,"button",2),P("click",function(){return E(t),I(g().getSignature())}),m(7,"Get Signature"),d(),c(8,"button",2),P("click",function(){return E(t),I(g().clearSignature())}),m(9,"Clear Signature"),d(),B(10,"br"),c(11,"h4"),m(12,"Initials"),d(),c(13,"canvas",3,4),m(15," Your browser does not support the HTML5 canvas tag and can not be used to sign documents. "),d(),B(16,"br"),c(17,"button",2),P("click",function(){return E(t),I(g().getInitials())}),m(18,"Get Signature"),d(),c(19,"button",2),P("click",function(){return E(t),I(g().clearInitials())}),m(20,"Clear Signature"),d()}}class dC{route;businessService;paramsSubscription;documentContent;pdf;zoom=1;pdfUrl="";signaturePad;initialsPad;signPoints=[];pdfViewer;constructor(e,t){var n=this;this.route=e,this.businessService=t,this.paramsSubscription=this.route.params.subscribe(function(){var r=O(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 e=this.signaturePad.toSVG();console.log(e)}clearSignature(){this.signaturePad.clear()}getInitials(){let e=this.initialsPad.toSVG();console.log(e)}clearInitials(){this.initialsPad.clear()}navigateTo(e){console.log(e),console.log(this.pdfViewer.pdfLinkService.pdfDocument),this.pdfViewer.pdfLinkService.goToDestination(e)}pdfLoaded(e){var t=this;return O(function*(){t.pdf=e,yield t.pdf.getData(),t.signPoints=[];let r=yield e.getOutline();for(let o of r[0].items)console.log("Outline Item:",o.title,o.dest),o.dest&&o.dest.length>0&&t.signPoints.push({x:o.dest[2],y:o.dest[3],message:o.title,link:o.dest})})()}static \u0275fac=function(t){return new(t||dC)(H(mi),H(ca))};static \u0275cmp=Oe({type:dC,selectors:[["app-document-signing-complete"]],viewQuery:function(t,n){if(1&t&&Wt(Qpe,7),2&t){let r;ut(r=pt())&&(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(t,n){1&t&&(B(0,"div"),b(1,Zpe,21,0,"ng-template"))}})}class J_{constructor(){}_errorMsgs=[];_errorMsgs$=new Ai(this._errorMsgs);onErrMsgs(){return this._errorMsgs$.asObservable()}addErrors(e){e&&(console.log("ErrorReporterService.addErrors",e),this._errorMsgs$.next(e))}addError(e){this._errorMsgs$.next([e])}addErrorMessage(e){this._errorMsgs$.next([{message:e}])}addMessage(e){this.addError({message:e})}addMessages(e){const t=[];for(const n of e)t.push({message:n});this.addErrors(t)}clearErrors(){this._errorMsgs$.next(null)}static \u0275fac=function(t){return new(t||J_)};static \u0275prov=Ue({token:J_,factory:J_.\u0275fac,providedIn:"root"})}class ev{constructor(){}_activeCallCount=0;_loadingMessages=[];_activeCalls=new Ai(this._loadingMessages);_endCalls=new Ai(this._loadingMessages);onCallBegin(){return this._activeCalls.asObservable()}onCallEnd(){return this._endCalls.asObservable()}beginCall(e="?"){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(t){return new(t||ev)};static \u0275prov=Ue({token:ev,factory:ev.\u0275fac,providedIn:"root"})}class tv{http;errorReporter;networkCallService;constructor(e,t,n){this.http=e,this.errorReporter=t,this.networkCallService=n}getFullUrl(e){return e.startsWith("/")&&(e=e.substring(1)),`${ft.siteUri}/${e}`}redirectToLogin(){window.location.href="https://www.software-logistics.com"}handleResponse(e,t=!0,n=!0){var o,r=this;return{next:o=>{t&&this.networkCallService.endCall(),o.successful||n&&this.errorReporter.addErrors(o.errors),e(o)},error:(o=O(function*(a){t&&r.networkCallService.endCall(),401==a.status?yield r.redirectToLogin():n&&r.errorReporter.addMessage(a.message),e({successful:!1,warnings:[],errors:[{message:a.message}]})}),function(s){return o.apply(this,arguments)})}}getPublicOrgInfo(e){var t=this;return O(function*(){let n=`/api/org/${e}/public/summary`;return new Promise((r,o)=>{t.http.get(t.getFullUrl(n)).subscribe(r)})})()}static \u0275fac=function(t){return new(t||tv)(Me(kl),Me(J_),Me(ev))};static \u0275prov=Ue({token:tv,factory:tv.\u0275fac,providedIn:"root"})}class nv{nuviotClient;constructor(e){this.nuviotClient=e}campaignFactory(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/campaign/factory")})()}promotionFactory(){var e=this;return O(function*(){return e.nuviotClient.getFormResponse("/api/campaign/promotion/factory")})()}createCampaign(e){var t=this;return O(function*(){return t.nuviotClient.postWithResponse("/api/campaign",e)})()}updateCampaign(e){var t=this;return O(function*(){return t.nuviotClient.updateWithResponse("/api/campaign",e)})()}getCampaigns(){var e=this;return O(function*(){return e.nuviotClient.getListResponse("/api/campaigns")})()}getCampaign(e){var t=this;return O(function*(){return t.nuviotClient.getFormResponse(`/api/campaign/${e}`)})()}getAllWebSiteMetrics(){return this.nuviotClient.getListResponse("/web/sitemetrics",{pageSize:1e3,pageIndex:1})}getWebSiteMetricsByPath(e){return this.nuviotClient.getListResponse(`/web/sitemetrics/path/${e}`)}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(e){return this.nuviotClient.getFormResponse(`/api/email/list/${e}`)}deleteEmailList(e){return this.nuviotClient.delete(`/api/email/list/${e}`)}updateEmailList(e){return this.nuviotClient.update("/api/email/list",e)}insertEmailList(e){return this.nuviotClient.insert("/api/email/list",e)}saveEmailList(e){return e.isEditing?this.updateEmailList(e.model):this.insertEmailList(e.model)}getEmailSenders(){return this.nuviotClient.getListResponse("/api/email/senders")}createEmailSender(){return this.nuviotClient.getFormResponse("/api/email/sender/factory")}getEmailSender(e){return this.nuviotClient.getFormResponse(`/api/email/sender/${e}`)}addUserAsSender(e,t){let n=`/api/email/sender/create/${e}`;return t&&(n+=`?nickName=${encodeURIComponent(t)}`),this.nuviotClient.request(n)}refreshJobStatus(e,t){return this.nuviotClient.request(`/api/email/list/${e}importjob/${t}/refresh`)}createEmailMailer(){return this.nuviotClient.getFormResponse("/api/email/mailer/factory")}getEmailMailers(){return this.nuviotClient.getListResponse("/api/email/mailers")}getEmailMailer(e){return this.nuviotClient.getFormResponse(`/api/email/mailer/${e}`)}deleteEmailMailer(e){return this.nuviotClient.delete(`/api/email/mailer/${e}`)}updateEmailMailer(e){return this.nuviotClient.update("/api/email/mailer",e)}insertEmailMailer(e){return this.nuviotClient.insert("/api/email/mailer",e)}saveEmailMailer(e){return e.isEditing?this.updateEmailMailer(e.model):this.insertEmailMailer(e.model)}sendMailer(e){return this.nuviotClient.request(`/api/email/mailer/${e}/send`)}getSentEmailsForOrg(){return this.nuviotClient.getListResponse("/api/email/sentemails/all")}getIndividualSentEmailsForOrg(){return this.nuviotClient.getListResponse("/api/email/sentemails/individual/all")}getSentEmailsForMailer(e){return this.nuviotClient.getListResponse(`/api/email/mailer/${e}/results`)}unsubscribeByEmail(e,t){return this.nuviotClient.request(`/api/public/unsubscribe/${e}?email=${t}`)}unsubscribeByContact(e,t,n){return this.nuviotClient.request(`/api/public/unsubscribe/${e}/${t}/${n}`)}resubscribeByEmail(e,t){return this.nuviotClient.request(`/api/public/resubscribe/${e}?email=${t}`)}resubscribeByContact(e,t,n){return this.nuviotClient.request(`/api/public/resubscribe/${e}/${t}/${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(e){return this.nuviotClient.getFormResponse(`/api/email/bulk/mailer/${e}`)}deleteBulkEmailMailer(e){return this.nuviotClient.delete(`/api/email/bulk/mailer/${e}`)}updateBulkEmailMailer(e){return this.nuviotClient.update("/api/email/bulk/mailer",e)}insertBulkEmailMailerList(e){return this.nuviotClient.insert("/api/email/bulk/mailer",e)}sendBulkMailer(e){return this.nuviotClient.request(`/api/email/bulk/mailer/${e}/send`)}saveEmailMailerList(e){return e.isEditing?this.updateBulkEmailMailer(e.model):this.insertBulkEmailMailerList(e.model)}getEmailListForIndustry(e){return this.nuviotClient.request(`/api/industry/${e}/contactlist`)}getEmailListForIndustryNiche(e,t){return this.nuviotClient.request(`/api/industry/${e}/${t}/contactlist`)}static \u0275fac=function(t){return new(t||nv)(Me(hn))};static \u0275prov=Ue({token:nv,factory:nv.\u0275fac,providedIn:"root"})}function Xpe(i,e){if(1&i&&(c(0,"p"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.message)}}function Jpe(i,e){if(1&i){const t=re();c(0,"div",1),B(1,"div",2),c(2,"div",3),B(3,"img",4),c(4,"h4"),m(5),d(),c(6,"h5"),m(7,"Unsubscribe from Communications"),d(),m(8," Unsubscribe the email address: "),c(9,"span",5),m(10),d(),b(11,Xpe,2,1,"p",6),c(12,"div",7)(13,"button",8),P("click",function(){return E(t),I(g().unsubScribe())}),m(14,"Unsubscribe"),d(),c(15,"button",8),P("click",function(){return E(t),I(g().resubScribe())}),m(16,"Re-Subscribe"),d()()(),B(17,"div",2),d()}if(2&i){const t=g();p(3),h("src",t.logoImageUrl(),gi),p(2),Ae(t.orgInfo.tagLine),p(5),Ae(t.email),p(1),h("ngIf",t.message)}}class iv{route;publicService;campaignService;paramsSubscription;orgNs;companyId;contactId;email;orgInfo;message;constructor(e,t,n){var r=this;this.route=e,this.publicService=t,this.campaignService=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=O(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=O(function*(a){r.email=a.email});return function(a){return o.apply(this,arguments)}}())}logoImageUrl(){return`${ft.siteUri}/api/media/resource/${this.orgInfo.id}/${this.orgInfo.lightLogo.id}/download`}ngOnInit(){}unsubScribe(){var e=this;return O(function*(){if(e.contactId&&e.companyId){let t=yield e.campaignService.unsubscribeByContact(e.orgNs,e.companyId,e.contactId);e.message=t.successful?"You have been successfully unsubscribed from our mailing list.":"There was an error unsubscribing you from our mailing list. Please try again later: "+t.errors[0].message}else if(e.email){let t=yield e.campaignService.unsubscribeByEmail(e.orgNs,e.email);e.message=t.successful?"You have been successfully unsubscribed from our mailing list.":"There was an error unsubscribing you from our mailing list. Please try again later: "+t.errors[0].message}})()}resubScribe(){var e=this;return O(function*(){e.contactId&&e.companyId?yield e.campaignService.resubscribeByContact(e.orgNs,e.companyId,e.contactId):e.email&&(yield e.campaignService.resubscribeByEmail(e.orgNs,e.email))})()}static \u0275fac=function(t){return new(t||iv)(H(mi),H(tv),H(nv))};static \u0275cmp=Oe({type:iv,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(t,n){1&t&&b(0,Jpe,18,4,"div",0),2&t&&h("ngIf",n.orgInfo)},dependencies:[rt],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 Pc{nuviotClient;constructor(e){this.nuviotClient=e}getFormHelpResources(e){var t=this;return O(function*(){return yield t.nuviotClient.request(`/api/formhelpresource/form/${e}`,!0,!1)})()}getAllFormHelpResource(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/formhelpresources")})()}createFormHelpResult(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/formhelpresource/${e}/factory`)})()}loadFormHelpResource(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/formhelpresource/${e}`)})()}insertFormHelpResource(e){return this.nuviotClient.insert("/api/formhelpresource",e)}updateFormHelpResource(e){return this.nuviotClient.insert("/api/formhelpresource",e)}getShortenedLinkAsync(e){var t=this;return O(function*(){return yield t.nuviotClient.postWithResponse("/api/formhelpresource/shortenlink",{url:e})})()}saveFormHelpResource(e){var t=this;return O(function*(){return e.isEditing?yield t.updateFormHelpResource(e.model):yield t.insertFormHelpResource(e.model)})()}getFrequentlyAskedQuestions(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/faqs")})()}getFrequentlyAskedQuestionsForOrg(e){var t=this;return O(function*(){return yield t.nuviotClient.getListResponse(`/api/${e}/faqs`)})()}getFrequentlyAskedQuestion(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/faq/${e}`)})()}getFrequentlyAskedQuestionForKey(e,t){var n=this;return O(function*(){return yield n.nuviotClient.request(`/api/${e}/faq/${t}`)})()}createFrequentlyAskedQuestion(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/faq/factory")})()}insertFrequentlyAskedQuestion(e){return this.nuviotClient.insert("/api/faq",e)}updateFrequentlyAskedQuestion(e){return this.nuviotClient.update("/api/faq",e)}deleteFrequentlyAskedQuestion(e){return this.nuviotClient.delete(`/api/faq/${e}`)}saveFrequentlyAskedQuestion(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateFrequentlyAskedQuestion(e.model);var n=yield t.insertFrequentlyAskedQuestion(e.model);return e.isEditing=!0,n})()}getTagGroup(e){return this.nuviotClient.request(e)}deleteDdr(e){var t=this;return O(function*(){return t.nuviotClient.delete(`/api/ddr/${e}`)})()}getDdr(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/ddr/${e}`)})()}getDdrs(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/ddrs")})()}getContentDownloads(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/content/downloads")})()}getContentDownloadsForOrg(e){var t=this;return O(function*(){return yield t.nuviotClient.getListResponse(`/api/${e}/contentdownloads`)})()}getContentDownload(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/content/download/${e}`)})()}createContentDownload(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/content/download/factory")})()}createContentDownloadRevision(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/content/download/revision/factory")})()}insertContentDownload(e){return this.nuviotClient.insert("/api/content/download",e)}updateContentDownload(e){return this.nuviotClient.update("/api/content/download",e)}deleteContentDownload(e){return this.nuviotClient.delete(`/api/content/download/${e}`)}saveContentDownload(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateContentDownload(e.model);var n=yield t.insertContentDownload(e.model);return e.isEditing=!0,n})()}getReferenceEntry(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/referenceentry/${e}`)})()}getReferenceEntries(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/referenceentries")})()}insertReferenceEntry(e){return this.nuviotClient.insert("/api/referenceentry",e)}updateReferenceEntry(e){return this.nuviotClient.update("/api/referenceentry",e)}deleteReferenceEntry(e){return this.nuviotClient.delete(`/api/referenceentry/${e}`)}static \u0275fac=function(t){return new(t||Pc)(Me(hn))};static \u0275prov=Ue({token:Pc,factory:Pc.\u0275fac,providedIn:"root"})}function ehe(i,e){if(1&i&&(c(0,"div",6),B(1,"h3",7),Zt(2,"safeHtml"),B(3,"div",7),Zt(4,"safeHtml"),d()),2&i){const t=e.$implicit;p(1),h("innerHTML",Xt(2,2,t.question),Gn),p(2),h("innerHTML",Xt(4,4,t.answer),Gn)}}function the(i,e){if(1&i&&(c(0,"div")(1,"h1"),m(2,"Frequently Asked Questions"),d(),b(3,ehe,5,6,"div",5),d()),2&i){const t=g();p(3),h("ngForOf",t.faqs)}}function nhe(i,e){if(1&i&&(c(0,"div",6),B(1,"h3",7),Zt(2,"safeHtml"),B(3,"div",7),Zt(4,"safeHtml"),d()),2&i){const t=g();p(1),h("innerHTML",Xt(2,2,t.faq.question),Gn),p(2),h("innerHTML",Xt(4,4,t.faq.answer),Gn)}}class rv{contentService;route;paramsSubscription;faqs;faq;constructor(e,t){var n=this;this.contentService=e,this.route=t,this.paramsSubscription=this.route.params.subscribe(function(){var r=O(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 e.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(t){return new(t||rv)(H(Pc),H(mi))};static \u0275cmp=Oe({type:rv,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(t,n){1&t&&(c(0,"div",0),B(1,"div",1),c(2,"div",2),b(3,the,4,1,"div",3),b(4,nhe,5,6,"div",4),d(),B(5,"div",1),d()),2&t&&(p(3),h("ngIf",n.faqs&&n.faqs.length>0),p(1),h("ngIf",n.faq))},dependencies:[Ot,rt,wg],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 uC{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||uC)};static \u0275cmp=Oe({type:uC,selectors:[["app-connect"]],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," connect works!\n"),d())}})}class pC{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||pC)};static \u0275cmp=Oe({type:pC,selectors:[["app-case-studies"]],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," case-studies works!\n"),d())}})}class hC{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||hC)};static \u0275cmp=Oe({type:hC,selectors:[["app-term-viewer"]],decls:4,vars:0,consts:[[2,"padding","20px"]],template:function(t,n){1&t&&(c(0,"div",0)(1,"h1"),m(2,"Glossary and Terms"),d(),B(3,"app-term"),d())},dependencies:[bg]})}function ihe(i,e){if(1&i&&(c(0,"div")(1,"h3"),B(2,"nuv-icon",1),m(3),d(),c(4,"div",2)(5,"h4"),m(6,"Definition"),d(),B(7,"app-preformatted-html-renderer",3),d(),c(8,"div",2)(9,"h4"),m(10,"Example"),d(),B(11,"app-preformatted-html-renderer",3),d()()),2&i){const t=g();p(2),h("iconName",t.term.icon),p(1),$e(" ",t.term.name,""),p(4),h("html",t.term.definition),p(4),h("html",t.term.example)}}class ov{_renderer2;_document;_term;set glossary(e){}openInNewWindow=!0;set term(e){console.log("this is term",e),this._term=e;let t=this.openInNewWindow?'target="_blank"':"",n=e.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/${e.glossary.id}/view/${r[1]}" ${t}`);n=e.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/${e.glossary.id}/view/${r[1]}" ${t}`)}get term(){return this._term}showTerm(e){console.log(e)}constructor(e,t){this._renderer2=e,this._document=t}ngOnInit(){let e=this._renderer2.createElement("script");e.type="application/ld+json",e.text="\n function showTerm(termKey) {\n alert(')\n \n }\n ",this._renderer2.appendChild(this._document.body,e)}static \u0275fac=function(t){return new(t||ov)(H(Ta),H(Jt))};static \u0275cmp=Oe({type:ov,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(t,n){1&t&&b(0,ihe,12,4,"div",0),2&t&&h("ngIf",n.term)},dependencies:[es,rt,G_],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(--color-accent);--color-fg-panel-link-active: 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 rhe(i,e){if(1&i){const t=re();c(0,"li",8),P("click",function(){const o=E(t).$implicit;return I(g(3).showTerm(o))}),m(1),d()}if(2&i){const t=e.$implicit;p(1),Ae(t.name)}}function ohe(i,e){if(1&i&&(c(0,"ol",6),b(1,rhe,2,1,"li",7),d()),2&i){const t=g(2);p(1),h("ngForOf",t.terms)}}function ahe(i,e){if(1&i&&(c(0,"div",4)(1,"h3"),m(2),d(),b(3,ohe,2,1,"ol",5),d()),2&i){const t=g();p(2),Ae(t.glossary.name),p(1),h("ngIf",t.terms)}}function she(i,e){if(1&i&&B(0,"app-glossary-term-viewer",16),2&i){const t=g(2);h("openInNewWindow",!1)("term",t.term)}}function lhe(i,e){if(1&i){const t=re();c(0,"li",8),P("click",function(){const o=E(t).$implicit;return I(g(3).showRelatedTerm(o.key))}),m(1),d()}if(2&i){const t=e.$implicit;p(1),Ae(t.text)}}function che(i,e){if(1&i&&(c(0,"ol",17),b(1,lhe,2,1,"li",7),d()),2&i){const t=g(2);p(1),h("ngForOf",t.term.related)}}function dhe(i,e){if(1&i){const t=re();c(0,"div",9)(1,"div",10)(2,"span",11),P("click",function(){E(t);const r=g();return I(r.editTerm(r.term))}),B(3,"i",12),m(4," Edit"),d()(),b(5,she,1,2,"app-glossary-term-viewer",13),c(6,"div",14)(7,"h4"),m(8,"Related Terms"),d(),b(9,che,2,1,"ol",15),d()()}if(2&i){const t=g();p(5),h("ngIf",t.term),p(4),h("ngIf",t.term.related)}}class gC{router;glossaryService;navService;userService;route;_routeSubscription;glossary;term;terms;canEdit=!1;constructor(e,t,n,r,o){var a=this;this.router=e,this.glossaryService=t,this.navService=n,this.userService=r,this.route=o,this._routeSubscription=this.route.params.subscribe(function(){var s=O(function*(l){let u=l.id,f=l.term;if(a.glossary=(yield a.glossaryService.getGlossary(u)).model,a.canEdit=(yield a.userService.getCurrentOrg()).id==a.glossary.ownerOrganization.id,a.terms=a.glossary.definitions.filter(v=>v.isPublished),f){let v=a.glossary.definitions.find(D=>D.key==f.toLowerCase()||D.id==f);v.glossary={id:u,key:a.glossary.key,text:a.glossary.name},a.term=v}});return function(l){return s.apply(this,arguments)}}())}ngOnDestroy(){this._routeSubscription.unsubscribe()}showTerm(e){console.log(this.glossary,this.term),e.glossary={id:this.glossary.id,key:this.glossary.key,text:this.glossary.name},this.navService.setLocation(`/contentmanagement/glossary/${this.glossary.id}/view/${e.key}`),this.term=e}editTerm(e){this.navService.openInNewWindow(`/contentmanagement/glossary/${this.glossary.id}/${e.id}`)}showRelatedTerm(e){this.navService.setLocation(`/contentmanagement/glossary/${this.glossary.id}/view/${e}`);let t=this.glossary.definitions.find(n=>n.key==e.toLowerCase()||n.id==e);t.glossary={id:this.glossary.id,key:this.glossary.key,text:this.glossary.name},this.term=t}static \u0275fac=function(t){return new(t||gC)(H(_i),H(Dc),H(zr),H(Hn),H(mi))};static \u0275cmp=Oe({type:gC,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(t,n){1&t&&(c(0,"div",0),B(1,"div",1),b(2,ahe,4,2,"div",2),b(3,dhe,10,2,"div",3),d()),2&t&&(p(2),h("ngIf",n.glossary),p(1),h("ngIf",n.term))},dependencies:[Ot,rt,ov],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 fC{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||fC)};static \u0275cmp=Oe({type:fC,selectors:[["app-glossary"]],decls:1,vars:0,template:function(t,n){1&t&&B(0,"app-glossary-viewer")},dependencies:[gC]})}class mC{constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||mC)};static \u0275cmp=Oe({type:mC,selectors:[["app-company-about"]],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," company-about works!\n"),d())}})}const uhe=[{path:"public/diagram/:diagramid/:layerid/:shapeid",component:Pg},{path:"public/diagram/:diagramid/:layerid/:shapeid/:orgid/:repoid",component:Pg},{path:"public/diagram/:diagramid/:layerid/:shapeid/:orgid/:repoid/:customerid",component:Pg},{path:"login",component:F_},{path:"public/login",component:F_},{path:"logout",component:Z_},{path:"public/logout",component:Z_},{path:"",redirectTo:"public",pathMatch:"full"},{path:"public/glossary/:glossaryid",component:bg},{path:"public/glossary/:glossaryid/term/:termid",component:bg},{path:"public/doc/sign/:docid/signee/:signeeid",component:dC},{path:"public/:orgns/unsubscribe",component:iv},{path:"public/:orgns/unsubscribe/:companyid/:contactid",component:iv},{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:Pb,children:[{path:"",component:aC},{path:"about",component:sC},{path:":orgns/about",component:mC},{path:":orgns/welcome",component:X_},{path:":orgns/contactus",component:X_},{path:":orgns/home",component:Nb},{path:":orgns/glossary/:glossarykey",component:fC},{path:":orgns/glossary/:glossarykey/term/:termkey",component:hC},{path:":orgns/connect",component:uC},{path:":orgns/casestudies",component:pC},{path:"profile",component:oC},{path:":orgns/faqs",component:rv},{path:":orgns/faq/:faqkey",component:rv},{path:":orgns/content/:catgkey/:contentkey",component:Ib},{path:":orgns/careers",component:Fb},{path:":orgns/career/:key",component:Rb},{path:":orgns/blog",component:K_},{path:":orgns/blog/:key",component:K_},{path:":orgns/career/apply/:key",component:Ob},{path:":orgns/survey/:toplevelsurveyid",component:xg},{path:":orgns/profile/survey/:toplevelsurveyid",component:xg},{path:":orgns/profile/survey/:toplevelsurveyid/question/:questionid",component:xg},{path:":orgns/product/:productid",component:Pl},{path:":orgns/pp/:ppkey",component:cC},{path:":orgns/products",component:Pl},{path:":orgns/product/:productid",component:Pl},{path:":orgns/productcategories",component:Pl},{path:":orgns/productcategories/:catgtype",component:Pl},{path:":orgns/productcategories/:catgtype/:catgid/products",component:Pl},{path:":orgns/productcategories/:catgtype/:catgid/product/:productid",component:Pl}]},{path:"**",component:lC}];class _C{static \u0275fac=function(t){return new(t||_C)};static \u0275mod=xt({type:_C});static \u0275inj=wt({imports:[pb.forRoot(uhe),pb]})}class vC{title="business";static \u0275fac=function(t){return new(t||vC)};static \u0275cmp=Oe({type:vC,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){1&t&&B(0,"router-outlet")},dependencies:[eb]})}function phe(i,e){if(1&i){const t=re();c(0,"app-blade-list",4),P("add",function(){E(t);const r=g().$implicit,o=g();return I(r.add?r.add():o.skipIt())})("cancel",function(){E(t);const r=g().$implicit,o=g();return I(r.cancel?r.cancel():o.skipIt())})("selected",function(r){E(t);const o=g().$implicit,a=g();return I(o.selected?o.selected(r):a.skipIt())})("remove",function(r){E(t);const o=g().$implicit;return I(o.remove?o.remove(r):o.remove)}),d()}if(2&i){const t=g().$implicit;let n;h("listResponse",t.list)("title",null!==(n=null==t.list?null:t.list.title)&&void 0!==n?n:t.title)("items",t.items)("showAdd",!1!==t.showAdd)}}function hhe(i,e){if(1&i){const t=re();c(0,"app-blade-form",5),P("saved",function(){E(t);const r=g().$implicit;return I(g().saved(r))})("cancel",function(){E(t);const r=g().$implicit;return I(g().cancel(r))}),d()}if(2&i){const t=g().$implicit;h("headerExtension",t.headerExtension)("autoSave",!0)("form",t.form)}}function ghe(i,e){if(1&i&&(c(0,"div"),b(1,phe,1,4,"app-blade-list",2),b(2,hhe,1,3,"app-blade-form",3),d()),2&i){const t=e.$implicit;p(1),h("ngIf",t.list||t.items),p(1),h("ngIf",t.form)}}class yC{constructor(){}bladesService;ngOnInit(){}skipIt(){}saved(e){e?.saved&&e.saved()}cancel(e){e?.cancel?e.cancel():e.bladesService.popBlade(e)}static \u0275fac=function(t){return new(t||yC)};static \u0275cmp=Oe({type:yC,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(t,n){1&t&&(c(0,"div",0),b(1,ghe,3,2,"div",1),d()),2&t&&(p(1),h("ngForOf",n.bladesService.blades))}})}let mhe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[fi,yr,gp,gp,yr]}),i})();class Fg{contentService;constructor(e){this.contentService=e}transform(e,t){var n=this;return O(function*(){if(e.startsWith("sharedcontentid=")){let r=e.replace("sharedcontentid=","");return(yield n.contentService.getRawSharedContent(r)).result}return e})()}static \u0275fac=function(t){return new(t||Fg)(H(Pa,16))};static \u0275pipe=qn({name:"sharedContent",type:Fg,pure:!0})}class vp extends Error{}class _he extends vp{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class vhe extends vp{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class yhe extends vp{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class av extends vp{}class i8 extends vp{constructor(e){super(`Invalid unit ${e}`)}}class is extends vp{}class $d extends vp{constructor(){super("Zone is an abstract class")}}const Dt="numeric",Ws="short",Fa="long",_E={year:Dt,month:Dt,day:Dt},r8={year:Dt,month:Ws,day:Dt},bhe={year:Dt,month:Ws,day:Dt,weekday:Ws},o8={year:Dt,month:Fa,day:Dt},a8={year:Dt,month:Fa,day:Dt,weekday:Fa},s8={hour:Dt,minute:Dt},l8={hour:Dt,minute:Dt,second:Dt},c8={hour:Dt,minute:Dt,second:Dt,timeZoneName:Ws},d8={hour:Dt,minute:Dt,second:Dt,timeZoneName:Fa},u8={hour:Dt,minute:Dt,hourCycle:"h23"},p8={hour:Dt,minute:Dt,second:Dt,hourCycle:"h23"},h8={hour:Dt,minute:Dt,second:Dt,hourCycle:"h23",timeZoneName:Ws},g8={hour:Dt,minute:Dt,second:Dt,hourCycle:"h23",timeZoneName:Fa},f8={year:Dt,month:Dt,day:Dt,hour:Dt,minute:Dt},m8={year:Dt,month:Dt,day:Dt,hour:Dt,minute:Dt,second:Dt},_8={year:Dt,month:Ws,day:Dt,hour:Dt,minute:Dt},v8={year:Dt,month:Ws,day:Dt,hour:Dt,minute:Dt,second:Dt},Che={year:Dt,month:Ws,day:Dt,weekday:Ws,hour:Dt,minute:Dt},y8={year:Dt,month:Fa,day:Dt,hour:Dt,minute:Dt,timeZoneName:Ws},b8={year:Dt,month:Fa,day:Dt,hour:Dt,minute:Dt,second:Dt,timeZoneName:Ws},C8={year:Dt,month:Fa,day:Dt,weekday:Fa,hour:Dt,minute:Dt,timeZoneName:Fa},w8={year:Dt,month:Fa,day:Dt,weekday:Fa,hour:Dt,minute:Dt,second:Dt,timeZoneName:Fa};function ai(i){return typeof i>"u"}function yp(i){return"number"==typeof i}function CC(i){return"number"==typeof i&&i%1==0}function x8(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function k8(i,e,t){if(0!==i.length)return i.reduce((n,r)=>{const o=[e(r),r];return n&&t(n[0],o[0])===n[0]?n:o},null)[1]}function Rg(i,e){return Object.prototype.hasOwnProperty.call(i,e)}function Fc(i,e,t){return CC(i)&&i>=e&&i<=t}function Rr(i,e=2){let n;return n=i<0?"-"+(""+-i).padStart(e,"0"):(""+i).padStart(e,"0"),n}function Hd(i){if(!ai(i)&&null!==i&&""!==i)return parseInt(i,10)}function bp(i){if(!ai(i)&&null!==i&&""!==i)return parseFloat(i)}function vE(i){if(!ai(i)&&null!==i&&""!==i){const e=1e3*parseFloat("0."+i);return Math.floor(e)}}function yE(i,e,t=!1){const n=10**e;return(t?Math.trunc:Math.round)(i*n)/n}function sv(i){return i%4==0&&(i%100!=0||i%400==0)}function lv(i){return sv(i)?366:365}function wC(i,e){const t=function Dhe(i,e){return i-e*Math.floor(i/e)}(e-1,12)+1;return 2===t?sv(i+(e-t)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function bE(i){let e=Date.UTC(i.year,i.month-1,i.day,i.hour,i.minute,i.second,i.millisecond);return i.year<100&&i.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function xC(i){const e=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7,t=i-1,n=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return 4===e||3===n?53:52}function CE(i){return i>99?i:i>60?1900+i:2e3+i}function M8(i,e,t,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:e,...o},s=new Intl.DateTimeFormat(t,a).formatToParts(r).find(l=>"timezonename"===l.type.toLowerCase());return s?s.value:null}function kC(i,e){let t=parseInt(i,10);Number.isNaN(t)&&(t=0);const n=parseInt(e,10)||0;return 60*t+(t<0||Object.is(t,-0)?-n:n)}function D8(i){const e=Number(i);if("boolean"==typeof i||""===i||Number.isNaN(e))throw new is(`Invalid unit value ${i}`);return e}function MC(i,e){const t={};for(const n in i)if(Rg(i,n)){const r=i[n];if(null==r)continue;t[e(n)]=D8(r)}return t}function cv(i,e){const t=Math.trunc(Math.abs(i/60)),n=Math.trunc(Math.abs(i%60)),r=i>=0?"+":"-";switch(e){case"short":return`${r}${Rr(t,2)}:${Rr(n,2)}`;case"narrow":return`${r}${t}${n>0?`:${n}`:""}`;case"techie":return`${r}${Rr(t,2)}${Rr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function DC(i){return function Mhe(i,e){return e.reduce((t,n)=>(t[n]=i[n],t),{})}(i,["hour","minute","second","millisecond"])}const T8=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,The=["January","February","March","April","May","June","July","August","September","October","November","December"],S8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],She=["J","F","M","A","M","J","J","A","S","O","N","D"];function E8(i){switch(i){case"narrow":return[...She];case"short":return[...S8];case"long":return[...The];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 I8=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],A8=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ehe=["M","T","W","T","F","S","S"];function P8(i){switch(i){case"narrow":return[...Ehe];case"short":return[...A8];case"long":return[...I8];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const F8=["AM","PM"],Ihe=["Before Christ","Anno Domini"],Ahe=["BC","AD"],Phe=["B","A"];function R8(i){switch(i){case"narrow":return[...Phe];case"short":return[...Ahe];case"long":return[...Ihe];default:return null}}function O8(i,e){let t="";for(const n of i)t+=n.literal?n.val:e(n.val);return t}const Bhe={D:_E,DD:r8,DDD:o8,DDDD:a8,t:s8,tt:l8,ttt:c8,tttt:d8,T:u8,TT:p8,TTT:h8,TTTT:g8,f:f8,ff:_8,fff:y8,ffff:C8,F:m8,FF:v8,FFF:b8,FFFF:w8};class Wo{static create(e,t={}){return new Wo(e,t)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let a=0;a0&&o.push({literal:r,val:n}),t=null,n="",r=!r):r||s===t?n+=s:(n.length>0&&o.push({literal:!1,val:n}),n=s,t=s)}return n.length>0&&o.push({literal:r,val:n}),o}static macroTokenToFormatOpts(e){return Bhe[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Rr(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(A,W)=>this.loc.extract(e,A,W),a=A=>e.isOffsetFixed&&0===e.offset&&A.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,A.format):"",l=(A,W)=>n?function Ohe(i,e){return E8(e)[i.month-1]}(e,A):o(W?{month:A}:{month:A,day:"numeric"},"month"),u=(A,W)=>n?function Rhe(i,e){return P8(e)[i.weekday-1]}(e,A):o(W?{weekday:A}:{weekday:A,month:"long",day:"numeric"},"weekday"),f=A=>{const W=Wo.macroTokenToFormatOpts(A);return W?this.formatWithSystemDefault(e,W):A},v=A=>n?function Lhe(i,e){return R8(e)[i.year<0?0:1]}(e,A):o({era:A},"era");return O8(Wo.parseFormat(t),A=>{switch(A){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function Fhe(i){return F8[i.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.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(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.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(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return v("short");case"GG":return v("long");case"GGGGG":return v("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(A)}})}formatDurationFromString(e,t){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=Wo.parseFormat(t),a=o.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]);return O8(o,(l=>u=>{const f=n(u);return f?this.num(l.get(f),u.length):u})(e.shiftTo(...a.map(n).filter(l=>l))))}}class qs{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class dv{get type(){throw new $d}get name(){throw new $d}get ianaName(){return this.name}get isUniversal(){throw new $d}offsetName(e,t){throw new $d}formatOffset(e,t){throw new $d}offset(e){throw new $d}equals(e){throw new $d}get isValid(){throw new $d}}let wE=null;class TC extends dv{static get instance(){return null===wE&&(wE=new TC),wE}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return M8(e,t,n)}formatOffset(e,t){return cv(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let SC={};const $he={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let EC={};class Rc extends dv{static create(e){return EC[e]||(EC[e]=new Rc(e)),EC[e]}static resetCache(){EC={},SC={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Rc.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return M8(e,t,n,this.name)}formatOffset(e,t){return cv(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=function Vhe(i){return SC[i]||(SC[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"})),SC[i]}(this.name);let[r,o,a,s,l,u,f]=n.formatToParts?function Uhe(i,e){const t=i.formatToParts(e),n=[];for(let r=0;r=0?W:1e3+W,(bE({year:r,month:o,day:a,hour:24===l?0:l,minute:u,second:f,millisecond:0})-A)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let xE=null;class qo extends dv{static get utcInstance(){return null===xE&&(xE=new qo(0)),xE}static instance(e){return 0===e?qo.utcInstance:new qo(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new qo(kC(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${cv(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${cv(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return cv(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class jhe extends dv{constructor(e){super(),this.zoneName=e}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 Ud(i,e){if(ai(i)||null===i)return e;if(i instanceof dv)return i;if(function whe(i){return"string"==typeof i}(i)){const n=i.toLowerCase();return"default"===n?e:"local"===n||"system"===n?TC.instance:"utc"===n||"gmt"===n?qo.utcInstance:qo.parseSpecifier(n)||Rc.create(i)}return yp(i)?qo.instance(i):"object"==typeof i&&i.offset&&"number"==typeof i.offset?i:new jhe(i)}let H8,L8=()=>Date.now(),N8="system",B8=null,V8=null,$8=null;class qr{static get now(){return L8}static set now(e){L8=e}static set defaultZone(e){N8=e}static get defaultZone(){return Ud(N8,TC.instance)}static get defaultLocale(){return B8}static set defaultLocale(e){B8=e}static get defaultNumberingSystem(){return V8}static set defaultNumberingSystem(e){V8=e}static get defaultOutputCalendar(){return $8}static set defaultOutputCalendar(e){$8=e}static get throwOnInvalid(){return H8}static set throwOnInvalid(e){H8=e}static resetCaches(){Zi.resetCache(),Rc.resetCache()}}let U8={},kE={};function ME(i,e={}){const t=JSON.stringify([i,e]);let n=kE[t];return n||(n=new Intl.DateTimeFormat(i,e),kE[t]=n),n}let DE={},TE={},uv=null;function IC(i,e,t,n,r){const o=i.listingMode(t);return"error"===o?null:"en"===o?n(e):r(e)}class Jhe{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...a}=n;if(!t||Object.keys(a).length>0){const s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=function zhe(i,e={}){const t=JSON.stringify([i,e]);let n=DE[t];return n||(n=new Intl.NumberFormat(i,e),DE[t]=n),n}(e,s)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Rr(this.floor?Math.floor(e):yE(e,3),this.padTo)}}class ege{constructor(e,t,n){let r;if(this.opts=n,e.zone.isUniversal){const a=e.offset/60*-1,s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;0!==e.offset&&Rc.create(s).valid?(r=s,this.dt=e):(r="UTC",this.dt=n.timeZoneName||0===e.offset?e:vn.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);const o={...this.opts};r&&(o.timeZone=r),this.dtf=ME(t,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class tge{constructor(e,t,n){this.opts={style:"long",...n},!t&&x8()&&(this.rtf=function Whe(i,e={}){const{base:t,...n}=e,r=JSON.stringify([i,n]);let o=TE[r];return o||(o=new Intl.RelativeTimeFormat(i,e),TE[r]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function Nhe(i,e,t="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"===t&&o){const v="days"===i;switch(e){case 1:return v?"tomorrow":`next ${r[i][0]}`;case-1:return v?"yesterday":`last ${r[i][0]}`;case 0:return v?"today":`this ${r[i][0]}`}}const a=Object.is(e,-0)||e<0,s=Math.abs(e),l=1===s,u=r[i],f=n?l?u[1]:u[2]||u[1]:l?r[i][0]:i;return a?`${s} ${f} ago`:`in ${s} ${f}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Zi{static fromOpts(e){return Zi.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const o=e||qr.defaultLocale,a=o||(r?"en-US":function qhe(){return uv||(uv=(new Intl.DateTimeFormat).resolvedOptions().locale,uv)}());return new Zi(a,t||qr.defaultNumberingSystem,n||qr.defaultOutputCalendar,o)}static resetCache(){uv=null,kE={},DE={},TE={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return Zi.create(e,t,n)}constructor(e,t,n,r){const[o,a,s]=function Ghe(i){const e=i.indexOf("-u-");if(-1===e)return[i];{let t;const n=i.substring(0,e);try{t=ME(i).resolvedOptions()}catch{t=ME(n).resolvedOptions()}const{numberingSystem:r,calendar:o}=t;return[n,r,o]}}(e);this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=function Khe(i,e,t){return(t||e)&&(i+="-u",t&&(i+=`-ca-${t}`),e&&(i+=`-nu-${e}`)),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 Xhe(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(e){return e&&0!==Object.getOwnPropertyNames(e).length?Zi.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return IC(this,e,n,E8,()=>{const r=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=function Qhe(i){const e=[];for(let t=1;t<=12;t++){const n=vn.utc(2016,t,1);e.push(i(n))}return e}(a=>this.extract(a,r,"month"))),this.monthsCache[o][e]})}weekdays(e,t=!1,n=!0){return IC(this,e,n,P8,()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=function Zhe(i){const e=[];for(let t=1;t<=7;t++){const n=vn.utc(2016,11,13+t);e.push(i(n))}return e}(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(e=!0){return IC(this,void 0,e,()=>F8,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[vn.utc(2016,11,13,9),vn.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return IC(this,e,t,R8,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[vn.utc(-40,1,1),vn.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,t,n){const a=this.dtFormatter(e,t).formatToParts().find(s=>s.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Jhe(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ege(e,this.intl,t)}relFormatter(e={}){return new tge(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function Yhe(i,e={}){const t=JSON.stringify([i,e]);let n=U8[t];return n||(n=new Intl.ListFormat(i,e),U8[t]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Og(...i){const e=i.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function Lg(...i){return e=>i.reduce(([t,n,r],o)=>{const[a,s,l]=o(e,r);return[{...t,...a},s||n,l]},[{},null,1]).slice(0,2)}function Ng(i,...e){if(null==i)return[null,null];for(const[t,n]of e){const r=t.exec(i);if(r)return n(r)}return[null,null]}function j8(...i){return(e,t)=>{const n={};let r;for(r=0;rvoid 0!==A&&(W||A&&f)?-A:A;return[{years:D(bp(t)),months:D(bp(n)),weeks:D(bp(r)),days:D(bp(o)),hours:D(bp(a)),minutes:D(bp(s)),seconds:D(bp(l),"-0"===l),milliseconds:D(vE(u),v)}]}const gge={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function IE(i,e,t,n,r,o,a){const s={year:2===e.length?CE(Hd(e)):Hd(e),month:S8.indexOf(t)+1,day:Hd(n),hour:Hd(r),minute:Hd(o)};return a&&(s.second=Hd(a)),i&&(s.weekday=i.length>3?I8.indexOf(i)+1:A8.indexOf(i)+1),s}const fge=/^(?:(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 mge(i){const[,e,t,n,r,o,a,s,l,u,f,v]=i,D=IE(e,r,n,t,o,a,s);let A;return A=l?gge[l]:u?0:kC(f,v),[D,new qo(A)]}const vge=/^(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$/,yge=/^(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$/,bge=/^(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 q8(i){const[,e,t,n,r,o,a,s]=i;return[IE(e,r,n,t,o,a,s),qo.utcInstance]}function Cge(i){const[,e,t,n,r,o,a,s]=i;return[IE(e,s,t,n,r,o,a),qo.utcInstance]}const wge=Og(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,EE),xge=Og(/(\d{4})-?W(\d\d)(?:-?(\d))?/,EE),kge=Og(/(\d{4})-?(\d{3})/,EE),Mge=Og(z8),G8=Lg(function dge(i,e){return[{year:Bg(i,e),month:Bg(i,e+1,1),day:Bg(i,e+2,1)},null,e+3]},Vg,pv,hv),Dge=Lg(age,Vg,pv,hv),Tge=Lg(sge,Vg,pv,hv),Sge=Lg(Vg,pv,hv),Fge=Lg(Vg),Oge=Og(/(\d{4})-(\d\d)-(\d\d)/,cge),Lge=Og(W8),Nge=Lg(Vg,pv,hv),K8={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}},$ge={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},...K8},rs=365.2425,$g=30.436875,Hge={years:{quarters:4,months:12,weeks:rs/7,days:rs,hours:24*rs,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:rs/28,days:rs/4,hours:24*rs/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:$g/7,days:$g,hours:24*$g,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...K8},Cp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Uge=Cp.slice(0).reverse();function jd(i,e,t=!1){const n={values:t?e.values:{...i.values,...e.values||{}},loc:i.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||i.conversionAccuracy,matrix:e.matrix||i.matrix};return new di(n)}function Q8(i,e,t,n,r){const o=i[r][t],a=e[t]/o,l=Math.sign(a)!==Math.sign(n[r])&&0!==n[r]&&Math.abs(a)<=1?function jge(i){return i<0?Math.floor(i):Math.ceil(i)}(a):Math.trunc(a);n[r]+=l,e[t]-=l*o}class di{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Hge:$ge;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Zi.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return di.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new is("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new di({values:MC(e,di.normalizeUnit),loc:Zi.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(yp(e))return di.fromMillis(e);if(di.isDuration(e))return e;if("object"==typeof e)return di.fromObject(e);throw new is(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function Pge(i){return Ng(i,[pge,hge])}(e);return n?di.fromObject(n,t):di.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function Rge(i){return Ng(i,[uge,Fge])}(e);return n?di.fromObject(n,t):di.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new is("need to specify a reason the Duration is invalid");const n=e instanceof qs?e:new qs(e,t);if(qr.throwOnInvalid)throw new yhe(n);return new di({invalid:n})}static normalizeUnit(e){const t={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"}[e&&e.toLowerCase()];if(!t)throw new i8(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Wo.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Cp.map(n=>{const r=this.values[n];return ai(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=yE(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===e.format?"hhmm":"hh:mm";(!e.suppressSeconds||0!==n.seconds||0!==n.milliseconds)&&(r+="basic"===e.format?"ss":":ss",(!e.suppressMilliseconds||0!==n.milliseconds)&&(r+=".SSS"));let o=n.toFormat(r);return e.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=di.fromDurationLike(e),n={};for(const r of Cp)(Rg(t.values,r)||Rg(this.values,r))&&(n[r]=t.get(r)+this.get(r));return jd(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=di.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=D8(e(this.values[n],n));return jd(this,{values:t},!0)}get(e){return this[di.normalizeUnit(e)]}set(e){return this.isValid?jd(this,{values:{...this.values,...MC(e,di.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return jd(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function Yge(i,e){Uge.reduce((t,n)=>ai(e[n])?t:(t&&Q8(i,e,t,e,n),n),null)}(this.matrix,e),jd(this,{values:e},!0)}rescale(){return this.isValid?jd(this,{values:function zge(i){const e={};for(const[t,n]of Object.entries(i))0!==n&&(e[t]=n);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(a=>di.normalizeUnit(a));const t={},n={},r=this.toObject();let o;for(const a of Cp)if(e.indexOf(a)>=0){o=a;let s=0;for(const u in n)s+=this.matrix[u][a]*n[u],n[u]=0;yp(r[a])&&(s+=r[a]);const l=Math.trunc(s);t[a]=l,n[a]=(1e3*s-1e3*l)/1e3;for(const u in r)Cp.indexOf(u)>Cp.indexOf(a)&&Q8(this.matrix,r,u,t,a)}else yp(r[a])&&(n[a]=r[a]);for(const a in n)0!==n[a]&&(t[o]+=a===o?n[a]:n[a]/this.matrix[o][a]);return jd(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return jd(this,{values:e},!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(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,r){return void 0===n||0===n?void 0===r||0===r:n===r}for(const n of Cp)if(!t(this.values[n],e.values[n]))return!1;return!0}}const gv="Invalid Interval";class br{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new is("need to specify a reason the Interval is invalid");const n=e instanceof qs?e:new qs(e,t);if(qr.throwOnInvalid)throw new vhe(n);return new br({invalid:n})}static fromDateTimes(e,t){const n=_v(e),r=_v(t),o=function Wge(i,e){return i&&i.isValid?e&&e.isValid?ee}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?br.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(_v).filter(a=>this.contains(a)).sort(),n=[];let{s:r}=this,o=0;for(;r+this.e?this.e:a;n.push(br.fromDateTimes(r,s)),r=s,o+=1}return n}splitBy(e){const t=di.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let o,{s:n}=this,r=1;const a=[];for(;nl*r));o=+s>+this.e?this.e:s,a.push(br.fromDateTimes(n,o)),n=o,r+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:br.fromDateTimes(t,n)}union(e){return this.isValid?br.fromDateTimes(this.se.e?this.e:e.e):this}static merge(e){const[t,n]=e.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&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...o).sort((l,u)=>l.time-u.time);for(const l of s)n+="s"===l.type?1:-1,1===n?t=l.time:(t&&+t!=+l.time&&r.push(br.fromDateTimes(t,l.time)),t=null);return br.merge(r)}difference(...e){return br.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:gv}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:gv}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gv}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:gv}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:gv}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):di.invalid(this.invalidReason)}mapEndpoints(e){return br.fromDateTimes(e(this.s),e(this.e))}}class AC{static hasDST(e=qr.defaultZone){const t=vn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Rc.isValidZone(e)}static normalizeZone(e){return Ud(e,qr.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||Zi.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||Zi.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Zi.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Zi.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Zi.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Zi.create(t,null,"gregory").eras(e)}static features(){return{relative:x8()}}}function Z8(i,e){const t=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(i);return Math.floor(di.fromMillis(n).as("days"))}const AE={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"},X8={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]},Kge=AE.hanidec.replace(/[\[|\]]/g,"").split("");function Gs({numberingSystem:i},e=""){return new RegExp(`${AE[i||"latn"]}${e}`)}function Di(i,e=(t=>t)){return{regex:i,deser:([t])=>e(function Qge(i){let e=parseInt(i,10);if(isNaN(e)){e="";for(let t=0;t=o&&n<=a&&(e+=n-o)}}return parseInt(e,10)}return e}(t))}}const J8=`[ ${String.fromCharCode(160)}]`,eV=new RegExp(J8,"g");function Xge(i){return i.replace(/\./g,"\\.?").replace(eV,J8)}function tV(i){return i.replace(/\./g,"").replace(eV," ").toLowerCase()}function Ks(i,e){return null===i?null:{regex:RegExp(i.map(Xge).join("|")),deser:([t])=>i.findIndex(n=>tV(t)===tV(n))+e}}function nV(i,e){return{regex:i,deser:([,t,n])=>kC(t,n),groups:e}}function PE(i){return{regex:i,deser:([e])=>e}}function Jge(i){return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const tfe={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 FE=null;function iV(i,e){return Array.prototype.concat(...i.map(t=>function sfe(i,e){if(i.literal)return i;const n=oV(Wo.macroTokenToFormatOpts(i.val),e);return null==n||n.includes(void 0)?i:n}(t,e)))}function rV(i,e,t){const n=iV(Wo.parseFormat(t),i),r=n.map(a=>function efe(i,e){const t=Gs(e),n=Gs(e,"{2}"),r=Gs(e,"{3}"),o=Gs(e,"{4}"),a=Gs(e,"{6}"),s=Gs(e,"{1,2}"),l=Gs(e,"{1,3}"),u=Gs(e,"{1,6}"),f=Gs(e,"{1,9}"),v=Gs(e,"{2,4}"),D=Gs(e,"{4,6}"),A=pe=>({regex:RegExp(Jge(pe.val)),deser:([fe])=>fe,literal:!0}),J=(pe=>{if(i.literal)return A(pe);switch(pe.val){case"G":return Ks(e.eras("short",!1),0);case"GG":return Ks(e.eras("long",!1),0);case"y":return Di(u);case"yy":case"kk":return Di(v,CE);case"yyyy":case"kkkk":return Di(o);case"yyyyy":return Di(D);case"yyyyyy":return Di(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Di(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Di(n);case"MMM":return Ks(e.months("short",!0,!1),1);case"MMMM":return Ks(e.months("long",!0,!1),1);case"LLL":return Ks(e.months("short",!1,!1),1);case"LLLL":return Ks(e.months("long",!1,!1),1);case"o":case"S":return Di(l);case"ooo":case"SSS":return Di(r);case"u":return PE(f);case"uu":return PE(s);case"uuu":case"E":case"c":return Di(t);case"a":return Ks(e.meridiems(),0);case"EEE":return Ks(e.weekdays("short",!1,!1),1);case"EEEE":return Ks(e.weekdays("long",!1,!1),1);case"ccc":return Ks(e.weekdays("short",!0,!1),1);case"cccc":return Ks(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return nV(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return nV(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return PE(/[a-z_+-/]{1,256}?/i);default:return A(pe)}})(i)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return J.token=i,J}(a,i)),o=r.find(a=>a.invalidReason);if(o)return{input:e,tokens:n,invalidReason:o.invalidReason};{const[a,s]=function ife(i){return[`^${i.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,i]}(r),l=RegExp(a,"i"),[u,f]=function rfe(i,e,t){const n=i.match(e);if(n){const r={};let o=1;for(const a in t)if(Rg(t,a)){const s=t[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,{}]}(e,l,s),[v,D,A]=f?function ofe(i){let n,t=null;return ai(i.z)||(t=Rc.create(i.z)),ai(i.Z)||(t||(t=new qo(i.Z)),n=i.Z),ai(i.q)||(i.M=3*(i.q-1)+1),ai(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),ai(i.u)||(i.S=vE(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},{}),t,n]}(f):[null,null,void 0];if(Rg(f,"a")&&Rg(f,"H"))throw new av("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:l,rawMatches:u,matches:f,result:v,zone:D,specificOffset:A}}}function oV(i,e){return i?Wo.create(e,i).formatDateTimeParts(function afe(){return FE||(FE=vn.fromMillis(1555555555555)),FE}()).map(r=>function nfe(i,e,t){const{type:n,value:r}=i;if("literal"===n)return{literal:!0,val:r};let a=tfe[n];return"object"==typeof a&&(a=a[t[n]]),a?{literal:!1,val:a}:void 0}(r,0,i)):null}const aV=[0,31,59,90,120,151,181,212,243,273,304,334],sV=[0,31,60,91,121,152,182,213,244,274,305,335];function os(i,e){return new qs("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${i}, which is invalid`)}function lV(i,e,t){const n=new Date(Date.UTC(i,e-1,t));i<100&&i>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const r=n.getUTCDay();return 0===r?7:r}function cV(i,e,t){return t+(sv(i)?sV:aV)[e-1]}function dV(i,e){const t=sv(i)?sV:aV,n=t.findIndex(o=>oxC(e)?(s=e+1,a=1):s=e,{weekYear:s,weekNumber:a,weekday:o,...DC(i)}}function uV(i){const{weekYear:e,weekNumber:t,weekday:n}=i,r=lV(e,1,4),o=lv(e);let s,a=7*t+n-r-3;a<1?(s=e-1,a+=lv(s)):a>o?(s=e+1,a-=lv(e)):s=e;const{month:l,day:u}=dV(s,a);return{year:s,month:l,day:u,...DC(i)}}function OE(i){const{year:e,month:t,day:n}=i;return{year:e,ordinal:cV(e,t,n),...DC(i)}}function pV(i){const{year:e,ordinal:t}=i,{month:n,day:r}=dV(e,t);return{year:e,month:n,day:r,...DC(i)}}function hV(i){const e=CC(i.year),t=Fc(i.month,1,12),n=Fc(i.day,1,wC(i.year,i.month));return e?t?!n&&os("day",i.day):os("month",i.month):os("year",i.year)}function gV(i){const{hour:e,minute:t,second:n,millisecond:r}=i,o=Fc(e,0,23)||24===e&&0===t&&0===n&&0===r,a=Fc(t,0,59),s=Fc(n,0,59),l=Fc(r,0,999);return o?a?s?!l&&os("millisecond",r):os("second",n):os("minute",t):os("hour",e)}const LE="Invalid DateTime",fV=864e13;function PC(i){return new qs("unsupported zone",`the zone "${i.name}" is not supported`)}function NE(i){return null===i.weekData&&(i.weekData=RE(i.c)),i.weekData}function fv(i,e){const t={ts:i.ts,zone:i.zone,c:i.c,o:i.o,loc:i.loc,invalid:i.invalid};return new vn({...t,...e,old:t})}function mV(i,e,t){let n=i-60*e*1e3;const r=t.offset(n);if(e===r)return[n,e];n-=60*(r-e)*1e3;const o=t.offset(n);return r===o?[n,r]:[i-60*Math.min(r,o)*1e3,Math.max(r,o)]}function _V(i,e){const t=new Date(i+=60*e*1e3);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function FC(i,e,t){return mV(bE(i),e,t)}function vV(i,e){const t=i.o,n=i.c.year+Math.trunc(e.years),r=i.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),o={...i.c,year:n,month:r,day:Math.min(i.c.day,wC(n,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=di.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=bE(o);let[l,u]=mV(s,t,i.zone);return 0!==a&&(l+=a,u=i.zone.offset(l)),{ts:l,o:u}}function mv(i,e,t,n,r,o){const{setZone:a,zone:s}=t;if(i&&0!==Object.keys(i).length){const l=e||s,u=vn.fromObject(i,{...t,zone:l,specificOffset:o});return a?u:u.setZone(s)}return vn.invalid(new qs("unparsable",`the input "${r}" can't be parsed as ${n}`))}function RC(i,e,t=!0){return i.isValid?Wo.create(Zi.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(i,e):null}function BE(i,e){const t=i.c.year>9999||i.c.year<0;let n="";return t&&i.c.year>=0&&(n+="+"),n+=Rr(i.c.year,t?6:4),e?(n+="-",n+=Rr(i.c.month),n+="-",n+=Rr(i.c.day)):(n+=Rr(i.c.month),n+=Rr(i.c.day)),n}function yV(i,e,t,n,r,o){let a=Rr(i.c.hour);return e?(a+=":",a+=Rr(i.c.minute),(0!==i.c.second||!t)&&(a+=":")):a+=Rr(i.c.minute),(0!==i.c.second||!t)&&(a+=Rr(i.c.second),(0!==i.c.millisecond||!n)&&(a+=".",a+=Rr(i.c.millisecond,3))),r&&(i.isOffsetFixed&&0===i.offset&&!o?a+="Z":i.o<0?(a+="-",a+=Rr(Math.trunc(-i.o/60)),a+=":",a+=Rr(Math.trunc(-i.o%60))):(a+="+",a+=Rr(Math.trunc(i.o/60)),a+=":",a+=Rr(Math.trunc(i.o%60)))),o&&(a+="["+i.zone.ianaName+"]"),a}const bV={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ufe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},pfe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},CV=["year","month","day","hour","minute","second","millisecond"],hfe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],gfe=["year","ordinal","hour","minute","second","millisecond"];function wV(i){const e={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(!e)throw new i8(i);return e}function xV(i,e){const t=Ud(e.zone,qr.defaultZone),n=Zi.fromObject(e),r=qr.now();let o,a;if(ai(i.year))o=r;else{for(const u of CV)ai(i[u])&&(i[u]=bV[u]);const s=hV(i)||gV(i);if(s)return vn.invalid(s);const l=t.offset(r);[o,a]=FC(i,l,t)}return new vn({ts:o,zone:t,loc:n,o:a})}function kV(i,e,t){const n=!!ai(t.round)||t.round,r=(a,s)=>(a=yE(a,n||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(a,s)),o=a=>t.calendary?e.hasSame(i,a)?0:e.startOf(a).diff(i.startOf(a),a).get(a):e.diff(i,a).get(a);if(t.unit)return r(o(t.unit),t.unit);for(const a of t.units){const s=o(a);if(Math.abs(s)>=1)return r(s,a)}return r(i>e?-0:0,t.units[t.units.length-1])}function MV(i){let t,e={};return i.length>0&&"object"==typeof i[i.length-1]?(e=i[i.length-1],t=Array.from(i).slice(0,i.length-1)):t=Array.from(i),[e,t]}class vn{constructor(e){const t=e.zone||qr.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new qs("invalid input"):null)||(t.isValid?null:PC(t));this.ts=ai(e.ts)?qr.now():e.ts;let r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const s=t.offset(this.ts);r=_V(this.ts,s),n=Number.isNaN(r.year)?new qs("invalid input"):null,r=n?null:r,o=n?null:s}this._zone=t,this.loc=e.loc||Zi.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new vn({})}static local(){const[e,t]=MV(arguments),[n,r,o,a,s,l,u]=t;return xV({year:n,month:r,day:o,hour:a,minute:s,second:l,millisecond:u},e)}static utc(){const[e,t]=MV(arguments),[n,r,o,a,s,l,u]=t;return e.zone=qo.utcInstance,xV({year:n,month:r,day:o,hour:a,minute:s,second:l,millisecond:u},e)}static fromJSDate(e,t={}){const n=function xhe(i){return"[object Date]"===Object.prototype.toString.call(i)}(e)?e.valueOf():NaN;if(Number.isNaN(n))return vn.invalid("invalid input");const r=Ud(t.zone,qr.defaultZone);return r.isValid?new vn({ts:n,zone:r,loc:Zi.fromObject(t)}):vn.invalid(PC(r))}static fromMillis(e,t={}){if(yp(e))return e<-fV||e>fV?vn.invalid("Timestamp out of range"):new vn({ts:e,zone:Ud(t.zone,qr.defaultZone),loc:Zi.fromObject(t)});throw new is(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(yp(e))return new vn({ts:1e3*e,zone:Ud(t.zone,qr.defaultZone),loc:Zi.fromObject(t)});throw new is("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Ud(t.zone,qr.defaultZone);if(!n.isValid)return vn.invalid(PC(n));const r=qr.now(),o=ai(t.specificOffset)?n.offset(r):t.specificOffset,a=MC(e,wV),s=!ai(a.ordinal),l=!ai(a.year),u=!ai(a.month)||!ai(a.day),f=l||u,v=a.weekYear||a.weekNumber,D=Zi.fromObject(t);if((f||s)&&v)throw new av("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new av("Can't mix ordinal dates with month/day");const A=v||a.weekday&&!f;let W,J,pe=_V(r,o);A?(W=hfe,J=ufe,pe=RE(pe)):s?(W=gfe,J=pfe,pe=OE(pe)):(W=CV,J=bV);let fe=!1;for(const Ze of W)ai(a[Ze])?a[Ze]=fe?J[Ze]:pe[Ze]:fe=!0;const ye=A?function cfe(i){const e=CC(i.weekYear),t=Fc(i.weekNumber,1,xC(i.weekYear)),n=Fc(i.weekday,1,7);return e?t?!n&&os("weekday",i.weekday):os("week",i.week):os("weekYear",i.weekYear)}(a):s?function dfe(i){const e=CC(i.year),t=Fc(i.ordinal,1,lv(i.year));return e?!t&&os("ordinal",i.ordinal):os("year",i.year)}(a):hV(a),we=ye||gV(a);if(we)return vn.invalid(we);const Te=A?uV(a):s?pV(a):a,[Re,Ye]=FC(Te,o,n),We=new vn({ts:Re,zone:n,o:Ye,loc:D});return a.weekday&&f&&e.weekday!==We.weekday?vn.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${We.toISO()}`):We}static fromISO(e,t={}){const[n,r]=function Ege(i){return Ng(i,[wge,G8],[xge,Dge],[kge,Tge],[Mge,Sge])}(e);return mv(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function Ige(i){return Ng(function _ge(i){return i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(i),[fge,mge])}(e);return mv(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function Age(i){return Ng(i,[vge,q8],[yge,q8],[bge,Cge])}(e);return mv(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(ai(e)||ai(t))throw new is("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,a=Zi.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[s,l,u,f]=function lfe(i,e,t){const{result:n,zone:r,specificOffset:o,invalidReason:a}=rV(i,e,t);return[n,r,o,a]}(a,e,t);return f?vn.invalid(f):mv(s,l,n,`format ${t}`,e,u)}static fromString(e,t,n={}){return vn.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function Bge(i){return Ng(i,[Oge,G8],[Lge,Nge])}(e);return mv(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new is("need to specify a reason the DateTime is invalid");const n=e instanceof qs?e:new qs(e,t);if(qr.throwOnInvalid)throw new _he(n);return new vn({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=oV(e,Zi.fromObject(t));return n?n.map(r=>r?r.val:null).join(""):null}static expandFormat(e,t={}){return iV(Wo.parseFormat(e),Zi.fromObject(t)).map(r=>r.val).join("")}get(e){return this[e]}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?NE(this).weekYear:NaN}get weekNumber(){return this.isValid?NE(this).weekNumber:NaN}get weekday(){return this.isValid?NE(this).weekday:NaN}get ordinal(){return this.isValid?OE(this.c).ordinal:NaN}get monthShort(){return this.isValid?AC.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?AC.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?AC.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?AC.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 sv(this.year)}get daysInMonth(){return wC(this.year,this.month)}get daysInYear(){return this.isValid?lv(this.year):NaN}get weeksInWeekYear(){return this.isValid?xC(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Wo.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(qo.instance(e),t)}toLocal(){return this.setZone(qr.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Ud(e,qr.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const o=e.offset(this.ts),a=this.toObject();[r]=FC(a,o,e)}return fv(this,{ts:r,zone:e})}return vn.invalid(PC(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return fv(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=MC(e,wV),n=!ai(t.weekYear)||!ai(t.weekNumber)||!ai(t.weekday),r=!ai(t.ordinal),o=!ai(t.year),a=!ai(t.month)||!ai(t.day);if((o||a||r)&&(t.weekYear||t.weekNumber))throw new av("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&r)throw new av("Can't mix ordinal dates with month/day");let u;n?u=uV({...RE(this.c),...t}):ai(t.ordinal)?(u={...this.toObject(),...t},ai(t.day)&&(u.day=Math.min(wC(u.year,u.month),u.day))):u=pV({...OE(this.c),...t});const[f,v]=FC(u,this.o,this.zone);return fv(this,{ts:f,o:v})}plus(e){return this.isValid?fv(this,vV(this,di.fromDurationLike(e))):this}minus(e){return this.isValid?fv(this,vV(this,di.fromDurationLike(e).negate())):this}startOf(e){if(!this.isValid)return this;const t={},n=di.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Wo.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):LE}toLocaleString(e=_E,t={}){return this.isValid?Wo.create(this.loc.clone(t),e).formatDateTime(this):LE}toLocaleParts(e={}){return this.isValid?Wo.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const a="extended"===e;let s=BE(this,a);return s+="T",s+=yV(this,a,t,n,r,o),s}toISODate({format:e="extended"}={}){return this.isValid?BE(this,"extended"===e):null}toISOWeekDate(){return RC(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:a="extended"}={}){return this.isValid?(r?"T":"")+yV(this,"extended"===a,t,e,n,o):null}toRFC2822(){return RC(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return RC(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?BE(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),RC(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():LE}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(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return di.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=function khe(i){return Array.isArray(i)?i:[i]}(t).map(di.normalizeUnit),a=e.valueOf()>this.valueOf(),u=function Gge(i,e,t,n){let[r,o,a,s]=function qge(i,e,t){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 u=Z8(s,l);return(u-u%7)/7}],["days",Z8]],r={};let o,a;for(const[s,l]of n)if(t.indexOf(s)>=0){o=s;let u=l(i,e);a=i.plus({[s]:u}),a>e?(i=i.plus({[s]:u-1}),u-=1):i=a,r[s]=u}return[i,r,a,o]}(i,e,t);const l=e-r,u=t.filter(v=>["hours","minutes","seconds","milliseconds"].indexOf(v)>=0);0===u.length&&(a0?di.fromMillis(l,n).shiftTo(...u).plus(f):f}(a?this:e,a?e:this,o,r);return a?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(vn.now(),e,t)}until(e){return this.isValid?br.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||vn.fromObject({},{zone:this.zone}),n=e.padding?thist.valueOf(),Math.min)}static max(...e){if(!e.every(vn.isDateTime))throw new is("max requires all arguments be DateTimes");return k8(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return rV(Zi.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return vn.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return _E}static get DATE_MED(){return r8}static get DATE_MED_WITH_WEEKDAY(){return bhe}static get DATE_FULL(){return o8}static get DATE_HUGE(){return a8}static get TIME_SIMPLE(){return s8}static get TIME_WITH_SECONDS(){return l8}static get TIME_WITH_SHORT_OFFSET(){return c8}static get TIME_WITH_LONG_OFFSET(){return d8}static get TIME_24_SIMPLE(){return u8}static get TIME_24_WITH_SECONDS(){return p8}static get TIME_24_WITH_SHORT_OFFSET(){return h8}static get TIME_24_WITH_LONG_OFFSET(){return g8}static get DATETIME_SHORT(){return f8}static get DATETIME_SHORT_WITH_SECONDS(){return m8}static get DATETIME_MED(){return _8}static get DATETIME_MED_WITH_SECONDS(){return v8}static get DATETIME_MED_WITH_WEEKDAY(){return Che}static get DATETIME_FULL(){return y8}static get DATETIME_FULL_WITH_SECONDS(){return b8}static get DATETIME_HUGE(){return C8}static get DATETIME_HUGE_WITH_SECONDS(){return w8}}function _v(i){if(vn.isDateTime(i))return i;if(i&&i.valueOf&&yp(i.valueOf()))return vn.fromJSDate(i);if(i&&"object"==typeof i)return vn.fromObject(i);throw new is(`Unknown datetime argument: ${i}, of type ${typeof i}`)}class vv{timezone=Intl.DateTimeFormat().resolvedOptions().timeZone;getLocalDateTime(e){if(10==e.length){let t=new Date(e);return vn.fromJSDate(t)}return vn.fromISO(e,{zone:"utc"}).setZone(this.timezone)}formatDate(e,t="M/d/yyyy"){var n=this.getLocalDateTime(e);return n.year>1900?n.toFormat(t):"-"}transform(e,t){return e?this.formatDate(e,t):"-"}static \u0275fac=function(t){return new(t||vv)};static \u0275pipe=qn({name:"datePrinter",type:vv,pure:!0})}class yv{transform(e){return null==e||null==e?"-":"true"==e.toString()?"Yes":"No"}static \u0275fac=function(t){return new(t||yv)};static \u0275pipe=qn({name:"trueFalsePrinter",type:yv,pure:!0})}class bv{sanitizer;constructor(e){this.sanitizer=e}transform(e){let t=this.sanitizer.bypassSecurityTrustResourceUrl(e);return console.log(t),t}static \u0275fac=function(t){return new(t||bv)(H(Ns,16))};static \u0275pipe=qn({name:"safeNuviotLink",type:bv,pure:!0})}class Cv{transform(e,t){if(e){const n=e.indexOf(":");let r=0,o=0;-1!==n?(r=parseInt(e.substr(0,n)),o=parseInt(e.substr(n+1))):(r=parseInt(e.substr(0,2)),o=parseInt(e.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(t){return new(t||Cv)};static \u0275pipe=qn({name:"timePrinter",type:Cv,pure:!0})}class Hg{transform(e,t){return e>1048576?(e/1048576).toFixed(2)+" MB":e>1024?(e/1024).toFixed(2)+" KB":e>0?e+" Bytes":void 0}static \u0275fac=function(t){return new(t||Hg)};static \u0275pipe=qn({name:"fileSize",type:Hg,pure:!0})}class Ug{static \u0275fac=function(t){return new(t||Ug)};static \u0275mod=xt({type:Ug});static \u0275inj=wt({})}class jg{static \u0275fac=function(t){return new(t||jg)};static \u0275mod=xt({type:jg});static \u0275inj=wt({imports:[fi]})}let VE=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[yr,yr]}),i})();class wv{static \u0275fac=function(t){return new(t||wv)};static \u0275mod=xt({type:wv});static \u0275inj=wt({imports:[fi]})}var $E=j(5876);const ffe=["qrcElement"];let mfe=(()=>{class i{constructor(t,n){this.renderer=t,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 Ie,this.context=null}ngOnChanges(){var t=this;return O(function*(){yield t.createQRCode()})()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(typeof t>"u"||""===t||"null"===t||null===t):!(typeof t>"u")}toDataURL(t){return new Promise((n,r)=>{$E.hz(this.qrdata,t,(o,a)=>{o?r(o):n(a)})})}toCanvas(t,n){return new Promise((r,o)=>{$E.rT(t,this.qrdata,n,a=>{a?o(a):r("success")})})}toSVG(t){return new Promise((n,r)=>{$E.toString(this.qrdata,t,(o,a)=>{o?r(o):n(a)})})}renderElement(t){for(const n of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,n);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){var t=this;return O(function*(){t.version&&t.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),t.version=40):t.version&&t.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),t.version=1):void 0!==t.version&&isNaN(t.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),t.version=void 0);try{if(!t.isValidQrCodeText(t.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");t.isValidQrCodeText(t.qrdata)&&""===t.qrdata&&(t.qrdata=" ");const n={color:{dark:t.colorDark,light:t.colorLight},errorCorrectionLevel:t.errorCorrectionLevel,margin:t.margin,scale:t.scale,type:t.elementType,version:t.version,width:t.width},r=t.imageSrc,o=t.imageHeight||40,a=t.imageWidth||40;switch(t.elementType){case"canvas":const s=t.renderer.createElement("canvas");t.context=s.getContext("2d"),t.toCanvas(s,n).then(()=>{if(t.ariaLabel&&t.renderer.setAttribute(s,"aria-label",`${t.ariaLabel}`),t.title&&t.renderer.setAttribute(s,"title",`${t.title}`),r&&t.context){t.centerImage=new Image(a,o),r!==t.centerImage.src&&(t.centerImage.src=r),o!==t.centerImage.height&&(t.centerImage.height=o),a!==t.centerImage.width&&(t.centerImage.width=a);const f=t.centerImage;f&&(f.onload=()=>{t.context?.drawImage(f,s.width/2-a/2,s.height/2-o/2,a,o)})}t.renderElement(s),t.emitQRCodeURL(s)}).catch(f=>{console.error("[angularx-qrcode] canvas error:",f)});break;case"svg":const l=t.renderer.createElement("div");t.toSVG(n).then(f=>{t.renderer.setProperty(l,"innerHTML",f);const v=l.firstChild;t.renderer.setAttribute(v,"height",`${t.width}`),t.renderer.setAttribute(v,"width",`${t.width}`),t.renderElement(v),t.emitQRCodeURL(v)}).catch(f=>{console.error("[angularx-qrcode] svg error:",f)});break;default:const u=t.renderer.createElement("img");t.toDataURL(n).then(f=>{t.alt&&u.setAttribute("alt",t.alt),t.ariaLabel&&u.setAttribute("aria-label",t.ariaLabel),u.setAttribute("src",f),t.title&&u.setAttribute("title",t.title),t.renderElement(u),t.emitQRCodeURL(u)}).catch(f=>{console.error("[angularx-qrcode] img/url error:",f)})}}catch(n){console.error("[angularx-qrcode] Error generating QR Code:",n.message)}})()}emitQRCodeURL(t){const n=t.constructor.name;if(n===SVGSVGElement.name){const a=new Blob([t.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=t.toDataURL("image/png")),n===HTMLImageElement.name&&(r=t.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(t){return new(t||i)(H(Ta),H(Ns))},i.\u0275cmp=Oe({type:i,selectors:[["qrcode"]],viewQuery:function(t,n){if(1&t&&Wt(ffe,7),2&t){let r;ut(r=pt())&&(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:[li],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,n){1&t&&B(0,"div",null,0),2&t&&ko(n.cssClass)},encapsulation:2,changeDetection:0}),i})(),HC=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[]}),i})();class UC{static \u0275fac=function(t){return new(t||UC)};static \u0275mod=xt({type:UC});static \u0275inj=wt({imports:[Dl,fi,VE,HC,jg,wv]})}class Gt{_field;debug=!1;popupId;get field(){return this._field}set field(e){this._field=e,this.fieldSet(e)}model;view;fieldSet(e){}isDirty;isValid;hasValue;isEnabled=!0;showValidationErrors;regEx;regExMessage;isRegexInvalid;host;form;inputType="text";constructor(){this.hasValue=!1,this.isValid=!0,this.showValidationErrors=!1}onFocus(e){this.validate(),this.showValidationErrors=!0}onBlur(e){this.validate()}changed(e){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(e){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(t){return new(t||Gt)};static \u0275cmp=Oe({type:Gt,selectors:[["app-form-field-base"]],inputs:{field:"field",model:"model",view:"view",host:"host",form:"form"},decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," form-field-base works!\n"),d())}})}class Nn{constructor(){}ariaLabel;modalName;field;ngOnInit(){this.ariaLabel="popupHelp"+this.field.name,this.modalName="myModel"+this.field}static \u0275fac=function(t){return new(t||Nn)};static \u0275cmp=Oe({type:Nn,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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),m(5),d(),c(6,"span",5)(7,"span",6),m(8,"\xd7"),d()()(),c(9,"div",7)(10,"p",8),m(11),d()()()()()),2&t&&(Ss("id","popupHelp",n.field.name,""),mt("aria-labelledby",n.ariaLabel),p(5),$e(" Help - ",n.field.label," "),p(6),Ae(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 _fe(i,e){if(1&i&&(c(0,"div",2),m(1),d()),2&i){const t=g(2);p(1),$e(" ",t.requiredMessage," ")}}function vfe(i,e){if(1&i&&(c(0,"div",2),m(1),d()),2&i){const t=g(2);p(1),$e(" ",t.regExMessage," ")}}function yfe(i,e){if(1&i&&(c(0,"div"),b(1,_fe,2,1,"div",1),b(2,vfe,2,1,"div",1),d()),2&i){const t=g();p(1),h("ngIf",!t.hasValue&&t.isRequired),p(1),h("ngIf",t.isRegexInvalid&&t.hasValue)}}class Vn{constructor(){}isRequired;hasValue;showValidationErrors;isRegexInvalid;requiredMessage;regExMessage;ngOnInit(){}static \u0275fac=function(t){return new(t||Vn)};static \u0275cmp=Oe({type:Vn,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(t,n){1&t&&b(0,yfe,3,2,"div",0),2&t&&h("ngIf",n.showValidationErrors)},dependencies:[rt]})}const bfe=["keyField"];function Cfe(i,e){if(1&i&&(c(0,"h6"),B(1,"i",4),m(2),d()),2&i){const t=g();p(2),$e(" ",t.field.value,"\n")}}function wfe(i,e){1&i&&B(0,"i",9),2&i&&mt("data-target",g(2).popupId)}function xfe(i,e){if(1&i){const t=re();c(0,"div",5)(1,"input",6,7),P("ngModelChange",function(r){return E(t),I(g().field.value=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){E(t);const o=g();return o.onBlur(r),I(o.isEditing=!1)}),d(),b(3,wfe,1,1,"i",8),d()}if(2&i){const t=g();p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.field.value)("type",t.inputType)("disabled",!t.field.isUserEditable),p(2),h("ngIf",t.field.help)}}class jC extends Gt{isEditing=!1;constructor(){super()}nameInput;showEdit(){this.isEditing=!0,setTimeout(()=>{this.nameInput.nativeElement.focus(),this.nameInput.nativeElement.select()},0)}static \u0275fac=function(t){return new(t||jC)};static \u0275cmp=Oe({type:jC,selectors:[["app-key"]],viewQuery:function(t,n){if(1&t&&Wt(bfe,5),2&t){let r;ut(r=pt())&&(n.nameInput=r.first)}},features:[it],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(t,n){1&t&&(b(0,Cfe,3,1,"h6",0),b(1,xfe,4,9,"div",1),B(2,"app-form-field-validation-section",2)(3,"app-form-field-help",3)),2&t&&(h("ngIf",!n.isEditing),p(1),h("ngIf",n.isEditing),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,rt,Nn,Vn]})}const kfe=["nameField"];function Mfe(i,e){if(1&i){const t=re();c(0,"div",6),P("click",function(){return E(t),I(g().showEdit())}),m(1),B(2,"i",7),d()}if(2&i){const t=g();p(1),$e(" ",t.field.value," ")}}function Dfe(i,e){if(1&i){const t=re();c(0,"input",8,9),P("ngModelChange",function(r){return E(t),I(g().field.value=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){E(t);const o=g();return o.onBlur(r),I(o.isEditing=!1)}),d()}if(2&i){const t=g();cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.field.value)("type",t.inputType)("disabled",!t.field.isUserEditable)}}function Tfe(i,e){1&i&&B(0,"i",10),2&i&&mt("data-target",g().popupId)}class YC extends Gt{isEditing=!1;constructor(){super()}ngOnInit(){super.ngOnInit(),this.field.value||this.showEdit()}nameInput;showEdit(){this.isEditing=!0,setTimeout(()=>{this.nameInput.nativeElement.focus(),this.nameInput.nativeElement.select()},0)}static \u0275fac=function(t){return new(t||YC)};static \u0275cmp=Oe({type:YC,selectors:[["app-name"]],viewQuery:function(t,n){if(1&t&&Wt(kfe,5),2&t){let r;ut(r=pt())&&(n.nameInput=r.first)}},features:[it],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(t,n){1&t&&(b(0,Mfe,3,1,"div",0),c(1,"div",1),b(2,Dfe,2,8,"input",2),b(3,Tfe,1,1,"i",3),d(),B(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&t&&(h("ngIf",!n.isEditing),p(2),h("ngIf",n.isEditing),p(1),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,rt,Nn,Vn],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 zC{activeModal;businessService;itemSelected=new Ie;landingPages;selectedLandingPage="-1";industryOptions;nicheOptions=void 0;industryId;nicheId;personaId;constructor(e,t){this.activeModal=e,this.businessService=t}ngOnInit(){var e=this;return O(function*(){alert("OBSOLETE!"),console.error("landing pages are stand alone and should be queried at the top level."),e.industryOptions=yield e.businessService.getIndustriesForPicker(),e.industryId&&"-1"!=e.industryId&&(e.nicheOptions=yield e.businessService.getIndustryNichesForPicker(e.industryId))})()}static \u0275fac=function(t){return new(t||zC)(H(ar),H(ca))};static \u0275cmp=Oe({type:zC,selectors:[["app-landing-page-picker"]],inputs:{industryId:"industryId",nicheId:"nicheId",personaId:"personaId"},outputs:{itemSelected:"itemSelected"},decls:0,vars:0,template:function(t,n){}})}function Sfe(i,e){1&i&&(c(0,"span",3),m(1,"*"),d())}function Efe(i,e){if(1&i){const t=re();c(0,"span",4),P("click",function(){E(t);const r=g();return I(null==r.ai?null:r.ai.emit())}),B(1,"i",5),m(2,"AI"),d()}}class Bn{constructor(){}ai=new Ie;name;isRequired;label;aiButton=!1;ngOnInit(){}static \u0275fac=function(t){return new(t||Bn)};static \u0275cmp=Oe({type:Bn,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(t,n){1&t&&(c(0,"label",0),m(1),b(2,Sfe,2,0,"span",1),b(3,Efe,3,0,"span",2),d()),2&t&&(_t("for",n.name),p(1),$e(" ",n.label," "),p(1),h("ngIf",n.isRequired),p(1),h("ngIf",n.aiButton))},dependencies:[rt]})}function Ife(i,e){if(1&i){const t=re();c(0,"span",14),P("click",function(r){return E(t),g(3).clearLandingPage(),I(r.stopPropagation())}),B(1,"i",15),d()}}const Afe=function(i){return{"picker-link":i}};function Pfe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).pickLandingPage())}),c(1,"span",12),m(2),d(),b(3,Ife,2,0,"span",13),d()}if(2&i){const t=g(2);p(1),h("ngClass",bt(3,Afe,t.field.isUserEditable)),p(1),Ae(t.field.value?null==t.field.value.page?null:t.field.value.page.text:t.field.watermark),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable)}}function Ffe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function Rfe(i,e){if(1&i){const t=re();c(0,"div")(1,"a",16),m(2),d(),c(3,"i",17),P("click",function(){E(t);const r=g(2);return I(r.copyToClipboard(r.buildLink()))}),d(),B(4,"qrcode",18),d()}if(2&i){const t=g(2);p(1),_t("href",t.buildLink,gi),p(1),Ae(t.buildLink()),p(2),h("qrdata",t.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 Ofe(i,e){1&i&&(c(0,"span",19),B(1,"span",20),d()),2&i&&mt("data-target",g(2).popupId)}function Lfe(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,Pfe,4,5,"span",8),b(6,Ffe,2,1,"div",9),d(),b(7,Rfe,5,16,"div",9),d(),c(8,"div"),b(9,Ofe,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(1),h("ngIf",t.field.value),p(2),h("ngIf",t.field.help)}}class WC extends Gt{modalService;userService;orgId;emailTemplateId;campaignId;promoId;constructor(e,t){super(),this.modalService=e,this.userService=t}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t),t.model=t.host.model,console.log(t.form),"SampleEmailInformation"==t.form.modelName?t.emailTemplateId=t.form.parent.model.id:"CampaignPromotion"==t.form.modelName&&(t.promoId=t.model.id,t.campaignId=t.form.parent.model.id);let n=yield t.userService.getCurrentOrg();t.orgId=n.id})()}pickLandingPage(){var e=this;return O(function*(){let t=e.form.parent?.view.industry?Yn.resolveOption(e.form.parent.view.industry):void 0,n=e.view.industryNiche?Yn.resolveOption(e.view.industryNiche):void 0;console.log(t,n);const r=e.modalService.open(zC,{size:"lg"}).componentInstance;r.nicheId=n?n.id:"-1",r.industryId=t?t.id:"-1",r.itemSelected.subscribe(o=>{e.field.value=o,e.field.display=o.page.text,e.changed(e.field),console.log(o)})})()}copyToClipboard(e){Yn.copyToClipboard(e)}clearLandingPage(){this.field.value=void 0}buildLink(){if(!this.field.value||!this.field.value.link)return;let e=`${this.field.value.link}?o=${this.orgId}`;return this.campaignId&&(e+=`&c=${this.campaignId}`),this.promoId&&(e+=`&p=${this.promoId}`),this.emailTemplateId&&(e+=`&t=${this.emailTemplateId}`),e}static \u0275fac=function(t){return new(t||WC)(H(Pn),H(Hn))};static \u0275cmp=Oe({type:WC,selectors:[["app-landing-page-field"]],features:[it],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(t,n){1&t&&(b(0,Lfe,10,7,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,mfe,Nn,Bn,Vn],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 Yg{nuviotClient;constructor(e){this.nuviotClient=e}addComponent(e){return this.nuviotClient.post("/api/mfg/component",e)}updateComponent(e){return this.nuviotClient.update("/api/mfg/component",e)}getComponent(e){return this.nuviotClient.getFormResponse(`/api/mfg/component/${e}`)}getComponentCategories(){var e=this;return O(function*(){return(yield e.nuviotClient.getListResponse("/api/categories/component")).model.map(n=>({id:n.id,key:n.key,text:n.name}))})()}saveComponent(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateComponent(e.model);{let n=yield t.addComponent(e.model);return n.successful&&(e.isEditing=!0),n}})()}populateComponent(e){return this.nuviotClient.postWithResponse("/api/mfg/digikey/partlookup",e)}createComponent(){return this.nuviotClient.getFormResponse("/api/mfg/component/factory")}getComponents(){return this.nuviotClient.get("/api/mfg/components")}getComponentForCategory(e){return this.nuviotClient.get(`/api/mfg/components?componentType=${e}`)}createComponentPurchase(){return this.nuviotClient.getFormResponse("/api/mfg/component/purchase/factory")}addComponentPackage(e){return this.nuviotClient.post("/api/mfg/component/package",e)}updateComponentPackage(e){return this.nuviotClient.update("/api/mfg/component/package",e)}getComponentPackage(e){return this.nuviotClient.getFormResponse(`/api/mfg/component/package/${e}`)}saveComponentPackage(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateComponentPackage(e.model);{let n=yield t.addComponentPackage(e.model);return n.successful&&(e.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(e){return this.nuviotClient.post("/api/mfg/autofeeder/template",e)}updateAutoFeederTemplate(e){return this.nuviotClient.update("/api/mfg/autofeeder/template",e)}getAutoFeederTemplate(e){return this.nuviotClient.getFormResponse(`/api/mfg/autofeeder/template/${e}`)}saveAutoFeederTemplate(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateAutoFeederTemplate(e.model);{let n=yield t.addAutoFeederTemplate(e.model);return n.successful&&(e.isEditing=!0),n}})()}createAutoFeeder(){return this.nuviotClient.getFormResponse("/api/mfg/autofeeder/factory")}createAutoFeederFromTemplate(e){return this.nuviotClient.getFormResponse(`/api/mfg/autofeeder/template/${e}/factory`)}getAutoFeeders(){return this.nuviotClient.get("/api/mfg/autofeeders")}addAutoFeeder(e){return this.nuviotClient.post("/api/mfg/autofeeder",e)}updateAutoFeeder(e){return this.nuviotClient.update("/api/mfg/autofeeder",e)}getAutoFeeder(e){return this.nuviotClient.getFormResponse(`/api/mfg/autofeeder/${e}`)}saveAutoFeeder(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateAutoFeeder(e.model);{let n=yield t.addAutoFeeder(e.model);return n.successful&&(e.isEditing=!0),n}})()}createMachine(){return this.nuviotClient.getFormResponse("/api/mfg/machine/factory")}getMachines(){return this.nuviotClient.get("/api/mfg/machines")}getStripFeedersForMachine(e,t=!1){return this.nuviotClient.getListResponse(`/api/mfg/machine/${e}/stripfeeders?loadcomponents=${t}`)}addMachine(e){return this.nuviotClient.post("/api/mfg/machine",e)}updateMachine(e){return this.nuviotClient.update("/api/mfg/machine",e)}getMachine(e){return this.nuviotClient.getFormResponse(`/api/mfg/machine/${e}`)}saveMachine(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateMachine(e.model);{let n=yield t.addMachine(e.model);return n.successful&&(e.isEditing=!0),n}})()}createStripFeeder(){return this.nuviotClient.getFormResponse("/api/mfg/stripfeeder/factory")}createStripFeederFromTemplate(e){return this.nuviotClient.getFormResponse(`/api/mfg/stripfeeder/template/${e}/factory`)}getStripFeeders(){return this.nuviotClient.get("/api/mfg/stripfeeders")}addStripFeeder(e){return this.nuviotClient.post("/api/mfg/stripfeeder",e)}updateStripFeeder(e){return this.nuviotClient.update("/api/mfg/stripfeeder",e)}getStripFeeder(e,t=!1){return this.nuviotClient.getFormResponse(`/api/mfg/stripfeeder/${e}?loadcomponent=${t}`)}saveStripFeeder(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateStripFeeder(e.model);{let n=yield t.addStripFeeder(e.model);return n.successful&&(e.isEditing=!0),n}})()}createStripFeederTemplate(){return this.nuviotClient.getFormResponse("/api/mfg/stripfeeder/template/factory")}getStripFeederTemplates(){return this.nuviotClient.get("/api/mfg/stripfeeder/templates")}addStripFeederTemplate(e){return this.nuviotClient.post("/api/mfg/stripfeeder/template",e)}updateStripFeederTemplate(e){return this.nuviotClient.update("/api/mfg/stripfeeder/template",e)}getStripFeederTemplate(e){return this.nuviotClient.getFormResponse(`/api/mfg/stripfeeder/template/${e}`)}saveStripFeederTemplate(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateStripFeederTemplate(e.model);{let n=yield t.addStripFeederTemplate(e.model);return n.successful&&(e.isEditing=!0),n}})()}associateStripFeeder(e,t,n,r,o){return this.nuviotClient.get(`/api/mfg/machine/${e}/stagingplate/${t}/${r}/${o}/stripfeeder/${n}/attach`)}createPartPack(){return this.nuviotClient.getFormResponse("/api/mfg/partpack/factory")}getPartPacks(){return this.nuviotClient.get("/api/mfg/partpacks")}addPartPack(e){return this.nuviotClient.post("/api/mfg/partpack",e)}updatePartPack(e){return this.nuviotClient.update("/api/mfg/partpack",e)}getPartPack(e){return this.nuviotClient.getFormResponse(`/api/mfg/partpack/${e}`)}savePartPack(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updatePartPack(e.model);{let n=yield t.addPartPack(e.model);return n.successful&&(e.isEditing=!0),n}})()}createPcb(){return this.nuviotClient.getFormResponse("/api/mfg/pcb/factory")}getPcbs(){return this.nuviotClient.get("/api/mfg/pcbs")}addPcb(e){return this.nuviotClient.post("/api/mfg/pcb",e)}updatePcb(e){return this.nuviotClient.update("/api/mfg/pcb",e)}getPcb(e){return this.nuviotClient.getFormResponse(`/api/mfg/pcb/${e}`)}savePcb(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updatePcb(e.model);{let n=yield t.addPcb(e.model);return n.successful&&(e.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(e){return this.nuviotClient.post("/api/mfg/order",e)}updateComponentOrder(e){return this.nuviotClient.update("/api/mfg/order",e)}addComponentPurchase(e,t){return this.nuviotClient.post(`/api/mfg/component/${e}/purchase`,t)}receiveComponentOrder(e,t,n){return this.nuviotClient.update(`/api/mfg/component/${e}/purchase/${t}/receive/${n}`,{})}getComponentOrder(e){return this.nuviotClient.getFormResponse(`/api/mfg/order/${e}`)}saveComponentOrder(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateComponentOrder(e.model);{let n=yield t.addComponentOrder(e.model);return n.successful&&(e.isEditing=!0),n}})()}createPnpJob(){return this.nuviotClient.getFormResponse("/api/mfg/pnpjob/factory")}getPnpJobs(){return this.nuviotClient.get("/api/mfg/pnpjobs")}addPnpJob(e){return this.nuviotClient.post("/api/mfg/pnpjob",e)}updatePnpJob(e){return this.nuviotClient.update("/api/mfg/pnpjob",e)}getPnpJob(e){return this.nuviotClient.getFormResponse(`/api/mfg/pnpjob/${e}`)}savePnpJob(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updatePnpJob(e.model);{let n=yield t.addPnpJob(e.model);return n.successful&&(e.isEditing=!0),n}})()}editRevision(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/mfg/pcb/revision/factory");return n.isEditing=!0,n.model=e,n})()}testFitRevision(e,t){return this.nuviotClient.postWithResponse(`/api/mfg/machine/${e}/revision/testfit`,t)}createPnPJobFromPCB(e,t,n=""){let r=`/api/mfg/pcb/${e}/revision/${t}/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(e){return this.nuviotClient.post("/api/mfg/gcodemapping",e)}updateGCodeMapping(e){return this.nuviotClient.update("/api/mfg/gcodemapping",e)}getGCodeMapping(e){return this.nuviotClient.getFormResponse(`/api/mfg/gcodemapping/${e}`)}saveGCodeMapping(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateGCodeMapping(e.model);{let n=yield t.addGCodeMapping(e.model);return n.successful&&(e.isEditing=!0),n}})()}createNozzleTip(){return this.nuviotClient.getFormResponse("/api/mfg/pnp/nozzletip/factory")}getNozzleTips(){return this.nuviotClient.get("/api/mfg/pnp/nozzletips")}addNozzleTip(e){return this.nuviotClient.post("/api/mfg/pnp/nozzletip",e)}updateNozzleTip(e){return this.nuviotClient.update("/api/mfg/pnp/nozzletip",e)}getNozzleTip(e){return this.nuviotClient.getFormResponse(`/api/mfg/pnp/nozzletip/${e}`)}saveNozzleTip(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateNozzleTip(e.model);{let n=yield t.addNozzleTip(e.model);return n.successful&&(e.isEditing=!0),n}})()}createInventoryLocation(){return this.nuviotClient.getFormResponse("/api/mfg/inventory/location/factory")}getInventoryLocations(){return this.nuviotClient.get("/api/mfg/inventory/locations")}addInventoryLocation(e){return this.nuviotClient.post("/api/mfg/inventory/location",e)}updateInventoryLocation(e){return this.nuviotClient.update("/api/mfg/inventory/location",e)}getInventoryLocation(e){return this.nuviotClient.getFormResponse(`/api/mfg/inventory/location/${e}`)}saveInventoryLocation(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateInventoryLocation(e.model);{let n=yield t.addInventoryLocation(e.model);return n.successful&&(e.isEditing=!0),n}})()}getGCodeForProject(e){return this.nuviotClient.postWithResponse("/api/mfg/gcode/generate",e)}createGCodeProject(){return this.nuviotClient.getFormResponse("/api/mfg/gcode/project/factory")}getGCodeProjects(){return this.nuviotClient.get("/api/mfg/gcode/projects")}addGCodeProject(e){return this.nuviotClient.post("/api/mfg/gcode/project",e)}updateGCoeProject(e){return this.nuviotClient.update("/api/mfg/gcode/project",e)}getGCodeProject(e){return this.nuviotClient.getFormResponse(`/api/mfg/gcode/project/${e}`)}saveGCodeProject(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateGCoeProject(e.model);{let n=yield t.addGCodeProject(e.model);return n.successful&&(e.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(e){var t=this;return O(function*(){let n=yield t.createAssemblyInstructionStep();return n.model=e,n})()}getAssemblyInstructions(){return this.nuviotClient.get("/api/mfg/assembly/instructions")}addAssemblyInstruction(e){return this.nuviotClient.post("/api/mfg/assembly/instruction",e)}updateAssemblyInstruction(e){return this.nuviotClient.update("/api/mfg/assembly/instruction",e)}getAssemblyInstruction(e){return this.nuviotClient.getFormResponse(`/api/mfg/assembly/instruction/${e}`)}saveAssemblyInstruction(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateAssemblyInstruction(e.model);{let n=yield t.addAssemblyInstruction(e.model);return n.successful&&(e.isEditing=!0),n}})()}static \u0275fac=function(t){return new(t||Yg)(Me(hn))};static \u0275prov=Ue({token:Yg,factory:Yg.\u0275fac,providedIn:"root"})}function Nfe(i,e){if(1&i&&(c(0,"option",5),m(1),d()),2&i){const t=e.$implicit;h("value",t.key),p(1),Ae(t.text)}}function Bfe(i,e){if(1&i){const t=re();c(0,"li",8),P("click",function(){const o=E(t).$implicit;return I(g(2).partSelected(o))}),m(1),d()}if(2&i){const t=e.$implicit;p(1),cc(" ",t.name," ",t.value," (",t.package,") ")}}function Vfe(i,e){if(1&i&&(c(0,"ol",6),b(1,Bfe,2,3,"li",7),d()),2&i){const t=g();p(1),h("ngForOf",t.parts)}}class qC{mfgService;activeModal;adminServices;itemSelected=new Ie;selectedCategory;componentCategories;parts;constructor(e,t,n){this.mfgService=e,this.activeModal=t,this.adminServices=n}ngOnInit(){var e=this;return O(function*(){let t=yield e.adminServices.getCategories("component");e.componentCategories=t.model.map(n=>({id:n.id,key:n.key,text:n.name})),e.componentCategories.unshift({id:"-1",key:"-1",text:"-select category-"}),e.selectedCategory=e.componentCategories[0].key})()}categorySelected(){var e=this;return O(function*(){e.parts="-1"==e.selectedCategory?void 0:(yield e.mfgService.getComponentForCategory(e.selectedCategory)).model})()}partSelected(e){var t=this;return O(function*(){t.itemSelected.emit({id:e.id,key:e.key,text:e.name}),t.activeModal.close()})()}static \u0275fac=function(t){return new(t||qC)(H(Yg),H(ar),H(ns))};static \u0275cmp=Oe({type:qC,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(t,n){1&t&&(c(0,"div",0)(1,"h3",1),m(2,"Select Component"),d(),c(3,"label"),m(4,"Select Category"),d(),c(5,"select",2),P("change",function(){return n.categorySelected()})("ngModelChange",function(o){return n.selectedCategory=o}),b(6,Nfe,2,2,"option",3),d(),b(7,Vfe,2,1,"ol",4),d()),2&t&&(p(5),h("ngModel",n.selectedCategory),p(1),h("ngForOf",n.componentCategories),p(1),h("ngIf",n.parts))},dependencies:[Mr,Dr,pr,en,qt,Ot,rt]})}function $fe(i,e){if(1&i){const t=re();c(0,"span",14),P("click",function(r){return E(t),g(3).clearComponent(),I(r.stopPropagation())}),B(1,"i",15),d()}}function Hfe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).pickComponent())}),c(1,"span",12),m(2),d(),b(3,$fe,2,0,"span",13),d()}if(2&i){const t=g(2);p(2),Ae(t.field.display?t.field.display:t.field.watermark),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable)}}function Ufe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function jfe(i,e){1&i&&(c(0,"span",16),B(1,"span",17),d()),2&i&&mt("data-target",g(2).popupId)}function Yfe(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,Hfe,4,2,"span",8),b(6,Ufe,2,1,"div",9),d()(),c(7,"div"),b(8,jfe,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class GC extends Gt{modalService;userService;constructor(e,t){super(),this.modalService=e,this.userService=t}pickComponent(){this.modalService.open(qC,{size:"lg"}).componentInstance.itemSelected.subscribe(t=>{this.field.value=t,this.field.display=t,console.log(t),this.changed(this.field)})}clearComponent(){}static \u0275fac=function(t){return new(t||GC)(H(Pn),H(Hn))};static \u0275cmp=Oe({type:GC,selectors:[["app-component-picker-field"]],features:[it],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(t,n){1&t&&(b(0,Yfe,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[rt,Nn,Bn,Vn],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 zfe(i,e){if(1&i&&(c(0,"option",6),m(1),d()),2&i){const t=e.$implicit;h("value",t.id),p(1),Ae(t.text)}}function Wfe(i,e){if(1&i&&(c(0,"option",7),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),Ae(t.text)}}function qfe(i,e){if(1&i&&(c(0,"option",7),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),Ae(t.text)}}function Gfe(i,e){if(1&i&&(c(0,"option",7),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),Ae(t.text)}}function Kfe(i,e){if(1&i&&(c(0,"option",7),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),Ae(t.text)}}class KC extends Gt{modalService;mfgService;locations;location;locationId;rooms;roomId;shelfUnits;shelfUnitId;shelves;shelfId;columns;columnId;bins;binId;selectedLocation;constructor(e,t){super(),this.modalService=e,this.mfgService=t}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t),t.rooms=[],t.shelfUnits=[],t.shelves=[],t.columns=[],t.roomId="-1",t.shelfUnitId="-1",t.shelfId="-1",t.columnId="-1";var n=yield t.mfgService.getInventoryLocations();if(t.locations=n.model.map(r=>({id:r.id,key:r.key,text:r.name})),t.locations.unshift({id:"-1",key:"-1",text:"-select location-"}),t.field.value){t.selectedLocation=t.field.value,t.locationId=t.selectedLocation.location.id;let r=yield t.mfgService.getInventoryLocation(t.locationId);if(r.successful&&(t.location=r.model,t.rooms=t.location.rooms.map(o=>({id:o.id,key:o.key,text:o.name})),t.roomId=t.selectedLocation.room?.id??"-1",t.roomId)){let o=t.location.rooms.find(a=>a.id==t.roomId);if(t.shelfUnits=o.shelfUnits.map(a=>({id:a.id,key:a.key,text:a.name})),t.shelfUnitId=t.selectedLocation.shelfUnit?.id??"-1","-1"!=t.shelfUnitId){let a=o.shelfUnits.find(s=>s.id==t.shelfUnitId);if(t.shelves=a.shelves.map(s=>({id:s.id,key:s.key,text:s.name})),t.shelfId=t.selectedLocation?.shelf?.id??"-1","-1"!=t.shelfId){let s=a.shelves.find(l=>l.id==t.shelfId);t.columns=s.columns.map(l=>({id:l.id,key:l.key,text:l.name})),t.columnId=t.selectedLocation?.column?.id??"-1"}}}}else t.locationId=t.locations[0].id;t.rooms.unshift({id:"-1",key:"-1",text:"-select room-"}),t.shelfUnits.unshift({id:"-1",key:"-1",text:"-select shelf unit-"}),t.shelves.unshift({id:"-1",key:"-1",text:"-select shelf-"}),t.columns.unshift({id:"-1",key:"-1",text:"-select column-"}),console.log(t.locationId)})()}updateField(){var e=this;return O(function*(){if(e.selectedLocation&&e.selectedLocation.location.id==e.locationId)if(e.roomId!=e.selectedLocation.room?.id)if(e.roomId&&"-1"!=e.roomId){let t=e.location.rooms.find(n=>n.id==e.roomId);e.selectedLocation.room=e.rooms.find(n=>n.id==e.roomId),e.shelfUnits=t.shelfUnits.map(n=>({id:n.id,key:n.key,text:n.name})),e.shelfUnits.unshift({id:"-1",key:"-1",text:"-select shelf unit-"})}else e.shelfUnits=[],e.shelfUnits.push({id:"-1",key:"-1",text:"-select shelf unit-"}),e.selectedLocation.room=void 0,e.selectedLocation.shelfUnit=void 0,e.selectedLocation.shelf=void 0,e.selectedLocation.column=void 0,e.selectedLocation.bin=void 0,e.shelfUnitId="-1",e.shelfId="-1",e.columnId="-1";else if(e.shelfUnitId!=e.selectedLocation.shelfUnit?.id){if(console.log(e.shelfUnitId),e.shelfUnitId&&"-1"!=e.shelfUnitId){let n=e.location.rooms.find(r=>r.id==e.roomId).shelfUnits.find(r=>r.id==e.shelfUnitId);e.selectedLocation.shelfUnit=e.shelfUnits.find(r=>r.id==e.shelfUnitId),e.shelves=n.shelves.map(r=>({id:r.id,key:r.key,text:r.name})),e.shelves.unshift({id:"-1",key:"-1",text:"-select shelf-"})}else e.shelves=[],e.shelves.push({id:"-1",key:"-1",text:"-select shelf-"}),e.selectedLocation.shelfUnit=void 0,e.selectedLocation.shelf=void 0,e.selectedLocation.column=void 0,e.selectedLocation.bin=void 0,e.shelfId="-1",e.columnId="-1";e.shelfId="-1"}else if(e.shelfId!=e.selectedLocation.shelf?.id){if(e.shelfUnitId&&"-1"!=e.shelfUnitId){let r=e.location.rooms.find(o=>o.id==e.roomId).shelfUnits.find(o=>o.id==e.shelfUnitId).shelves.find(o=>o.id==e.shelfId);e.selectedLocation.shelf=e.shelves.find(o=>o.id==e.shelfId),e.columns=r.columns.map(o=>({id:o.id,key:o.key,text:o.name})),e.columns.unshift({id:"-1",key:"-1",text:"-select column-"})}else e.columns=[],e.columns.push({id:"-1",key:"-1",text:"-select column-"}),e.selectedLocation.shelf=void 0,e.selectedLocation.column=void 0,e.selectedLocation.bin=void 0,e.columnId="-1";e.columnId="-1"}else e.columnId!=e.selectedLocation.column?.id&&(e.selectedLocation.column=e.columnId&&"-1"!=e.columnId?e.columns.find(t=>t.id==e.columnId):void 0);else if("-1"==e.locationId)e.selectedLocation=void 0,e.rooms=[],e.rooms.push({id:"-1",key:"-1",text:"-select room-"}),e.roomId="-1",e.shelfUnitId="-1",e.shelfId="-1",e.columnId="-1";else{e.selectedLocation={location:e.locations.find(n=>n.id==e.locationId)},e.field.value=e.selectedLocation;let t=yield e.mfgService.getInventoryLocation(e.locationId);e.location=t.model,e.rooms=e.location.rooms.map(n=>({id:n.id,key:n.key,text:n.name})),e.rooms.unshift({id:"-1",key:"-1",text:"-select room-"}),e.roomId="-1"}})()}static \u0275fac=function(t){return new(t||KC)(H(Pn),H(Yg))};static \u0275cmp=Oe({type:KC,selectors:[["app-inventory-location-picker"]],features:[it],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(t,n){1&t&&(c(0,"div")(1,"div",0)(2,"div",1)(3,"label"),m(4),d(),c(5,"select",2),P("ngModelChange",function(o){return n.locationId=o})("change",function(){return n.updateField()}),b(6,zfe,2,2,"option",3),d()(),c(7,"div",1)(8,"label"),m(9,"Room"),d(),c(10,"select",4),P("ngModelChange",function(o){return n.roomId=o})("change",function(){return n.updateField()}),b(11,Wfe,2,2,"option",5),d()(),c(12,"div",1)(13,"label"),m(14,"Shelf Unit"),d(),c(15,"select",4),P("ngModelChange",function(o){return n.shelfUnitId=o})("change",function(){return n.updateField()}),b(16,qfe,2,2,"option",5),d()(),c(17,"div",1)(18,"label"),m(19,"Shelf"),d(),c(20,"select",4),P("ngModelChange",function(o){return n.shelfId=o})("change",function(){return n.updateField()}),b(21,Gfe,2,2,"option",5),d()(),c(22,"div",1)(23,"label"),m(24,"Column"),d(),c(25,"select",4),P("ngModelChange",function(o){return n.columnId=o})("change",function(){return n.updateField()}),b(26,Kfe,2,2,"option",5),d()()()()),2&t&&(p(4),Ae(n.field.label),p(1),h("ngModel",n.locationId),p(1),h("ngForOf",n.locations),p(4),h("disabled",!n.locationId||"-1"==n.locationId)("ngModel",n.roomId),p(1),h("ngForOf",n.rooms),p(4),h("disabled",!n.roomId||"-1"==n.roomId)("ngModel",n.shelfUnitId),p(1),h("ngForOf",n.shelfUnits),p(4),h("disabled",!n.shelfUnitId||"-1"==n.shelfUnitId)("ngModel",n.shelfId),p(1),h("ngForOf",n.shelves),p(4),h("disabled",!n.shelfId||"-1"==n.shelfId)("ngModel",n.columnId),p(1),h("ngForOf",n.columns))},dependencies:[Mr,Dr,pr,en,qt,Ot],styles:["label[_ngcontent-%COMP%]{font-weight:700}select[_ngcontent-%COMP%]{margin-right:5px}"]})}const Qfe=["pickerModal"];function Zfe(i,e){if(1&i){const t=re();c(0,"span",12),P("click",function(){return E(t),I(g(2).pickInvoice())}),c(1,"span",13),m(2),d()()}if(2&i){const t=g(2);p(2),Ae(t.field.display?t.field.display:t.field.watermark)}}function Xfe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function Jfe(i,e){1&i&&(c(0,"span",14),B(1,"span",15),d()),2&i&&mt("data-target",g(2).popupId)}function eme(i,e){if(1&i&&(c(0,"div",4)(1,"div",5)(2,"div",6),B(3,"app-form-field-label",7),c(4,"div",8),b(5,Zfe,3,1,"span",9),b(6,Xfe,2,1,"div",10),d()(),c(7,"div"),b(8,Jfe,2,1,"span",11),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}function tme(i,e){if(1&i&&(c(0,"option",27),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.name)}}function nme(i,e){if(1&i&&(c(0,"option",27),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.text)}}function ime(i,e){if(1&i){const t=re();c(0,"div",6)(1,"label",18),m(2,"Niche:"),d(),c(3,"select",19),P("ngModelChange",function(r){return E(t),I(g(2).selectedNiche=r)})("change",function(r){return E(t),I(g(2).filterChanged(r))}),b(4,nme,2,2,"option",20),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.selectedNiche),p(1),h("ngForOf",t.niches)}}function rme(i,e){if(1&i&&(c(0,"option",27),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.label)}}function ome(i,e){1&i&&(c(0,"li",33)(1,"span",34),m(2,"No customers found"),d()())}function ame(i,e){if(1&i){const t=re();c(0,"li",35),P("click",function(){const o=E(t).$implicit;return I(g(4).selectCustomer(o))}),c(1,"div"),m(2),d()()}if(2&i){const t=e.$implicit;p(2),Ae(t.name)}}function sme(i,e){if(1&i&&(c(0,"ol",30),b(1,ome,3,0,"li",31),b(2,ame,3,1,"li",32),d()),2&i){const t=g(3);p(1),h("ngIf",0===t.customers.model.length),p(1),h("ngForOf",t.customers.model)}}function lme(i,e){1&i&&(c(0,"li",33)(1,"span",34),m(2,"No invoices found"),d()())}function cme(i,e){if(1&i&&(c(0,"li",33),m(1),Zt(2,"currency"),d()),2&i){const t=e.$implicit;p(1),cc(" ",t.invoiceNumber," - ",t.status," - ",Xt(2,3,t.total)," ")}}function dme(i,e){if(1&i&&(c(0,"ol",30),b(1,lme,3,0,"li",31),b(2,cme,3,5,"li",36),d()),2&i){const t=g(3);p(1),h("ngIf",0===t.invoices.model.length),p(1),h("ngForOf",t.invoices.model)}}function ume(i,e){if(1&i&&(c(0,"div",28),b(1,sme,3,2,"ol",29),b(2,dme,3,2,"ol",29),d()),2&i){const t=g(2);p(1),h("ngIf",!t.invoices&&t.customers),p(1),h("ngIf",t.invoices)}}function pme(i,e){1&i&&(c(0,"div",37)(1,"h4"),m(2,"Please Wait"),d(),B(3,"i",38),d())}function hme(i,e){if(1&i){const t=re();c(0,"div")(1,"div",16)(2,"h3"),m(3,"Customer Picker"),d()(),c(4,"div",17)(5,"div",6)(6,"label",18),m(7,"Industry:"),d(),c(8,"select",19),P("ngModelChange",function(r){return E(t),I(g().selectedIndustry=r)})("change",function(r){return E(t),I(g().filterChanged(r))}),b(9,tme,2,2,"option",20),d()(),b(10,ime,5,2,"div",21),c(11,"div",6)(12,"label",18),m(13,"Customer Status:"),d(),c(14,"select",19),P("ngModelChange",function(r){return E(t),I(g().selectedStage=r)})("change",function(r){return E(t),I(g().filterChanged(r))}),b(15,rme,2,2,"option",20),d()()(),c(16,"div",22),b(17,ume,3,2,"div",23),b(18,pme,4,0,"div",24),d(),c(19,"div",25)(20,"button",26),P("click",function(){return E(t),I(g().closeModal())}),m(21,"Close"),d()()()}if(2&i){const t=g();p(8),h("ngModel",t.selectedIndustry),p(1),h("ngForOf",t.industries),p(1),h("ngIf",null!=t.selectedStage),p(4),h("ngModel",t.selectedStage),p(1),h("ngForOf",t.stageOptions),p(2),h("ngIf",!t.busy),p(1),h("ngIf",t.busy)}}class QC extends Gt{modal;userService;businessService;storage;pickerModal;currentModal;customers;selectedIndustry="-1";selectedNiche="-1";selectedStage="-1";industries;niches=[];stageOptions;busy=!1;invoices;constructor(e,t,n,r){super(),this.modal=e,this.userService=t,this.businessService=n,this.storage=r}ngOnInit(){}pickInvoice(){var e=this;return O(function*(){e.busy=!0,e.industries=(yield e.businessService.getIndustries()).model,e.stageOptions=yield e.businessService.getCustomerStageOptions(),e.selectedStage=yield e.storage.getItemAsync("customer-filter-status","-1"),e.selectedIndustry=yield e.storage.getItemAsync("customer-filter-industry","-1"),e.stageOptions.unshift(Yn.getAllOption()),e.industries.unshift(Yn.getAllOption()),e.customers=yield e.businessService.getCustomers(e.selectedStage,e.selectedIndustry),e.currentModal=e.modal.open(e.pickerModal,{size:"lg"}),e.busy=!1})()}filterChanged(e){var t=this;return O(function*(){t.storage.setItemAsync("customer-filter-status",t.selectedStage),t.storage.setItemAsync("customer-filter-industry",t.selectedIndustry),t.customers=yield t.businessService.getCustomers(t.selectedStage,t.selectedIndustry),t.setIndustry(t.selectedIndustry)})()}setIndustry(e){var t=this;return O(function*(){if(e&&"-1"!=e){let n=t.industries.find(o=>o.key===e).id,r=yield t.businessService.getIndustry(n);t.niches=r.model.niches.map(o=>({id:o.id,key:o.key,text:o.name})),t.niches.unshift(Yn.getSelectOption())}})()}selectCustomer(e){var t=this;return O(function*(){t.invoices=yield t.businessService.getInvoicesForCustomer(e.id)})()}closeModal(){}static \u0275fac=function(t){return new(t||QC)(H(Pn),H(Hn),H(ca),H(fo))};static \u0275cmp=Oe({type:QC,selectors:[["app-invoice-picker"]],viewQuery:function(t,n){if(1&t&&Wt(Qfe,5),2&t){let r;ut(r=pt())&&(n.pickerModal=r.first)}},features:[it],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(t,n){1&t&&(b(0,eme,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2),b(3,hme,22,7,"ng-template",null,3,jr)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,pr,en,qt,Ot,rt,Nn,Bn,Vn,Z3],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 ZC extends Gt{modalService;userService;constructor(e,t){super(),this.modalService=e,this.userService=t}ngOnInit(){}static \u0275fac=function(t){return new(t||ZC)(H(Pn),H(Hn))};static \u0275cmp=Oe({type:ZC,selectors:[["app-proposal-picker"]],features:[it],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," proposal-picker works!\n"),d())}})}class XC extends Gt{modalService;userService;constructor(e,t){super(),this.modalService=e,this.userService=t}ngOnInit(){}static \u0275fac=function(t){return new(t||XC)(H(Pn),H(Hn))};static \u0275cmp=Oe({type:XC,selectors:[["app-agreement-picker"]],features:[it],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," agreement-picker works!\n"),d())}})}function gme(i,e){if(1&i){const t=re();c(0,"span",9),P("click",function(){return E(t),I(g(2).editDiagram())}),c(1,"span",10),m(2),d()()}if(2&i){const t=g(2);p(2),Ae(t.field.display?t.field.display:t.field.watermark)}}function fme(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function mme(i,e){1&i&&(c(0,"span",11),B(1,"span",12),d()),2&i&&mt("data-target",g(2).popupId)}function _me(i,e){if(1&i&&(c(0,"div",1)(1,"div",2)(2,"div",3),B(3,"app-form-field-label",4),c(4,"div",5),b(5,gme,3,1,"span",6),b(6,fme,2,1,"div",7),d()(),c(7,"div"),b(8,mme,2,1,"span",8),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class JC extends Gt{modalService;businessService;orgService;userService;constructor(e,t,n,r){super(),this.modalService=e,this.businessService=t,this.orgService=n,this.userService=r}ngOnInit(){}editDiagram(){var e=this;return O(function*(){if(e.field.value)window.open(`/gla/c/diagram/${e.field.value.id}`,"_blank");else if(e.form.isEditing){let t=yield e.businessService.createLocationDiagram();t.model.name=`${e.model.name} Diagram`,t.model.key=`${e.model.key}diagram`,yield e.orgService.saveLocationDiagram(t),e.field.value={id:t.model.id,text:t.model.name,key:t.model.key},e.field.display=e.field.value,yield e.form.formHost.saveForm(!1),window.open(`/gla/c/diagram/${t.model.id}`,"_blank")}else alert("Please save your changes before editing the diagram")})()}static \u0275fac=function(t){return new(t||JC)(H(Pn),H(ca),H(Id),H(Hn))};static \u0275cmp=Oe({type:JC,selectors:[["app-diagram"]],features:[it],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(t,n){1&t&&b(0,_me,9,6,"div",0),2&t&&h("ngIf",n.field)},dependencies:[rt,Bn],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 xv{nuviotClient;constructor(e){this.nuviotClient=e}getDomains(){var e=this;return O(function*(){return e.nuviotClient.request("/docs/metadata/domains")})()}getModels(e){var t=this;return O(function*(){return t.nuviotClient.request(`/docs/metadata/domains/${e}`)})()}getIcons(){var e=this;return O(function*(){return e.nuviotClient.request("/docs/metadata/domains/icons")})()}getNuvIoTCoreObjects(){var e=this;return O(function*(){return e.nuviotClient.request("/docs/metadata/entities/nuviot/coreobjects")})()}getAllNuvIoTObjects(){var e=this;return O(function*(){return e.nuviotClient.request("/docs/metadata/entities/all")})()}getModelDetail(e,t){var n=this;return O(function*(){return n.nuviotClient.request(`/docs/metadata/entity/${e}/${t}`)})()}createObject(e){var t=this;return O(function*(){return t.nuviotClient.getFormResponse(e)})()}getEntities(e){var t=this;return O(function*(){return t.nuviotClient.request(`/api/entities/${e}`)})()}static \u0275fac=function(t){return new(t||xv)(Me(hn))};static \u0275prov=Ue({token:xv,factory:xv.\u0275fac,providedIn:"root"})}const vme=["entityPicker"];function yme(i,e){if(1&i){const t=re();c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7)(5,"span",8),P("click",function(){return E(t),I(g().showEntityPicker())}),m(6),d()()()()()}if(2&i){const t=g();let n;p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(3),Ae(t.field.value?t.field.value.text:null!==(n=t.field.watermark)&&void 0!==n?n:"-select-")}}function bme(i,e){if(1&i&&(c(0,"option",14),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),$e(" ",t.text," ")}}function Cme(i,e){if(1&i&&(c(0,"option",14),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),$e(" ",t.text," ")}}function wme(i,e){if(1&i){const t=re();c(0,"div",11)(1,"label",22),m(2,"Filter Entities"),d(),c(3,"input",23),P("ngModelChange",function(r){return E(t),I(g(2).entityFilter=r)})("ngModelChange",function(){return E(t),I(g(2).applyEntityFilter())}),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.entityFilter)}}function xme(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g(3);p(1),$e("(",t.filteredEntities.length,")")}}function kme(i,e){1&i&&(c(0,"div",28),m(1," No entities found. "),d())}function Mme(i,e){if(1&i){const t=re();c(0,"li",30),P("click",function(){const o=E(t).$implicit;return I(g(4).selectEntity(o))}),m(1),d()}if(2&i){const t=e.$implicit,n=g(4);St("selected",(null==n.selectedEntity?null:n.selectedEntity.id)===t.id),p(1),$e(" ",t.text," ")}}function Dme(i,e){if(1&i&&(c(0,"ul"),b(1,Mme,2,3,"li",29),d()),2&i){const t=g(3);p(1),h("ngForOf",t.filteredEntities)}}function Tme(i,e){if(1&i&&(c(0,"div",24)(1,"div",25)(2,"strong"),m(3,"Entities"),d(),b(4,xme,2,1,"span",26),d(),b(5,kme,2,0,"div",27),b(6,Dme,2,1,"ul",26),d()),2&i){const t=g(2);p(4),h("ngIf",t.filteredEntities.length),p(1),h("ngIf",!t.filteredEntities.length),p(1),h("ngIf",t.filteredEntities.length)}}function Sme(i,e){if(1&i){const t=re();c(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),m(4,"Domain Type"),d(),c(5,"select",13),P("ngModelChange",function(r){return E(t),I(g().selectedDomainTypeId=r)})("ngModelChange",function(r){return E(t),I(g().onDomainTypeChanged(r))}),c(6,"option",14),m(7,"-- Select Domain Type --"),d(),b(8,bme,2,2,"option",15),d()(),c(9,"div",11)(10,"label",16),m(11,"Entity Type"),d(),c(12,"select",17),P("ngModelChange",function(r){return E(t),I(g().selectedEntityTypeId=r)})("ngModelChange",function(r){return E(t),I(g().onEntityTypeChanged(r))}),c(13,"option",14),m(14,"-- Select Entity Type --"),d(),b(15,Cme,2,2,"option",15),d()(),b(16,wme,4,1,"div",18),b(17,Tme,7,3,"div",19),d(),c(18,"div",20)(19,"button",21),P("click",function(){return E(t),I(g().donePicking())}),m(20,"Done"),d()()()}if(2&i){const t=g();p(5),h("ngModel",t.selectedDomainTypeId),p(1),h("ngValue",null),p(2),h("ngForOf",t.domainTypes),p(4),h("ngModel",t.selectedEntityTypeId)("disabled",!t.selectedDomainTypeId),p(1),h("ngValue",null),p(2),h("ngForOf",t.filteredEntityTypes),p(1),h("ngIf",t.selectedEntityTypeId),p(1),h("ngIf",t.selectedEntityTypeId)}}class ew extends Gt{modal;metaDataService;entityPickerForm;entityPickerModal;constructor(e,t){super(),this.modal=e,this.metaDataService=t}showEntityPicker(){this.entityPickerModal=this.modal.open(this.entityPickerForm,{size:"lg",backdrop:"static"})}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t);let n=yield t.metaDataService.getDomains();t.domainTypes=n.map(r=>({id:r.key,text:r.name}))})()}donePicking(){this.entityPickerModal.close()}domainTypes=[];entityTypesByDomain={};entitiesByEntityType={};selectedDomainTypeId=null;selectedEntityTypeId=null;selectedEntity=null;entityFilter="";filteredEntityTypes=[];allEntities=[];filteredEntities=[];onDomainTypeChanged(e){var t=this;return O(function*(){t.selectedDomainTypeId=e,t.selectedEntityTypeId=null,t.selectedEntity=null,t.entityFilter="";let n=yield t.metaDataService.getModels(e);t.filteredEntityTypes=n.map(r=>({id:r.shortClassName,text:r.name})),t.allEntities=[],t.filteredEntities=[]})()}onEntityTypeChanged(e){var t=this;return O(function*(){t.selectedEntityTypeId=e,t.selectedEntity=null,t.entityFilter="";let n=yield t.metaDataService.getEntities(e);n.successful&&(t.allEntities=n.result.map(r=>({id:r.id,text:r.text,entityType:r.entityType})),t.filteredEntities=[...t.allEntities])})()}applyEntityFilter(){const e=(this.entityFilter||"").trim().toLowerCase();this.filteredEntities=e?this.allEntities.filter(t=>t.text.toLowerCase().includes(e)):[...this.allEntities]}selectEntity(e){this.selectedEntity=e,this.field.value=e,this.field.display=e.text}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(t){return new(t||ew)(H(Pn),H(xv))};static \u0275cmp=Oe({type:ew,selectors:[["app-global-entity-picker"]],viewQuery:function(t,n){if(1&t&&Wt(vme,5),2&t){let r;ut(r=pt())&&(n.entityPickerForm=r.first)}},features:[it],decls:3,vars:1,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],["class","modal","id","entityPicker"],["entityPicker",""],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[1,"picker-link",3,"click"],[2,"padding","10px"],[1,"entity-type-picker"],[1,"row"],["for","domainType"],["id","domainType",3,"ngModel","ngModelChange"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","entityType"],["id","entityType",3,"ngModel","disabled","ngModelChange"],["class","row",4,"ngIf"],["class","entity-list",4,"ngIf"],[2,"text-align","right"],[1,"btn","btn-danger",3,"click"],["for","entityFilter"],["id","entityFilter","type","text","placeholder","Type to filter by name...",3,"ngModel","ngModelChange"],[1,"entity-list"],[1,"entity-list-header"],[4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"empty-state"],[3,"selected","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(t,n){1&t&&(b(0,yme,7,4,"div",0),b(1,Sme,21,9,"ng-template",1,2,jr)),2&t&&h("ngIf",n.field)},dependencies:[Mr,Dr,Dn,pr,en,qt,Ot,rt,Bn],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)}",".entity-type-picker[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:20px;border:1px solid #d9dee7;border-radius:12px;background:#ffffff;max-width:720px}.entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#334155}.entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{width:100%;min-height:40px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-size:14px;color:#0f172a;outline:none;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus, .entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:disabled, .entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.entity-type-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:12px}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] .entity-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#334155}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] .entity-list-header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] .entity-list-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;color:#64748b}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{padding:16px 12px;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;font-size:14px;color:#64748b;text-align:center}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto;border-radius:8px;background:#fff;border:1px solid #e2e8f0}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:12px 14px;font-size:14px;color:#0f172a;border-bottom:1px solid #eef2f7;cursor:pointer;transition:background-color .15s ease,color .15s ease}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-bottom:none}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background:#eff6ff}.entity-type-picker[_ngcontent-%COMP%] .entity-list[_ngcontent-%COMP%] li.selected[_ngcontent-%COMP%]{background:#2563eb;color:#fff;font-weight:600}"]})}function Eme(i,e){if(1&i&&B(0,"app-landing-page-field",3),2&i){const t=g();h("form",t.form)("host",t.host)("field",t.field)("model",t.model)("view",t.view)}}function Ime(i,e){if(1&i&&B(0,"app-component-picker-field",3),2&i){const t=g();h("form",t.form)("host",t.host)("field",t.field)("model",t.model)("view",t.view)}}function Ame(i,e){if(1&i&&B(0,"app-inventory-location-picker",4),2&i){const t=g();h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function Pme(i,e){if(1&i&&B(0,"app-invoice-picker",4),2&i){const t=g();h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function Fme(i,e){if(1&i&&B(0,"app-proposal-picker",4),2&i){const t=g();h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function Rme(i,e){if(1&i&&B(0,"app-agreement-picker",4),2&i){const t=g();h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function Ome(i,e){if(1&i&&B(0,"app-diagram",4),2&i){const t=g();h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function Lme(i,e){if(1&i&&B(0,"app-global-entity-picker",4),2&i){const t=g();h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}class tw extends Gt{customFieldType;constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(t){return new(t||tw)};static \u0275cmp=Oe({type:tw,selectors:[["app-custom-field"]],inputs:{customFieldType:"customFieldType"},features:[it],decls:9,vars:9,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(t,n){1&t&&(c(0,"div",0),b(1,Eme,1,5,"app-landing-page-field",1),b(2,Ime,1,5,"app-component-picker-field",1),b(3,Ame,1,5,"app-inventory-location-picker",2),b(4,Pme,1,5,"app-invoice-picker",2),b(5,Fme,1,5,"app-proposal-picker",2),b(6,Rme,1,5,"app-agreement-picker",2),b(7,Ome,1,5,"app-diagram",2),b(8,Lme,1,5,"app-global-entity-picker",2),d()),2&t&&(h("ngSwitch",n.customFieldType),p(1),h("ngSwitchCase","landingpagepicker"),p(1),h("ngSwitchCase","componentpicker"),p(1),h("ngSwitchCase","inventorylocation"),p(1),h("ngSwitchCase","invoicepicker"),p(1),h("ngSwitchCase","proposalpicker"),p(1),h("ngSwitchCase","agreementpicker"),p(1),h("ngSwitchCase","diagram"),p(1),h("ngSwitchCase","globalentitypicker"))},dependencies:[mc,Uu,WC,GC,KC,QC,ZC,XC,JC,ew]})}function Nme(i,e){1&i&&(c(0,"span",8),B(1,"span",9),d()),2&i&&mt("data-target",g(3).popupId)}function Bme(i,e){if(1&i){const t=re();c(0,"div",3)(1,"div",4)(2,"label",5)(3,"input",6),P("change",function(r){return E(t),I(g(2).changed(r))})("ngModelChange",function(r){return E(t),I(g(2).field.value=r)}),d(),m(4),d()(),c(5,"div"),b(6,Nme,2,1,"span",7),d()()}if(2&i){const t=g(2);p(2),_t("for",t.field.name),p(1),_t("name",t.field.name),_t("id",t.field.name),h("ngModel",t.field.value),p(1),$e(" ",t.field.label," "),p(2),h("ngIf",t.field.help)}}function Vme(i,e){if(1&i&&(c(0,"div"),b(1,Bme,7,6,"div",2),d()),2&i){const t=g();p(1),h("ngIf",t.field.isVisible)}}class nw extends Gt{constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(t){return new(t||nw)};static \u0275cmp=Oe({type:nw,selectors:[["app-checkbox"]],features:[it],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(t,n){1&t&&(b(0,Vme,2,1,"div",0),B(1,"app-form-field-help",1)),2&t&&(h("ngIf",!0),p(1),h("field",n.field))},dependencies:[Ml,en,qt,rt,Nn]})}const DV=Mce();class $me{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Fr(-this._previousScrollPosition.left),e.style.top=Fr(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,n=e.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,e.classList.remove("cdk-global-scrollblock"),DV&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),DV&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}}class Hme{constructor(e,t,n,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class TV{enable(){}disable(){}attach(){}}function HE(i,e){return e.some(t=>i.bottomt.bottom||i.rightt.right)}function SV(i,e){return e.some(t=>i.topt.bottom||i.leftt.right)}class Ume{constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();HE(t,[{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 jme=(()=>{class i{constructor(t,n,r,o){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new TV,this.close=a=>new Hme(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new $me(this._viewportRuler,this._document),this.reposition=a=>new Ume(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return i.\u0275fac=function(t){return new(t||i)(Me(A6),Me(Ig),Me($t),Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class iw{constructor(e){if(this.scrollStrategy=new TV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class Yme{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let EV=(()=>{class i{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),zme=(()=>{class i extends EV{constructor(t,n){super(t),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(t){super.add(t),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(t){return new(t||i)(Me(Jt),Me($t,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Wme=(()=>{class i extends EV{constructor(t,n,r){super(t),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=zs(o)},this._clickListener=o=>{const a=zs(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let u=l.length-1;u>-1;u--){const f=l[u];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(a)||f.overlayElement.contains(s))break;const v=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>v.next(o)):v.next(o)}}}add(t){if(super.add(t),!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 t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt),Me(mo),Me($t,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),rw=(()=>{class i{constructor(t,n){this._platform=n,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||rE()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(v),this._backdropTransitionendHandler=v=>{this._disposeBackdrop(v.target)},this._keydownEvents=new Ce,this._outsidePointerEvents=new Ce,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(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);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 t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=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,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Fr(this._config.width),e.height=Fr(this._config.height),e.minWidth=Fr(this._config.minWidth),e.minHeight=Fr(this._config.minHeight),e.maxWidth=Fr(this._config.maxWidth),e.maxHeight=Fr(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,n){const r=H_(t||[]).filter(o=>!!o);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Lt(Qr(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()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const IV="cdk-overlay-connected-position-bounding-box",qme=/([A-Za-z%]+)$/;class AV{constructor(e,t,n,r,o){this._viewportRuler=t,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 Ce,this._resizeSubscription=x.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(IV),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,t=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let l=this._getOriginPoint(e,r,s),u=this._getOverlayPoint(l,t,s),f=this._getOverlayFit(u,t,n,s);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(f,u,n)?o.push({position:s,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!a||a.overlayFit.visibleAreal&&(l=f,s=u)}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&&wp(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(IV),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,n){let r,o;if("center"==n.originX)r=e.left+e.width/2;else{const a=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;r="start"==n.originX?a:s}return t.left<0&&(r-=t.left),o="center"==n.originY?e.top+e.height/2:"top"==n.originY?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,n){let r,o;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,n,r){const o=FV(t);let{x:a,y:s}=e,l=this._getOffset(r,"x"),u=this._getOffset(r,"y");l&&(a+=l),u&&(s+=u);let D=0-s,A=s+o.height-n.height,W=this._subtractOverflows(o.width,0-a,a+o.width-n.width),J=this._subtractOverflows(o.height,D,A),pe=W*J;return{visibleArea:pe,isCompletelyWithinViewport:o.width*o.height===pe,fitsInViewportVertically:J===o.height,fitsInViewportHorizontally:W==o.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const r=n.bottom-t.y,o=n.right-t.x,a=PV(this._overlayRef.getConfig().minHeight),s=PV(this._overlayRef.getConfig().minWidth),u=e.fitsInViewportHorizontally||null!=s&&s<=o;return(e.fitsInViewportVertically||null!=a&&a<=r)&&u}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=FV(t),o=this._viewportRect,a=Math.max(e.x+r.width-o.width,0),s=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);let f=0,v=0;return f=r.width<=o.width?u||-a:e.xW&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-W/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)D=n.width-e.x+this._viewportMargin,f=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)v=e.x,f=n.right-e.x;else{const A=Math.min(n.right-e.x+n.left,e.x),W=this._lastBoundingBoxSize.width;f=2*A,v=e.x-A,f>W&&!this._isInitialRender&&!this._growAfterOpen&&(v=e.x-W/2)}return{top:a,left:v,bottom:s,right:D,width:f,height:o}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);!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=Fr(n.height),r.top=Fr(n.top),r.bottom=Fr(n.bottom),r.width=Fr(n.width),r.left=Fr(n.left),r.right=Fr(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Fr(o)),a&&(r.maxWidth=Fr(a))}this._lastBoundingBoxSize=n,wp(this._boundingBox.style,r)}_resetBoundingBoxStyles(){wp(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){wp(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const f=this._viewportRuler.getViewportScrollPosition();wp(n,this._getExactOverlayY(t,e,f)),wp(n,this._getExactOverlayX(t,e,f))}else n.position="static";let s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=Fr(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=Fr(a.maxWidth):o&&(n.maxWidth="")),wp(this._pane.style,n)}_getExactOverlayY(e,t,n){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Fr(o.y),r}_getExactOverlayX(e,t,n){let a,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Fr(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:SV(e,n),isOriginOutsideView:HE(e,n),isOverlayClipped:SV(t,n),isOverlayOutsideView:HE(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&H_(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof At)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function wp(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function PV(i){if("number"!=typeof i&&null!=i){const[e,t]=i.split(qme);return t&&"px"!==t?null:parseFloat(e)}return i||null}function FV(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 RV="cdk-global-overlay-wrapper";class Gme{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(RV),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=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),u=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),f=this._xPosition,v=this._xOffset,D="rtl"===this._overlayRef.getConfig().direction;let A="",W="",J="";l?J="flex-start":"center"===f?(J="center",D?W=v:A=v):D?"left"===f||"end"===f?(J="flex-end",A=v):("right"===f||"start"===f)&&(J="flex-start",W=v):"left"===f||"start"===f?(J="flex-start",A=v):("right"===f||"end"===f)&&(J="flex-end",W=v),e.position=this._cssPosition,e.marginLeft=l?"0":A,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":W,t.justifyContent=J,t.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(RV),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Kme=(()=>{class i{constructor(t,n,r,o){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new Gme}flexibleConnectedTo(t){return new AV(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(t){return new(t||i)(Me(Ig),Me(Jt),Me(mo),Me(rw))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Qme=0,Rl=(()=>{class i{constructor(t,n,r,o,a,s,l,u,f,v,D,A){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=u,this._directionality=f,this._location=v,this._outsideClickDispatcher=D,this._animationsModuleType=A}create(t){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new iw(t);return a.direction=a.direction||this._directionality.value,new kv(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const n=this._document.createElement("div");return n.id="cdk-overlay-"+Qme++,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(yd)),new ude(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(t){return new(t||i)(Me(jme),Me(rw),Me(rc),Me(Kme),Me(zme),Me(Bi),Me($t),Me(Jt),Me(Do),Me(gc),Me(Wme),Me(aa,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const Jme={provide:new Xe("cdk-connected-overlay-scroll-strategy"),deps:[Rl],useFactory:function Xme(i){return()=>i.scrollStrategies.reposition()}};let ow=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[Rl,Jme],imports:[j_,Tg,P6,P6]}),i})();const e_e=["mat-button",""],t_e=["*"],i_e=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],r_e=Sg(Y_(Xb(class{constructor(i){this._elementRef=i}})));let UE=(()=>{class i extends r_e{constructor(t,n,r){super(t),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 i_e)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);t.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(t,n){t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(n=>this._getHostElement().hasAttribute(n))}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(Rd),H(aa,8))},i.\u0275cmp=Oe({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(t,n){if(1&t&&Wt(Eg,5),2&t){let r;ut(r=pt())&&(n.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,n){2&t&&(mt("disabled",n.disabled||null),St("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[it],attrs:e_e,ngContentSelectors:t_e,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,n){1&t&&(ho(),c(0,"span",0),ki(1),d(),B(2,"span",1)(3,"span",2)),2&t&&(p(2),St("mat-button-ripple-round",n.isRoundButton||n.isIconButton),h("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},dependencies:[Eg],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})(),OV=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[Jb,yr,yr]}),i})();const o_e=["connectionContainer"],a_e=["inputContainer"],s_e=["label"];function l_e(i,e){1&i&&($r(0),c(1,"div",14),B(2,"div",15)(3,"div",16)(4,"div",17),d(),c(5,"div",18),B(6,"div",15)(7,"div",16)(8,"div",17),d(),Hr())}function c_e(i,e){if(1&i){const t=re();c(0,"div",19),P("cdkObserveContent",function(){return E(t),I(g().updateOutlineGap())}),ki(1,1),d()}2&i&&h("cdkObserveContentDisabled","outline"!=g().appearance)}function d_e(i,e){if(1&i&&($r(0),ki(1,2),c(2,"span"),m(3),d(),Hr()),2&i){const t=g(2);p(3),Ae(t._control.placeholder)}}function u_e(i,e){1&i&&ki(0,3,["*ngSwitchCase","true"])}function p_e(i,e){1&i&&(c(0,"span",23),m(1," *"),d())}function h_e(i,e){if(1&i){const t=re();c(0,"label",20,21),P("cdkObserveContent",function(){return E(t),I(g().updateOutlineGap())}),b(2,d_e,4,1,"ng-container",12),b(3,u_e,1,0,"ng-content",12),b(4,p_e,2,0,"span",22),d()}if(2&i){const t=g();St("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),h("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),mt("for",t._control.id)("aria-owns",t._control.id),p(2),h("ngSwitchCase",!1),p(1),h("ngSwitchCase",!0),p(1),h("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function g_e(i,e){1&i&&(c(0,"div",24),ki(1,4),d())}function f_e(i,e){if(1&i&&(c(0,"div",25),B(1,"span",26),d()),2&i){const t=g();p(1),St("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function m_e(i,e){1&i&&(c(0,"div"),ki(1,5),d()),2&i&&h("@transitionMessages",g()._subscriptAnimationState)}function __e(i,e){if(1&i&&(c(0,"div",30),m(1),d()),2&i){const t=g(2);h("id",t._hintLabelId),p(1),Ae(t.hintLabel)}}function v_e(i,e){if(1&i&&(c(0,"div",27),b(1,__e,2,2,"div",28),ki(2,6),B(3,"div",29),ki(4,7),d()),2&i){const t=g();h("@transitionMessages",t._subscriptAnimationState),p(1),h("ngIf",t.hintLabel)}}const y_e=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],b_e=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],C_e=new Xe("MatError"),w_e={transitionMessages:Ld("transitionMessages",[ts("enter",$i({opacity:1,transform:"translateY(0%)"})),zo("void => enter",[$i({opacity:0,transform:"translateY(-5px)"}),Yo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let jE=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i}),i})();const x_e=new Xe("MatHint");let LV=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i,selectors:[["mat-label"]]}),i})(),k_e=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i,selectors:[["mat-placeholder"]]}),i})();const M_e=new Xe("MatPrefix"),NV=new Xe("MatSuffix");let D_e=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i,selectors:[["","matSuffix",""]],features:[On([{provide:NV,useExisting:i}])]}),i})(),BV=0;const S_e=Sg(class{constructor(i){this._elementRef=i}},"primary"),E_e=new Xe("MAT_FORM_FIELD_DEFAULT_OPTIONS"),YE=new Xe("MatFormField");let I_e=(()=>{class i extends S_e{constructor(t,n,r,o,a,s,l){super(t),this._changeDetectorRef=n,this._dir=r,this._defaults=o,this._platform=a,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ce,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+BV++,this._labelId="mat-form-field-label-"+BV++,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(t){const n=this._appearance;this._appearance=t||this._defaults?.appearance||"legacy","outline"===this._appearance&&n!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Mi(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(rr(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Lt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Lt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Qr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(rr(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(rr(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Lt(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(t){const n=this._control?this._control.ngControl:null;return n&&n[t]}_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,_n(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.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?t.push(n.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=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(!t||!t.children.length||!t.textContent.trim()){const f=n.querySelectorAll(`${r}, ${o}`);for(let v=0;v0?.75*W+10:0}for(let f=0;f{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[fi,yr,zb,yr]}),i})();const $V=Sc({passive:!0});let A_e=(()=>{class i{constructor(t,n){this._platform=t,this._ngZone=n,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Lr;const n=vr(t),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new Ce,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,$V),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,$V)}}),o}stopMonitoring(t){const n=vr(t),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((t,n)=>this.stopMonitoring(n))}}return i.\u0275fac=function(t){return new(t||i)(Me(mo),Me($t))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),HV=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})();const UV=new Xe("MAT_INPUT_VALUE_ACCESSOR"),P_e=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let F_e=0;const R_e=yde(class{constructor(i,e,t,n){this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=t,this.ngControl=n,this.stateChanges=new Ce}});let O_e=(()=>{class i extends R_e{constructor(t,n,r,o,a,s,l,u,f,v){super(s,o,a,r),this._elementRef=t,this._platform=n,this._autofillMonitor=u,this._formField=v,this._uid="mat-input-"+F_e++,this.focused=!1,this.stateChanges=new Ce,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=>JB().has(W)),this._iOSKeyupListener=W=>{const J=W.target;!J.value&&0===J.selectionStart&&0===J.selectionEnd&&(J.setSelectionRange(1,1),J.setSelectionRange(0,0))};const D=this._elementRef.nativeElement,A=D.nodeName.toLowerCase();this._inputValueAccessor=l||D,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&f.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===A,this._isTextarea="textarea"===A,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Mi(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator($4.required)??!1}set required(t){this._required=Mi(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&JB().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Mi(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.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(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const t=this._formField,n=t&&"legacy"===t.appearance&&!t._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 t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){P_e.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(mo),H(_c,10),H(eg,8),H(H0,8),H(m6),H(UV,10),H(A_e),H($t),H(YE,8))},i.\u0275dir=ot({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(t,n){1&t&&P("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(wl("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),St("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:[On([{provide:jE,useExisting:i}]),it,li]}),i})(),jV=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[m6],imports:[HV,aw,yr,HV,aw]}),i})();const L_e=["mat-calendar-body",""];function N_e(i,e){if(1&i&&(c(0,"tr",2)(1,"td",3),m(2),d()()),2&i){const t=g();p(1),cn("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),mt("colspan",t.numCols),p(1),$e(" ",t.label," ")}}function B_e(i,e){if(1&i&&(c(0,"td",3),m(1),d()),2&i){const t=g(2);cn("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),mt("colspan",t._firstRowOffset),p(1),$e(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function V_e(i,e){if(1&i){const t=re();c(0,"td",7)(1,"button",8),P("click",function(r){const a=E(t).$implicit;return I(g(2)._cellClicked(a,r))})("focus",function(r){const a=E(t).$implicit;return I(g(2)._emitActiveDateChange(a,r))}),c(2,"div",9),m(3),d(),B(4,"div",10),d()()}if(2&i){const t=e.$implicit,n=e.index,r=g().index,o=g();cn("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),mt("data-mat-row",r)("data-mat-col",n),p(1),St("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",o._isActiveCell(r,n))("mat-calendar-body-range-start",o._isRangeStart(t.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",o._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(t.compareValue,r,n))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(t.compareValue,r,n))("mat-calendar-body-comparison-start",o._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",o._isInPreview(t.compareValue)),h("ngClass",t.cssClasses)("tabindex",o._isActiveCell(r,n)?0:-1),mt("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-pressed",o._isSelected(t.compareValue))("aria-current",o.todayValue===t.compareValue?"date":null),p(1),St("mat-calendar-body-selected",o._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",o.todayValue===t.compareValue),p(1),$e(" ",t.displayValue," ")}}function $_e(i,e){if(1&i&&(c(0,"tr",4),b(1,B_e,2,6,"td",5),b(2,V_e,5,47,"td",6),d()),2&i){const t=e.$implicit,n=e.index,r=g();p(1),h("ngIf",0===n&&r._firstRowOffset),p(1),h("ngForOf",t)}}function H_e(i,e){if(1&i&&(c(0,"th",5)(1,"span",6),m(2),d(),c(3,"span",7),m(4),d()()),2&i){const t=e.$implicit;p(2),Ae(t.long),p(2),Ae(t.narrow)}}const U_e=["*"];function j_e(i,e){}function Y_e(i,e){if(1&i){const t=re();c(0,"mat-month-view",5),P("activeDateChange",function(r){return E(t),I(g().activeDate=r)})("_userSelection",function(r){return E(t),I(g()._dateSelected(r))}),d()}if(2&i){const t=g();h("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function z_e(i,e){if(1&i){const t=re();c(0,"mat-year-view",6),P("activeDateChange",function(r){return E(t),I(g().activeDate=r)})("monthSelected",function(r){return E(t),I(g()._monthSelectedInYearView(r))})("selectedChange",function(r){return E(t),I(g()._goToDateInView(r,"month"))}),d()}if(2&i){const t=g();h("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function W_e(i,e){if(1&i){const t=re();c(0,"mat-multi-year-view",7),P("activeDateChange",function(r){return E(t),I(g().activeDate=r)})("yearSelected",function(r){return E(t),I(g()._yearSelectedInMultiYearView(r))})("selectedChange",function(r){return E(t),I(g()._goToDateInView(r,"year"))}),d()}if(2&i){const t=g();h("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function q_e(i,e){}const G_e=["button"];function K_e(i,e){1&i&&(Du(),c(0,"svg",3),B(1,"path",4),d())}const Q_e=[[["","matDatepickerToggleIcon",""]]],Z_e=["[matDatepickerToggleIcon]"];let Mv=(()=>{class i{constructor(){this.changes=new Ce,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(t,n){return`${t} \u2013 ${n}`}formatYearRangeLabel(t,n){return`${t} to ${n}`}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class zE{constructor(e,t,n,r,o={},a=e,s){this.value=e,this.displayValue=t,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}}let zg=(()=>{class i{constructor(t,n){this._elementRef=t,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 Ie,this.previewChange=new Ie,this.activeDateChange=new Ie,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=t.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(t,n){t.enabled&&this.selectedValueChange.emit({value:t.value,event:n})}_emitActiveDateChange(t,n){t.enabled&&this.activeDateChange.emit({value:t.value,event:n})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const n=t.numCols,{rows:r,numCols:o}=this;(t.rows||n)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(t.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/o+"%"),(n||!this._cellWidth)&&(this._cellWidth=100/o+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,n){let r=t*this.numCols+n;return t&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>{setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(this._skipNextFocus=!0),n.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return WE(t,this.startValue,this.endValue)}_isRangeEnd(t){return qE(t,this.startValue,this.endValue)}_isInRange(t){return GE(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return WE(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,n,r){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))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(t,n,r){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))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(t){return qE(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return GE(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return WE(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return qE(t,this.previewStart,this.previewEnd)}_isInPreview(t){return GE(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let n;if(YV(t)?n=t:YV(t.parentNode)&&(n=t.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(t){return new(t||i)(H(At),H($t))},i.\u0275cmp=Oe({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:[li],attrs:L_e,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(t,n){1&t&&(b(0,N_e,3,6,"tr",0),b(1,$_e,3,2,"tr",1)),2&t&&(h("ngIf",n._firstRowOffset=e&&i===t}function GE(i,e,t,n){return n&&null!==e&&null!==t&&e!==t&&i>=e&&i<=t}class da{constructor(e,t){this.start=e,this.end=t}}let Yd=(()=>{class i{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new Ce,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){const r=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return i.\u0275fac=function(t){Lh()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),X_e=(()=>{class i extends Yd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const t=new i(this._adapter);return t.updateSelection(this.selection,this),t}}return i.\u0275fac=function(t){return new(t||i)(Me(_o))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const zV={provide:Yd,deps:[[new Ms,new nc,Yd],_o],useFactory:function eve(i,e){return i||new X_e(e)}},sw=new Xe("MAT_DATE_RANGE_SELECTION_STRATEGY");let WV=(()=>{class i{constructor(t,n,r,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=r,this._dir=o,this._rangeStrategy=a,this._rerenderSubscription=x.EMPTY,this.selectedChange=new Ie,this._userSelection=new Ie,this.activeDateChange=new Ie,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const n=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||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(t){this._selected=t instanceof da?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(rr(null)).subscribe(()=>this._init())}ngOnChanges(t){const n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const n=t.value,r=this._getDateFromDayOfMonth(n);let o,a;this._selected instanceof da?(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:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(t){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){const n=this._activeDate,r=this._isRtl();switch(t.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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.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)&&t.preventDefault());case 27:return void(null!=this._previewEnd&&!Fd(t)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){const o=this._rangeStrategy.createPreview(n?n.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){const t=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(t).concat(o.slice(0,t))}_createWeekCells(){const t=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(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!(!t||!n||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(n)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){const n=this._dateAdapter.getYear(t),r=this._dateAdapter.getMonth(t),o=this._dateAdapter.getDate(t);return new Date(n,r,o).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof da?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}}return i.\u0275fac=function(t){return new(t||i)(H(oi),H(hp,8),H(_o,8),H(Do,8),H(sw,8))},i.\u0275cmp=Oe({type:i,selectors:[["mat-month-view"]],viewQuery:function(t,n){if(1&t&&Wt(zg,5),2&t){let r;ut(r=pt())&&(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:[li],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(t,n){1&t&&(c(0,"table",0)(1,"thead",1)(2,"tr"),b(3,H_e,5,2,"th",2),d(),c(4,"tr"),B(5,"th",3),d()(),c(6,"tbody",4),P("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)}),d()()),2&t&&(p(3),h("ngForOf",n._weekdays),p(3),h("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:[Ot,zg],encapsulation:2,changeDetection:0}),i})(),qV=(()=>{class i{constructor(t,n,r){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=x.EMPTY,this.selectedChange=new Ie,this.yearSelected=new Ie,this.activeDateChange=new Ie,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),GV(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof da?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(rr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const n=this._dateAdapter.getYear(this._activeDate)-Dv(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(t){const n=t.value,r=this._dateAdapter.createDate(n,0,1),o=this._getDateFromYear(n);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(t){const r=this._activeDate;this.activeDate=this._getDateFromYear(t.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){const n=this._activeDate,r=this._isRtl();switch(t.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,-Dv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Dv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.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(),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Dv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){const n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(t){const n=this._dateAdapter.createDate(t,0,1),r=this._dateAdapter.getYearName(n),o=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new zE(t,r,r,this._shouldEnableYear(t),o)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class i{constructor(t,n,r,o){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=x.EMPTY,this.selectedChange=new Ie,this.monthSelected=new Ie,this.activeDateChange=new Ie,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||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(t){this._selected=t instanceof da?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(rr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const n=t.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(t){const r=this._activeDate;this.activeDate=this._getDateFromMonth(t.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){const n=this._activeDate,r=this._isRtl();switch(t.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,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.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()),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=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,t[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),r=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(t,n){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new zE(t,n.toLocaleUpperCase(),o,this._shouldEnableMonth(t),a)}_shouldEnableMonth(t){const n=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;for(let o=this._dateAdapter.createDate(n,t,1);this._dateAdapter.getMonth(o)==t;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return t>r||t===r&&n>o}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return t{class i{constructor(t,n,r,o,a){this._intl=t,this.calendar=n,this._dateAdapter=r,this._dateFormats=o,this._buttonDescriptionId="mat-calendar-button-"+ove++,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)-Dv(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(t,n){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):GV(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}}return i.\u0275fac=function(t){return new(t||i)(H(Mv),H(Rn(()=>ZE)),H(_o,8),H(hp,8),H(oi))},i.\u0275cmp=Oe({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:U_e,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(t,n){1&t&&(ho(),c(0,"div",0)(1,"div",1)(2,"button",2),P("click",function(){return n.currentPeriodClicked()}),c(3,"span"),m(4),d(),Du(),c(5,"svg",3),B(6,"polygon",4),d()(),function Ya(){!function Ok(){wn.lFrame.currentNamespace=null}()}(),B(7,"div",5),ki(8),c(9,"button",6),P("click",function(){return n.previousClicked()}),d(),c(10,"button",7),P("click",function(){return n.nextClicked()}),d()()()),2&t&&(p(2),mt("aria-label",n.periodButtonLabel)("aria-describedby",n._buttonDescriptionId),p(1),mt("id",n._buttonDescriptionId),p(1),Ae(n.periodButtonText),p(1),St("mat-calendar-invert","month"!==n.calendar.currentView),p(4),h("disabled",!n.previousEnabled()),mt("aria-label",n.prevButtonLabel),p(1),h("disabled",!n.nextEnabled()),mt("aria-label",n.nextButtonLabel))},dependencies:[UE],encapsulation:2,changeDetection:0}),i})(),ZE=(()=>{class i{constructor(t,n,r,o){this._dateAdapter=n,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Ie,this.yearSelected=new Ie,this.monthSelected=new Ie,this.viewChanged=new Ie(!0),this._userSelection=new Ie,this.stateChanges=new Ce,this._intlChanges=t.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof da?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}ngAfterContentInit(){this._calendarHeaderPortal=new U_(this.headerComponent||ave),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(t){const n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,r=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,o=n||r||t.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(t){const n=t.value;(this.selected instanceof da||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return i.\u0275fac=function(t){return new(t||i)(H(Mv),H(_o,8),H(hp,8),H(oi))},i.\u0275cmp=Oe({type:i,selectors:[["mat-calendar"]],viewQuery:function(t,n){if(1&t&&(Wt(WV,5),Wt(QV,5),Wt(qV,5)),2&t){let r;ut(r=pt())&&(n.monthView=r.first),ut(r=pt())&&(n.yearView=r.first),ut(r=pt())&&(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:[On([zV]),li],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(t,n){1&t&&(b(0,j_e,0,0,"ng-template",0),c(1,"div",1),b(2,Y_e,1,8,"mat-month-view",2),b(3,z_e,1,6,"mat-year-view",3),b(4,W_e,1,6,"mat-multi-year-view",4),d()),2&t&&(h("cdkPortalOutlet",n._calendarHeaderPortal),p(1),h("ngSwitch",n.currentView),p(1),h("ngSwitchCase","month"),p(1),h("ngSwitchCase","year"),p(1),h("ngSwitchCase","multi-year"))},dependencies:[mc,Uu,c6,Od,WV,QV,qV],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 ZV={transformPanel:Ld("transformPanel",[zo("void => enter-dropdown",Yo("120ms cubic-bezier(0, 0, 0.2, 1)",x6([$i({opacity:0,transform:"scale(1, 0.8)"}),$i({opacity:1,transform:"scale(1, 1)"})]))),zo("void => enter-dialog",Yo("150ms cubic-bezier(0, 0, 0.2, 1)",x6([$i({opacity:0,transform:"scale(0.7)"}),$i({transform:"none",opacity:1})]))),zo("* => void",Yo("100ms linear",$i({opacity:0})))]),fadeInCalendar:Ld("fadeInCalendar",[ts("void",$i({opacity:0})),ts("enter",$i({opacity:1})),zo("void => *",Yo("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let sve=0;const XV=new Xe("mat-datepicker-scroll-strategy"),cve={provide:XV,deps:[Rl],useFactory:function lve(i){return()=>i.scrollStrategies.reposition()}},dve=Sg(class{constructor(i){this._elementRef=i}});let uve=(()=>{class i extends dve{constructor(t,n,r,o,a,s){super(t),this._changeDetectorRef=n,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=a,this._subscriptions=new x,this._animationDone=new Ce,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(t){const n=this._model.selection,r=t.value,o=n instanceof da;if(o&&this._rangeSelectionStrategy){const a=this._rangeSelectionStrategy.selectionFinished(r,n,t.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(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(oi),H(Yd),H(_o),H(sw,8),H(Mv))},i.\u0275cmp=Oe({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){if(1&t&&Wt(ZE,5),2&t){let r;ut(r=pt())&&(n._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,n){1&t&&q1("@transformPanel.done",function(){return n._animationDone.next()}),2&t&&(Q1("@transformPanel",n._animationState),St("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[it],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(t,n){if(1&t&&(c(0,"div",0)(1,"mat-calendar",1),P("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)}),d(),b(2,q_e,0,0,"ng-template",2),c(3,"button",3),P("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),m(4),d()()),2&t){let r;St("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),p(1),h("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"),p(1),h("cdkPortalOutlet",n._actionsPortal),p(1),St("cdk-visually-hidden",!n._closeButtonFocused),h("color",n.color||"primary"),p(1),Ae(n._closeButtonText)}},dependencies:[Vi,UE,rde,Od,ZE],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:[ZV.transformPanel,ZV.fadeInCalendar]},changeDetection:0}),i})(),JV=(()=>{class i{constructor(t,n,r,o,a,s,l){this._overlay=t,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=s,this._model=l,this._inputStateChanges=x.EMPTY,this._document=ji(Jt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Ie,this.monthSelected=new Ie,this.viewChanged=new Ie(!0),this.openedStream=new Ie,this.closedStream=new Ie,this._opened=!1,this.id="mat-datepicker-"+sve++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Ce,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Mi(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const n=Mi(t);n!==this._disabled&&(this._disabled=n,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=Mi(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=function Bce(i,e=/\s+/){const t=[];if(null!=i){const n=Array.isArray(i)?i:`${i}`.split(e);for(const r of n){const o=`${r}`.trim();o&&t.push(o)}}return t}(t)}get opened(){return this._opened}set opened(t){Mi(t)?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(t){const n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof AV&&(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(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=V_(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const t=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;t&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const t=this.touchUi,n=new U_(uve,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new iw({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"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),t||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 t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const n="end"===this.xPosition?"end":"start",r="start"===n?"end":"start",o="above"===this.yPosition?"bottom":"top",a="top"===o?"bottom":"top";return t.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(t){return Qr(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Li(n=>27===n.keyCode&&!Fd(n)||this.datepickerInput&&Fd(n,"altKey")&&38===n.keyCode)))}}return i.\u0275fac=function(t){return new(t||i)(H(Rl),H($t),H(Sr),H(XV),H(_o,8),H(Do,8),H(Yd))},i.\u0275dir=ot({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:[li]}),i})(),pve=(()=>{class i extends JV{}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275cmp=Oe({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[On([zV,{provide:JV,useExisting:i}]),it],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0}),i})();class lw{constructor(e,t){this.target=e,this.targetElement=t,this.value=this.target.value}}let hve=(()=>{class i{constructor(t,n,r){this._elementRef=t,this._dateAdapter=n,this._dateFormats=r,this.dateChange=new Ie,this.dateInput=new Ie,this.stateChanges=new Ce,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=x.EMPTY,this._localeSubscription=x.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(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const n=Mi(t),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(t){this._model=t,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 lw(this,this._elementRef.nativeElement)),this.dateChange.emit(new lw(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function gve(i,e){const t=Object.keys(i);for(let n of t){const{previousValue:r,currentValue:o}=i[n];if(!e.isDateInstance(r)||!e.isDateInstance(o))return!0;if(!e.sameDate(r,o))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const n=this._lastValueValid;let r=this._dateAdapter.parse(t,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):(t&&!this.value&&this._cvaOnChange(r),n!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new lw(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new lw(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=null!=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const n=this._getDateFilter();return!n||n(t)}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(_o,8),H(hp,8))},i.\u0275dir=ot({type:i,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[li]}),i})();const fve={provide:la,useExisting:Rn(()=>XE),multi:!0},mve={provide:eo,useExisting:Rn(()=>XE),multi:!0};let XE=(()=>{class i extends hve{constructor(t,n,r,o){super(t,n,r),this._formField=o,this._closedSubscription=x.EMPTY,this._validator=$4.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const n=this._matchesFilter(this.value);this._dateFilter=t,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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(_o,8),H(hp,8),H(YE,8))},i.\u0275dir=ot({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,n){1&t&&P("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&t&&(wl("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:[On([fve,mve,{provide:UV,useExisting:i}]),it]}),i})(),_ve=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=ot({type:i,selectors:[["","matDatepickerToggleIcon",""]]}),i})(),vve=(()=>{class i{constructor(t,n,r){this._intl=t,this._changeDetectorRef=n,this._stateChanges=x.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(t){this._disabled=Mi(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:Pt(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Pt(),r=this.datepicker?Qr(this.datepicker.openedStream,this.datepicker.closedStream):Pt();this._stateChanges.unsubscribe(),this._stateChanges=Qr(this._intl.changes,t,n,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return i.\u0275fac=function(t){return new(t||i)(H(Mv),H(oi),fl("tabindex"))},i.\u0275cmp=Oe({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,n,r){if(1&t&&An(r,_ve,5),2&t){let o;ut(o=pt())&&(n._customIcon=o.first)}},viewQuery:function(t,n){if(1&t&&Wt(G_e,5),2&t){let r;ut(r=pt())&&(n._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,n){1&t&&P("click",function(o){return n._open(o)}),2&t&&(mt("tabindex",null)("data-mat-calendar",n.datepicker?n.datepicker.id:null),St("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:[li],ngContentSelectors:Z_e,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(t,n){1&t&&(ho(Q_e),c(0,"button",0,1),b(2,K_e,2,0,"svg",2),ki(3),d()),2&t&&(h("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),p(2),h("ngIf",!n._customIcon))},dependencies:[rt,UE],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})(),e7=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[Mv,cve],imports:[fi,OV,ow,lE,Tg,yr,gp]}),i})();function yve(i,e){1&i&&(c(0,"span",11),B(1,"span",12),d()),2&i&&mt("data-target",g().popupId)}class cw extends Gt{constructor(){super()}currentValueChanged(){if(this.field.display){const e=new Date(this.field.display);this.field.value=Yn.toDateOnly(e)}else this.field.value=null}static \u0275fac=function(t){return new(t||cw)};static \u0275cmp=Oe({type:cw,selectors:[["app-date-picker"]],features:[it],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(t,n){if(1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"input",4),P("ngModelChange",function(o){return n.field.display=o})("ngModelChange",function(){return n.currentValueChanged()}),d(),B(5,"mat-datepicker-toggle",5)(6,"mat-datepicker",6,7),d()(),b(8,yve,2,1,"span",8),d(),B(9,"app-form-field-validation-section",9)(10,"app-form-field-help",10)),2&t){const r=Vr(7);h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(4),h("matDatepicker",r)("ngModel",n.field.display),p(1),h("for",r),p(3),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field)}},dependencies:[Dn,en,qt,rt,pve,XE,vve,I_e,D_e,O_e,Nn,Bn,Vn],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 xp{nuviotClient;usersService;_task$=new Ut(null);constructor(e,t){this.nuviotClient=e,this.usersService=t}postAttachment(e){var t=this;return O(function*(){yield t.nuviotClient.post("/api/pm/attachment",e)})()}getProjects(){return this.nuviotClient.request("/api/projects")}getActiveProjects(e=!0){return this.nuviotClient.request("/api/projects/active",e)}newModule(){return this.nuviotClient.request("/api/project/module/factory")}newTaskRequest(e){return this.nuviotClient.request(`/api/pm/task/project/${e}/task/quickcreate/factory`)}createProject(){return this.nuviotClient.request("/api/project/factory")}createProjectFromTemplate(e){return this.nuviotClient.postWithResponse("/api/appwizard",e)}getProject(e){return this.nuviotClient.request(`/api/project/${e}`)}addProject(e){return this.nuviotClient.insert("/api/project",e)}updateProject(e){return this.nuviotClient.update("/api/project",e)}newProjectTeamMember(){return this.nuviotClient.request("/api/pm/teammember/factory")}deleteProject(e){return this.nuviotClient.delete(`/api/project/${e}`)}getSprints(e){return this.nuviotClient.request(`/api/project/${e}/sprints`)}writeTaskAllocations(e,t){this.nuviotClient.request(`/api/pm/tasks/project/${e}/sprint/current/rollup/${t}`)}GetTaskAllocation(e){return this.nuviotClient.request(`/api/pm/tasks/project/${e}/sprint/current/allocationhistory`)}newSprint(e){return this.nuviotClient.request(`/api/project/${e}/sprint/factory`)}getSprint(e){return this.nuviotClient.request(`/api/project/sprint/${e}`)}saveSprint(e){return e.isEditing?this.updateSprint(e.model):this.insertSprint(e.model)}insertSprint(e){return this.nuviotClient.insert("/api/project/sprint",e)}updateSprint(e){return this.nuviotClient.update("/api/project/sprint",e)}getCustomKanbanViews(e=!1){return this.nuviotClient.getListResponse(e?"/api/pm/kanbanviews?addalloption=true":"/api/pm/kanbanviews")}getCustomKanbanView(e){return this.nuviotClient.request(`/api/pm/kanbanview/${e}`)}createCustomKanbanView(){return this.nuviotClient.request("/api/pm/kanbanview/factory")}addCustomKanbanView(e){return this.nuviotClient.insert("/api/pm/kanbanview",e)}updateCustomKanbanView(e){return this.nuviotClient.update("/api/pm/kanbanview",e)}deleteCustomKanbanView(e){return this.nuviotClient.delete(`/api/pm/kanbanview/${e}`)}getTasksForKanbanView(e){return this.nuviotClient.getListResponse(`/api/pm/tasks/view/${e}`)}getTasks(e,t="all"){return this.nuviotClient.getListResponse("all"===t?`/api/pm/tasks/project/${e}`:`/api/pm/tasks/project/${e}/${t}`)}updateTaskStatus(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/status/${t}`)}updateTaskStatusAndAssignedTo(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/boardupdate`,t)}getTasksAssignedToUser(e,t){return this.nuviotClient.getListResponse("all"===t?`/api/pm/tasks/assignedto/${e}`:`/api/pm/tasks/assignedto/${e}/${t}`)}getTasksForSprint(e,t,n){return this.nuviotClient.getListResponse("all"===n?`/api/pm/tasks/sprint/${t}`:`/api/pm/tasks/sprint/${t}/${n}`)}getTasksForProjectForCurrentSprint(e){return this.nuviotClient.getListResponse(`/api/pm/tasks/project/${e}/sprint/current`)}newTask(e=null){return this.nuviotClient.request(e?`/api/pm/task/project/${e}/factory`:"/api/pm/task/factory")}newTaskQuickCreate(e){return this.nuviotClient.request(`/api/pm/task/project/${e}/task/quickcreate/factory`)}createTask(e){return this.nuviotClient.postWithResponse("/api/pm/task/add",e)}workTaskToSummary(e){}getTaskTemplates(){return this.nuviotClient.getListResponse("/api/pm/task/templates")}newTaskTemplate(){return this.nuviotClient.getFormResponse("/api/pm/task/template/factory")}getTaskTemplate(e){return this.nuviotClient.getFormResponse(`/api/pm/task/template/${e}`)}deleteTaskTemplate(e){return this.nuviotClient.delete(`/api/pm/task/template/${e}`)}createTaskTemplate(){return this.nuviotClient.getFormResponse("/api/pm/task/template/factory")}addTaskTemplate(e){return this.nuviotClient.post("/api/pm/task/template",e)}updateTaskTemplate(e){return this.nuviotClient.update("/api/pm/task/template",e)}saveTaskTemplate(e){return e.isEditing?this.nuviotClient.update("/api/pm/task/template",e.model):this.nuviotClient.post("/api/pm/task/template",e.model)}getProjectTemplates(){return this.nuviotClient.getListResponse("/api/project/templates")}getProjectTemplate(e){return this.nuviotClient.getFormResponse(`/api/project/template/${e}`)}deleteProjectTemplate(e){return this.nuviotClient.delete(`/api/project/template/${e}`)}createAppWizardRequestTemplate(){return this.nuviotClient.getFormResponse("/api/appwizard/projecttemplate/request/factory")}createProjectTemplate(){return this.nuviotClient.getFormResponse("/api/project/template/factory")}addProjectTemplate(e){return this.nuviotClient.post("/api/project/template",e)}updateProjectTemplate(e){return this.nuviotClient.update("/api/project/template",e)}saveProjectTemplate(e){return e.isEditing?this.updateProjectTemplate(e.model):this.addProjectTemplate(e.model)}getMeetings(){return this.nuviotClient.getListResponse("/api/meetings")}cloneMeeting(e){return this.nuviotClient.getFormResponse(`/api/meeting/${e}/clone`)}createMeeting(){return this.nuviotClient.getFormResponse("/api/meeting/factory")}getMeeting(e){return this.nuviotClient.getFormResponse(`/api/meeting/${e}`)}deleteMeeting(e){return this.nuviotClient.delete(`/api/meeting/${e}`)}addMeeting(e){return this.nuviotClient.post("/api/meeting",e)}updateMeeting(e){return this.nuviotClient.update("/api/meeting",e)}saveMeeting(e){return e.isEditing?this.updateMeeting(e.model):this.addMeeting(e.model)}newTaskForSprint(e,t){return this.nuviotClient.request(`/api/pm/task/project/${e}/sprint/${t}/factory`)}insertTask(e){return this.nuviotClient.insert("/api/pm/task",e)}getTask(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request(`/api/pm/task/${e}`);return t.setTask(n.model),n})()}updateTask(e){return this.nuviotClient.updateWithResponse("/api/pm/task",e)}updateTaskFromExternalItem(e){return this.nuviotClient.updateWithResponse("/api/pm/task/externalupdate",e)}updateTaskDetail(e){return this.nuviotClient.update("/api/pm/task/detail",e)}updateTaskForKnownActivity(e,t,n){return this.nuviotClient.update(`/api/pm/task/${t}/${n}`,e)}requestUpdate(e,t,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/teammember/${t}/ping`,n)}updateNameDescription(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/namedesciption`,t)}deleteTask(e){return this.nuviotClient.delete(`/api/pm/task/${e}`)}newSubTask(){return this.nuviotClient.request("/api/pm/subtask/factory")}newSubTaskQuickCreate(){return this.nuviotClient.request("/api/pm/subtask/quickcreate/factory")}editSubTask(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request("/api/pm/subtask/factory");return n.model=e,n.isEditing=!0,n})()}newTaskTemplateSubTask(){return this.nuviotClient.request("/api/pm/task/template/subtask/factory")}editTaskTemplateSubTask(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request("/api/pm/task/template/subtask/factory");return n.model=e,n.isEditing=!0,n})()}createHelpResource(){return this.nuviotClient.request("/api/pm/helpresource/factory")}editHelpResource(e){var t=this;return O(function*(){var n=yield t.nuviotClient.request("/api/pm/helpresource/factory");return n.model=e,n.isEditing=!0,n})()}newExpectedOutcome(){return this.nuviotClient.request("/api/pm/expectedoutcome/factory")}editExpectedOutcome(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request("/api/pm/expectedoutcome/factory");return n.isEditing=!0,n.model=e,n})()}insertReportSettings(e){return this.nuviotClient.insert("/api/pm/tasks/report/settings",e)}getReportSettingForOrg(){return this.nuviotClient.getListResponse("/api/pm/tasks/report/settings")}createNewReportSettings(){return this.nuviotClient.request("/api/pm/tasks/report/settings/factory")}getReportSettings(e){return this.nuviotClient.request(`/api/pm/tasks/report/settings/${e}`)}updateReportSettings(e){return this.nuviotClient.update("/api/pm/tasks/report/settings",e)}getTasksByStatus(e){return this.nuviotClient.getListResponse(`/api/pm/tasks/${e}`)}getTasksForProjectByStatus(e,t){return this.nuviotClient.getListResponse(`/api/pm/tasks/project/${e}/${t}`)}getActiveTasks(){return this.nuviotClient.getListResponse("/api/pm/tasks/active")}getActiveTasksForProject(e){return this.nuviotClient.getListResponse(`/api/pm/tasks/active/project/${e}`)}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(e){return this.nuviotClient.postWithResponse("/api/pm/todo/quickcreate",e,!1)}createToDoForMe(){return this.nuviotClient.request("/api/pm/todo/factory/forme")}createTaskForToDo(e){return this.nuviotClient.request(`/api/pm/todo/${e}/createtask`)}getToDo(e){return this.nuviotClient.request(`/api/pm/todo/${e}`)}closeToDo(e){return this.nuviotClient.request(`/api/pm/todo/${e}/complete`)}insertToDo(e){return this.nuviotClient.insert("/api/pm/todo",e)}updateToDo(e){return this.nuviotClient.update("/api/pm/todo",e)}deleteToDo(e){return this.nuviotClient.delete(`/api/pm/todo/${e}`)}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(e,t=!0){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedto/${e}/open`,void 0,t)}getAllOpenTodosForCurrentUser(){return this.nuviotClient.getListResponse("/api/pm/todos/my/all/open")}getOpenToDosAssignedBy(e){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedby/${e}/open`)}getAllToDosAssignedTo(e){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedto/${e}`)}getAllToDosAssignedBy(e){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedby/${e}`)}getBackLoggedToDosAssignedTo(e){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedto/${e}/backlogged`)}getBackloggedToDosAssignedBy(e){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedby/${e}/backlogged`)}addIssue(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/issue`,t)}updateIssue(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/issue`,t)}saveIssue(e,t){return t.isEditing?this.updateIssue(e,t.model):this.addIssue(e,t.model)}removeIssue(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/issue/${t}`)}addTeamMember(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/teamMember`,t)}updateTeamMember(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/teamMember`,t)}saveTeamMember(e,t){return t.isEditing?this.updateTeamMember(e,t.model):this.addTeamMember(e,t.model)}editTeamMember(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request("/api/pm/teammember/factory");return n.model=e,n.isEditing=!0,n})()}removeTeamMember(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/teammember/${t}`)}addSubTask(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/subtask`,t)}updateSubTask(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/subtask`,t)}removeSubTask(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/subtask/${t}`)}applyTemplate(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/template/${t}/apply`)}moveSubTaskUp(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/subtask/${t}/moveup`)}moveSubTaskDown(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/subtask/${t}/movedown`)}addDiscussion(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/note`,t)}updateDiscussion(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/note`,t)}removeDiscussion(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/note/${t}`)}addRisk(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/risk`,t)}updateRisk(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/risk`,t)}saveRisk(e,t){return t.isEditing?this.updateRisk(e,t.model):this.addRisk(e,t.model)}createRisk(){return this.nuviotClient.getFormResponse("/api/pm/task/risk/factory")}editRisk(e){var t=this;return O(function*(){var n=yield t.nuviotClient.getFormResponse("/api/pm/task/risk/factory");return n.model=e,n.isEditing=!0,n})()}removeRisk(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/risk/${t}`)}addLabel(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/label`,t)}removeLabel(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/label/${t}`)}addHelpResources(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/helpresource`,t)}updateHelpResource(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/helpresource`,t)}removeResource(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/helpresource/${t}`)}addSubTaskHelpResources(e,t,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/subtask/${t}/helpresource`,n)}updateSubTaskHelpResource(e,t,n){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/subtask/${t}/helpresource`,n)}removeSubTaskResource(e,t,n){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/subtask/${t}/helpresource/${n}`)}addExpectedOutcome(e,t){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/expectedoutcome`,t)}updateExpectedOutcome(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/expectedoutcome`,t)}removeExpectedOutcome(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/expectedoutcome/${t}`)}addVerificationRun(e,t,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/expectedoutcome/${t}/verificationrun`,n)}updateVerificationRun(e,t,n){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/expectedoutcome/${t}/verificationrun`,n)}updateVerificationSteps(e,t,n){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/expectedoutcome/${t}/verificationsteps`,n)}deleteVerificationRun(e,t,n){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/expectedoutcome/${t}/verificationrun/${n}`)}updateAdditionalInformation(e,t){return this.nuviotClient.updateWithResponse(`/api/pm/task/${e}/additionalinformation`,{contents:t})}flagTask(e,t,n){return this.nuviotClient.post("/api/pm/task/flag",{workTaskId:e,reason:t,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(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/duedate/${t}`)}updateFlagTask(e,t,n,r,o){return this.nuviotClient.updateWithResponse("/api/pm/task/flag",{workTaskId:e,flaggedTaskId:t,reason:r,notes:o,isOpen:n})}removeAttachmentFromTask(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/attachment/${t}`)}removeAttachment(e,t,n,r){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/${t}/${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(e,t,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${e}/issue/${t}/note`,n)}removeIssueNote(e,t,n){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/issue/${t}/note/${n}`)}addUpstreamTask(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/upstream/${t}`)}addDownstreamTask(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/downstream/${t}`)}addRelatedTask(e,t){return this.nuviotClient.request(`/api/pm/task/${e}/related/${t}`)}removeUpstreamTask(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/upstream/${t}`)}removeDownstreamTask(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/downstream/${t}`)}removeRelatedTask(e,t){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${e}/related/${t}`)}searchTasks(e,t){return this.nuviotClient.postForListResponse("/api/pm/task/search",{query:t,projectId:e})}searchSWOTItems(e,t){return this.nuviotClient.postForListResponse("/api/swotitem/search",{query:t,productPortfolioId:e})}deleteStatusConfigurations(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/pm/statusconfiguration/${e}`)})()}getStatusConfigurations(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/pm/statusconfigurations")})()}getFullStatusConfigurations(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/pm/statusconfigurations/full")})()}getStatusConfiguration(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/pm/statusconfiguration/${e}`)})()}addStatusConfigurations(e){var t=this;return O(function*(){return yield t.nuviotClient.insert("/api/pm/statusconfiguration",e)})()}updateStatusConfigurations(e){var t=this;return O(function*(){return yield t.nuviotClient.update("/api/pm/statusconfiguration",e)})()}createStatusConfiguration(){return this.nuviotClient.request("/api/pm/statusconfiguration/factory")}createStatusOption(){return this.nuviotClient.request("/api/pm/statusconfiguration/option/factory")}editStatusOption(e){var t=this;return O(function*(){var n=yield t.nuviotClient.request("/api/pm/statusconfiguration/option/factory");return n.model=e,n.isEditing=!0,n})()}createStatusTransition(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request("/api/pm/statusconfiguration/statustransition/factory");return n.view.status.options=e.map(r=>({id:r.id,key:r.key,label:r.name,text:r.name})),n})()}editStatusTransition(e,t){var n=this;return O(function*(){var r=yield n.nuviotClient.request("/api/pm/statusconfiguration/statustransition/factory");return r.model=e,r.isEditing=!0,r.view.status.options=t.map(o=>({id:o.id,key:o.key,label:o.name,text:o.name})),r})()}deleteWorkTaskType(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/pm/statusconfiguration/${e}`)})()}getWorkTaskTypes(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/pm/worktasktypes")})()}getWorkTaskType(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/pm/worktasktype/${e}`)})()}addWorkTaskType(e){var t=this;return O(function*(){return yield t.nuviotClient.insert("/api/pm/worktasktype",e)})()}updateWorkTaskType(e){var t=this;return O(function*(){return yield t.nuviotClient.update("/api/pm/worktasktype",e)})()}saveWorkTaskType(e){var t=this;return O(function*(){return e.isEditing?yield t.updateWorkTaskType(e.model):yield t.addWorkTaskType(e.model)})()}createWorkTaskType(){return this.nuviotClient.request("/api/pm/worktasktype/factory")}convertToSummary(e){const t={id:e.id,projectId:e.project.id,projectName:e.project.text,key:e.key,canEdit:!0,isBlocked:!1,isFlagged:!1,organizationName:e.ownerOrganization.text,name:e.name,condition:e.condition.text,hasOpenIssues:!1,taskCode:e.taskCode,status:e.status.text,statusKey:e.status.key,statusId:e.status.key,sprint:"",sprintId:"",moduleName:"",moduleId:"",externalStatus:"",externalStatusId:"",dueDate:e.dueDate,expectedCloseDate:"",description:"",assignedToUser:"",assignedToUserId:"",primaryContributor:"",primaryContributorId:"",qaResource:"",qaResourceId:"",resolution:"",resolutionId:"",hoursUsed:e.hoursUsed,hoursEstimate:e.hoursEstimate,lastUpdatedDate:e.lastUpdatedDate,complexity:e.complexity.text,scopeOfEffort:e.scopeOfEffort.text,points:0,externalTaskCode:e.externalTaskCode,externalTaskLink:e.externalTaskLink,labels:e.labels,isActive:!0,rankedOrder:e.rankedOrder};return e.sprint&&(t.sprintId=e.sprint.id,t.sprint=e.sprint.text),e.externalStatus&&(t.externalStatus=e.externalStatus.text,t.externalStatusId=e.externalStatus.id),e.assignedByUser&&(t.assignedToUser=e.assignedToUser.text,t.assignedToUserId=e.assignedToUser.id),e.primaryContributorUser&&(t.primaryContributorId=e.primaryContributorUser.id,t.primaryContributor=e.primaryContributorUser.text),e.qaResource&&(t.qaResource=e.qaResource.text,t.qaResource=e.qaResource.id),t}getUseCases(){return this.nuviotClient.getListResponse("/api/usecases")}addUseCase(e){return this.nuviotClient.insert("/api/usecase",e)}updateUseCase(e){return this.nuviotClient.update("/api/usecase",e)}deleteUseCase(e){return this.nuviotClient.delete(`/api/usecase/${e}`)}getUseCase(e){return this.nuviotClient.getFormResponse(`/api/usecase/${e}`)}createUseCase(){return this.nuviotClient.getFormResponse("/api/usecase/factory")}saveUseCase(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateUseCase(e.model);let n=yield t.addUseCase(e.model);return e.isEditing=!0,n})()}createCompetitor(){return this.nuviotClient.getFormResponse("/api/competitor/factory")}getCompetitor(e){return this.nuviotClient.getFormResponse(`/api/competitor/${e}`)}getCompetitors(){return this.nuviotClient.getListResponse("/api/competitors")}addCompetitor(e){return this.nuviotClient.insert("/api/competitor",e)}updateCompetitor(e){return this.nuviotClient.update("/api/competitor",e)}deleteCompetitor(e){return this.nuviotClient.delete(`/api/competitor/${e}`)}saveCompetitor(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateCompetitor(e.model);{let n=yield t.addCompetitor(e.model);return n.successful&&(e.isEditing=!0),n}})()}createSystemTaskType(){return this.nuviotClient.getFormResponse("/api/systemtasktype/factory")}getSystemTaskType(e){return this.nuviotClient.getFormResponse(`/api/systemtasktype/${e}`)}getSystemTaskTypes(){return this.nuviotClient.getListResponse("/api/systemtasktypes")}addSystemTaskType(e){return this.nuviotClient.insert("/api/systemtasktype",e)}updateSystemTaskType(e){return this.nuviotClient.update("/api/systemtasktype",e)}deleteSystemTaskType(e){return this.nuviotClient.delete(`/api/systemtasktype/${e}`)}saveSystemTaskType(e){var t=this;return O(function*(){if(e.isEditing)return yield t.updateSystemTaskType(e.model);{let n=yield t.addSystemTaskType(e.model);return n.successful&&(e.isEditing=!0),n}})()}getALMIntegrations(){return this.nuviotClient.getListResponse("/api/alm/integrations")}createALMIntegration(){return this.nuviotClient.getFormResponse("/api/alm/integration/factory")}getALMIntegration(e){return this.nuviotClient.getFormResponse(`/api/alm/integration/${e}`)}deleteALMIntegration(e){return this.nuviotClient.delete(`/api/alm/integration/${e}`)}insertALMIntegration(e){return this.nuviotClient.insert("/api/alm/integration",e)}updateALMIntegration(e){return this.nuviotClient.update("/api/alm/integration",e)}getExternalItem(e){return this.nuviotClient.request(`/api/alm/external/workitem/${e}`)}getALMClientConfiguration(e){return this.nuviotClient.request(`/api/alm/integration/${e}/auth`)}getImportedWorkTasks(e,t=""){return t?this.nuviotClient.getListResponse(`/api/alm/devops/workitems/${e}`,{nextRowKey:t}):this.nuviotClient.getListResponse(`/api/alm/devops/workitems/${e}`)}archiveList(e){return this.nuviotClient.post("/api/alm/external/workitem/archive",e)}archiveExternalItem(e){return this.nuviotClient.get(`/api/alm/external/workitem/${e}/archive`)}getWorKTaskByExternalId(e){var t=this;return O(function*(){let n=yield t.nuviotClient.request(`/api/pm/task/externalid/${e}`);return t.setTask(n),n})()}createProjectMileStoneAsync(e){return this.nuviotClient.getFormResponse(`/api/project/${e}/milestone/factory`)}createMileStoneAsync(){return this.nuviotClient.getFormResponse("/api/milestone/factory")}createMileStoneGoalAsync(){return this.nuviotClient.getFormResponse("/api/milestone/goal/factory")}getMileStoneAsync(e){return this.nuviotClient.getFormResponse(`/api/milestone/${e}`)}getMileStonesForOrgAsync(e=!0){return this.nuviotClient.getListResponse("/api/milestones",void 0,e)}getOpenMileStonesForOrgAsync(e=!0){return this.nuviotClient.getListResponse("/api/milestones/open",void 0,e)}getActiveMileStonesForOrgAsync(e=!0){return this.nuviotClient.getListResponse("/api/milestones/active",void 0,e)}getMileStonesForProjectAsync(e){return this.nuviotClient.request(`/api/project/${e}/milestones`)}addMileStoneAsync(e){return this.nuviotClient.postWithResponse("/api/milestone",e)}updateMileStoneAsync(e){return this.nuviotClient.updateWithResponse("/api/milestone",e)}createSWOTItemAsync(){return this.nuviotClient.getFormResponse("/api/swotitem/factory")}getSWOTItemAsync(e){return this.nuviotClient.getFormResponse(`/api/swotitem/${e}`)}getSWOTItemsForOrgAsync(){return this.nuviotClient.getListResponse("/api/swotitems")}addSWOTItemAsync(e){return this.nuviotClient.postWithResponse("/api/swotitem",e)}deleteSWOTItemAsync(e){return this.nuviotClient.delete(`/api/swotitem/${e}`)}updateSWOTItemAsync(e){return this.nuviotClient.updateWithResponse("/api/swotitem",e)}getProductPortfolios(){return this.nuviotClient.getListResponse("/api/product/portfolios")}createProductPortfolio(){return this.nuviotClient.getFormResponse("/api/product/portfolio/factory")}getProductPortfolio(e){return this.nuviotClient.getFormResponse(`/api/product/portfolio/${e}`)}addProductPortfolioAsync(e){return this.nuviotClient.postWithResponse("/api/product/portfolio",e)}deleteProductPortfolioAsync(e){return this.nuviotClient.delete(`/api/product/portfolio/${e}`)}updateProductPortfolioAsync(e){return this.nuviotClient.updateWithResponse("/api/product/portfolio",e)}_currentTask;getCurrentTask(){return this._currentTask}setTask(e){this._currentTask=e,this._task$.next(e)}onTask(){return this._task$.asObservable()}refreshStatus(e){const t=[],n=e.model.statusConfigurationType.value.options.find(r=>r.key===e.model.status.key);if(!n)throw new Error(`Could not find current status for task ${e.model.status.value.key} - ${e.model.statusConfigurationType.text}`);if(t.push({id:n.id,key:n.key,name:n.name,label:n.name,text:n.name}),n.validTransitions)for(const r of n.validTransitions)t.push({id:r.status.id,key:r.status.key,name:r.name,label:r.name,text:r.name});if(e.view.status.options=t,e.model.externalStatusConfigurationType){e.view.externalStatus.isVisible=!0;const r=[];let o=e.model.externalStatusConfigurationType.value.options.find(a=>a.key===e.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});e.view.externalStatus.options=r}else e.view.externalStatus.isVisible=!1,console.log(e.model.externalStatusConfigurationType,e.view.externalStatus)}createSystemTask(e,t="https://www.nuviot.com"){return this.nuviotClient.request(`${t}/systemtask/${e}/factory?anonymous`)}postSystemTask(e,t="https://www.nuviot.com"){return this.nuviotClient.postWithResponse(`${t}/systemtask?anonymous`,e)}getEditorOptions(){var t,e=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:t=>{},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:(t=O(function*(n,r){const o=yield e.usersService.getCachedUserSummary();console.log(o),r(o.filter(s=>s.name.toLowerCase().includes(n.term.toLowerCase())))}),function(r,o){return t.apply(this,arguments)}),mentions_menu_complete:(t,n)=>{const r=t.getDoc().createElement("span");return r.className="mymention",r.setAttribute("data-mention-id",n.id),r.appendChild(t.getDoc().createTextNode("@"+n.name)),r},mentions_select:function(){var t=O(function*(n,r){var o=n.getAttribute("data-mention-id");let s=(yield e.usersService.getCachedUserSummary()).find(u=>u.id===o);r(e.getMentionCardHtml(s))});return function(r,o){return t.apply(this,arguments)}}(),mentions_menu_hover:function(){var t=O(function*(n,r){let a=(yield e.usersService.getCachedUserSummary()).find(l=>l.id===n.id);r(e.getMentionCardHtml(a))});return function(r,o){return t.apply(this,arguments)}}()}}getMentionCardHtml(e){var t=document.createElement("div");return t.innerHTML='

'+e.name+"

"+e.description+"

",t}getReleases(e){return this.nuviotClient.getListResponse(`/api/project/${e}/releases`)}getDeployments(e){return this.nuviotClient.getListResponse(`/api/project/${e}/deployments`)}static \u0275fac=function(t){return new(t||xp)(Me(hn),Me(Hn))};static \u0275prov=Ue({token:xp,factory:xp.\u0275fac,providedIn:"root"})}class Tv{nuviotClient;_templates;_template;_tickets;_ticket;_boards;_board;_partsKit;_templates$=new Ut;_template$=new Ut;_board$=new Ut;_boards$=new Ut;_tickets$=new Ut;_ticket$=new Ut;_partsKit$=new Ut;constructor(e){this.nuviotClient=e}loadTickets(e=null){return new Promise((n,r)=>{this.nuviotClient.getListResponse("/api/fslite/tickets",{pageSize:50,nextRowKey:e}).then(o=>{this.setTickets(o.model),n(o)}).catch(o=>r(o))})}loadTicketsForBoard(e,t=null){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/fslite/${e}/tickets`,{pageSize:50,nextRowKey:t}).then(a=>{this.setTickets(a.model),r(a)}).catch(a=>o(a))})}loadTicketsForDevice(e,t=null){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/fslite/ticket/device/${e}`,{pageSize:50,nextRowKey:t}).then(a=>{this.setTickets(a.model),r(a)}).catch(a=>o(a))})}loadTicketsWithFilter(e){return new Promise((n,r)=>{this.nuviotClient.getListResponse("/api/fslite/tickets").then(o=>{this.setTickets(o.model),n(o)}).catch(o=>r(o))})}loadTemplate(e){return new Promise((n,r)=>{this.nuviotClient.request(`/api/fslite/tickets/template/${e}/detail`).then(o=>{this.setTemplate(o),n(o)}).catch(o=>r(o))})}loadBoards(){return new Promise((t,n)=>{this.nuviotClient.getListResponse("/api/fslite/serviceboards").then(r=>{this.setTemplates(r.model),t(r.model)}).catch(r=>n(r))})}loadTemplates(){return new Promise((t,n)=>{this.nuviotClient.getListResponse("/api/fslite/tickets/templates").then(r=>{this.setTemplates(r.model),t(r.model)}).catch(r=>n(r))})}createTicket(e){return new Promise((n,r)=>{this.nuviotClient.insert("/api/fslite/ticket/create",e).then(o=>{const a=o;this.setTicket(a.result),n(a.result)}).catch(o=>r(o))})}addTicketNote(e,t){return new Promise((r,o)=>{this.nuviotClient.postWithResponse(`/api/fslite/ticket/${e}/note`,t).then(a=>{a.successful?r(a.result):o("could not add ticket note")}).catch(a=>o(a))})}changeTicketStatus(e,t){return new Promise((r,o)=>{this.nuviotClient.postWithResponse(`/api/fslite/ticket/${e}/status`,t).then(a=>{a.successful?r(a.result):o("could not set status")}).catch(a=>o(a))})}setTicketViewedStatus(e,t){return new Promise((r,o)=>{this.nuviotClient.request(`/api/fslite/ticket/${e}/viewed/${t}`).then(a=>{a.successful?r(a.result):o("could not set viewed status")}).catch(a=>o(a))})}setTicketClosedStatus(e,t){return new Promise((r,o)=>{this.nuviotClient.request(`/api/fslite/ticket/${e}/closed/${t}`).then(a=>{a.successful?r(a.result):o("could not set closed status")}).catch(a=>o(a))})}loadTicket(e){return new Promise((n,r)=>{this.nuviotClient.getFormResponse(`/api/fslite/ticket/${e}`).then(o=>{this.setTicket(o.model),n(o.model)}).catch(o=>r(o))})}loadPartsKit(e){return new Promise((n,r)=>{this.nuviotClient.request(`/api/fslite/partskit/${e}/detail`).then(o=>{this.setPartsKit(o),n(o)}).catch(o=>r(o))})}updateAssignedTo(e,t){return new Promise((r,o)=>{this.nuviotClient.post(`/api/fslite/ticket/${e}/assignedto`,t).then(a=>{a.successful?r(a.result):o("could not update user.")}).catch(a=>o(a))})}deleteTicket(e){return new Promise((n,r)=>{this.nuviotClient.delete(`/api/fslite/ticket/${e}`).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(e){this._board=e,this._board$.next(e)}setBoards(e){this._boards=e,this._boards$.next(e)}setTemplate(e){this._template=e,this._template$.next(e)}setTicket(e){this._ticket=e,this._ticket$.next(e)}setTickets(e){this._tickets=e,this._tickets$.next(e)}setTemplates(e){this._templates=e,this._templates$.next(e)}setPartsKit(e){this._partsKit=e,this._partsKit$.next(e)}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(t){return new(t||Tv)(Me(hn))};static \u0275prov=Ue({token:Tv,factory:Tv.\u0275fac,providedIn:"root"})}class Sv{nuviotClient;constructor(e){this.nuviotClient=e}getMessages(){return this.nuviotClient.getListResponse("/api/devicemessagetypes")}getOutgoingMessages(){return this.nuviotClient.getListResponse("/api/devicemessagetypes/outgoing")}getIncomingMessages(){return this.nuviotClient.getListResponse("/api/devicemessagetypes/incoming")}getMessage(e){return this.nuviotClient.getFormResponse(`/api/devicemessagetype/${e}`)}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(e){var t=this;return O(function*(){let n=yield t.createMessageField();return n.isEditing=!0,n.model=e,n})()}saveMessage(e){var t=this;return O(function*(){return e.isEditing?yield t.nuviotClient.update("/api/devicemessagetype",e.model):yield t.nuviotClient.post("/api/devicemessagetype",e.model)})()}saveVerifier(e){var t=this;return O(function*(){return e.isEditing?yield t.nuviotClient.update("/api/verifier",e.model):yield t.nuviotClient.post("/api/verifier",e.model)})()}runMessageVerifier(e){return this.nuviotClient.postRaw("/api/verifierruntime/messageparser/execute",e)}runMessageAttributeVerifier(e){return this.nuviotClient.postRaw("/api/verifierruntime/messageattributeparser/execute",e)}getVerifier(e){return this.nuviotClient.getFormResponse(`/api/verifier/${e}`)}deleteVerifier(e){return this.nuviotClient.delete(`/api/verifier/${e}`)}getVerifiersForComponent(e){return this.nuviotClient.getListResponse(`/api/verifiers/component/${e}`)}importMessage(e){console.log(e);let t=JSON.parse(e);return console.log("parsed",e,t),this.nuviotClient.postWithResponse("/api/devicemessagetype/fields/parse",JSON.parse(e))}static \u0275fac=function(t){return new(t||Sv)(Me(hn))};static \u0275prov=Ue({token:Sv,factory:Sv.\u0275fac,providedIn:"root"})}class Ev{nuviotClient;editMessageTemplate(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/simulator/messagetemplate/factory");return n.model=e,n.isEditing=!0,n})()}constructor(e){this.nuviotClient=e}getSimulators(){return this.nuviotClient.getListResponse("/api/org/simulators")}getSimulator(e){return this.nuviotClient.getFormResponse(`/api/simulator/${e}`)}createSimulator(){return this.nuviotClient.getFormResponse("/api/simulator/factory")}saveSimulator(e){return e.isEditing?this.nuviotClient.update("/api/simulator",e.model):this.nuviotClient.post("/api/simulator",e.model)}getSimulatorNetworks(){return this.nuviotClient.getListResponse("/api/simulator/networks")}createSimulatorNetwork(){return this.nuviotClient.getFormResponse("/api/simulator/network/factory")}getSimulatorNetwork(e){return this.nuviotClient.getFormResponse(`/api/simulator/network/${e}`)}getSimulatorNetworkWithKeys(e){return this.nuviotClient.getFormResponse(`/api/simulator/network/${e}/secure`)}saveSimulatorNetwork(e){return e.isEditing?this.nuviotClient.update("/api/simulator/network",e.model):this.nuviotClient.post("/api/simulator/network",e.model)}createSimulatorInstance(){return this.nuviotClient.getFormResponse("/api/simulator/instance/factory")}static \u0275fac=function(t){return new(t||Ev)(Me(hn))};static \u0275prov=Ue({token:Ev,factory:Ev.\u0275fac,providedIn:"root"})}class Iv{client;constructor(e){this.client=e}getReports(){return this.client.getListResponse("api/reports")}getReport(e){var t=this;return O(function*(){return yield t.client.getFormResponse(`/api/report/${e}`)})()}createReport(){var e=this;return O(function*(){return yield e.client.getFormResponse("/api/report/factory")})()}createReportRevision(){return this.client.getFormResponse("/api/report/revision/factory")}editReportRevision(e){var t=this;return O(function*(){let n=yield t.client.getFormResponse("/api/report/revision/factory");return n.model=e,n.isEditing=!0,n})()}saveReport(e){var t=this;return O(function*(){return e.isEditing?yield t.client.update("/api/report",e.model):yield t.client.post("/api/report",e.model)})()}queueForExecution(e,t){return new Promise((r,o)=>{this.client.insert(`/api/report/${e}/run`,t).then(a=>{r(a.result)}).catch(a=>o(a))})}deleteGeneratedReport(e,t){return this.client.delete(`/report/${e}/${t}`)}createScheduledReports(){return this.client.getFormResponse("/api/report/scheduled/factory")}getScheduledReport(e){return this.client.getFormResponse(`/api/report/scheduled/${e}`)}getScheduledReportsForReport(e){return this.client.getListResponse(`/api/reports/scheduled/${e}`)}getScheduledReports(){return this.client.getListResponse("/api/reports/scheduled")}insertScheduledReport(e){return this.client.post("/api/report/scheduled",e)}updateScheduledReport(e){return this.client.update("/api/report/scheduled",e)}deleteSchedueledReport(e){return this.client.delete(`/api/report/scheduled/${e}`)}getGeneratedReports(e){return this.client.getListResponse(`/report/${e}/generated`)}getDeviceGeneratedReports(e,t){return this.client.getListResponse(`/report/device/${e}/generated`,{pageSize:50,nextRowKey:t})}getStreamData(e,t,n){return new Promise((o,a)=>{this.client.getListResponse(`/api/datastream/${e}/data/${t}`,n).then(l=>{o(l)}).catch(l=>a(l))})}static \u0275fac=function(t){return new(t||Iv)(Me(hn))};static \u0275prov=Ue({token:Iv,factory:Iv.\u0275fac,providedIn:"root"})}class Wg{nuviotClient;_currentGuide;_currentGuideStep;_guide$=new Ut;_guideStep$=new Ut;_guideSummaries$=new Ut;constructor(e){this.nuviotClient=e}quickCreateGuide(e){return this.nuviotClient.post("/api/guide/quickcreate",e)}rebuildGuideTree(e){return this.nuviotClient.request(`/api/guide/${e}/createtree`)}getGuideCategories(){return this.nuviotClient.request("/api/guides/categories")}getGuideSubCategories(){return this.nuviotClient.request("/api/guides/subcategories")}getGuidesForNuvIoTObject(e){return this.nuviotClient.getListResponse(`/api/guides/nuviot/${e}`)}resetCFU(e){return this.nuviotClient.request(`/api/guides/completion/${e}/reset`)}submitQuizCompletion(e,t,n){return this.nuviotClient.post(`/api/guide/${e}/cfu/complete`,{passingPercent:t,passed:n})}getCompletionStatus(e){return this.nuviotClient.request(`/api/guides/completion/${e}`)}getGuideCompletionStatusForCurrentUser(){return this.nuviotClient.request("/api/guides/completion/all")}getCFUAnswers(e){return this.nuviotClient.request(`/api/guide/cfu/${e}`)}setAnswer(e,t,n){return this.nuviotClient.request(`/api/guide/cfu/${e}/${t}/${n}`)}loadGuides(){return this.nuviotClient.request("/api/guides/all")}loadGuideSummaries(){return this.nuviotClient.request("/api/guides/summaries")}addChildGuide(e){return this.nuviotClient.post("/api/guide/child",e)}rateGuide(e,t){return this.nuviotClient.request(`/api/guide/${e}/rate/${t}`)}clearGuideRating(e){return this.nuviotClient.delete(`/api/guide/${e}/rating`)}addComment(e,t){return this.nuviotClient.postWithResponse(`/api/guide/${e}/comment`,{content:t})}addReply(e,t,n){return this.nuviotClient.postWithResponse(`/api/guide/${e}/comment/${t}/reply`,{content:n})}loadPublicGuidesByCategory(e){return this.nuviotClient.request(`/api/guides/active/${e}`)}loadGuidesByCategory(e,t=!1){return this.nuviotClient.request(`/api/guides/${e}?toplevel=${t}`)}loadGuide(e){return this.nuviotClient.request(`/api/guide/${e}`)}loadLongFormGuide(e){return this.nuviotClient.request(`/api/guide/${e}/longform`)}deleteGuide(e){return this.nuviotClient.delete(`/api/guide/${e}`)}createNewGuide(){return this.nuviotClient.request("/api/guide/factory")}createGuideStep(){return this.nuviotClient.request("/api/guidestep/factory")}loadGuidStep(e,t){return this.nuviotClient.request(`/api/guide/${e}/step/${t}`)}createExampleApplication(e){return this.nuviotClient.request(`/api/examples/create/${e}`)}updateGuide(e,t=!0){return this.nuviotClient.update("/api/guide",e,t)}insertGuide(e){return this.nuviotClient.post("/api/guide",e)}setGuide(e){this._currentGuide=e,this._guide$.next(e)}setGuideStep(e){this._currentGuideStep=e,this._guideStep$.next(e)}setGuides(e){this._guideSummaries$.next(e)}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(t){return new(t||Wg)(Me(hn))};static \u0275prov=Ue({token:Wg,factory:Wg.\u0275fac,providedIn:"root"})}function bve(i,e){if(1&i){const t=re();c(0,"span",7),P("click",function(){return E(t),I(g().edit())}),B(1,"i",8),m(2,"Edit"),d()}}function Cve(i,e){1&i&&B(0,"app-help-resource-viewer",9),2&i&&h("help",g().help)}function wve(i,e){1&i&&(c(0,"div"),m(1," Sorry - No Help is available for this item. "),d())}function xve(i,e){if(1&i){const t=re();c(0,"li"),m(1),c(2,"span",7),P("click",function(){const o=E(t).$implicit;return I(g(3).addGuide(o))}),m(3,"Add Guide"),d()()}if(2&i){const t=e.$implicit;p(1),$e(" ",t.name," ")}}function kve(i,e){if(1&i&&(c(0,"ol"),b(1,xve,4,1,"li",11),d()),2&i){const t=g(2);p(1),h("ngForOf",t.potentialGuides)}}function Mve(i,e){if(1&i){const t=re();c(0,"div")(1,"app-form",10),P("saved",function(){return E(t),I(g().saved())})("cancel",function(){return E(t),I(g().helpForm=void 0)}),d(),c(2,"label"),m(3),d(),b(4,kve,2,1,"ol",6),d()}if(2&i){const t=g();p(1),h("inPlaceEditing",!0)("autoSave",!0)("form",t.helpForm),p(2),$e("Guides associated with ",t.modelName,""),p(1),h("ngIf",t.potentialGuides)}}class Av{contentManagementService;guideService;userService;activeModal;help;modelName;isForApp=!1;helpForm;canEdit;ready=!1;objectGuides;potentialGuides;constructor(e,t,n,r){this.contentManagementService=e,this.guideService=t,this.userService=n,this.activeModal=r}ngOnInit(){var e=this;return O(function*(){if(console.log("on init"),!e.help){e.canEdit=(yield e.userService.isPrimaryOrg())||0==ft.production||e.isForApp;let t=yield e.contentManagementService.getFormHelpResources(e.modelName);t.successful&&(e.help=t.result),e.ready=!0}})()}edit(){var e=this;return O(function*(){e.helpForm=e.help?yield e.contentManagementService.loadFormHelpResource(e.help.id):yield e.contentManagementService.createFormHelpResult(e.modelName),e.objectGuides=(yield e.guideService.getGuidesForNuvIoTObject(e.modelName.toLocaleLowerCase())).model,e.potentialGuides=[];for(let t of e.objectGuides)e.helpForm.model.helpResources.find(n=>n.guide?.id==t.id)||e.potentialGuides.push(t);console.log(e.objectGuides)})()}setForm(e){this.helpForm=e}addGuide(e){this.helpForm.model.helpResources.push({id:Yn.newGuid(),name:e.name,key:e.key,visible:!1,icon:e.icon,creationDate:(new Date).toISOString(),guide:{id:e.id,key:e.key,text:e.name},resourceType:{id:"guide",key:"guide",text:"Guide"}}),this.potentialGuides.splice(this.potentialGuides.indexOf(e),1),console.log(this.helpForm)}saved(){var e=this;return O(function*(){e.help=e.helpForm.model,e.helpForm=void 0})()}static \u0275fac=function(t){return new(t||Av)(H(Pc),H(Wg),H(Hn),H(ar))};static \u0275cmp=Oe({type:Av,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(t,n){1&t&&(c(0,"div",0),b(1,bve,3,0,"span",1),c(2,"span",2),P("click",function(){return n.activeModal.dismiss()}),B(3,"i",3),d()(),c(4,"div",4),b(5,Cve,1,1,"app-help-resource-viewer",5),b(6,wve,2,0,"div",6),b(7,Mve,5,5,"div",6),d()),2&t&&(p(1),h("ngIf",!n.helpForm&&n.canEdit),p(4),h("ngIf",n.help&&!n.helpForm),p(1),h("ngIf",!n.help&&!n.helpForm&&n.ready),p(1),h("ngIf",n.helpForm))},styles:["h1[_ngcontent-%COMP%]{color:var(--color-primary-80)}ol[_ngcontent-%COMP%]{list-style:none}"]})}class qg{nuviotClient;constructor(e){this.nuviotClient=e}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(e){return this.nuviotClient.getFormResponse(`/api/ml/model/${e}`)}addModel(e){return this.nuviotClient.post("/api/ml/model",e)}updateModel(e){return this.nuviotClient.update("/api/ml/model",e)}getModels(){return this.nuviotClient.getListResponse("/api/ml/models")}deleteModel(e){return this.nuviotClient.delete(`/api/ml/model/${e}`)}getModelCategories(){return this.nuviotClient.getListResponse("/api/ml/modelcategories")}addModelCategory(e){return this.nuviotClient.post("/api/ml/modelcategory",e)}updateModelCategory(e){return this.nuviotClient.update("/api/ml/modelcategory",e)}saveCategory(e){return e.isEditing?this.updateModelCategory(e.model):this.addModelCategory(e.model)}generateImage(e){return this.nuviotClient.postWithResponse("/api/ai/image/generate",e,!1)}textQuery(e){return this.nuviotClient.postWithResponse("/api/ai/textquery",e,!1)}createModelCategory(){return this.nuviotClient.getFormResponse("/api/ml/modelcategory/factory")}getModelCategory(e){return this.nuviotClient.getFormResponse(`/api/ml/modelcategory/${e}`)}createModelLabelSet(){return this.nuviotClient.getFormResponse("/api/ml/labelset/factory")}getModelLabelSet(e){return this.nuviotClient.getFormResponse(`/api/ml/labelset/${e}`)}getModelLabelSets(){return this.nuviotClient.getListResponse("/api/ml/labelsets")}addModelLabelSet(e){return this.nuviotClient.post("/api/ml/labelset",e)}updateModelLabelSet(e){return this.nuviotClient.update("/api/ml/labelset",e)}saveModelLabelSet(e){return e.isEditing?this.updateModelLabelSet(e.model):this.addModelLabelSet(e.model)}addAgentMode(){return this.nuviotClient.getFormResponse("/api/ai/agentcontext/mode/factory")}editAgentMode(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/ai/agentcontext/mode/factory");return n.isEditing=!0,n.model=e,n})()}addRole(){return this.nuviotClient.getFormResponse("/api/ai/agentcontext/role/factory")}editRole(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/ai/agentcontext/role/factory");return n.isEditing=!0,n.model=e,n})()}createAgentContext(){return this.nuviotClient.getFormResponse("/api/ai/agentcontext/factory")}getAgentContext(e){return this.nuviotClient.getFormResponse(`/api/ai/agentcontext/${e}`)}getAgentContexts(){return this.nuviotClient.getListResponse("/api/ai/agentcontexts")}addAgentContext(e){return this.nuviotClient.post("/api/ai/agentcontext",e)}updateAgentContext(e){return this.nuviotClient.update("/api/ai/agentcontext",e)}saveAgentContext(e){return e.isEditing?this.updateAgentContext(e.model):this.addAgentContext(e.model)}createAgentToolBox(){return this.nuviotClient.getFormResponse("/api/ai/toolbox/factory")}getAgentToolBox(e){return this.nuviotClient.getFormResponse(`/api/ai/toolbox/${e}`)}getAgentToolBoxes(){return this.nuviotClient.getListResponse("/api/ai/toolboxes")}addAgentToolBox(e){return this.nuviotClient.post("/api/ai/toolbox",e)}updateAgentToolBox(e){return this.nuviotClient.update("/api/ai/toolbox",e)}saveAgentToolBox(e){return e.isEditing?this.updateAgentToolBox(e.model):this.addAgentToolBox(e.model)}getAgentTools(){return this.nuviotClient.getListResponse("/api/ai/agenttools")}executeAgentRequest(e,t,n){return e.streamMode=1,this.nuviotClient.postWithStreamNdjson("/api/ai/agent/execute",e,t,!0,n)}executeAgent(e){return this.nuviotClient.postWithResponse("/api/ai/agent/execute",e,!1)}llmQuery(e){return this.nuviotClient.request(`/api/ai/llm/query?question=${encodeURIComponent(e)}`)}getAgentSessions(){return this.nuviotClient.getListResponse("/api/ai/agent/sessions")}getAgentSession(e){return this.nuviotClient.request(`/api/ai/agent/session/${e}`)}deleteSession(e){return this.nuviotClient.delete(`/api/ai/agent/session/${e}`)}rollbackSession(e,t){return this.nuviotClient.request(`/api/ai/agent/session/${e}/rollback/${t}`)}renameSession(e,t){return this.nuviotClient.request(`/api/ai/agent/session/${e}/rename?name=${encodeURIComponent(t)}`)}createAgentPersona(){return this.nuviotClient.getFormResponse("/api/ai/agentpersona/factory")}getAgentPersona(e){return this.nuviotClient.getFormResponse(`/api/ai/agentpersona/${e}`)}getAgentPersonas(){return this.nuviotClient.getListResponse("/api/ai/agentpersonas")}addAgentPersona(e){return this.nuviotClient.post("/api/ai/agentpersona",e)}updateAgentPersona(e){return this.nuviotClient.update("/api/ai/agentpersona",e)}saveAgentPersona(e){return e.isEditing?this.updateAgentPersona(e.model):this.addAgentPersona(e.model)}setCurrentSession(e,t){return this.nuviotClient.request(`/api/ai/agent/session/${e}/chapter/restore/${t}`)}static \u0275fac=function(t){return new(t||qg)(Me(hn))};static \u0275prov=Ue({token:qg,factory:qg.\u0275fac,providedIn:"root"})}function Dve(i,e){if(1&i){const t=re();c(0,"div")(1,"editor",13),P("ngModelChange",function(r){return E(t),I(g(2).discussion.note=r)}),d(),c(2,"div",14)(3,"span",15),P("click",function(){return E(t),I(g(2).saveNewDiscussion())}),B(4,"i",16),m(5," Save New Discussion"),d()()()}if(2&i){const t=g(2);p(1),h("init",t.getEditorOptions())("ngModel",t.discussion.note)}}function Tve(i,e){if(1&i){const t=re();c(0,"span",15),P("click",function(){E(t);const r=g().$implicit;return I(g(2).editDiscussion(r))}),B(1,"i",23),d()}}function Sve(i,e){if(1&i){const t=re();c(0,"span",15),P("click",function(){E(t);const r=g(2).$implicit;return I(g(2).addResponse(r))}),B(1,"i",24),m(2," Add Response"),d()}}function Eve(i,e){if(1&i){const t=re();c(0,"span",15),P("click",function(){E(t);const r=g(2).$implicit;return I(g(2).openDiscussion(r))}),B(1,"i",25),m(2," Re-Open"),d()}}function Ive(i,e){if(1&i){const t=re();c(0,"span",15),P("click",function(){E(t);const r=g(2).$implicit;return I(g(2).closeDiscussion(r))}),B(1,"i",26),m(2," Mark as Resolved"),d()}}function Ave(i,e){if(1&i&&(c(0,"div"),b(1,Sve,3,0,"span",21),b(2,Eve,3,0,"span",21),b(3,Ive,3,0,"span",21),d()),2&i){const t=g().$implicit;p(1),h("ngIf",t.open),p(1),h("ngIf",!t.open),p(1),h("ngIf",t.open)}}function Pve(i,e){1&i&&B(0,"div",27),2&i&&h("innerHTML",g().$implicit.note,Gn)}function Fve(i,e){if(1&i){const t=re();c(0,"div")(1,"editor",13),P("ngModelChange",function(r){return E(t),I(g(3).editingDiscussion.note=r)}),d(),c(2,"div",14)(3,"span",15),P("click",function(){return E(t),I(g(3).saveDiscussion())}),B(4,"i",16),m(5,"Save Discussion"),d()()()}if(2&i){const t=g(3);p(1),h("init",t.getEditorOptions())("ngModel",t.editingDiscussion.note)}}function Rve(i,e){if(1&i){const t=re();c(0,"div")(1,"editor",13),P("ngModelChange",function(r){return E(t),I(g(4).response.note=r)}),d(),c(2,"div",14)(3,"span",15),P("click",function(){return E(t),I(g(4).saveResponse())}),B(4,"i",16),m(5," Save Response"),d(),c(6,"span",15),P("click",function(){return E(t),I(g(4).askTerminator())}),B(7,"i",29),m(8,"Consult T-802"),d()()()}if(2&i){const t=g(4);p(1),h("init",t.getEditorOptions())("ngModel",t.response.note)}}function Ove(i,e){if(1&i&&(c(0,"li",30)(1,"span",19),B(2,"i",31),m(3),d(),m(4),Zt(5,"dateTimePrinter"),B(6,"div",27),d()),2&i){const t=e.$implicit;p(3),$e(" ",t.user.text,":"),p(1),$e(" (",Xt(5,3,t.timestamp),") "),p(2),h("innerHTML",t.note,Gn)}}function Lve(i,e){if(1&i&&(c(0,"ol"),b(1,Rve,9,2,"div",7),b(2,Ove,7,5,"li",28),d()),2&i){const t=g().$implicit,n=g(2);p(1),h("ngIf",n.response&&n.responseDiscussion==t),p(1),h("ngForOf",t.responses)}}const Nve=function(i,e){return{"discussion-section-closed":i,"discussion-section-open":e}};function Bve(i,e){if(1&i&&(c(0,"li",17)(1,"div",18)(2,"div",3)(3,"span",19),B(4,"i",20),m(5),d(),m(6),Zt(7,"dateTimePrinter"),b(8,Tve,2,0,"span",21),d(),b(9,Ave,4,3,"div",7),d(),b(10,Pve,1,1,"div",22),b(11,Fve,6,2,"div",7),b(12,Lve,3,2,"ol",7),d()),2&i){const t=e.$implicit,n=g(2);h("ngClass",ci(10,Nve,!t.open,t.open)),p(5),$e(" ",t.user.text,""),p(1),$e(" (",Xt(7,8,t.timestamp),") "),p(2),h("ngIf",t.open&&!n.editingDiscussion),p(1),h("ngIf",!n.editingDiscussion),p(1),h("ngIf",!n.editingDiscussion),p(1),h("ngIf",n.editingDiscussion==t),p(1),h("ngIf",!n.editingDiscussion||t!=n.editingDiscussion)}}function Vve(i,e){1&i&&B(0,"div",32)}function $ve(i,e){if(1&i&&(c(0,"div",33)(1,"h4"),m(2,"Please Wait..."),d(),c(3,"h4"),m(4,"...I'll Be Back"),d(),B(5,"app-loading-spinner",34),d()),2&i){const t=g(2);p(5),h("caption",t.terminatorQuote)}}function Hve(i,e){if(1&i){const t=re();c(0,"div",1)(1,"h4",2)(2,"div",3),B(3,"i",4),m(4),d(),c(5,"i",5),P("click",function(){return E(t),I(g().addDiscussion())}),d()(),c(6,"p",6),m(7),d(),b(8,Dve,6,2,"div",7),B(9,"hr"),c(10,"div",8)(11,"ol",9),b(12,Bve,13,13,"li",10),d()(),b(13,Vve,1,0,"div",11),b(14,$ve,6,1,"div",12),d()}if(2&i){const t=g();p(4),$e(" Discussions - ",t.form.modelTitle,""),p(3),Ae(t.form.view.name.value),p(1),h("ngIf",t.discussion),p(4),h("ngForOf",t.form.model.discussions),p(1),h("ngIf",t.busy),p(1),h("ngIf",t.busy)}}class dw{route;mlService;usersService;pmService;form;isAdding=!1;busy=!1;terminatorQuote="I Am Human. Just Enhanced";discussion;editingDiscussion;response;responseDiscussion;constructor(e,t,n,r){this.route=e,this.mlService=t,this.usersService=n,this.pmService=r}ngOnInit(){var e=this;return O(function*(){e.discussion=0===e.form.model.discussions.length?yield e.pmService.createDiscussion():void 0})()}getEditorOptions(){var t,e=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:t=>{},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:(t=O(function*(n,r){const o=yield e.usersService.getCachedUserSummary();console.log(o),r(o.filter(s=>s.name.toLowerCase().includes(n.term.toLowerCase())))}),function(r,o){return t.apply(this,arguments)}),mentions_menu_complete:(t,n)=>{const r=t.getDoc().createElement("span");return r.className="mymention",r.setAttribute("data-mention-id",n.id),r.appendChild(t.getDoc().createTextNode("@"+n.name)),r},mentions_select:function(){var t=O(function*(n,r){var o=n.getAttribute("data-mention-id");let s=(yield e.usersService.getCachedUserSummary()).find(u=>u.id===o);r(e.getMentionCardHtml(s))});return function(r,o){return t.apply(this,arguments)}}(),mentions_menu_hover:function(){var t=O(function*(n,r){let a=(yield e.usersService.getCachedUserSummary()).find(l=>l.id===n.id);r(e.getMentionCardHtml(a))});return function(r,o){return t.apply(this,arguments)}}()}}getMentionCardHtml(e){var t=document.createElement("div");return t.innerHTML='

'+e.name+"

"+e.description+"

",t}addDiscussion(){var e=this;return O(function*(){e.discussion=yield e.pmService.createDiscussion()})()}askTerminator(){var e=this;return O(function*(){let t={query:e.response.note,role:"user",conversationId:void 0};e.busy=!0;let n=yield e.mlService.textQuery(t);e.busy=!1,n.successful&&(e.response.note+=n.result.response)})()}saveNewDiscussion(){var e=this;return O(function*(){e.discussion.note&&(e.form.model.discussions.unshift(e.discussion),e.discussion=void 0,yield e.form.formHost.saveForm(!1))})()}saveDiscussion(){var e=this;return O(function*(){yield e.form.formHost.saveForm(!1),e.editingDiscussion=void 0})()}editDiscussion(e){var t=this;return O(function*(){t.editingDiscussion=e})()}addResponse(e){var t=this;return O(function*(){t.response=yield t.pmService.createDiscussionResponse(),t.responseDiscussion=e})()}saveResponse(){var e=this;return O(function*(){e.response&&e.response.note&&(e.responseDiscussion.responses.unshift(e.response),e.response=void 0,yield e.form.formHost.saveForm(!1))})()}openDiscussion(e){var t=this;return O(function*(){e.open=!0,yield t.form.formHost.saveForm(!1)})()}closeDiscussion(e){var t=this;return O(function*(){e.open=!1,yield t.form.formHost.saveForm(!1)})()}static \u0275fac=function(t){return new(t||dw)(H(mi),H(qg),H(Hn),H(xp))};static \u0275cmp=Oe({type:dw,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(t,n){1&t&&b(0,Hve,15,6,"div",0),2&t&&h("ngIf",n.form)},dependencies:[Vi,Ot,rt,en,qt,Nd,ap,js],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 Gg{nuviotClient;constructor(e){this.nuviotClient=e}isValidID(e){if(!e)return!1;const t=e.match("^[\\dABCDEF]{32}$");return t&&1===t.length}invokeSuccess(){return{successful:!0,errors:[],warnings:[]}}invokeError(e){return{successful:!1,errors:[{message:e}],warnings:[]}}createSchedule(){return this.nuviotClient.getFormResponse("/api/core/schedule/factory")}getEntityGraph(e){return this.nuviotClient.request(`/api/entity/${e}/graph`)}setEntityPublic(e){return this.nuviotClient.request(`/api/entity/${e}/public/set`)}static \u0275fac=function(t){return new(t||Gg)(Me(hn))};static \u0275prov=Ue({token:Gg,factory:Gg.\u0275fac,providedIn:"root"})}function Uve(i,e){if(1&i&&(c(0,"span",20),B(1,"i",21),m(2),d()),2&i){const t=g(3);St("pill--public",t.root.isPublic)("pill--private",!t.root.isPublic),p(1),St("fa-lock-open",t.root.isPublic)("fa-lock",!t.root.isPublic),p(1),$e(" ",t.root.isPublic?"Public":"Private"," ")}}function jve(i,e){if(1&i){const t=re();c(0,"div",10)(1,"div",11)(2,"div",12)(3,"div",13)(4,"h4"),m(5),d(),c(6,"span",14),m(7),d(),b(8,Uve,3,9,"span",15),d(),c(9,"div",16)(10,"button",17),P("click",function(){E(t);const r=g(2);return I(r.makePublic(r.root))}),B(11,"i",18),c(12,"span"),m(13,"Make Public"),d()()()(),c(14,"div",19),m(15," To make this entity public, all the items that it depends on must also be made public. "),d()()()}if(2&i){const t=g(2);p(5),Ae(t.root.text),p(2),Ae(t.root.entityType),p(1),h("ngIf",void 0!==(null==t.root?null:t.root.isPublic)),p(2),h("disabled",t.isMakingPublic||!0===(null==t.root?null:t.root.isPublic))}}function Yve(i,e){1&i&&Pm(0)}const zve=function(i){return{node:i,depth:0}};function Wve(i,e){if(1&i&&($r(0),b(1,Yve,1,0,"ng-container",22),Hr()),2&i){const t=e.$implicit;g(2);const n=Vr(2);p(1),h("ngTemplateOutlet",n)("ngTemplateOutletContext",bt(2,zve,t))}}function qve(i,e){if(1&i&&(c(0,"div",2)(1,"div",3),B(2,"i",4),c(3,"span"),m(4,"Dependency Graph"),d()(),b(5,jve,16,4,"div",5),c(6,"div",6)(7,"div",7)(8,"div",8),b(9,Wve,2,4,"ng-container",9),d()()()()),2&i){const t=g();p(5),h("ngIf",null==t.root?null:t.root.text),p(4),h("ngForOf",t.root.children)("ngForTrackBy",t.trackById)}}function Gve(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g().node;p(1),$e("",t.hostEntityName,"/")}}function Kve(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g(2).node;p(1),$e("",t.hostEntityType,"/")}}function Qve(i,e){if(1&i&&(c(0,"span",31),b(1,Kve,2,1,"span",28),m(2),d()),2&i){const t=g().node;p(1),h("ngIf",t.hostEntityType),p(1),$e("",t.entityType," ")}}function Zve(i,e){1&i&&Pm(0)}const Xve=function(i,e){return{node:i,depth:e}};function Jve(i,e){if(1&i&&($r(0),b(1,Zve,1,0,"ng-container",22),Hr()),2&i){const t=e.$implicit,n=g(2).depth;g();const r=Vr(2);p(1),h("ngTemplateOutlet",r)("ngTemplateOutletContext",ci(2,Xve,t,n+1))}}function eye(i,e){if(1&i&&(c(0,"div",32),b(1,Jve,2,5,"ng-container",9),d()),2&i){const t=g().node,n=g();p(1),h("ngForOf",t.children)("ngForTrackBy",n.trackById)}}function tye(i,e){if(1&i){const t=re();c(0,"div",23)(1,"button",24),P("click",function(){const o=E(t).node;return I(g().toggle(o))}),B(2,"i",21),d(),c(3,"div",25)(4,"div",26)(5,"span",27),b(6,Gve,2,1,"span",28),m(7),d(),b(8,Qve,3,2,"span",29),c(9,"span",20),B(10,"i",21),m(11),d(),c(12,"button",17),P("click",function(){const o=E(t).node;return I(g().makePublic(o))}),B(13,"i",18),c(14,"span"),m(15,"Make Public"),d()()()()(),b(16,eye,2,2,"div",30)}if(2&i){const t=e.node,n=e.depth,r=g();cn("padding-left",18*n,"px"),p(1),h("disabled",!r.hasChildren(t)),p(1),St("fa-chevron-right",!r.isExpanded(t))("fa-chevron-down",r.isExpanded(t)),p(4),h("ngIf",t.hostEntityName),p(1),$e("",t.text," "),p(1),h("ngIf",t.entityType),p(1),St("pill--public",t.isPublic)("pill--private",!t.isPublic),p(1),St("fa-lock-open",t.isPublic)("fa-lock",!t.isPublic),p(1),$e(" ",t.isPublic?"Public":"Private"," "),p(1),h("disabled",r.isMakingPublic||!0===(null==t?null:t.isPublic)),p(4),h("ngIf",r.hasChildren(t)&&r.isExpanded(t))}}class uw{coreServices;root;isMakingPublic=!1;expanded={};constructor(e){this.coreServices=e}id;ngOnInit(){var e=this;return O(function*(){let t=yield e.coreServices.getEntityGraph(e.id);t.successful&&(e.root=t.result)})()}makePublic(e){var t=this;return O(function*(){if(!e)return;t.isMakingPublic=!0;let n=yield t.coreServices.setEntityPublic(e.id);t.isMakingPublic=!1,n.successful?e.isPublic=!0:alert("Failed to set entity public: "+n.errors.map(r=>r.message).join(", "))})()}toggle(e){!e?.id||(this.expanded[e.id]=!this.isExpanded(e))}isExpanded(e){return!(!e?.id||!this.expanded[e.id])}hasChildren(e){return!!e?.children?.length}trackById=(e,t)=>t?.id??e;static \u0275fac=function(t){return new(t||uw)(H(Gg))};static \u0275cmp=Oe({type:uw,selectors:[["app-set-public-modal"]],decls:3,vars:1,consts:[["style","margin: 10px;",4,"ngIf"],["nodeTemplate",""],[2,"margin","10px"],[1,"entity-graph__hostTitle"],[1,"fa-solid","fa-diagram-project"],["class","entity-graph__host",4,"ngIf"],[1,"entity-graph-container"],["data-testid","entity-graph",1,"entity-graph","stack"],[1,"tree"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"entity-graph__host"],[1,"entity-graph__hostMeta"],[2,"display","flex","width","100%"],[2,"flex-grow","1"],[1,"pill","pill--neutral",2,"margin-right","5px"],["class","pill",3,"pill--public","pill--private",4,"ngIf"],[1,"entity-graph__actions"],["type","button",1,"entity-graph__btn","entity-graph__btn--primary",3,"disabled","click"],[1,"fa-solid","fa-lock-open"],[2,"margin","20px"],[1,"pill"],[1,"fa-solid"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"tree__row"],["type","button",1,"tree__toggle",3,"disabled","click"],[1,"tree__card"],[1,"tree__title"],[1,"tree__name"],[4,"ngIf"],["class","pill pill--neutral",4,"ngIf"],["class","tree__children",4,"ngIf"],[1,"pill","pill--neutral"],[1,"tree__children"]],template:function(t,n){1&t&&(b(0,qve,10,3,"div",0),b(1,tye,17,21,"ng-template",null,1,jr)),2&t&&h("ngIf",n.root)},dependencies:[Ot,rt,ju],styles:[".entity-graph[_ngcontent-%COMP%]{gap:12px}.entity-graph__host[_ngcontent-%COMP%], .entity-graph_help[_ngcontent-%COMP%]{padding:12px;border:1px solid rgba(0,0,0,.12);border-radius:12px}.entity-graph__hostTitle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-weight:600}.entity-graph__hostMeta[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}.tree[_ngcontent-%COMP%]{display:grid;gap:8px}.tree__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;padding-left:calc(var(--depth) * 18px)}.tree__toggle[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:8px;border:1px solid rgba(0,0,0,.12);background:transparent;display:grid;place-items:center;cursor:pointer;&:disabled{opacity:.35;cursor:default}}.tree__card[_ngcontent-%COMP%]{padding:10px 12px;border:1px solid rgba(0,0,0,.12);border-radius:12px}.tree__title[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.tree__name[_ngcontent-%COMP%]{font-weight:600}.tree__sub[_ngcontent-%COMP%]{margin-top:6px;font-size:12px}.tree__children[_ngcontent-%COMP%]{margin-top:8px;display:grid;gap:8px}.pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:12px;line-height:18px;white-space:nowrap}.pill--muted[_ngcontent-%COMP%]{opacity:.75}.pill--neutral[_ngcontent-%COMP%]{background:rgba(0,0,0,.04)}.pill--public[_ngcontent-%COMP%]{background:rgba(0,128,0,.08)}.pill--private[_ngcontent-%COMP%]{background:rgba(128,0,0,.08)}.pill--ok[_ngcontent-%COMP%]{background:rgba(0,128,0,.1)}.pill--warn[_ngcontent-%COMP%]{background:rgba(255,165,0,.14)}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.muted[_ngcontent-%COMP%]{opacity:.7}.entity-graph-container[_ngcontent-%COMP%]{width:80%;max-width:80%;margin-left:auto;margin-right:auto;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:12px}.entity-graph-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}.entity-graph-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:6px}.entity-graph-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.35)}.entity-graph__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.entity-graph__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.14);background:rgba(0,0,0,.02);cursor:pointer;font-weight:600;&:hover:not(:disabled){background:rgba(0,0,0,.04)}&:disabled{opacity:.5;cursor:default}}.entity-graph__btn--primary[_ngcontent-%COMP%]{border-color:#0000002e;background:rgba(0,128,0,.1);&:hover:not(:disabled){background:rgba(0,128,0,.14)}}.entity-graph__hint[_ngcontent-%COMP%]{margin-top:10px;display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:rgba(0,0,0,.02);font-size:13px;opacity:.85}"]})}class zd{constructor(){}_topMenuOptions={saveVisible:!1,advancedVisible:!1,cancelVisible:!1,backVisible:!1,homeVisible:!1,filterVisible:!1,addVisible:!1};_menuItems=[];_menuOptionsUpdated$=new Ce;_headerOptionClick$=new Ce;_dummy$=new Ce;_menuOptionsVisibilityChanged=new Ce;addOption(e){this._menuItems=e,this.onMenuItemsChanged.emit(this._menuItems)}headerClick(e){console.log("headerClick",e),this.onHeaderClick.emit(e)}onMenuItemsChanged=new Ie;onMenuVisibilityChanged=new Ie;onHeaderClick=new Ie;onTitleChanged=new Ie;getMenuOptions(){return this._topMenuOptions}title=void 0;setTitle(e){this.title=e,this.onTitleChanged.emit(e)}get saveVisible(){return this._topMenuOptions.saveVisible}set saveVisible(e){this._topMenuOptions.saveVisible=e;let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.saveVisible=e,this.onMenuVisibilityChanged.emit(t),this._topMenuOptions=t}get advancedVisible(){return this._topMenuOptions.advancedVisible}set advancedVisible(e){if(e!=this._topMenuOptions.advancedVisible){let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.advancedVisible=e,this.onMenuVisibilityChanged.next(t),this._topMenuOptions=t}}get cancelVisible(){return this._topMenuOptions.cancelVisible}set cancelVisible(e){if(e!=this._topMenuOptions.cancelVisible){let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.cancelVisible=e,this.onMenuVisibilityChanged.next(t),this._topMenuOptions=t}}get backVisible(){return this._topMenuOptions.backVisible}set backVisible(e){if(this._topMenuOptions.backVisible=e,e!=this._topMenuOptions.backVisible){let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.backVisible=e,this.onMenuVisibilityChanged.next(t),this._topMenuOptions=t}}get homeVisible(){return this._topMenuOptions.homeVisible}set homeVisible(e){if(e!=this._topMenuOptions.homeVisible){this._topMenuOptions.homeVisible=e;let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.backVisible=e,this.onMenuVisibilityChanged.next(t),this._topMenuOptions=t}}get filterVisible(){return this._topMenuOptions.filterVisible}set filterVisible(e){if(this._topMenuOptions.filterVisible=e,e!=this._topMenuOptions.filterVisible){let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.filterVisible=e,this.onMenuVisibilityChanged.next(t),this._topMenuOptions=t}}get addVisible(){return this._topMenuOptions.addVisible}set addVisible(e){if(this._topMenuOptions.addVisible=e,e!=this._topMenuOptions.addVisible){let t=JSON.parse(JSON.stringify(this._topMenuOptions));t.addVisible=e,this.onMenuVisibilityChanged.next(t),this._topMenuOptions=t}}static \u0275fac=function(t){return new(t||zd)};static \u0275prov=Ue({token:zd,factory:zd.\u0275fac,providedIn:"root"})}class kp{constructor(){}isPhone(){var e=navigator.userAgent;return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(e)}isTablet(){var e=navigator.userAgent;return/iPad/i.test(e)}isDesktop(){return!this.isPhone()&&!this.isTablet()}static \u0275fac=function(t){return new(t||kp)};static \u0275prov=Ue({token:kp,factory:kp.\u0275fac,providedIn:"root"})}const nye=["jsonImportFileInput"];class Pv{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;canImportJson=!1;jsonImportPreserveIdentity=!0;isJsonImporting=!1;jsonImportText="";jsonImportError;aiFormFillPromptText="";aiFormFillPromptCopied=!1;jsonImportFileInput;constructor(e,t,n,r,o,a,s,l,u){this.nuviotClient=e,this.route=t,this.router=n,this.menuService=r,this.favoriteService=o,this.mruService=a,this.errorReporterService=s,this.modalService=l,this.appServices=u}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 N_({url:`${ft.siteUri}/api/dataservices/yaml/${this.importObjectName}/import`}),this.uploader.onAfterAddingFile=t=>{this.fileNameOrStatus=`Uploading: ${t.some.name}`,this.uploader.uploadItem(t)},this.uploader.onCompleteItem=(t,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: ${t.some.name}`,this.isImporting=!1}),this._onHeaderClickSubscription=this.menuService.onHeaderClick.subscribe(e=>{switch(e){case"cancel":case"back":this.cancelForm();break;case"save":this.saveForm();break;case"advanced":this.toggleAdvancedFields()}})}_saveUrl;_updateUrl;view;_headerExtension;set headerExtension(e){e&&(this._headerExtension=e)}get headerExtension(){return this._headerExtension}set model(e){this._model=e,e.labels&&(this.labeledModel=e),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(e){this._isEditing=e,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 e=this;return O(function*(){const t=Object.keys(e.form.view),n=Object.values(e.form.view).filter(l=>l.parentRowName);e.additionalActions=e.form.formAdditionalActions,e._formConditionals=e.form.conditionalFields,e.fields=e.form.formFields.map(l=>{let u=n.filter(f=>f.parentRowName==l);if(u.length>0)return{name:l,childFields:u,label:"",fieldType:"ComponentRow",isUserEditable:!0,isVisible:!0,isEnabled:!0,isReferenceField:!1,isFileUploadImage:!1};if(!t.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 e.form.view[Yn.toCamelCase(l)]}),e.fieldsCol2=e.form.formFieldsCol2?e.form.formFieldsCol2.map(l=>{if(t.some(u=>u.toLowerCase()===l.toLocaleLowerCase()))return e.form.view[Yn.toCamelCase(l)]}):void 0,e.form.formFieldsBottom&&(e.fieldsBottom=e.form.formFieldsBottom.map(l=>{if(t.some(u=>u.toLowerCase()===l.toLocaleLowerCase()))return e.form.view[Yn.toCamelCase(l)]})),e.form.formFieldsTab&&(e.fieldsBottom=e.form.formFieldsTab.map(l=>{if(t.some(u=>u.toLowerCase()===l.toLocaleLowerCase()))return e.form.view[Yn.toCamelCase(l)]})),e.form.formFieldsSimple&&(e.fieldsSimple=e.form.formFieldsSimple.map(l=>{let u=n.filter(f=>f.parentRowName==l);if(u.length>0){let f={name:l,childFields:u,label:"",fieldType:"ComponentRow",isUserEditable:!0,isVisible:!0,isEnabled:!0,isReferenceField:!1,isFileUploadImage:!1};return console.log(f),f}return t.some(f=>f.toLowerCase()===l.toLocaleLowerCase())?e.form.view[Yn.toCamelCase(l)]:void 0}));for(let l of e.fields)l.internalValueChanged=u=>e.fieldChanged(u);if(e.fieldsCol2)for(let l of e.fieldsCol2)l.internalValueChanged=u=>e.fieldChanged(u);let r=window.location.pathname,o=r.substring(1).split("/");e.form.isEditing&&e.mruService.addMRU({name:e.title,type:e.form.modelTitle,moduleKey:ft.moduleRouteHome,icon:e.form.model.icon??e.form.icon??"icon-ae-document",summary:e.form.modelHelp,route:o,link:r});let s=yield e.favoriteService.getUserFavorites();e.favorite=s.favorites.find(l=>l.link==e.router.url)})()}viewReady(){}count=0;get discussionCount(){return this.form.model.discussions.length}autoSaveTimerId;autoSaveHandler(){this.isDirtyCheck()&&this.internalSaveForm(!1,!0)}labels;set form(e){var t=this;if(e&&e.model!=this.model){this.autoSaveTimerId&&window.clearInterval(this.autoSaveTimerId),e.autoSave&&(e.isEditing||e.saveDraft)&&(this.autoSaveTimerId=window.setInterval(O(function*(){yield t.autoSaveHandler()}),this.debug?5e3:e.autoSaveIntervalSections?1e3*e.autoSaveIntervalSections:6e4)),this._form=e,this._form.formHost=this;let r=this.form.model;if(this.form.isEditing){var n=r.name??r.title;this.title=n?`${e.modelTitle} - ${n}`:e.modelTitle}else this.title=`${e.modelTitle} - New`;if(r.icon?this.formIcon=r.icon:e.icon&&(this.formIcon=e.icon),this.help=e.modelHelp,this.isEditing=e.isEditing,this._saveUrl=e.saveUrl,this._updateUrl=e.updateUrl,!r.isDraft&&e.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!=e.formFieldsAdvanced&&e.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=e.view,this.model=e.model,this.setForm(),!e.isEditing&&e.autoSave&&(this.model.isDraft=!0),this.modelToView(e.model,this._nameKeyFields),this.viewReady()}}get form(){return this._form}isImporting=!1;_model;labeledModel;_nameKeyFields=[];_fields;_fields2;_fieldsBottom;_fieldsSimple;showSimpleView=!1;set fields(e){this._fields=e,this.setReadOnlyKey(),this._model&&this._fields&&this.modelToView(this.model,this.fields)}get fields(){return this._fields}set fieldsSimple(e){this._fieldsSimple=e,this.setReadOnlyKey(),this._model&&this._fieldsSimple&&this.modelToView(this.model,this.fieldsSimple)}get fieldsSimple(){return this._fieldsSimple}set fieldsCol2(e){this._fields2=e,this.setReadOnlyKey(),this._model&&this._fields2&&this.modelToView(this.model,this.fieldsCol2)}get fieldsCol2(){return this._fields2}set fieldsBottom(e){this._fieldsBottom=e,this.setReadOnlyKey(),this._model&&this._fieldsBottom&&this.modelToView(this.model,this._fieldsBottom)}get fieldsBottom(){return this._fieldsBottom}isDirty;isDirtyChanged=new Ie;imported=new Ie;save=new Ie;import;export=new Ie;saved=new Ie;modelUpdated=new Ie;cancel=new Ie;formAction=new Ie;setReadOnlyKey(){if(this._fields&&!this.model?.isDraft){let e=this._fields.find(t=>"key"==t.name);e?e.isUserEditable=!this._isEditing||this.allowKeyEdit:this._fields2&&(e=this._fields2.find(t=>"key"==t.name),e&&(e.isUserEditable=!this._isEditing||this.allowKeyEdit))}}getConditional(e){let t,n=e.value;return n||(n=this.model[e.name]),t=this._formConditionals.conditionals.find(r=>r.field==e.name&&((!r.value||"-1"==r.value)&&r.notSet||(r.value==e.value?.toString()||"*"==r.value&&e.value&&"-1"!=e.value)&&!r.notEquals&&!r.notSet||(r.value!==e.value?.toString()&&"-1"!=e.value||"*"==r.value&&!e.value)&&r.notEquals&&!r.notSet)&&(r.forCreate&&!this.isEditing||r.forUpdate&&this.isEditing)),t||(t=this._formConditionals.conditionals.find(r=>!r.field&&(r.forUpdate&&this.isEditing||r.forCreate&&!this.isEditing))),t||this._formConditionals.conditionals.find(r=>r.value==this.model[r.field]),this.debug&&(t?console.log(`hit-conditional-eval: ${t.field} - trigger: ${t.value}, field:${e.name} value: ${e.value}`,t,e):console.log(`miss-conditional-eval: ${e.name} - ${n}`),t&&console.log(t)),t}initialFieldVisibility(e){let t=this.fieldsCol2?this.fields.concat(this.fieldsCol2):this.fields;if(t&&(t=t.concat(this._nameKeyFields),this._formConditionals)){for(let n of this._formConditionals.conditionalFields){let r=e.find(o=>o.name==n);r&&(r.isVisible=!1,r.isRequired=!1)}for(let n of t){let r=this.getConditional(n);if(r){for(let o of r.visibleFields){let a=e.find(s=>s.name==o);a&&(a.isVisible=!0)}for(let o of r.requiredFields){let a=e.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=e.find(s=>s.name==o);a&&(a.isUserEditable=!1)}}}}}handleFieldChanged(e,t){if(!e)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=t.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=t.find(l=>l.name==a);s&&(s.isVisible=!0)}for(let a of o.requiredFields){let s=t.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=t.find(l=>l.name==a);s&&(s.isUserEditable=!1)}}}}if("name"==e.name){let r=t.find(a=>"key"==a.name);if(r&&!r.value&&e.value){let a=e.value;a=a.replaceAll(/[^a-zA-Z0-9]/g,""),a=a.toLowerCase(),r.value=a,r.propertyChanged&&r.propertyChanged(r)}let o=t.find(a=>"title"==a.name);o&&!o.value&&e.value&&(o.value=e.value,o.propertyChanged&&o.propertyChanged(r))}this.isDirtyCheck()}fieldChanged(e){this.handleFieldChanged(e,this.fields),this.handleFieldChanged(e,this._nameKeyFields),this.fieldsCol2&&this.handleFieldChanged(e,this.fieldsCol2),this.fieldsBottom&&this.handleFieldChanged(e,this.fieldsBottom)}showHelpDialog(){this.modalService.open(Av,{size:"lg"}).componentInstance.modelName=this.form.modelName}showError(e){}fileOverBase(e){this.hasBaseDropZoneOver=e}getLatestModel(){var e=this;return O(function*(){let t={};if(e.validate())return e.viewToModel(t,e.fields),e.viewToModel(t,e._nameKeyFields),e.fieldsCol2&&e.viewToModel(t,e.fieldsCol2),e.fieldsBottom&&e.viewToModel(t,e.fieldsBottom),t;console.log("is not valid.")})()}setPublic(){var e=this;return O(function*(){e.modalService.open(uw,{size:"lg"}).componentInstance.id=e.model.id})()}saveForm(e=!0,t=!1){var n=this;return O(function*(){return yield n.internalSaveForm(e,!1)})()}internalSaveForm(e,t,n=!1){var r=this;return O(function*(){if(r.autoSave){if(r.model.isDraft||r.validate()){let o=r.model.isDraft;t||(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,!t),!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,!t),!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(e)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),e?(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 e=this;if(this.isDirtyCheck()){const t=this.modalService.open(Us,{size:"lg"}).componentInstance;t.title="Are you sure?",t.content="Any unsaved changes will be lost.",t.confirmButtonText="Confirm",t.confirmationMessage="Click 'Confirm' to leave without saving.",t.cancelButtonText="Cancel",t.isPermanent=!1,t.confirmationResult.subscribe(function(){var n=O(function*(r){r&&e.cancel.emit(null)});return function(r){return n.apply(this,arguments)}}())}else this.cancel.emit(null)}exportForm(){this.exportObjectName?window.open(`${ft.siteUri}/api/dataservices/yaml/${this.exportObjectName}/${this.model.id}/generate`):this.export&&this.export.emit(null)}showAlert(e,t,n){}throwException(e){throw this.showAlert("Messages.SystemError","Messages.FatalError - "+e.message),e}canClose(){return!this.isDirtyCheck()}validate(){let e=!0;return this.fields.forEach(t=>{if(t.host){let n=t.host;const r=n.validate();this.debug&&console.log(n.showValidationErrors,n.field.label,n.field.value),r||console.log(t.name+" is not valid - col1"),e=e&&r}else console.warn("host is null, not validating",t.name)}),null!=this.fieldsCol2&&this.fieldsCol2.forEach(t=>{if(t.host){let n=t.host;const r=t.host.validate();this.debug&&console.log(n.showValidationErrors,n.field.label,n.field.value),this.debug&&!r&&console.log(t.name+" is not valid - col2"),e=e&&r}}),e}getIdParamName(){return"id"}getFields(){return null}getFieldsCol2(){return null}getNewUrl(){return null}getLoadUrl(e){return null}propertyChanged(e){}postLoad(){}didSave(){}didCancel(){}isDirtyCheck(){var e=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),e!=this.isDirty&&this.isDirtyChanged.emit(this.isDirty),this.isDirty}isPickerFieldEmpty(e){return"-1"===e||null==e||"-1"===e?.id}_isDirtyCheck(e){if(this.model)for(const t of e){const n=this.model[t.name];let r=t.value;if(t.isEnabled&&t.isUserEditable)if("EntityHeaderPicker"===t.fieldType||"CustomerPicker"===t.fieldType||"ContactPicker"===t.fieldType||"ProductPicker"===t.fieldType||"Custom"===t.fieldType&&"componentpicker"==t.customFieldType||"UserPicker"===t.fieldType||"Picker"===t.fieldType)if(n&&r){if(n.id!==r&&n.id!==r.id&&n.key!=r)return this.debug&&console.log("path 1",t.name,n,r),this.isDirty=!0,!0}else{if(this.isPickerFieldEmpty(n)&&!this.isPickerFieldEmpty(r))return this.debug&&console.log("path 2 - value cleared",t.name),this.isDirty=!0,!0;if(!this.isPickerFieldEmpty(n)&&this.isPickerFieldEmpty(r))return this.debug&&console.log("path 3 - new value set",t.name),this.isDirty=!0,!0}else if("ChildList"===t.fieldType||"ChildListInline"===t.fieldType||"ChildListInlinePicker"===t.fieldType||"ChildListSiteContentPicker"===t.fieldType||"MediaResources"===t.fieldType){if(t.isDirty)return this.isDirty=!0,!0}else if("NodeScript"!==t.fieldType){if(n&&!r)return this.debug&&console.log("path 4",t.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",t.name,n,r),this.isDirty=!0,!0;if(n&&r&&n.toString()!==r.toString()&&n.id!=r)return this.debug&&console.log("path 6",t.name,n,r),this.isDirty=!0,!0}}return!1}modelToView(e,t){if(e)if(t){if(this._formConditionals)for(let n of this._formConditionals.conditionalFields){let r=t.find(o=>o.name==n);r&&(r.isVisible=!1)}for(const n of t){const r=e[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&&"globalentitypicker"==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||"EntithHeaderPickerDropDown"===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(e,n.childFields)}this.form?.onModelToView&&this.form?.onModelToView()}else console.error("fields is null or undefined in modelToView");else console.error("model is null or undefined in modelToView")}viewToModel(e,t){if(e)if(t){for(const n of t){const r=n.name;if(n.isUserEditable&&"NodeScript"!==n.fieldType&&n.isUserEditable&&"ChildList"!==n.fieldType)if("CheckBox"===n.fieldType)e[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||"Custom"===n.fieldType&&"globalentitypicker"==n.customFieldType||"UserPicker"===n.fieldType)e[r]=n.value;else if("Picker"===n.fieldType||"Category"===n.fieldType||"EntithHeaderPickerDropDown"===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&&(e[r]=o.id&&o.key?{id:o.id,key:o.key,text:o.label}:{id:o.key,text:o.label})}else e[r]=null;else if("Date"===n.fieldType||"DateTime"===n.fieldType){let o=Yn.toDateOnly(new Date(n.value));this.debug&&console.log(o),e[r]=o}else e[r]="Integer"===n.fieldType?parseInt(n.value):"Decimal"===n.fieldType?parseFloat(n.value):n.value;else"FileUpload"!==n.fieldType&&n.isVisible&&(e[r]=void 0);else"NodeScript"===n.fieldType&&(e[r]=n.value);n.childFields&&n.childFields.length>0&&this.viewToModel(e,n.childFields)}this.form?.onViewToModel&&this.form?.onViewToModel()}else console.error("fields is null or undefined in viewToModel");else console.error("model is null or undefined in viewToModel")}setView(){this.modelToView(this.model,this.fields)}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 t=window.location.pathname.substring(1).split("/");var n=this.form.model.name;this.favorite={id:Yn.newGuid(),name:n,type:this.form.modelTitle,moduleKey:ft.moduleRouteHome,icon:this.formIcon,summary:this.form.modelHelp,route:t,link:this.router.url},this.favoriteService.addUserFavorites(this.favorite)}showDiscussions(){this.modalService.open(dw,{size:"xl"}).componentInstance.form=this.form}clearFavorite(){this.favoriteService.removeUserFavorite(this.favorite.id),this.favorite=void 0}performAction(e){this.formAction?.emit(e.key)}importJsonForm(){this.isJsonImporting=!this.isJsonImporting,this.jsonImportError=void 0,this.aiFormFillPromptCopied=!1,this.isJsonImporting&&(this.isImporting=!1,this.aiFormFillPromptText=this.getAiFormFillPromptText())}copyAiFormFillPrompt(){var e=this;return O(function*(){e.aiFormFillPromptText||(e.aiFormFillPromptText=e.getAiFormFillPromptText());try{yield navigator.clipboard.writeText(e.aiFormFillPromptText),e.aiFormFillPromptCopied=!0,window.setTimeout(()=>{e.aiFormFillPromptCopied=!1},2500)}catch(t){console.error("Could not copy AI form fill prompt.",t),e.jsonImportError="Could not copy the prompt to the clipboard."}})()}shouldIncludeFieldInAiFormFillDescriptor(e){return!(!e||!e.name||!e.isUserEditable||"FileUpload"===e.fieldType||"MediaResourceUpload"===e.fieldType||"NodeScript"===e.fieldType||["id","key","creationDate","createdBy","lastUpdatedDate","lastUpdatedBy"].some(n=>n.toLowerCase()===e.name.toLowerCase()))}getFieldAiPrompt(e){return e.aiChatPrompt||e.aiPrompt||e.chatPrompt||e.help||e.label}getAiFormFillPromptText(){const e=this.getAiFormFillDescriptor();return["Create a JSON object I can paste into a form import tool.","","Use the descriptor below to understand which properties may be populated.","Return only a single valid JSON object.","Do not include markdown, comments, explanation, or properties that are not listed in the descriptor.","Use the field names exactly as provided.","","Form fill descriptor:",JSON.stringify(e,null,2)].join("\n")}getAiFormFillFields(){let e=[];return e=this.appendImportableFields(e,this.fields),e=this.appendImportableFields(e,this.fieldsCol2),e=this.appendImportableFields(e,this.fieldsBottom),e=this.appendImportableFields(e,this.fieldsSimple),this.advancedFieldsVisible&&(e=this.appendImportableFields(e,this.form.formFieldsAdvanced?.map(t=>this.form.view[Yn.toCamelCase(t)])),e=this.appendImportableFields(e,this.form.formFieldsAdvancedCol2?.map(t=>this.form.view[Yn.toCamelCase(t)]))),e.filter(t=>this.shouldIncludeFieldInAiFormFillDescriptor(t)).filter((t,n,r)=>r.findIndex(o=>o.name===t.name)===n).map(t=>this.toAiFormFillField(t))}toAiFormFillField(e){return{name:e.name,label:e.label,fieldType:e.fieldType,prompt:this.getFieldAiPrompt(e),required:!!e.isRequired,options:e.options?.map(t=>({id:t.id,key:t.key,label:t.label,text:t.text})),children:e.childFields?.filter(t=>this.shouldIncludeFieldInAiFormFillDescriptor(t)).map(t=>this.toAiFormFillField(t))}}getAiFormFillDescriptor(){return{modelName:this.form.modelName,modelTitle:this.form.modelTitle,modelHelp:this.form.modelHelp,instructions:["Generate a single JSON object that can be used to populate this form.","Return the JSON inside exactly one fenced code block using the json language tag.","The fenced code block must start with ```json and end with ```.","Do not include any explanation, headings, comments, or text before or after the fenced code block.","Only include properties listed in the fields array.","Use the field name exactly as provided.","Do not include id, key, creationDate, createdBy, lastUpdatedDate, or lastUpdatedBy unless explicitly requested.","For picker, category, or EntityHeader-style fields with supplied options, return an object with id, key, and text from the selected option unless the descriptor explicitly asks for a scalar value.","For list fields, return an array.","For child list fields, return an array of child objects using the natural child shape implied by the model and prompt.","For date fields, return ISO-8601 date strings.","For boolean fields, return true or false.","The JSON inside the fenced code block must be valid JSON."],fields:this.getAiFormFillFields()}}applyJsonTextToForm(){if(this.jsonImportError=void 0,this.jsonImportText&&this.jsonImportText.trim())try{const e=JSON.parse(this.jsonImportText);if(!e||Array.isArray(e)||"object"!=typeof e)return void(this.jsonImportError="The pasted JSON must be a single object.");this.applyJsonObjectToForm(e),this.fileNameOrStatus="Imported pasted JSON.",this.isJsonImporting=!1,this.jsonImportText=""}catch(e){console.error("Could not parse pasted JSON.",e),this.jsonImportError="The pasted text is not valid JSON."}else this.jsonImportError="Paste a JSON object before applying."}clearJsonImportText(){this.jsonImportText="",this.jsonImportError=void 0}importForm(){this.import?this.import.emit(null):(this.isImporting=!this.isImporting,this.isImporting&&(this.isJsonImporting=!1,this.jsonImportError=void 0),console.log("Importing",this.isImporting))}applyJsonObjectToForm(e){this.model||(this.model={});const t=this.getJsonImportableFields(),n=t.map(o=>o.name),r=["id","key","creationDate","createdBy","lastUpdatedDate","lastUpdatedBy"];for(const o of Object.keys(e)){const a=n.find(l=>l.toLowerCase()===o.toLowerCase());if(!a||this.jsonImportPreserveIdentity&&r.some(l=>l.toLowerCase()===a.toLowerCase()))continue;this.model[a]=e[o];const s=t.find(l=>l.name===a);s&&(s.isDirty=!0)}this.refreshFormFromModel(),this.isDirty=!0,this.isDirtyChanged.emit(!0),this.modelUpdated?.emit(this.model),this.imported?.emit(this.model)}refreshFormFromModel(){this.modelToView(this.model,this._nameKeyFields),this.fields&&this.modelToView(this.model,this.fields),this.fieldsCol2&&this.modelToView(this.model,this.fieldsCol2),this.fieldsBottom&&this.modelToView(this.model,this.fieldsBottom),this.fieldsSimple&&this.modelToView(this.model,this.fieldsSimple)}getJsonImportableFields(){let e=[];return e=this.appendImportableFields(e,this._nameKeyFields),e=this.appendImportableFields(e,this.fields),e=this.appendImportableFields(e,this.fieldsCol2),e=this.appendImportableFields(e,this.fieldsBottom),e=this.appendImportableFields(e,this.fieldsSimple),e.filter((t,n,r)=>r.findIndex(o=>o.name===t.name)===n)}appendImportableFields(e,t){if(!t)return e;for(const n of t)!n||(e.push(n),n.childFields&&n.childFields.length>0&&(e=this.appendImportableFields(e,n.childFields)));return e}static \u0275fac=function(t){return new(t||Pv)(H(hn),H(mi),H(_i),H(zd),H(Ic),H(Ac),H(Sl),H(Pn),H(kp))};static \u0275cmp=Oe({type:Pv,selectors:[["ng-component"]],viewQuery:function(t,n){if(1&t&&Wt(nye,5),2&t){let r;ut(r=pt())&&(n.jsonImportFileInput=r.first)}},inputs:{canImportJson:"canImportJson",jsonImportPreserveIdentity:"jsonImportPreserveIdentity",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(t,n){1&t&&B(0,"div")},encapsulation:2})}const iye=["formContent"];function rye(i,e){1&i&&(c(0,"span",22),B(1,"span",23)(2,"span",24)(3,"span",25)(4,"span",26)(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),d()),2&i&&h("className",g(2).formIcon)}function oye(i,e){1&i&&B(0,"img",45),2&i&&h("src",g(2).getFormImageIconUrl(),gi)}function aye(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(2).addFavorite())}),B(1,"i",47),d()}}function sye(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(2).clearFavorite())}),B(1,"i",48),d()}}function lye(i,e){if(1&i&&(c(0,"span",49),m(1),Zt(2,"lastAccessPrinter"),d()),2&i){const t=g(2);p(1),$e("* draft ",Xt(2,1,t.model.lastUpdatedDate),"")}}function cye(i,e){if(1&i&&(c(0,"p"),m(1),d()),2&i){const t=g(2);p(1),$e(" ",t.form.modelHelp," ")}}function dye(i,e){if(1&i){const t=re();c(0,"div")(1,"div",15)(2,"h1")(3,"i",16),P("click",function(){return E(t),I(g().cancelForm())}),d(),b(4,rye,23,1,"span",17),b(5,oye,1,1,"img",18),c(6,"span",19),m(7),d(),b(8,aye,2,0,"span",20),b(9,sye,2,0,"span",20),b(10,lye,3,3,"span",21),d(),b(11,cye,2,1,"p",1),d()()}if(2&i){const t=g();p(4),h("ngIf",!t.isFormImageIcon()),p(1),h("ngIf",t.isFormImageIcon()),p(2),$e(" ",t.title," "),p(1),h("ngIf",!t.favorite&&t.isEditing),p(1),h("ngIf",t.favorite&&t.isEditing),p(1),h("ngIf",t.model.isDraft&&t.form.saveDraft),p(1),h("ngIf",(null==t.form?null:t.form.modelHelp)&&!t.inPlaceEditing)}}function uye(i,e){1&i&&B(0,"nuvos-entity-labels",50),2&i&&h("model",g().labeledModel)("title","")}function pye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().toggleAdvancedFields())}),B(1,"i",51),c(2,"span"),m(3,"Standard Fields"),d()()}}function hye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().toggleAdvancedFields())}),B(1,"i",51),c(2,"span"),m(3,"Advanced Fields"),d()()}}function gye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){E(t);const r=g().$implicit;return I(g().performAction(r))}),B(1,"i"),c(2,"span"),m(3),d()()}if(2&i){const t=g().$implicit;p(1),Cl("fa-solid ",t.icon,""),p(2),Ae(t.title)}}function fye(i,e){if(1&i&&($r(0),b(1,gye,4,4,"button",7),Hr()),2&i){const t=e.$implicit,n=g();p(1),h("ngIf",n.isEditing&&t.forEdit||!n.isEditing&&t.forCreate)}}function mye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().setPublic())}),B(1,"i",52),c(2,"span"),m(3,"Set Public"),d()()}}function _ye(i,e){if(1&i){const t=re();c(0,"button",53),P("click",function(){return E(t),I(g().saveForm(!0))}),B(1,"i",54),c(2,"span"),m(3,"Save and Close"),d()()}}function vye(i,e){1&i&&(c(0,"span",56),m(1,"(*)"),d())}function yye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().saveForm(!1))}),B(1,"i",54),c(2,"span"),m(3,"Save"),b(4,vye,2,0,"span",55),d()()}if(2&i){const t=g();p(4),h("ngIf",t.isDirty)}}function bye(i,e){1&i&&(c(0,"span",56),m(1,"(*)"),d())}function Cye(i,e){if(1&i){const t=re();c(0,"button",53),P("click",function(){return E(t),I(g().saveForm(!0))}),B(1,"i",54),c(2,"span"),m(3,"Save"),b(4,bye,2,0,"span",55),d()()}if(2&i){const t=g();p(4),h("ngIf",t.isDirty)}}function wye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().cancelForm())}),B(1,"i",57),c(2,"span"),m(3,"Cancel"),d()()}}function xye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().showDiscussions())}),B(1,"i",58),c(2,"span"),m(3),d()()}if(2&i){const t=g();p(3),$e("Discussions (",t.discussionCount,")")}}function kye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().exportForm())}),B(1,"i",59),c(2,"span"),m(3,"Export"),d()()}}function Mye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().importForm())}),B(1,"i",60),c(2,"span"),m(3,"Import"),d()()}}function Dye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){return E(t),I(g().importJsonForm())}),B(1,"i",61),c(2,"span"),m(3,"Paste JSON"),d()()}}function Tye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){E(t);const r=g();return I(r.editorVisible=!r.editorVisible)}),B(1,"i",62),c(2,"span"),m(3,"Edit"),d()()}}function Sye(i,e){if(1&i){const t=re();c(0,"button",10),P("click",function(){E(t);const r=g();return I(r.editorVisible=!r.editorVisible)}),B(1,"i",63),c(2,"span"),m(3,"Close"),d()()}}function Eye(i,e){if(1&i&&(c(0,"div",68)(1,"h5",69),m(2),d()()),2&i){const t=g(2);p(2),Ae(t.title)}}function Iye(i,e){if(1&i&&B(0,"app-name",71),2&i){const t=g(3);h("field",t.view.name)("model",t.model)("view",t.view)}}function Aye(i,e){if(1&i&&B(0,"app-key",71),2&i){const t=g(3);h("field",t.view.key)("model",t.model)("view",t.view)}}function Pye(i,e){if(1&i&&(c(0,"div",69),b(1,Iye,1,3,"app-name",70),b(2,Aye,1,3,"app-key",70),d()),2&i){const t=g(2);p(1),h("ngIf",t.view.name),p(1),h("ngIf",t.view.key&&t.view.key.value)}}function Fye(i,e){if(1&i&&(c(0,"div",79),m(1),d()),2&i){const t=g(3);p(1),Ae(t.summary)}}const Rye=function(i){return{width:i}};function Oye(i,e){if(1&i&&(c(0,"div"),m(1),c(2,"div",85),B(3,"div",86),d()()),2&i){const t=g(4);p(1),$e(" ",t.fileNameOrStatus," "),p(2),h("ngStyle",bt(2,Rye,t.uploader.progress+"%"))}}const Lye=function(i){return{"nv-file-over":i}};function Nye(i,e){if(1&i){const t=re();c(0,"div",80)(1,"span",81),P("fileOver",function(r){return E(t),I(g(3).fileOverBase(r))}),B(2,"i",82),d(),c(3,"span",83)(4,"span"),m(5,"Select File"),d(),B(6,"input",84),d(),b(7,Oye,4,4,"div",1),d()}if(2&i){const t=g(3);p(1),h("ngClass",bt(4,Lye,t.hasBaseDropZoneOver))("uploader",t.uploader),p(5),h("uploader",t.uploader),p(1),h("ngIf",t.fileNameOrStatus)}}function Bye(i,e){if(1&i&&(c(0,"div",103),B(1,"i",104),c(2,"span"),m(3),d()()),2&i){const t=g(4);p(3),Ae(t.jsonImportError)}}function Vye(i,e){if(1&i){const t=re();c(0,"div",87)(1,"div",88)(2,"div")(3,"div",89),m(4,"AI JSON Import"),d(),c(5,"h4"),m(6,"Generate and Paste JSON"),d()(),c(7,"button",90),P("click",function(){return E(t),I(g(3).isJsonImporting=!1)}),B(8,"i",91),d()(),c(9,"p",92),m(10," Copy the AI prompt, paste it into an AI chat, then paste the generated JSON object back here. "),d(),c(11,"div",93)(12,"section",94)(13,"div",95)(14,"div")(15,"div",89),m(16,"Step 1"),d(),c(17,"h5"),m(18,"AI Prompt"),d()(),c(19,"button",10),P("click",function(){return E(t),I(g(3).copyAiFormFillPrompt())}),B(20,"i",96),c(21,"span"),m(22),d()()(),B(23,"textarea",97),d(),c(24,"section",94)(25,"div",95)(26,"div")(27,"div",89),m(28,"Step 2"),d(),c(29,"h5"),m(30,"Paste JSON Result"),d()()(),c(31,"textarea",98),P("ngModelChange",function(r){return E(t),I(g(3).jsonImportText=r)}),d()()(),b(32,Bye,4,1,"div",99),c(33,"div",100)(34,"button",53),P("click",function(){return E(t),I(g(3).applyJsonTextToForm())}),B(35,"i",101),c(36,"span"),m(37,"Apply JSON"),d()(),c(38,"button",10),P("click",function(){return E(t),I(g(3).clearJsonImportText())}),B(39,"i",102),c(40,"span"),m(41,"Clear JSON"),d()(),c(42,"button",10),P("click",function(){return E(t),I(g(3).isJsonImporting=!1)}),B(43,"i",91),c(44,"span"),m(45,"Cancel"),d()()()()}if(2&i){const t=g(3);p(22),Ae(t.aiFormFillPromptCopied?"Copied":"Copy Prompt"),p(1),h("value",t.aiFormFillPromptText),p(8),h("ngModel",t.jsonImportText),p(1),h("ngIf",t.jsonImportError)}}function $ye(i,e){if(1&i){const t=re();c(0,"button",110),P("click",function(){return E(t),I(g(5).activeFormColumn="bottom")}),m(1," Details "),d()}2&i&&St("active","bottom"===g(5).activeFormColumn)}function Hye(i,e){if(1&i){const t=re();c(0,"div",109)(1,"button",110),P("click",function(){return E(t),I(g(4).activeFormColumn="main")}),m(2," Main "),d(),c(3,"button",110),P("click",function(){return E(t),I(g(4).activeFormColumn="related")}),m(4," Related "),d(),b(5,$ye,2,2,"button",111),d()}if(2&i){const t=g(4);p(1),St("active","main"===t.activeFormColumn),p(2),St("active","related"===t.activeFormColumn),p(2),h("ngIf",t.hasBottomFields)}}function Uye(i,e){if(1&i&&B(0,"app-form-field",117),2&i){const t=e.$implicit,n=g(5);h("field",t)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function jye(i,e){if(1&i&&B(0,"app-form-field",118),2&i){const t=e.$implicit,n=g(5);h("field",t)("model",n.model)("form",n.form)("host",n)("view",n.view)}}function Yye(i,e){if(1&i&&B(0,"app-form-field",118),2&i){const t=e.$implicit,n=g(5);h("field",t)("model",n.model)("form",n.form)("host",n)("view",n.view)}}function zye(i,e){if(1&i&&(c(0,"div",112)(1,"div",113),b(2,Uye,1,5,"app-form-field",114),ki(3,1,["style","display:inline"]),d(),c(4,"div",113),b(5,jye,1,5,"app-form-field",115),ki(6,2,["style","display:inline"]),d(),c(7,"div",116),b(8,Yye,1,5,"app-form-field",115),d()()),2&i){const t=g(4);p(2),h("ngForOf",t.fields),p(3),h("ngForOf",t.fieldsCol2),p(3),h("ngForOf",t.fieldsBottom)}}function Wye(i,e){if(1&i&&B(0,"app-form-field",117),2&i){const t=e.$implicit,n=g(6);h("field",t)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function qye(i,e){if(1&i&&(c(0,"div"),b(1,Wye,1,5,"app-form-field",114),ki(2,3,["style","display:inline"]),d()),2&i){const t=g(5);p(1),h("ngForOf",t.fields)}}function Gye(i,e){if(1&i&&B(0,"app-form-field",118),2&i){const t=e.$implicit,n=g(6);h("field",t)("model",n.model)("form",n.form)("host",n)("view",n.view)}}function Kye(i,e){if(1&i&&(c(0,"div"),b(1,Gye,1,5,"app-form-field",115),ki(2,4,["style","display:inline"]),d()),2&i){const t=g(5);p(1),h("ngForOf",t.fieldsCol2)}}function Qye(i,e){if(1&i&&B(0,"app-form-field",118),2&i){const t=e.$implicit,n=g(6);h("field",t)("model",n.model)("form",n.form)("host",n)("view",n.view)}}function Zye(i,e){if(1&i&&(c(0,"div"),b(1,Qye,1,5,"app-form-field",115),d()),2&i){const t=g(5);p(1),h("ngForOf",t.fieldsBottom)}}function Xye(i,e){if(1&i&&(c(0,"div",119),b(1,qye,3,1,"div",1),b(2,Kye,3,1,"div",1),b(3,Zye,2,1,"div",1),d()),2&i){const t=g(4);p(1),h("ngIf","main"===t.activeFormColumn),p(1),h("ngIf","related"===t.activeFormColumn),p(1),h("ngIf","bottom"===t.activeFormColumn)}}function Jye(i,e){if(1&i&&B(0,"app-form-field",117),2&i){const t=e.$implicit,n=g(5);h("field",t)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function e1e(i,e){if(1&i&&B(0,"app-form-field",122),2&i){const t=e.$implicit,n=g(5);h("field",t)("model",n.model)("host",n)("form",n.form)("view",n.view)}}function t1e(i,e){if(1&i&&(c(0,"div",120),b(1,Jye,1,5,"app-form-field",114),ki(2,5,["style","display:inline"]),b(3,e1e,1,5,"app-form-field",121),d()),2&i){const t=g(4);p(1),h("ngForOf",t.fields),p(2),h("ngForOf",t.fieldsBottom)}}function n1e(i,e){if(1&i&&B(0,"app-form-field",117),2&i){const t=e.$implicit,n=g(5);h("field",t)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function i1e(i,e){if(1&i&&(c(0,"div"),b(1,n1e,1,5,"app-form-field",114),d()),2&i){const t=g(4);p(1),h("ngForOf",t.fieldsSimple)}}function r1e(i,e){if(1&i&&(c(0,"div"),b(1,Hye,6,5,"div",105),b(2,zye,9,3,"div",106),b(3,Xye,4,3,"div",107),b(4,t1e,4,2,"div",108),b(5,i1e,2,1,"div",1),d()),2&i){const t=g(3);p(1),h("ngIf",t.hasColumnTabs),p(1),h("ngIf",t.fieldsCol2&&!t.showSimpleView&&!t.hasColumnTabs),p(1),h("ngIf",t.hasColumnTabs),p(1),h("ngIf",!t.fieldsCol2&&!t.showSimpleView),p(1),h("ngIf",t.showSimpleView)}}function o1e(i,e){if(1&i&&(c(0,"div",72)(1,"div",73,74),B(3,"div",75),b(4,Fye,2,1,"div",76),ki(5),b(6,Nye,8,6,"div",77),b(7,Vye,46,4,"div",78),b(8,r1e,6,5,"div",1),d()()),2&i){const t=g(2);p(4),h("ngIf",t.summary),p(2),h("ngIf",t.uploader&&t.isImporting),p(1),h("ngIf",t.isJsonImporting),p(1),h("ngIf",!t.isImporting&&!t.isJsonImporting&&t.editorVisible)}}function a1e(i,e){if(1&i){const t=re();c(0,"div",64),P("cancel",function(r){return E(t),I(g().weGotACancel(r))}),b(1,Eye,3,1,"div",65),b(2,Pye,3,2,"div",66),b(3,o1e,9,4,"div",67),d()}if(2&i){const t=g();p(1),h("ngIf",t.inPlaceEditing),p(1),h("ngIf",(null==t.form?null:t.form.isEditing)&&!(null!=t.model&&t.model.isDraft)&&t.appServices.isDesktop()),p(1),h("ngIf",!t.hideToolBar)}}function s1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).addFavorite())}),B(1,"i",47),d()}}function l1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).clearFavorite())}),B(1,"i",48),d()}}function c1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).toggleAdvancedFields())}),B(1,"i",51),m(2,"Standard Fields"),d()}}function d1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).toggleAdvancedFields())}),B(1,"i",51),m(2,"Advanced Fields"),d()}}function u1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){E(t);const r=g().$implicit;return I(g(3).performAction(r))}),B(1,"i"),m(2),d()}if(2&i){const t=g().$implicit;p(1),Cl("fa-solid ",t.icon,""),p(1),Ae(t.title)}}function p1e(i,e){if(1&i&&(c(0,"span",128),b(1,u1e,3,4,"span",20),d()),2&i){const t=e.$implicit,n=g(3);p(1),h("ngIf",n.isEditing&&t.forEdit||!n.isEditing&&t.forCreate)}}function h1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).saveForm(!0))}),B(1,"i",54),m(2,"Save and Close"),d()}}function g1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).saveForm(!1))}),B(1,"i",54),m(2,"Save"),d()}}function f1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).saveForm(!0))}),B(1,"i",54),m(2,"Save"),d()}}function m1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).exportForm())}),B(1,"i",59),m(2,"Export"),d()}}function _1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).importForm())}),B(1,"i",60),m(2,"Import"),d()}}function v1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){E(t);const r=g(3);return I(r.editorVisible=!r.editorVisible)}),B(1,"i",62),m(2,"Edit"),d()}}function y1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){E(t);const r=g(3);return I(r.editorVisible=!r.editorVisible)}),B(1,"i",63),m(2,"Close"),d()}}function b1e(i,e){if(1&i){const t=re();c(0,"div")(1,"div",125)(2,"h1")(3,"i",16),P("click",function(){return E(t),I(g(2).cancelForm())}),d(),c(4,"span",22),B(5,"span",23)(6,"span",24)(7,"span",25)(8,"span",26)(9,"span",27)(10,"span",28)(11,"span",29)(12,"span",30)(13,"span",31)(14,"span",32)(15,"span",33)(16,"span",34)(17,"span",35)(18,"span",36)(19,"span",37)(20,"span",38)(21,"span",39)(22,"span",40)(23,"span",41)(24,"span",42)(25,"span",43)(26,"span",44),d(),c(27,"span",19),m(28),d(),b(29,s1e,2,0,"span",20),b(30,l1e,2,0,"span",20),d(),B(31,"hr"),c(32,"div",126),b(33,c1e,3,0,"span",20),b(34,d1e,3,0,"span",20),b(35,p1e,2,1,"span",127),b(36,h1e,3,0,"span",20),b(37,g1e,3,0,"span",20),b(38,f1e,3,0,"span",20),c(39,"span",46),P("click",function(){return E(t),I(g(2).showHelpDialog())}),B(40,"i",11),m(41,"Help"),d(),b(42,m1e,3,0,"span",20),b(43,_1e,3,0,"span",20),b(44,v1e,3,0,"span",20),b(45,y1e,3,0,"span",20),d()()()}if(2&i){const t=g(2);p(4),h("className",t.formIcon),p(24),$e(" ",t.title," "),p(1),h("ngIf",!t.favorite&&t.isEditing),p(1),h("ngIf",t.favorite&&t.isEditing),p(3),h("ngIf",t.advancedFieldsVisible&&t.hasAdvancedFields),p(1),h("ngIf",!t.advancedFieldsVisible&&t.hasAdvancedFields),p(1),h("ngForOf",t.additionalActions),p(1),h("ngIf",t.allowSaveWithOutClose),p(1),h("ngIf",t.allowSaveWithOutClose),p(1),h("ngIf",!t.allowSaveWithOutClose),p(4),h("ngIf",t.isEditing&&(t.canExport||t.exportObjectName)),p(1),h("ngIf",t.importObjectName),p(1),h("ngIf",t.toggleEditorVisibility&&!t.editorVisible),p(1),h("ngIf",t.toggleEditorVisibility&&t.editorVisible)}}function C1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).saveForm(!0))}),B(1,"i",54),m(2,"Save and Close"),d()}}function w1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).saveForm(!1))}),B(1,"i",54),m(2,"Save"),d()}}function x1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){return E(t),I(g(3).saveForm(!0))}),B(1,"i",54),m(2,"Save"),d()}}function k1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){E(t);const r=g(3);return I(r.editorVisible=!r.editorVisible)}),B(1,"i",62),m(2,"Edit"),d()}}function M1e(i,e){if(1&i){const t=re();c(0,"span",46),P("click",function(){E(t);const r=g(3);return I(r.editorVisible=!r.editorVisible)}),B(1,"i",63),m(2,"Close"),d()}}function D1e(i,e){if(1&i){const t=re();c(0,"div",129)(1,"div",126),b(2,C1e,3,0,"span",20),b(3,w1e,3,0,"span",20),b(4,x1e,3,0,"span",20),c(5,"span",46),P("click",function(){return E(t),I(g(2).cancelForm())}),B(6,"i",57),m(7,"Cancel"),d(),c(8,"span",46),P("click",function(){return E(t),I(g(2).showHelpDialog())}),B(9,"i",11),m(10,"Help"),d(),b(11,k1e,3,0,"span",20),b(12,M1e,3,0,"span",20),d()()}if(2&i){const t=g(2);p(2),h("ngIf",t.allowSaveWithOutClose),p(1),h("ngIf",t.allowSaveWithOutClose),p(1),h("ngIf",!t.allowSaveWithOutClose),p(7),h("ngIf",t.toggleEditorVisibility&&!t.editorVisible),p(1),h("ngIf",t.toggleEditorVisibility&&t.editorVisible)}}function T1e(i,e){if(1&i&&B(0,"app-name",71),2&i){const t=g(3);h("field",t.view.name)("model",t.model)("view",t.view)}}function S1e(i,e){if(1&i&&B(0,"app-key",71),2&i){const t=g(3);h("field",t.view.key)("model",t.model)("view",t.view)}}function E1e(i,e){if(1&i&&(c(0,"div",69),b(1,T1e,1,3,"app-name",70),b(2,S1e,1,3,"app-key",70),d()),2&i){const t=g(2);p(1),h("ngIf",t.view.name),p(1),h("ngIf",t.view.key&&t.view.key.value)}}function I1e(i,e){if(1&i&&(c(0,"div",123),b(1,b1e,46,14,"div",1),b(2,D1e,13,5,"div",124),b(3,E1e,3,2,"div",66),d()),2&i){const t=g();p(1),h("ngIf",!t.inPlaceEditing&&!t.toggleEditorVisibility),p(1),h("ngIf",t.inPlaceEditing),p(1),h("ngIf",(null==t.form?null:t.form.isEditing)&&!t.model.isDraft&&t.appServices.isDesktop())}}function A1e(i,e){if(1&i&&B(0,"app-form-field",132),2&i){const t=e.$implicit,n=g(2);h("form",n.form)("host",n)("field",t)("model",n.model)("view",n.view)}}function P1e(i,e){if(1&i&&(c(0,"div",130),b(1,A1e,1,5,"app-form-field",131),ki(2,6,["style","display:inline"]),d()),2&i){const t=g();p(1),h("ngForOf",t.fields)}}const F1e=[[["header"]],[["","id","col1-extras"]],[["","id","col2-extras"]],[["","id","col1-extras"]],[["","id","col2-extras"]],[["","id","extras"]],[["","id","col1-extras"]]],R1e=["header","#col1-extras","#col2-extras","#col1-extras","#col2-extras","#extras","#col1-extras"];class Ol extends Pv{ngZone;changeDetector;constructor(e,t,n,r,o,a,s,l,u,f,v){super(e,t,n,r,o,a,s,l,u),this.ngZone=f,this.changeDetector=v}weGotACancel(e){e.stopPropagation(),console.log("Cancel intercepted",console.log(e))}formContent;formTabsBreakpoint=900;formResizeObserver;activeFormColumn="main";useColumnTabs=!1;get hasColumnTabs(){return this.useColumnTabs&&!!this.fieldsCol2&&this.fieldsCol2.length>0&&!this.showSimpleView}get hasBottomFields(){return!!this.fieldsBottom&&this.fieldsBottom.length>0}onWindowResize(){this.updateColumnTabMode()}updateColumnTabMode(){const e=this.formContent?.nativeElement?.clientWidth||window.innerWidth;this.useColumnTabs=e<=this.formTabsBreakpoint,this.hasColumnTabs||(this.activeFormColumn="main"),console.log("form width",e,"useColumnTabs",this.useColumnTabs)}viewReady(){super.viewReady(),console.log("form view ready",this.form.model?.name),this.formContent&&!this.formResizeObserver&&(this.formResizeObserver=new ResizeObserver(()=>{this.ngZone.run(()=>{console.log(this.form.model.name),this.updateColumnTabMode(),this.changeDetector.detectChanges()})}),this.formResizeObserver.observe(this.formContent.nativeElement)),console.log("updating two column form view ready")}lagoVistaIconPrefix="lago-icon://";generatedIconBaseUrl="https://lagoicons.blob.core.windows.net/lagovistaicons";generatedIconVersion="v1";generatedIconSize=48;isFormImageIcon(){return this.isAbsoluteImageUrl(this.formIcon)||this.isLagoVistaIconReference(this.formIcon)}getFormImageIconUrl(){return this.isAbsoluteImageUrl(this.formIcon)?this.formIcon:this.isLagoVistaIconReference(this.formIcon)?this.resolveLagoVistaIconUrl(this.formIcon):""}isAbsoluteImageUrl(e){return e?.startsWith("http://")||e?.startsWith("https://")}isLagoVistaIconReference(e){return e?.startsWith(this.lagoVistaIconPrefix)}resolveLagoVistaIconUrl(e){const n=e.substring(this.lagoVistaIconPrefix.length).split("/").filter(l=>l&&l.trim().length>0);return n.length<3?"":`${this.generatedIconBaseUrl}/${n[0]}/${n[1]}/${n[2]}/${n.length>3?n[3]:this.generatedIconVersion}/icon-${this.generatedIconSize}.webp`}static \u0275fac=function(t){return new(t||Ol)(H(hn),H(mi),H(_i),H(zd),H(Ic),H(Ac),H(Sl),H(Pn),H(kp),H($t),H(oi))};static \u0275cmp=Oe({type:Ol,selectors:[["app-form"]],viewQuery:function(t,n){if(1&t&&Wt(iye,5),2&t){let r;ut(r=pt())&&(n.formContent=r.first)}},hostBindings:function(t,n){1&t&&P("resize",function(){return n.onWindowResize()},0,wM)},features:[it],ngContentSelectors:R1e,decls:28,vars:19,consts:[[1,"form-surface"],[4,"ngIf"],[1,"form-surface__command-wrap"],[1,"form-command-bar"],[1,"form-command-bar__labels"],[3,"model","title",4,"ngIf"],["aria-label","Form actions",1,"form-command-bar__actions"],["class","form-command-bar__action","type","button",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],["class","form-command-bar__action form-command-bar__action--primary","type","button",3,"click",4,"ngIf"],["type","button",1,"form-command-bar__action",3,"click"],[1,"fa-solid","fa-question"],["class","panel 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"],[2,"margin-left","20px","margin-top","5px"],[1,"action","fa","fa-chevron-left",2,"cursor","pointer","font-size","32px",3,"click"],["data-toggle","modal","style","cursor:pointer;font-size: 32px;",3,"className",4,"ngIf"],["class","form-icon-image","data-toggle","modal","alt","Selected icon","style","cursor:pointer;width:48px;height:48px;object-fit:contain;vertical-align:middle;",3,"src",4,"ngIf"],[2,"color","var(--color-primary-80)"],["class","action",3,"click",4,"ngIf"],["class","draft",4,"ngIf"],["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"],["data-toggle","modal","alt","Selected icon",1,"form-icon-image",2,"cursor","pointer","width","48px","height","48px","object-fit","contain","vertical-align","middle",3,"src"],[1,"action",3,"click"],[1,"far","fa-star","action-favorite"],[1,"fa","fa-star","action-favorite"],[1,"draft"],[3,"model","title"],[1,"fa","fa-gear"],[1,"fa-solid","fa-lock"],["type","button",1,"form-command-bar__action","form-command-bar__action--primary",3,"click"],[1,"fa-solid","fa-save"],["class","form-command-bar__dirty",4,"ngIf"],[1,"form-command-bar__dirty"],[1,"fa-solid","fa-times-circle"],[1,"fa-solid","fa-comments"],[1,"fa","fa-download"],[1,"fa","fa-upload"],[1,"fa","fa-file-code"],[1,"fa-solid","fa-pencil"],[1,"fa-solid","fa-close"],[1,"panel","full-view",3,"cancel"],["style","padding-top:10px;display:flex",4,"ngIf"],["style","margin-left: 20px;",4,"ngIf"],["class","panel-header full-view",4,"ngIf"],[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%)"],["formContent",""],[2,"clear","both"],["style","margin-bottom:15px",4,"ngIf"],["style","height:120px",4,"ngIf"],["class","json-import-panel",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"],[1,"json-import-panel"],[1,"json-import-panel__header"],[1,"json-import-panel__eyebrow"],["type","button",1,"json-import-panel__close",3,"click"],[1,"fa-solid","fa-times"],[1,"json-import-panel__hint"],[1,"json-import-panel__grid"],[1,"json-import-panel__card"],[1,"json-import-panel__card-header"],[1,"fa-solid","fa-copy"],["readonly","","spellcheck","false",1,"json-import-panel__textarea","json-import-panel__textarea--prompt",3,"value"],["spellcheck","false","placeholder",'{ "name": "Example", "description": "Imported from pasted JSON" }',1,"json-import-panel__textarea",3,"ngModel","ngModelChange"],["class","json-import-panel__error",4,"ngIf"],[1,"json-import-panel__actions"],[1,"fa-solid","fa-check"],[1,"fa-solid","fa-eraser"],[1,"json-import-panel__error"],[1,"fa-solid","fa-triangle-exclamation"],["class","form-column-tabs",4,"ngIf"],["class","form-layout form-layout--two-column",4,"ngIf"],["class","form-layout form-layout--tabbed",4,"ngIf"],["class","col-md-12",4,"ngIf"],[1,"form-column-tabs"],["type","button",1,"form-column-tabs__tab",3,"click"],["type","button","class","form-column-tabs__tab",3,"active","click",4,"ngIf"],[1,"form-layout","form-layout--two-column"],[1,"form-layout__column"],[3,"field","model","view","form","host",4,"ngFor","ngForOf"],[3,"field","model","form","host","view",4,"ngFor","ngForOf"],[1,"form-layout__bottom"],[3,"field","model","view","form","host"],[3,"field","model","form","host","view"],[1,"form-layout","form-layout--tabbed"],[1,"col-md-12"],[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"],[1,"panel-actions"],["class","action",4,"ngFor","ngForOf"],[1,"action"],[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(t,n){1&t&&(ho(F1e),c(0,"section",0),b(1,dye,12,7,"div",1),c(2,"div",2)(3,"header",3)(4,"div",4),b(5,uye,1,2,"nuvos-entity-labels",5),d(),c(6,"nav",6),b(7,pye,4,0,"button",7),b(8,hye,4,0,"button",7),b(9,fye,2,1,"ng-container",8),b(10,mye,4,0,"button",7),b(11,_ye,4,0,"button",9),b(12,yye,5,1,"button",7),b(13,Cye,5,1,"button",9),b(14,wye,4,0,"button",7),c(15,"button",10),P("click",function(){return n.showHelpDialog()}),B(16,"i",11),c(17,"span"),m(18,"Help"),d()(),b(19,xye,4,1,"button",7),b(20,kye,4,0,"button",7),b(21,Mye,4,0,"button",7),b(22,Dye,4,0,"button",7),b(23,Tye,4,0,"button",7),b(24,Sye,4,0,"button",7),d()()(),b(25,a1e,4,3,"div",12),b(26,I1e,4,3,"div",13),b(27,P1e,3,1,"div",14),d()),2&t&&(p(1),h("ngIf",!n.inPlaceEditing&&!n.toggleEditorVisibility),p(4),h("ngIf",n.labeledModel),p(2),h("ngIf",n.advancedFieldsVisible&&n.hasAdvancedFields),p(1),h("ngIf",!n.advancedFieldsVisible&&n.hasAdvancedFields),p(1),h("ngForOf",n.additionalActions),p(1),h("ngIf",n.allowSaveWithOutClose),p(1),h("ngIf",n.allowSaveWithOutClose),p(1),h("ngIf",n.allowSaveWithOutClose),p(1),h("ngIf",!n.allowSaveWithOutClose),p(1),h("ngIf",n.inPlaceEditing),p(5),h("ngIf",null==n.form?null:n.form.hasDiscussions),p(1),h("ngIf",n.isEditing&&(n.canExport||n.exportObjectName)),p(1),h("ngIf",n.importObjectName||n.canImport),p(1),h("ngIf",n.canImportJson),p(1),h("ngIf",n.toggleEditorVisibility&&!n.editorVisible),p(1),h("ngIf",n.toggleEditorVisibility&&n.editorVisible),p(1),h("ngIf",n.fields),p(1),h("ngIf",n.fields),p(1),h("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(--color-accent);--color-fg-panel-link-active: 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}.form-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1fr);gap:24px;margin:8px 20px 24px;align-items:start}.form-column-tabs[_ngcontent-%COMP%]{display:flex;gap:8px;margin:8px 20px 12px;border-bottom:1px solid #d7dce2}.form-column-tabs__tab[_ngcontent-%COMP%]{border:0;background:transparent;padding:8px 12px;cursor:pointer;color:var(--color-primary-80);font-weight:600}.form-column-tabs__tab.active[_ngcontent-%COMP%]{border-bottom:3px solid var(--color-primary-80)}.form-layout[_ngcontent-%COMP%]{margin:8px 20px 24px}.form-layout--two-column[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1fr);gap:24px;align-items:start}.form-layout--tabbed[_ngcontent-%COMP%]{display:block}.form-layout__bottom[_ngcontent-%COMP%]{grid-column:1/-1}.form-surface[_ngcontent-%COMP%]{background:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:.75rem;box-shadow:0 1px 4px var(--color-shadow-panel);margin:.75rem 1rem 1.5rem;overflow:hidden}.form-surface__hero[_ngcontent-%COMP%]{background:var(--color-bg-panel);padding:1rem 1.25rem .85rem;border-bottom:1px solid var(--color-border-panel)}.form-surface__hero-title[_ngcontent-%COMP%]{color:var(--color-primary-heading);font-size:1.5rem;font-weight:700;line-height:1.2;margin:0}.form-surface__hero-subtitle[_ngcontent-%COMP%]{color:var(--color-fg);margin-top:.5rem}.form-surface__command-wrap[_ngcontent-%COMP%]{background:var(--color-bg-panel);position:sticky;top:30px;z-index:50;box-shadow:0 1px 2px #0000000f;border-bottom:1px solid var(--color-border-panel)}.form-command-bar[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:2.25rem;padding:.35rem 1.25rem;background:var(--color-bg-panel)}.form-surface__body[_ngcontent-%COMP%]{padding:1rem 1.25rem 1.25rem}.json-import-panel[_ngcontent-%COMP%]{margin:0 0 1rem;padding:1rem;border:1px solid var(--color-border, rgba(255, 255, 255, .16));border-radius:12px;background:var(--color-surface-raised, rgba(255, 255, 255, .04));box-shadow:0 12px 28px #0000001f}.json-import-panel__header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.json-import-panel__header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;color:var(--color-fg, inherit)}.json-import-panel__eyebrow[_ngcontent-%COMP%]{margin-bottom:.25rem;color:var(--color-primary-80);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.json-import-panel__close[_ngcontent-%COMP%]{border:0;background:transparent;color:var(--color-fg-muted, inherit);cursor:pointer}.json-import-panel__hint[_ngcontent-%COMP%]{margin:.75rem 0;color:var(--color-fg-muted, inherit)}.json-import-panel__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.json-import-panel__card[_ngcontent-%COMP%]{min-width:0;padding:.875rem;border:1px solid var(--color-border, rgba(255, 255, 255, .14));border-radius:12px;background:var(--color-surface, rgba(0, 0, 0, .08))}.json-import-panel__card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.json-import-panel__card-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;color:var(--color-fg, inherit)}.json-import-panel__textarea[_ngcontent-%COMP%]{width:100%;min-height:300px;padding:.875rem;border:1px solid var(--color-border, rgba(255, 255, 255, .16));border-radius:10px;background:var(--color-surface, rgba(0, 0, 0, .14));color:var(--color-fg, inherit);font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;line-height:1.45;resize:vertical}.json-import-panel__textarea--prompt[_ngcontent-%COMP%]{min-height:420px;color:var(--color-fg-muted, inherit)}.json-import-panel__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-top:.75rem;padding:.75rem;border:1px solid var(--color-danger-40, rgba(255, 80, 80, .45));border-radius:10px;background:var(--color-danger-10, rgba(255, 80, 80, .12));color:var(--color-danger-90, #ffb3b3)}.json-import-panel__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}@media screen and (max-width: 900px){.json-import-panel__grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.json-import-panel__textarea[_ngcontent-%COMP%]{min-height:240px}.json-import-panel__textarea--prompt[_ngcontent-%COMP%]{min-height:320px}}"]})}function O1e(i,e){1&i&&B(0,"nuv-icon",9),2&i&&h("iconName",g(2).icon)}function L1e(i,e){1&i&&B(0,"i",12)}function N1e(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g(2).addItems())}),b(1,L1e,1,0,"i",11),d()}if(2&i){const t=g(2);p(1),h("ngIf",t.canAdd())}}function B1e(i,e){if(1&i&&(c(0,"div",16),B(1,"img",17)(2,"br"),c(3,"div"),m(4,"Please Wait"),d()()),2&i){const t=g(3);p(1),Ss("src","",t.root,"/app/ui-shared/assets/ajax-loader.gif",gi)}}function V1e(i,e){if(1&i&&(c(0,"option",26),m(1),d()),2&i){const t=e.$implicit;h("value",t.id),p(1),Ae(t.text)}}function $1e(i,e){if(1&i){const t=re();c(0,"div",3)(1,"select",23),P("ngModelChange",function(r){return E(t),I(g(4).selectedCategory=r)})("change",function(){return E(t),I(g(4).filterByCategory())}),c(2,"option",24),m(3,"All"),d(),b(4,V1e,2,2,"option",25),d()()}if(2&i){const t=g(4);p(1),h("ngModel",t.selectedCategory),p(3),h("ngForOf",t.categories)}}function H1e(i,e){if(1&i){const t=re();c(0,"li",30),P("click",function(){const o=E(t).$implicit;return I(g(5).itemSelectedEvent(o))}),m(1),d()}if(2&i){const t=e.$implicit;p(1),$e(" ",t.text," ")}}function U1e(i,e){if(1&i&&(c(0,"div",27)(1,"ol",28),b(2,H1e,2,1,"li",29),d()()),2&i){const t=g(4);p(2),h("ngForOf",t.filteredItems)}}function j1e(i,e){if(1&i&&(c(0,"option",34),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t),p(1),Ae(t.text)}}function Y1e(i,e){if(1&i&&(c(0,"option",34),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t),p(1),Ae(t.text)}}function z1e(i,e){if(1&i){const t=re();c(0,"div",31)(1,"div",32)(2,"h6"),m(3),d(),c(4,"select",23),P("ngModelChange",function(r){return E(t),I(g(4).selectedItem=r)})("change",function(r){return E(t),I(g(4).itemSelectedEvent(r))}),b(5,j1e,2,2,"option",33),d()(),c(6,"div",32)(7,"h6"),m(8),d(),c(9,"select",23),P("ngModelChange",function(r){return E(t),I(g(4).secondItemSelectedItem=r)})("change",function(r){return E(t),I(g(4).secondItemSelected(r))}),b(10,Y1e,2,2,"option",33),d()()()}if(2&i){const t=g(4);p(3),Ae(t.categoryName),p(1),h("ngModel",t.selectedItem),p(1),h("ngForOf",t.items),p(3),Ae(t.valueName),p(1),h("ngModel",t.secondItemSelectedItem),p(1),h("ngForOf",t.secondItems)}}function W1e(i,e){if(1&i){const t=re();c(0,"div")(1,"div",18),b(2,$1e,5,2,"div",19),c(3,"div",3)(4,"input",20),P("ngModelChange",function(r){return E(t),I(g(3).searchText=r)})("change",function(){return E(t),I(g(3).applyFilter())}),d()()(),b(5,U1e,3,1,"div",21),b(6,z1e,11,6,"div",22),d()}if(2&i){const t=g(3);p(2),h("ngIf",!0),p(2),K1("margin-left:10px;width: 400px; background-image: url('",t.root,"/app/ui-shared/assets/search.png'); background-repeat: no-repeat; background-position: 6px 50%; padding: 7px 8.75px 7px 42px;"),h("ngModel",t.searchText),p(1),h("ngIf",!t.multiPick),p(1),h("ngIf",t.multiPick)}}function q1e(i,e){1&i&&(c(0,"div",35)(1,"h5"),m(2,"There are no items to select from."),d(),m(3," Use the button below to add to the list. "),d())}function G1e(i,e){if(1&i&&(c(0,"div",36)(1,"h5"),m(2,"Sorry can not select right now"),d(),m(3),d()),2&i){const t=g(3);p(3),$e(" ",t.errorMsg," ")}}function K1e(i,e){if(1&i&&(c(0,"div"),b(1,B1e,5,1,"div",13),b(2,W1e,7,7,"div",7),b(3,q1e,4,0,"div",14),b(4,G1e,4,1,"div",15),d()),2&i){const t=g(2);p(1),h("ngIf",!t.items&&!t.errorMsg),p(1),h("ngIf",t.items&&t.items.length>0&&!t.errorMsg),p(1),h("ngIf",t.items&&0===t.items.length),p(1),h("ngIf",t.errorMsg)}}function Q1e(i,e){if(1&i){const t=re();c(0,"div",37)(1,"app-form",38),P("cancel",function(){return E(t),I(g(2).resetModal())})("saved",function(){return E(t),I(g(2).savedItem())}),d()()}if(2&i){const t=g(2);p(1),h("form",t.form)("inPlaceEditing",!0)("autoSave",!0)}}function Z1e(i,e){if(1&i){const t=re();c(0,"div",1)(1,"div",2)(2,"h3",3),b(3,O1e,1,1,"nuv-icon",4),m(4),b(5,N1e,2,1,"span",5),d(),c(6,"i",6),P("click",function(){return E(t),I(g().closeModal())}),d()(),b(7,K1e,5,4,"div",7),b(8,Q1e,2,3,"div",8),d()}if(2&i){const t=g();p(3),h("ngIf",t.icon),p(1),$e(" ",t.title," "),p(1),h("ngIf",!t.form),p(2),h("ngIf",!t.form),p(1),h("ngIf",t.form)}}class ct{businessService;pmService;deviceServices;deploymentService;fsliteService;messagingService;productService;simulatorService;reportingService;pipelineService;adminService;nuviotClientService;activeModal;itemSelected=new Ie;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="-1";title;title_hold;pickerType;entityHeaderPickerUrl;factoryUrl;parentId;model;view;root;multiPick=!1;errorMsg=void 0;childForm;form;parentForm;targetField;urls;_searchText;set searchText(e){this._searchText=e,this.applyFilter()}get searchText(){return this._searchText}static _extras=[];static getExtra(e){let t=this._extras.find(n=>n.extraType==e);if(!t)throw console.log(this._extras),`Could not find registered extra: ${e}.`;return t}static registerExtra(e,t){console.log("register extra");let n=this._extras.find(r=>r.extraType==e);t?n?t.extra=t:this._extras.push({extra:t,extraType:e}):n&&this._extras.splice(this._extras.indexOf(n),1),console.log(this._extras)}constructor(e,t,n,r,o,a,s,l,u,f,v,D,A){this.businessService=e,this.pmService=t,this.deviceServices=n,this.deploymentService=r,this.fsliteService=o,this.messagingService=a,this.productService=s,this.simulatorService=l,this.reportingService=u,this.pipelineService=f,this.adminService=v,this.nuviotClientService=D,this.activeModal=A,ft.production&&(this.root=`/${ft.moduleRouteHome}`)}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_defaultPromptTokenProduct="defaultprompttokenproduct";static key_defaultCompletionTokenProduct="defaultcompletiontokenproduct";static key_defaultReviewPromptTokenProduct="defaultreviewprompttokenproduct";static key_defaultReviewCompletionTokenProduct="defaultreviewcompletiontokenproduct";static key_premiumImageGenerationProduct="premiumimagegenerationproduct";static key_standardImageGenerationProduct="standardimagegenerationproduct";static key_embeddingProduct="embeddingproduct";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 e=this;return O(function*(){e.setItems(!1)})()}addItems(){var e=this;return O(function*(){e.form=yield e.nuviotClientService.getFormResponse(e.urls.factory),e.title_hold=e.title,e.title=`Add ${e.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 e=this;return O(function*(){e.form=void 0,e.setItems(!0)})()}getDataForItems(e,t=!1){var n=this;return O(function*(){n.urls&&n.urls.entityHeaderPickerUrl&&(e=yield n.nuviotClientService.getListResponse(n.urls.entityHeaderPickerUrl),n.icon=e.icon),yield n.setItemsExec(e,t)})()}toCamelCase(e){return e.substring(0,1).toLowerCase()+e.substring(1)}setItems(e=!1){var t=this;return O(function*(){if(t.entityHeaderPickerUrl){let r=t.entityHeaderPickerUrl.match(/\{[A-Za-z\.]+\}/),o=t.entityHeaderPickerUrl;for(;r;){var n=r[0].replaceAll("{","").replaceAll("}","").split(".");console.log(n);for(let f=0;f1?u[t.toCamelCase(n[1])]:t.view[t.toCamelCase(n[0])].value,o=o.replace(r[0],t.parentId),r=o.match(/\{[A-Za-z\.]+\}/),console.log("now looking for",r,o)}let a={pageSize:1e3};"-1"!=t.selectedCategory&&(a.categoryKey=t.selectedCategory);let s=yield t.nuviotClientService.getListResponse(o,a);if(s.successful&&!t.categories){if(s.factoryUrl){let l=yield t.nuviotClientService.request(s.factoryUrl);if(l.successful){let u=l.modelName,f=yield t.adminService.getCategories(u.toLocaleLowerCase());t.categories=f.model.map(v=>({id:v.key,key:v.key,label:v.name,text:v.name}))||[]}}t.icon=s.icon,t.setUrls(s,e),0==s.model.length?(t.items=[],t.errorMsg="Sorry nothing is available, please add a record and try again."):s.model[0].text?t.items=s.model.map(l=>({id:l.id,key:l.key,text:l.text}))||[]:s.model[0].name?t.items=s.model.map(l=>({id:l.id,key:l.key,text:l.name}))||[]:t.errorMsg="System error: Could not finding mapping for text or name."+JSON.stringify(s.model[0])}}else if(t.pickerType){switch(t.pickerType.toLowerCase()){case ct.key_agreement:let o=t.view.customer?.value?.id;o?yield t.getDataForItems(yield t.businessService.getActiveAgreements(o),e):t.errorMsg="Please select a customer before selecting an agreement.";break;case ct.key_defaultRevision:0==t.model.revisions.length?t.errorMsg="Please add a firmware revision.":(t.items=t.model.revisions.map(f=>({id:f.id,text:f.versionCode}))||[],console.log("found items",t.items));break;case ct.key_gcodeOperationTool:let a=t.parentForm.parent.parent.model;0==a.tools.length?t.errorMsg="Please add a tool revision.":t.items=a.tools.map(f=>({id:f.id,text:f.name}))||[];break;case ct.key_customer:yield t.getDataForItems(yield t.businessService.getCustomers("active"),e);break;case ct.key_customerContact:const s=yield t.businessService.getCustomer(t.parentId);t.items=s.model.contacts.map(f=>({id:f.id,key:f.id.toLocaleLowerCase(),text:`${f.firstName} ${f.lastName}`}))||[];break;case ct.key_customField:(!t.items||0===t.items.length)&&alert("please set the 'items' attribute for this property.");break;case ct.key_deviceConfiguration:yield t.getDataForItems(yield t.deviceServices.getDeviceConfigurations(),e);break;case ct.key_deviceMessageDefinition:yield t.getDataForItems(yield t.messagingService.getMessages(),e);break;case ct.key_premiumImageGenerationProduct:case ct.key_standardImageGenerationProduct:case ct.key_defaultCompletionTokenProduct:case ct.key_defaultPromptTokenProduct:case ct.key_defaultReviewCompletionTokenProduct:case ct.key_defaultReviewPromptTokenProduct:case ct.key_embeddingProduct:case ct.key_product:case ct.key_sensor:yield t.getDataForItems(yield t.productService.getProductCategories(),e),t.multiPick=!0,t.categoryName="Product Category",t.valueName="Product";break;case ct.key_errorCode:case ct.key_highValueErrorCode:case ct.key_lowValueErrorCode:const l=yield t.deviceServices.getDeviceConfigurations();t.setItemsExec(l,e),l.successful&&(t.multiPick=t.items.length>0);break;case ct.key_firmware:case ct.key_qaFirmware:yield t.getDataForItems(yield t.deviceServices.getFirmwares(),e);break;case ct.key_qaFirmwareRevision:if(t.view.qaFirmware.value){const f=yield t.deviceServices.getFirmware(t.view.qaFirmware.value.id);f.successful&&(t.items=f.model.revisions.map(v=>({id:v.id,text:v.versionCode}))||[])}else t.errorMsg="Please select firmware before selecting a revision.";break;case ct.key_firmwareRevision:if(t.view.firmware.value){const f=yield t.deviceServices.getFirmware(t.view.firmware.value.id);f.successful&&(t.items=f.model.revisions.map(v=>({id:v.id,text:v.versionCode}))||[])}else t.errorMsg="Please select firmware before selecting a revision.";break;case ct.key_forState:{let f=ct.getExtra(ct.key_simulator).extra;t.items=f.simulatorStates.map(v=>({id:v.id,key:v.key,text:v.name}))}break;case ct.key_message:{let f=ct.getExtra(ct.key_simulator).extra;t.items=f.messageTemplates.map(v=>({id:v.id,key:v.key,text:v.name}))}break;case ct.key_pipelineModuleType_Custom:yield t.getDataForItems(yield t.pipelineService.getCustomModules(),e);break;case ct.key_pipelineModuleType_DataStream:yield t.getDataForItems(yield t.pipelineService.getDataStreams(),e);break;case ct.key_pipelineModuleType_InputTranslator:yield t.getDataForItems(yield t.pipelineService.getInputTranslators(),e);break;case ct.key_pipelineModuleType_OutputTranslator:yield t.getDataForItems(yield t.pipelineService.getOutputTranslators(),e);break;case ct.key_pipelineModuleType_Sentinel:yield t.getDataForItems(yield t.pipelineService.getSentinels(),e);break;case ct.key_pipelineModuleType_Transmitter:yield t.getDataForItems(yield t.pipelineService.getTransmitters(),e);break;case ct.key_pipelineModuleType_Workflow:yield t.getDataForItems(yield t.pipelineService.getWorkflows(),e);break;case ct.key_productPortfolio:yield t.getDataForItems(yield t.pmService.getProductPortfolios(),e);break;case ct.key_project:yield t.getDataForItems(yield t.pmService.getProjects(),e);break;case ct.key_report:yield t.getDataForItems(yield t.reportingService.getReports(),e);break;case ct.key_reportrevision:if(t.view.report.value){const f=yield t.reportingService.getReport(t.view.report.value.id);f.successful&&(t.items=f.model.revisions.map(v=>({id:v.id,text:v.versionCode}))||[])}else t.errorMsg="Please select firmware before selecting a revision.";break;case ct.key_serviceTicket:(!t.items||0===t.items.length)&&alert("please set the 'items' attribute for this property.");break;case ct.key_serviceTicketTemplate:const u={successful:!0,model:yield t.fsliteService.loadTemplates()};t.setItemsExec(u,e);break;case ct.key_stateSet:case ct.key_customStatusType:yield t.getDataForItems(yield t.pipelineService.getStateSets(),e);break;case ct.key_statusConfig:yield t.getDataForItems(yield t.pmService.getStatusConfigurations(),e);break;case ct.key_subscription:yield t.getDataForItems(yield t.deploymentService.GetSubscriptions(),e);break;case ct.key_unitSet:yield t.getDataForItems(yield t.pipelineService.getUnitSets(),e);break;case ct.key_preferredTag:t.items=t.model.tags.map(f=>({id:f.id,text:f.tag}))||[];break;case ct.key_selectListener:t.items=t.model.listeners.map(f=>({id:f.id,text:f.text}))||[],console.log(t.items),console.log(t.model)}t.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(e,t),n.filteredItems=n.items)})()}setUrls(e,t=!1){console.log(e,t),t||(this.urls={entityHeaderPickerUrl:this.entityHeaderPickerUrl,factory:e.factoryUrl,get:e.getUrl,getList:e.getListUrl}),console.log(this.urls)}itemSelectedEvent(e){var t=this;return O(function*(){switch(console.log(e,t.pickerType),t.pickerType.toLocaleLowerCase()){case ct.key_premiumImageGenerationProduct:case ct.key_standardImageGenerationProduct:case ct.key_defaultPromptTokenProduct:case ct.key_defaultCompletionTokenProduct:case ct.key_defaultReviewPromptTokenProduct:case ct.key_defaultReviewCompletionTokenProduct:case ct.key_embeddingProduct:case ct.key_sensor:case ct.key_product:t.secondItems=(yield t.productService.getProducts(t.selectedItem.id)).model.map(n=>({id:n.id,key:n.key,text:n.name}))||[];break;default:t.itemSelected.emit(e),t.activeModal.close()}})()}secondItemSelected(e){var t=this;return O(function*(){t.itemSelected.emit(t.secondItemSelectedItem),t.activeModal.close()})()}static supportsPicker(e){let n;switch(e.toLowerCase()){case ct.key_agreement:case ct.key_customer:case ct.key_customerContact:case ct.key_customField:case ct.key_customStatusType:case ct.key_defaultRevision:case ct.key_deviceConfiguration:case ct.key_deviceMessageDefinition:case ct.key_distroList:case ct.key_errorCode:case ct.key_firmware:case ct.key_firmwareRevision:case ct.key_forState:case ct.key_highValueErrorCode:case ct.key_lowValueErrorCode:case ct.key_message:case ct.key_productPortfolio:case ct.key_preferredTag:case ct.key_project:case ct.key_report:case ct.key_reportrevision:case ct.key_selectListener:case ct.key_serviceTicket:case ct.key_serviceTicketTemplate:case ct.key_simulator:case ct.key_stateSet:case ct.key_product:case ct.key_sensor:case ct.key_subscription:case ct.key_unitSet:case ct.key_defaultPromptTokenProduct:case ct.key_defaultCompletionTokenProduct:case ct.key_defaultReviewPromptTokenProduct:case ct.key_defaultReviewCompletionTokenProduct:case ct.key_premiumImageGenerationProduct:case ct.key_embeddingProduct:case ct.key_standardImageGenerationProduct:case ct.key_qaFirmware:case ct.key_qaFirmwareRevision:case ct.key_gcodeOperationTool:n=!0;break;default:n=!1}return n}filterByCategory(){this.setItems(!0)}applyFilter(){console.log(this.searchText,"<-filter"),this.filteredItems=this.searchText?this.items.filter(e=>e.text.toLocaleLowerCase().includes(this.searchText.toLocaleLowerCase())):this.items}static \u0275fac=function(t){return new(t||ct)(H(ca),H(xp),H(mp),H(_p),H(Tv),H(Sv),H(rp),H(Ev),H(Iv),H(Ag),H(ns),H(hn),H(ar))};static \u0275cmp=Oe({type:ct,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-select",3,"ngModel","ngModelChange","change"],["value","-1"],[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"],[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(t,n){1&t&&b(0,Z1e,9,5,"div",0),2&t&&h("ngIf",n.items)},dependencies:[Ol,es,Ot,rt,Mr,Dr,Dn,pr,en,qt],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 X1e(i,e){if(1&i&&(c(0,"option",9),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t),p(1),Ae(t.text)}}function J1e(i,e){if(1&i){const t=re();c(0,"div",6)(1,"label"),m(2),d(),c(3,"select",7),P("change",function(){return E(t),I(g().firstItemSelected())})("ngModelChange",function(r){return E(t),I(g().selectedFirstItem=r)}),b(4,X1e,2,2,"option",8),d()()}if(2&i){const t=g();p(2),Ae(t.firstLabel),p(1),h("ngModel",t.selectedFirstItem),p(1),h("ngForOf",t.firstItems)}}function e0e(i,e){if(1&i){const t=re();c(0,"input",16),P("click",function(){E(t);const r=g().$implicit;return I(g(3).secondItemSelected(r))}),d()}}function t0e(i,e){if(1&i){const t=re();c(0,"input",17),P("ngModelChange",function(r){return E(t),I(g().$implicit.isSelected=r)}),d()}2&i&&h("ngModel",g().$implicit.isSelected)}function n0e(i,e){if(1&i&&(c(0,"div")(1,"div"),b(2,e0e,1,0,"input",14),b(3,t0e,1,1,"input",15),m(4),d()()),2&i){const t=e.$implicit,n=g(3);p(2),h("ngIf",!n.isMultiSelect),p(1),h("ngIf",n.isMultiSelect),p(1),$e(" ",t.text," ")}}function i0e(i,e){if(1&i&&(c(0,"div"),b(1,n0e,5,3,"div",13),d()),2&i){const t=g(2);p(1),h("ngForOf",t.secondItems)}}function r0e(i,e){if(1&i){const t=re();c(0,"input",16),P("click",function(){E(t);const r=g().$implicit;return I(g(3).secondItemSelected(r))}),d()}}function o0e(i,e){if(1&i){const t=re();c(0,"input",17),P("ngModelChange",function(r){return E(t),I(g().$implicit.isSelected=r)}),d()}2&i&&h("ngModel",g().$implicit.isSelected)}function a0e(i,e){if(1&i&&(c(0,"div")(1,"div"),b(2,r0e,1,0,"input",14),b(3,o0e,1,1,"input",15),m(4),d()()),2&i){const t=e.$implicit,n=g(3);p(2),h("ngIf",!n.isMultiSelect),p(1),h("ngIf",n.isMultiSelect),p(1),$e(" ",t.text," ")}}function s0e(i,e){if(1&i&&(c(0,"div"),b(1,a0e,5,3,"div",13),d()),2&i){const t=g(2);p(1),h("ngForOf",t.filteredSecondItems)}}function l0e(i,e){if(1&i){const t=re();c(0,"div",6)(1,"label"),m(2),d(),c(3,"div")(4,"input",10),P("ngModelChange",function(r){return E(t),I(g().searchText=r)}),d()(),c(5,"div",11),b(6,i0e,2,1,"div",12),b(7,s0e,2,1,"div",12),d()()}if(2&i){const t=g();p(2),Ae(t.secondLabel),p(2),K1("margin-left:10px;width: 200px; background-image: url('",t.root,"/app/ui-shared/assets/search.png'); background-repeat: no-repeat; background-position: 6px 50%; padding: 7px 8.75px 7px 42px;"),h("ngModel",t.searchText),p(2),h("ngIf",!t.filteredSecondItems),p(1),h("ngIf",t.filteredSecondItems)}}class Fv{glossaryService;siteContentService;guideService;activeModal;title;pickerFor;model;view;root="";firstLabel;secondLabel;firstItems;selectedFirstItem;secondItems;filteredSecondItems;selectedSecondItem;isMultiSelect=!1;_searchText;set searchText(e){this._searchText=e,this.searchNow()}get searchText(){return this._searchText}itemsSelected=new Ie;itemSelected=new Ie;constructor(e,t,n,r){this.glossaryService=e,this.siteContentService=t,this.guideService=n,this.activeModal=r,ft.production&&(this.root=`/${ft.moduleRouteHome}`)}ngOnInit(){var e=this;return O(function*(){switch(e.selectedFirstItem={id:"-1",key:"-1",text:"-select-"},e.pickerFor){case"GlossaryTerm":{e.firstLabel="Glossary",e.secondLabel="Term",e.isMultiSelect=!0;let t=(yield e.glossaryService.getGlossaries()).model.map(n=>({id:n.id,key:n.key,text:n.name}));t.unshift(e.selectedFirstItem),e.firstItems=t}break;case"SiteContent":{e.firstLabel="Site Content Category",e.secondLabel="Site Content";let t=(yield e.siteContentService.getContentTypes()).map(n=>({id:n.id,key:n.key,text:n.label}));t.unshift(e.selectedFirstItem),e.firstItems=t}break;case"Guide":{e.firstLabel="Site Guide Category",e.secondLabel="Guide";let t=yield e.guideService.getGuideCategories();t.unshift(e.selectedFirstItem),e.firstItems=t}}})()}searchNow(){this.filteredSecondItems=this.secondItems.filter(e=>e.text.toLowerCase().indexOf(this.searchText?.toLowerCase()??"")>-1)}firstItemSelected(){var e=this;return O(function*(){if(console.log(e.selectedFirstItem),e.selectedFirstItem&&"-1"!=e.selectedFirstItem.id)switch(e.pickerFor){case"GlossaryTerm":let n=(yield e.glossaryService.getGlossary(e.selectedFirstItem.id)).model.definitions.map(r=>({id:`${e.selectedFirstItem.id}${r.id}`,key:r.key,text:r.name,isSelected:!1}));n.unshift({id:"-1",key:"-1",text:"-select-",isSelected:!1}),e.secondItems=n;break;case"SiteContent":e.secondItems=(yield e.siteContentService.getFilteredSiteContent(e.selectedFirstItem.id)).model.map(r=>({id:r.id,key:r.key,text:r.name,isSelected:!1}));break;case"Guide":e.secondItems=(yield e.guideService.loadGuidesByCategory(e.selectedFirstItem.id,!1)).model.map(r=>({id:r.id,key:r.key,text:r.name,isSelected:!1}))}})()}secondItemSelected(e){this.selectedSecondItem=e}done(){this.selectedSecondItem&&this.itemSelected?.emit({id:this.selectedSecondItem.id,key:this.selectedSecondItem.key,text:this.selectedSecondItem.text}),this.itemsSelected?.emit(this.secondItems.filter(e=>e.isSelected).map(e=>({id:e.id,key:e.key,text:e.text}))),this.activeModal.close()}cancel(){this.activeModal.close()}static \u0275fac=function(t){return new(t||Fv)(H(Dc),H(Pa),H(Wg),H(ar))};static \u0275cmp=Oe({type:Fv,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(t,n){1&t&&(c(0,"div",0)(1,"h3",1),m(2),d(),b(3,J1e,5,3,"div",2),b(4,l0e,8,7,"div",2),c(5,"div",3)(6,"button",4),P("click",function(){return n.done()}),m(7,"Done"),d(),c(8,"button",5),P("click",function(){return n.cancel()}),m(9,"Cancel"),d()()()),2&t&&(p(2),Ae(n.title),p(1),h("ngIf",n.firstItems),p(1),h("ngIf",n.secondItems))},dependencies:[Ot,rt,Mr,Dr,Dn,Ml,pr,en,qt]})}function c0e(i,e){if(1&i){const t=re();c(0,"span",14),P("click",function(r){return E(t),g(3).clearEntityHeaderValue(),I(r.stopPropagation())}),B(1,"i",15),d()}}function d0e(i,e){if(1&i){const t=re();c(0,"span")(1,"i",16),P("click",function(){return E(t),I(g(3).showEditor())}),d()()}}const u0e=function(i){return{"picker-link":i}};function p0e(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).pickEntityHeaderValue())}),c(1,"span",12),m(2),d(),b(3,c0e,2,0,"span",13),b(4,d0e,2,0,"span",9),d()}if(2&i){const t=g(2);let n;p(1),h("ngClass",bt(4,u0e,t.field.isUserEditable)),p(1),Ae(t.field.value?t.field.value.text:null!==(n=t.field.watermark)&&void 0!==n?n:"-select-"),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable),p(1),h("ngIf",t.field.editorPath&&t.field.value)}}function h0e(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function g0e(i,e){1&i&&(c(0,"span",17),B(1,"span",18),d()),2&i&&mt("data-target",g(2).popupId)}function f0e(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,p0e,5,6,"span",8),b(6,h0e,2,1,"div",9),d()(),c(7,"div"),b(8,g0e,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class pw extends Gt{modalService;constructor(e){super(),this.modalService=e}ngOnInit(){super.ngOnInit()}pickEntityHeaderValue(){if(console.log("Picking entity header for field",this.field),this.field.selectEntityHeader&&this.field.isUserEditable)this.field.selectEntityHeader(this.field),console.log("1");else if(this.field.pickerFor){console.log("2");const e=this.modalService.open(Fv,{size:"lg"}).componentInstance;e.pickerFor=this.field.pickerFor,e.title=`Select ${this.field.label}`,e.model=this.model,e.view=this.view,e.itemSelected.subscribe(t=>{this.field.value=t,this.field.display=t.text,this.changed(this.field)})}else if(ct.supportsPicker(this.field.name)||this.field.entityHeaderPickerUrl){console.log("3",this.field.name,this.field.entityHeaderPickerUrl);const e=this.modalService.open(ct,{size:"lg"}).componentInstance;e.pickerType=this.field.name,e.entityHeaderPickerUrl=this.field.entityHeaderPickerUrl,e.factoryUrl=this.field.factoryUrl,e.title=`Select ${this.field.label}`,e.model=this.model,e.view=this.view,e.parentForm=this.form,e.itemSelected.subscribe(t=>{this.field.value=t,this.field.display=t.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 e=this.field.editorPath.replace("{id}",this.field.value.id);window.open(e)}static \u0275fac=function(t){return new(t||pw)(H(Pn))};static \u0275cmp=Oe({type:pw,selectors:[["app-entity-header-picker"]],features:[it],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(t,n){1&t&&(b(0,f0e,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn],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)}"]})}new Xe("PLATFORM_LOGGER"),new Xe("PLATFORM_NOTIFICATIONS"),new Xe("PLATFORM_STORAGE"),new Xe("PLATFORM_NAVIGATION"),new Xe("PLATFORM_NETWORK_CALL_STATUS"),new Xe("PLATFORM_ERROR_REPORTER"),new Xe("PLATFORM_COOKIE_SERVICE"),new Xe("PLATFORM_COOKIE_ENVIRONMENT");class Kg{setItemAsync(e,t){return O(function*(){window.localStorage.setItem(e,t)})()}getItemAsync(e){return O(function*(){return window.localStorage.getItem(e)})()}removeItemAsync(e){return O(function*(){window.localStorage.removeItem(e)})()}clearAsync(){return O(function*(){const e=window.localStorage.getItem("loginRedirect"),t=window.localStorage.getItem("app_user_org");window.localStorage.clear(),t&&window.localStorage.setItem("previous_app_user_org",t),e&&window.localStorage.setItem("loginRedirect",e)})()}setItemAsyncWithResult(e,t){var n=this;return O(function*(){return yield n.setItemAsync(e,t),!0})()}clearAsyncWithResult(){var e=this;return O(function*(){return yield e.clearAsync(),!0})()}static \u0275fac=function(t){return new(t||Kg)};static \u0275prov=Ue({token:Kg,factory:Kg.\u0275fac,providedIn:"root"})}const hw_moduleRouteHome="public";class Qg{router;location;constructor(e,t){this.router=e,this.location=t}_areaHome;gotoLogin(e){this.router.navigate(["auth"])}goto(e){!e||0===e.length||this.router.navigate(e)}gotoPath(e){let t=(e=e.startsWith("/")?e.substring(1):e).split("/");t[0]==hw_moduleRouteHome?this.goto(t):window.location.href=e}setLocation(e){this.location.go(e)}gotoAreaHome(e){this._areaHome=e,this.router.navigate([hw_moduleRouteHome,"areas",e])}gotoModuleHome(){this.router.navigate([hw_moduleRouteHome])}static \u0275fac=function(t){return new(t||Qg)(Me(_i),Me(gc))};static \u0275prov=Ue({token:Qg,factory:Qg.\u0275fac,providedIn:"root"})}class Wd{_activeCallCount=0;_loadingMessages=[];_activeCalls$=new Ai(this._loadingMessages);_endCalls$=new Ai(this._loadingMessages);constructor(){}onCallBegin(){return this._activeCalls$.asObservable()}onCallEnd(){return this._endCalls$.asObservable()}beginCall(e="?"){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)}get activeCallCount(){return this._activeCallCount}static \u0275fac=function(t){return new(t||Wd)};static \u0275prov=Ue({token:Wd,factory:Wd.\u0275fac,providedIn:"root"})}class Zg{_errors$=new Ai([]);addErrors(e){const t=(e??[]).filter(n=>!!n);0!==t.length&&this._errors$.next(t)}addMessage(e){!e||this._errors$.next([{message:e}])}onErrMsgs(){return this._errors$.asObservable()}clear(){this._errors$.next([])}static \u0275fac=function(t){return new(t||Zg)};static \u0275prov=Ue({token:Zg,factory:Zg.\u0275fac,providedIn:"root"})}function u7(i){this.wrapped=i}function Ov(i){var e,t;function r(a,s){try{var l=i[a](s),u=l.value,f=u instanceof u7;Promise.resolve(f?u.wrapped:u).then(function(v){f?r("return"===a?"return":"next",v):o(l.done?"return":"normal",v)},function(v){r("throw",v)})}catch(v){o("throw",v)}}function o(a,s){switch(a){case"return":e.resolve({value:s,done:!0});break;case"throw":e.reject(s);break;default:e.resolve({value:s,done:!1})}(e=e.next)?r(e.key,e.arg):t=null}this._invoke=function n(a,s){return new Promise(function(l,u){var f={key:a,arg:s,resolve:l,reject:u,next:null};t?t=t.next=f:(e=t=f,r(a,s))})},"function"!=typeof i.return&&(this.return=void 0)}Ov.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ov.prototype.next=function(i){return this._invoke("next",i)},Ov.prototype.throw=function(i){return this._invoke("throw",i)},Ov.prototype.return=function(i){return this._invoke("return",i)};const g7=new Xe("NUVOS_TRANSPORT"),tI=new Xe("NUVOS_SITE_URI");new Xe("NUVOS_CACHE_ENABLED"),new Xe("NUVOS_CREDENTIALS"),new Xe("NUVOS_LOGIN_REDIRECT_PATH");class Xg{constructor(){}get(e){let o,t=document.cookie.split(";"),n=t.length,r=`${e}=`;for(let a=0;at.slWebSocketId!==e.slWebSocketId),this.debug&&console.log("updated collection count: ",this._ownerList.length),this.debug&&console.log("remaining sockets:"),this._ownerList.forEach(t=>{this.debug&&console.log("--\x3e owner | url:",`${t.owner} | ${t.url}`)}),this.debug&&console.log("************"),this.debug&&console.log("")}formatUri(e,t){return this._wsUrlFormat.replace(this._channelToken,e).replace(this._idToken,t)}openSLSocket(e,t,n){var r=this;return O(function*(){const o=r.formatUri(t,n);try{const a={slWebSocketId:Gd.newGuid(),owner:e,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(e,t){var n=this;return O(function*(){try{const r={slWebSocketId:Gd.newGuid(),owner:e,socket:yield n.openWebSocket(t),url:t};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(e){var t=this;return O(function*(){const n=t.buildUrlFromRelative(e);return new Promise(function(){var r=O(function*(o,a){try{const s=yield t.http.get(n,{withCredentials:!0}).toPromise();if(!s)return t.debug&&console.log("no response when getting socket url."),void a("Failed to open channel");if(!s.successful)return t.debug&&console.log("fail to get socket url."),void a("Failed to open channel");const l=s.result;t.debug&&console.log("Open Channel:",l);const u=new WebSocket(l);u.onopen=()=>{t.debug&&console.log("ws opened"),o(u)},u.onerror=f=>{t.debug&&console.log("ERROR OPEN SOCKET"),t.debug&&console.log(f),a("Failed to open channel")}}catch(s){t.debug&&console.log("exception getting socket url:",s),a("Failed to open channel")}});return function(o,a){return r.apply(this,arguments)}}())})()}static \u0275fac=function(t){return new(t||Gd)(Me(yT),Me(tI))};static \u0275prov=Ue({token:Gd,factory:Gd.\u0275fac,providedIn:"root"})}function ef(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class M0e{transport;constructor(e){this.transport=e}createIconsSemanticDefaultByEntityTypeName(e,t){return this.transport.postWithResponse(`/api/media/icons/semantic/default/${e}`,t)}createIconsSemanticGenerate(e){return this.transport.postWithResponse("/api/media/icons/semantic/generate",e)}createIconsSemanticInstanceGenerate(e){return this.transport.postWithResponse("/api/media/icons/semantic/instance/generate",e)}createIconsSemanticPrompt(e){return this.transport.postWithResponse("/api/media/icons/semantic/prompt",e)}createIconsSemanticPublish(e){return this.transport.postWithResponse("/api/media/icons/semantic/publish",e)}createLibrary(e){return this.transport.insert("/api/media/library",e)}createNewImagegeneration(e,t,n){return this.transport.getFormResponse(ef("/api/media/imagegeneration/factory",{entityTypeName:e,entityFieldName:t,entityId:n}))}createNewLibrary(){return this.transport.getFormResponse("/api/media/library/factory")}createNewResource(){return this.transport.getFormResponse("/api/media/resource/factory")}createNewVideoavatar(){return this.transport.getFormResponse("/api/media/videoavatar/factory")}createNewVideoproduction(){return this.transport.getFormResponse("/api/media/videoproduction/factory")}createResource(e){return this.transport.postWithResponse("/api/media/resource",e)}createResourceByIdTexttospeech(e,t){return this.transport.postWithResponse(`/api/media/resource/${e}/texttospeech`,t)}createResourcePublicUpload(){return this.transport.postWithResponse("/api/media/resource/public/upload",{})}createResourceRequest(e){return this.transport.postWithResponse("/api/media/resource/request",e)}createResourcesById(e,t){return this.transport.postWithResponse(ef(`/api/media/resources/${e}`,{saveresource:t}),{})}createResourceTexttospeech(e){return this.transport.postWithResponse("/api/media/resource/texttospeech",e)}createResourceUpload(){return this.transport.postWithResponse("/api/media/resource/upload",{})}createVideoavatar(e){return this.transport.insert("/api/media/videoavatar",e)}createVideoavatarByIdProviderEnsure(e){return this.transport.postWithResponse(`/api/media/videoavatar/${e}/provider/ensure`,{})}createVideoavatarByIdProviderStatus(e){return this.transport.postWithResponse(`/api/media/videoavatar/${e}/provider/status`,{})}createVideoproduction(e){return this.transport.insert("/api/media/videoproduction",e)}createVideoproductionByIdCostEstimate(e){return this.transport.postWithResponse(`/api/media/videoproduction/${e}/cost/estimate`,{})}createVideoproductionByIdPreviewAudio(e){return this.transport.postWithResponse(`/api/media/videoproduction/${e}/preview/audio`,{})}createVideoproductionByIdStatus(e){return this.transport.postWithResponse(`/api/media/videoproduction/${e}/status`,{})}createVideoproductionByIdSubmit(e){return this.transport.postWithResponse(`/api/media/videoproduction/${e}/submit`,{})}createVideoProvidersHeygenSpeechPreview(e){return this.transport.postWithResponse("/api/media/video/providers/heygen/speech/preview",e)}deleteLibraryById(e){return this.transport.delete(`/api/media/library/${e}`)}deleteResourceById(e){return this.transport.delete(`/api/media/resource/${e}`)}deleteVideoavatarById(e){return this.transport.delete(`/api/media/videoavatar/${e}`)}deleteVideoproductionById(e){return this.transport.delete(`/api/media/videoproduction/${e}`)}getIconsSemanticCatalogByOrgNamespaceFamilyByFamilyKey(e,t){return this.transport.requestForInvokeResultEx(`/api/media/icons/semantic/catalog/${e}/family/${t}`)}getIconsSemanticCatalogByOrgNamespaceMaster(e){return this.transport.requestForInvokeResultEx(`/api/media/icons/semantic/catalog/${e}/master`)}getIconsSemanticCatalogSystemFamilyByFamilyKey(e){return this.transport.requestForInvokeResultEx(`/api/media/icons/semantic/catalog/system/family/${e}`)}getIconsSemanticCatalogSystemMaster(){return this.transport.requestForInvokeResultEx("/api/media/icons/semantic/catalog/system/master")}getLibraryById(e){return this.transport.getFormResponse(`/api/media/library/${e}`)}getLibraryByIdInuse(e){return this.transport.request(`/api/media/library/${e}/inuse`)}getLibraryByKeyKeyinuse(e){return this.transport.request(`/api/media/library/${e}/keyinuse`)}getResourceById(e){return this.transport.getFormResponse(`/api/media/resource/${e}`)}getResourceByIdClone(e,t,n,r){return this.transport.requestForInvokeResultEx(ef(`/api/media/resource/${e}/clone`,{entityTypeName:t,entityFieldName:n,resourceName:r}))}getResourceByIdDownloadByRevisionid(e,t){return this.transport.request(`/api/media/resource/${e}/download/${t}`)}getResourceByOrgidByIdDownload(e,t){return this.transport.request(`/api/media/resource/${e}/${t}/download`)}getResourceTexttospeechPreview(e,t,n,r){return this.transport.request(ef("/api/media/resource/texttospeech/preview",{text:e,language:t,voice:n,gender:r}))}getResourceTexttospeechVoicesByLanguageCode(e){return this.transport.requestForInvokeResultEx(`/api/media/resource/texttospeech/voices/${e}`)}getVideoavatarById(e){return this.transport.getFormResponse(`/api/media/videoavatar/${e}`)}getVideoproductionById(e){return this.transport.getFormResponse(`/api/media/videoproduction/${e}`)}getVideoProvidersHeygenVoices(e,t,n,r){return this.transport.requestForInvokeResultEx(ef("/api/media/video/providers/heygen/voices",{language:e,gender:t,type:n,pageToken:r}))}listImagesSearch(e,t){return this.transport.getListResponse(ef("/api/media/images/search",{term:e,source:t}))}listLibraries(){return this.transport.getListResponse("/api/media/libraries")}listLibraryByLibraryidResources(e){return this.transport.getListResponse(`/api/media/library/${e}/resources`)}listMediatypeKeyByMediatypekeyResources(e){return this.transport.getListResponse(`/api/media/mediatype/key/${e}/resources`)}listResources(){return this.transport.getListResponse("/api/media/resources")}listVideoavatars(){return this.transport.getListResponse("/api/media/videoavatars")}listVideoproductions(){return this.transport.getListResponse("/api/media/videoproductions")}mediaResourceIdRevisionRevisionidSet(e,t){return this.transport.requestForInvokeResultEx(`/api/media/resource/${e}/revision/${t}/set`)}updateLibrary(e){return this.transport.update("/api/media/library",e)}updateResource(e){return this.transport.updateWithResponse("/api/media/resource",e)}updateResourceByIdResize(e,t){return this.transport.updateWithResponse(`/api/media/resource/${e}/resize`,t)}updateResourcesById(e){return this.transport.updateWithResponse(`/api/media/resources/${e}`,{})}updateResourceTexttospeechById(e,t){return this.transport.updateWithResponse(`/api/media/resource/texttospeech/${e}`,t)}updateVideoavatar(e){return this.transport.update("/api/media/videoavatar",e)}updateVideoproduction(e){return this.transport.update("/api/media/videoproduction",e)}}function Oc(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class D0e{transport;constructor(e){this.transport=e}createChangepassword(e){return this.transport.insert("/api/auth/changepassword",e)}createLogin(e){return this.transport.postWithResponse("/api/auth/login",e)}createMfadisable(){return this.transport.insert("/api/auth/mfadisable",{})}createMfarecoveryConsume(e,t){return this.transport.insert(Oc("/api/auth/mfarecovery/consume",{stepUp:e}),t)}createMfarecoveryRotate(){return this.transport.postWithResponse("/api/auth/mfarecovery/rotate",{})}createMfareset(){return this.transport.insert("/api/auth/mfareset",{})}createMfatotpEnrollmentBegin(){return this.transport.postWithResponse("/api/auth/mfatotp/enrollment/begin",{})}createMfatotpEnrollmentConfirm(e){return this.transport.postWithResponse("/api/auth/mfatotp/enrollment/confirm",e)}createMfatotpVerify(e,t){return this.transport.insert(Oc("/api/auth/mfatotp/verify",{stepUp:e}),t)}createPasskeyAuthenticationBegin(e,t){return this.transport.postWithResponse(Oc("/api/auth/passkey/authentication/begin",{stepUp:e,passkeyUrl:t}),{})}createPasskeyAuthenticationComplete(e,t){return this.transport.insert(Oc("/api/auth/passkey/authentication/complete",{stepUp:e}),t)}createPasskeyPasswordlessAuthenticationBegin(e){return this.transport.postWithResponse(Oc("/api/auth/passkey/passwordless/authentication/begin",{passkeyUrl:e}),{})}createPasskeyPasswordlessAuthenticationComplete(e){return this.transport.postWithResponse("/api/auth/passkey/passwordless/authentication/complete",e)}createPasskeyPasswordlessRegistrationBegin(e){return this.transport.postWithResponse(Oc("/api/auth/passkey/passwordless/registration/begin",{passkeyUrl:e}),{})}createPasskeyPasswordlessRegistrationComplete(e){return this.transport.postWithResponse("/api/auth/passkey/passwordless/registration/complete",e)}createPasskeyRegistrationBegin(e){return this.transport.postWithResponse(Oc("/api/auth/passkey/registration/begin",{passkeyUrl:e}),{})}createPasskeyRegistrationComplete(e){return this.transport.insert("/api/auth/passkey/registration/complete",e)}createPaymentProcess(e){return this.transport.postWithResponse("/api/auth/payment/process",e)}createResetpassword(e){return this.transport.insert("/api/auth/resetpassword",e)}createResetpasswordSendlink(e){return this.transport.insert("/api/auth/resetpassword/sendlink",e)}createSecurelinkConsume(e){return this.transport.postWithResponse("/api/auth/securelink/consume",e)}createSecurelinkExchange(e){return this.transport.request("/api/auth/securelink/exchange")}createSecurelinkRequest(e){return this.transport.insert("/api/auth/securelink/request",e)}createV1Login(e){return this.transport.postWithResponse("/api/auth/v1/login",e)}deletePasskeyByCredentialId(e){return this.transport.delete(`/api/auth/passkey/${e}`)}getCustomerByCustomerid(e){return this.transport.requestForInvokeResultEx(`/api/auth/customer/${e}`)}getInviteAcceptByInviteid(e){return this.transport.request(`/api/auth/invite/accept/${e}`)}getPasskey(){return this.transport.requestForInvokeResultEx("/api/auth/passkey")}getSecurelinkConsume(e,t){return this.transport.requestForInvokeResultEx(Oc("/api/auth/securelink/consume",{code:e,returnUrl:t}))}getSession(){return this.transport.request("/api/auth/session")}getV1Logoff(){return this.transport.get("/api/auth/v1/logoff")}listLog(){return this.transport.getListResponse("/api/auth/log")}listLogByType(e){return this.transport.getListResponse(`/api/auth/log/${e}`)}updatePasskeyByCredentialIdRename(e,t){return this.transport.update(Oc(`/api/auth/passkey/${e}/rename`,{name:t}),{})}}function Mp(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class T0e{transport;constructor(e){this.transport=e}create(e){return this.transport.postWithResponse("/api/user/create",e)}createByIdPaymentaccounts(e,t){return this.transport.insert(`/api/user/${e}/paymentaccounts`,t)}createByUseridMediaresource(e,t){return this.transport.insert(`/api/user/${e}/mediaresource`,t)}createByUseridRolesGrant(e,t){return this.transport.postWithResponse(`/api/user/${e}/roles/grant`,t)}createFavorite(e){return this.transport.postWithResponse("/api/user/favorite",e)}createMruItem(e){return this.transport.postWithResponse("/api/mru/item",e)}createNewUser(){return this.transport.getFormResponse("/api/user/factory")}createProfilePictureUpload(){return this.transport.postWithResponse("/api/user/profile/picture/upload",{})}createRegister(e){return this.transport.postWithResponse("/api/user/register",e)}createSvgInitials(e){return this.transport.insert("/api/user/svg/initials",e)}createSvgSignature(e){return this.transport.insert("/api/user/svg/signature",e)}delete(e){return this.transport.delete(Mp("/api/user",{username:e}))}deleteById(e){return this.transport.delete(`/api/user/${e}`)}deleteByIdDelete(e){return this.transport.delete(`/api/user/${e}/delete`)}deleteExternalloginById(e){return this.transport.deleteWithResponse(`/api/user/externallogin/${e}`)}deleteFavoriteById(e){return this.transport.deleteWithResponse(`/api/user/favorite/${e}`)}deleteInboxByPartitionkeyByRowkey(e,t){return this.transport.delete(`/api/user/inbox/${e}/${t}`)}deleteMru(){return this.transport.deleteWithResponse("/api/mru")}deletePreferenceByKey(e){return this.transport.delete(`/api/user/preference/${e}`)}deleteRoleRevokeByUserroleid(e){return this.transport.delete(`/api/user/role/revoke/${e}`)}deleteSvgInitials(){return this.transport.delete("/api/user/svg/initials")}deleteSvgSignature(){return this.transport.delete("/api/user/svg/signature")}get(){return this.transport.getFormResponse("/api/user")}getAccepttc(){return this.transport.requestForInvokeResultEx("/api/user/accepttc")}getById(e){return this.transport.getFormResponse(`/api/user/${e}`)}getByIdPaymentaccounts(e){return this.transport.requestForInvokeResultEx(`/api/user/${e}/paymentaccounts`)}getByIdPreviewByStatus(e,t){return this.transport.get(`/api/user/${e}/preview/${t}`)}getByIdSsn(e){return this.transport.requestForInvokeResultEx(`/api/user/${e}/ssn`)}getByUseridDisable(e){return this.transport.get(`/api/user/${e}/disable`)}getByUseridRoleByRoleidGrant(e,t){return this.transport.requestForInvokeResultEx(`/api/user/${e}/role/${t}/grant`)}getByUseridRoles(e){return this.transport.request(`/api/user/${e}/roles`)}getClaims(){return this.transport.request("/api/user/claims")}getFavorites(){return this.transport.requestForInvokeResultEx("/api/user/favorites")}getInboxByPartitionkeyByRowkeyViewed(e,t){return this.transport.get(`/api/user/inbox/${e}/${t}/viewed`)}getInboxUnread(){return this.transport.requestForInvokeResultEx("/api/user/inbox/unread")}getModeAdvanced(){return this.transport.get("/api/user/mode/advanced")}getModeNormal(){return this.transport.get("/api/user/mode/normal")}getMru(){return this.transport.requestForInvokeResultEx("/api/mru")}getPreferenceByKeyByValue(e,t){return this.transport.get(`/api/user/preference/${e}/${t}`)}getRoles(){return this.transport.request("/api/user/roles")}getSvgInitials(){return this.transport.requestForInvokeResultEx("/api/user/svg/initials")}getSvgInitialsB64png(){return this.transport.requestForInvokeResultEx("/api/user/svg/initials/b64png")}getSvgSignature(){return this.transport.requestForInvokeResultEx("/api/user/svg/signature")}getSvgSignatureB64png(){return this.transport.requestForInvokeResultEx("/api/user/svg/signature/b64png")}getUserbyemail(e){return this.transport.getFormResponse(Mp("/api/userbyemail",{email:e}))}getUserbyemailTesting(e){return this.transport.getFormResponse(Mp("/api/userbyemail/testing",{email:e}))}getUsersWelcomeShowByState(e){return this.transport.get(`/api/users/welcome/show/${e}`)}verifyEmailCode(e,t){return this.transport.requestForInvokeResultEx(Mp("/api/user/verify/email",{p:e,c:t}))}listByUseridOrgs(e){return this.transport.getListResponse(`/api/user/${e}/orgs`)}listInbox(){return this.transport.getListResponse("/api/user/inbox")}listOrgs(){return this.transport.getListResponse("/api/user/orgs")}listUsers(e){return this.transport.getListResponse(Mp("/api/users",{cached:e}))}listUsersActive(e){return this.transport.getListResponse(Mp("/api/users/active",{cached:e}))}listUsersRepoByRepoid(e){return this.transport.getListResponse(`/api/users/repo/${e}`)}update(e){return this.transport.update("/api/user",e)}updateCoreinfo(e){return this.transport.update("/api/user/coreinfo",e)}updateInfoBasic(e){return this.transport.updateWithResponse("/api/user/info/basic",e)}updateProfileByIdPicture(e,t){return this.transport.update(`/api/user/profile/${e}/picture`,t)}updateProfilePicture(e){return this.transport.update("/api/user/profile/picture",e)}userOrgsCacheClear(){return this.transport.get("/api/user/orgs/cache/clear")}userSysadminIdClear(e){return this.transport.get(`/api/user/sysadmin/${e}/clear`)}userSysadminIdSet(e){return this.transport.get(`/api/user/sysadmin/${e}/set`)}verifyEmail(e,t){return this.transport.request(Mp("/api/verify/email",{userid:e,code:t}))}sendEmailConfirmCode(){return this.transport.requestForInvokeResultEx("/api/verify/email/confirmationcode/send")}verifyEmailCreate(e){return this.transport.insert("/api/verify/email",e)}verifyIsemailconfirmed(){return this.transport.get("/api/verify/isemailconfirmed")}verifySendsmscode(e){return this.transport.postWithResponse("/api/verify/sendsmscode",e)}verifySendsmscodePhonenumber(e){return this.transport.postWithResponse(`/api/verify/sendsmscode/${e}`,{})}verifySms(e){return this.transport.insert("/api/verify/sms",e)}verifySmsCode(e){return this.transport.insert(`/api/verify/sms/${e}`,{})}verifyUseridEmailConfirmationcodeSend(e){return this.transport.requestForInvokeResultEx(`/api/verify/${e}/email/confirmationcode/send`)}}class E0e{transport;constructor(e){this.transport=e}create(e){return this.transport.insert("/api/org",e)}createLocation(e){return this.transport.insert("/api/org/location",e)}createLocationByIdDiagram(e,t){return this.transport.insert(`/api/org/location/${e}/diagram`,t)}createLocationDiagram(e){return this.transport.insert("/api/org/location/diagram",e)}createNewDiagram(){return this.transport.getFormResponse("/api/org/location/diagram/factory")}createNewGroup(){return this.transport.getFormResponse("/api/org/location/diagram/group/factory")}createNewInvitation(){return this.transport.getFormResponse("/api/org/invitation/factory")}createNewLayer(){return this.transport.getFormResponse("/api/org/location/diagram/layer/factory")}createNewLocation(){return this.transport.getFormResponse("/api/org/location/factory")}createNewOrg(){return this.transport.getFormResponse("/api/org/factory")}createNewShape(){return this.transport.getFormResponse("/api/org/location/diagram/shape/factory")}createNewSublocation(){return this.transport.getFormResponse("/api/org/location/sublocation/factory")}deleteByOrgidUserByUserid(e,t){return this.transport.delete(`/api/org/${e}/user/${t}`)}deleteInvitationByInviteId(e){return this.transport.delete(`/api/org/invitation/${e}`)}deleteLocationById(e){return this.transport.delete(`/api/org/location/${e}`)}deleteLocationByIdDiagramByRefid(e,t){return this.transport.delete(`/api/org/location/${e}/diagram/${t}`)}deleteLocationDiagramById(e){return this.transport.delete(`/api/org/location/diagram/${e}`)}getAdminByUserId(e){return this.transport.requestForInvokeResultEx(`/api/org/admin/${e}`)}getById(e){return this.transport.getFormResponse(`/api/org/${e}`)}getByOrgidByUseridOrgs(e,t){return this.transport.get(`/api/org/${e}/${t}/orgs`)}getByOrgidLogoDark(e){return this.transport.request(`/api/org/${e}/logo/dark`)}getByOrgidLogoLight(e){return this.transport.request(`/api/org/${e}/logo/light`)}getByOrgidTheme(e){return this.transport.requestForInvokeResultEx(`/api/org/${e}/theme`)}getCurrent(){return this.transport.getFormResponse("/api/org/current")}getCurrentSummary(){return this.transport.requestForInvokeResultEx("/api/org/current/summary")}getInitialized(){return this.transport.requestForInvokeResultEx("/api/org/initialized")}getInitializedTrue(){return this.transport.get("/api/org/initialized/true")}getInvitationById(e){return this.transport.requestForInvokeResultEx(`/api/org/invitation/${e}`)}getInvitationByInvitationid(e){return this.getInvitationById(e)}getInvitationFormById(e){return this.transport.getFormResponse(`/api/org/invitation/form/${e}`)}getInvitationFormByInvitationid(e){return this.getInvitationFormById(e)}getLocationById(e){return this.transport.getFormResponse(`/api/org/location/${e}`)}getLocationByIdBoundingbox(e){return this.transport.requestForInvokeResultEx(`/api/org/location/${e}/boundingbox`)}getLocationDiagramById(e){return this.transport.getFormResponse(`/api/org/location/diagram/${e}`)}getNamespaceByOrgnamespaceCanuse(e){return this.transport.get(`/api/org/namespace/${e}/canuse`)}getPublicOrgSummaryByNS(e){return this.transport.request(`/api/org/${e}/public/summary`)}getByOrgnsPublicSummary(e){return this.getPublicOrgSummaryByNS(e)}getUsersForOrg(e,t){return this.transport.getListResponse(function S0e(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}(`/api/org/${e}/users`,{cached:t}))}listByOrgidUsers(e,t){return this.getUsersForOrg(e,t)}isInviteAvailable(e){return this.transport.request(`/api/org/inviteuser/${e}/isavailable`)}getInviteuserByInviteidIsavailable(e){return this.isInviteAvailable(e)}listInvitations(){return this.transport.getListResponse("/api/org/invitations")}listLocationDiagrams(){return this.transport.getListResponse("/api/org/location/diagrams")}listLocations(){return this.transport.getListResponse("/api/org/locations")}listLocationsCustomerByCustomerid(e){return this.transport.getListResponse(`/api/org/locations/customer/${e}`)}listSimulators(){return this.transport.getListResponse("/api/org/simulators")}orgAdminUserIdClear(e){return this.transport.get(`/api/org/admin/${e}/clear`)}orgAdminUserIdSet(e){return this.transport.get(`/api/org/admin/${e}/set`)}orgAppbuilderUserIdClear(e){return this.transport.get(`/api/org/appbuilder/${e}/clear`)}orgAppbuilderUserIdSet(e){return this.transport.get(`/api/org/appbuilder/${e}/set`)}orgChange(e){return this.transport.postWithResponse("/api/org/change",e)}orgInvitationInviteIdResend(e){return this.transport.get(`/api/org/invitation/${e}/resend`)}orgInviteuserSend(e){return this.transport.postWithResponse("/api/org/inviteuser/send",e)}orgOrgidChange(e){return this.transport.requestForInvokeResultEx(`/api/org/${e}/change`)}update(e){return this.transport.update("/api/org",e)}updateLocation(e){return this.transport.update("/api/org/location",e)}updateLocationByIdDiagram(e,t){return this.transport.update(`/api/org/location/${e}/diagram`,t)}updateLocationDiagram(e){return this.transport.update("/api/org/location/diagram",e)}}function Lv(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class I0e{transport;constructor(e){this.transport=e}createNewAccess(e){return this.transport.request(`/api/sys/role/${e}/access/factory`)}createNewAction(){return this.transport.getFormResponse("/api/sys/testing/authview/action/factory")}createNewAuthview(){return this.transport.getFormResponse("/api/sys/testing/authview/factory")}createNewDeviceowner(){return this.transport.getFormResponse("/api/sysadmin/deviceowner/factory")}createNewField(){return this.transport.getFormResponse("/api/sys/testing/authview/field/factory")}createNewRole(){return this.transport.getFormResponse("/api/sys/role/factory")}createNewScenario(){return this.transport.getFormResponse("/api/sys/testing/auth/scenario/factory")}createNewStep(){return this.transport.getFormResponse("/api/systemtest/step/factory")}createNewSystemtasktype(){return this.transport.getFormResponse("/api/systemtasktype/factory")}createNewSystemtest(){return this.transport.getFormResponse("/api/systemtest/factory")}createNewUsersnapshot(){return this.transport.getFormResponse("/api/sys/testing/auth/usersnapshot/factory")}createRole(e){return this.transport.insert("/api/sys/role",e)}createRoleAccess(e){return this.transport.insert("/api/sys/role/access",e)}createSysadminDeviceowner(e){return this.transport.request("/api/sysadmin/deviceowner")}createSysadminMediaResourceByIdContents(e){return this.transport.insert(`/api/sysadmin/media/resource/${e}/contents`,{})}createSystemtasktype(e){return this.transport.insert("/api/systemtasktype",e)}createSystemtest(e){return this.transport.insert("/api/systemtest",e)}createSystemtestBySystemTestExecutionIdStepByStepIdComplete(e,t,n){return this.transport.postWithResponse(`/api/systemtest/${e}/step/${t}/complete`,n)}createTestingAuthRunComplete(){return this.transport.insert("/api/sys/testing/auth/run/complete",{})}createTestingAuthRuns(){return this.transport.postForListResponse("/api/sys/testing/auth/runs",{})}createTestingAuthScenario(e){return this.transport.insert("/api/sys/testing/auth/scenario",e)}createTestingAuthview(e){return this.transport.insert("/api/sys/testing/authview",e)}deleteEntityByEntityidRating(e){return this.transport.deleteWithResponse(`/api/entity/${e}/rating`)}deleteRoleAccessById(e){return this.transport.delete(`/api/sys/role/access/${e}`)}deleteSysadminDeviceowneruserByOrgidById(e,t){return this.transport.delete(`/api/sysadmin/deviceowneruser/${e}/${t}`)}deleteSystemtasktypeById(e){return this.transport.delete(`/api/systemtasktype/${e}`)}deleteSystemtestById(e){return this.transport.delete(`/api/systemtest/${e}`)}deleteSystemtestExecutionById(e){return this.transport.delete(`/api/systemtest/execution/${e}`)}deleteTestingAuthScenarioById(e){return this.transport.delete(`/api/sys/testing/auth/scenario/${e}`)}deleteTestingAuthviewById(e){return this.transport.delete(`/api/sys/testing/authview/${e}`)}deleteTestingUser(){return this.transport.delete("/api/sys/testing/user")}entityIdPublicSet(e){return this.transport.get(`/api/entity/${e}/public/set`)}getEntityByEntityidCalchash(e){return this.transport.get(`/api/entity/${e}/calchash`)}getEntityByEntityidIndex(e){return this.transport.get(`/api/entity/${e}/index`)}getEntityByIdGraph(e){return this.transport.requestForInvokeResultEx(`/api/entity/${e}/graph`)}getEntityByIdResolveEntityheaders(e){return this.transport.requestForInvokeResultEx(`/api/entity/${e}/resolve/entityheaders`)}getEntitytypeByEntitytypeResolveEntityheaders(e,t){return this.transport.requestForInvokeResultEx(Lv(`/api/entitytype/${e}/resolve/entityheaders`,{continuationToken:t}))}getOrgByOrgidUserByUseridAdd(e,t){return this.transport.requestForInvokeResultEx(`/api/sys/org/${e}/user/${t}/add`)}getRoleAccessModuleByModuleid(e){return this.transport.request(`/api/sys/role/access/module/${e}`)}getRoleAccessModuleByModuleidAreaByAreaid(e,t){return this.transport.request(`/api/sys/role/access/module/${e}/area/${t}`)}getRoleAccessModuleByModuleidAreaByAreaidFeatureByFeatureid(e,t,n){return this.transport.request(`/api/sys/role/access/module/${e}/area/${t}/feature/${n}`)}getRoleAccessModuleByModuleidAreaByAreaidPageByPageid(e,t,n){return this.transport.request(`/api/sys/role/access/module/${e}/area/${t}/page/${n}`)}getRoleAccessModuleByModuleidAreaByAreaidPageByPageidFeatureByFeatureid(e,t,n,r){return this.transport.request(`/api/sys/role/access/module/${e}/area/${t}/page/${n}/feature/${r}`)}getRoleAccessModuleByModuleidFeatureByFeatureid(e,t){return this.transport.request(`/api/sys/role/access/module/${e}/feature/${t}`)}getRoleById(e){return this.transport.getFormResponse(`/api/sys/role/${e}`)}getRoleByRoleidAccess(e){return this.transport.request(`/api/sys/role/${e}/access`)}getRoles(){return this.transport.request("/api/sys/roles")}getRolesAssignable(){return this.transport.request("/api/sys/roles/assignable")}getSysadminDeviceowneruserByOrgidById(e,t){return this.transport.getFormResponse(`/api/sysadmin/deviceowneruser/${e}/${t}`)}getSysadminSmsByUseridSetverified(e){return this.transport.get(`/api/sysadmin/sms/${e}/setverified`)}getSystemtasktypeById(e){return this.transport.getFormResponse(`/api/systemtasktype/${e}`)}getSystemtestById(e){return this.transport.getFormResponse(`/api/systemtest/${e}`)}getSystemtestByIdAbort(e){return this.transport.requestForInvokeResultEx(`/api/systemtest/${e}/abort`)}getSystemtestByIdStart(e){return this.transport.requestForInvokeResultEx(`/api/systemtest/${e}/start`)}getSystemtestBySystemTestExecutionIdStepByStepIdUndo(e,t){return this.transport.requestForInvokeResultEx(`/api/systemtest/${e}/step/${t}/undo`)}getSystemtestExecutionByIdResult(e){return this.transport.requestForInvokeResultEx(`/api/systemtest/execution/${e}/result`)}getTestingAuthRunByRunId(e){return this.transport.requestForInvokeResultEx(`/api/sys/testing/auth/run/${e}`)}getTestingAuthScenarioById(e){return this.transport.getFormResponse(`/api/sys/testing/auth/scenario/${e}`)}getTestingAuthScenarioByIdPlan(e,t){return this.transport.requestForInvokeResultEx(Lv(`/api/sys/testing/auth/scenario/${e}/plan`,{headless:t}))}getTestingAuthviewById(e){return this.transport.getFormResponse(`/api/sys/testing/authview/${e}`)}getTestingTokenEmailLast(){return this.transport.requestForInvokeResultEx("/api/sys/testing/token/email/last")}getTestingTokenSmsLast(){return this.transport.requestForInvokeResultEx("/api/sys/testing/token/sms/last")}getUserByUseridEmailConfirm(e){return this.transport.requestForInvokeResultEx(`/api/sys/user/${e}/email/confirm`)}getUserByUseridLogintypeByLogintype(e,t){return this.transport.requestForInvokeResultEx(`/api/sys/user/${e}/logintype/${t}`)}getUserByUseridPhoneConfirm(e){return this.transport.requestForInvokeResultEx(`/api/sys/user/${e}/phone/confirm`)}listAuthLog(){return this.transport.getListResponse("/api/sys/auth/log")}listAuthLogByType(e){return this.transport.getListResponse(`/api/sys/auth/log/${e}`)}listSysadminDeviceownerusers(){return this.transport.getListResponse("/api/sysadmin/deviceownerusers")}listSystemtasktypes(){return this.transport.getListResponse("/api/systemtasktypes")}listSystemtestExecutionCustomerByCustomeridResults(e){return this.transport.getListResponse(`/api/systemtest/execution/customer/${e}/results`)}listSystemtestExecutionResults(){return this.transport.getListResponse("/api/systemtest/execution/results")}listSystemtests(){return this.transport.getListResponse("/api/systemtests")}listTestingAuthlogReview(){return this.transport.getListResponse("/api/sys/testing/authlog/review")}listTestingAuthScenarios(){return this.transport.getListResponse("/api/sys/testing/auth/scenarios")}listTestingAuthviews(){return this.transport.getListResponse("/api/sys/testing/authviews")}listUserByUseridAuthLog(e){return this.transport.getListResponse(`/api/sys/user/${e}/auth/log`)}listUserEmailAuthLog(e){return this.transport.getListResponse(Lv("/api/sys/user/email/auth/log",{email:e}))}listUserSearch(e,t,n){return this.transport.getListResponse(Lv("/api/sys/user/search",{email:e,firstname:t,lastname:n}))}sysUserIdFinanceadminClear(e,t){return this.transport.requestForInvokeResultEx(Lv(`/api/sys/user/${e}/financeadmin/clear`,{userid:t}))}sysUserUseridEmailConfirmSend(e){return this.transport.requestForInvokeResultEx(`/api/sys/user/${e}/email/confirm/send`)}sysUserUseridFinanceadminSet(e){return this.transport.requestForInvokeResultEx(`/api/sys/user/${e}/financeadmin/set`)}sysUserUseridPhoneConfirmSend(e){return this.transport.requestForInvokeResultEx(`/api/sys/user/${e}/phone/confirm/send`)}updateEntityByEntityidCategory(e,t){return this.transport.update(`/api/entity/${e}/category`,t)}updateEntityByEntityidRateByRating(e,t){return this.transport.updateWithResponse(`/api/entity/${e}/rate/${t}`,{})}updateRole(e){return this.transport.update("/api/sys/role",e)}updateSysadminDeviceowner(e){return this.transport.request("/api/sysadmin/deviceowner")}updateSystemtasktype(e){return this.transport.update("/api/systemtasktype",e)}updateSystemtest(e){return this.transport.update("/api/systemtest",e)}updateTestingAuthScenario(e){return this.transport.update("/api/sys/testing/auth/scenario",e)}updateTestingAuthview(e){return this.transport.update("/api/sys/testing/authview",e)}}function no(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class A0e{transport;constructor(e){this.transport=e}aiAgentSessionSessionidPersonaChangePersonaid(e,t){return this.transport.request(`/api/ai/agent/session/${e}/persona/change/${t}`)}createAgentcontext(e){return this.transport.insert("/api/ai/agentcontext",e)}createAgentExecute(e){return this.transport.request("/api/ai/agent/execute")}createAgentExecuteEa(e){return this.transport.request("/api/ai/agent/execute/ea")}createAgentpersona(e){return this.transport.insert("/api/ai/agentpersona",e)}createArtifactquerySearch(e){return this.transport.postForListResponse("/api/ai/artifactquery/search",e)}createArtifactspecbuilderStandardCreate(e){return this.transport.insert("/api/ai/artifactspecbuilder/standard/create",e)}createArtifactspecbuilderStandardRevise(e){return this.transport.postWithResponse("/api/ai/artifactspecbuilder/standard/revise",e)}createArtifactspecbuilderStandardSuggest(e){return this.transport.postWithResponse("/api/ai/artifactspecbuilder/standard/suggest",e)}createArtifactspecbuilderSystementityCreate(e){return this.transport.insert("/api/ai/artifactspecbuilder/systementity/create",e)}createArtifactspecbuilderSystementityRevise(e){return this.transport.postWithResponse("/api/ai/artifactspecbuilder/systementity/revise",e)}createArtifactspecbuilderSystementitySuggest(e){return this.transport.postWithResponse("/api/ai/artifactspecbuilder/systementity/suggest",e)}createConversation(e){return this.transport.insert("/api/ai/conversation",e)}createCoreDefinitionCleanupEntity(e){return this.transport.postWithResponse("/api/ai/core-definition-cleanup/entity",e)}createCoreDefinitionCleanupLane(e){return this.transport.postWithResponse("/api/ai/core-definition-cleanup/lane",e)}createEntitiesByEntityIdImprovementChecklistComplete(e,t){return this.transport.insert(`/api/ai/entities/${e}/improvement/checklist/complete`,t)}createEntitiesByEntityIdImprovementChecklistReset(e,t){return this.transport.insert(`/api/ai/entities/${e}/improvement/checklist/reset`,t)}createEntitiesByEntityIdRecommendationsByRecommendationIdApply(e,t,n){return this.transport.postWithResponse(`/api/ai/entities/${e}/recommendations/${t}/apply`,n)}createEntitiesByEntityIdRecommendationsByRecommendationIdOverride(e,t,n){return this.transport.insert(`/api/ai/entities/${e}/recommendations/${t}/override`,n)}createEntitiesByEntityIdRecommendationsByRecommendationIdSupersede(e,t,n){return this.transport.insert(`/api/ai/entities/${e}/recommendations/${t}/supersede`,n)}createEntityByEntityIdAlign(e,t){return this.transport.postWithResponse(no(`/api/ai/entity/${e}/align`,{feedback:t}),{})}createEntityByEntityIdField(e,t){return this.transport.insert(`/api/ai/entity/${e}/field`,t)}createEntityByEntityIdImprove(e,t,n){return this.transport.postWithResponse(no(`/api/ai/entity/${e}/improve`,{reconcile:t,uncompletedOnly:n}),{})}createEntityByEntityIdImproveByStep(e,t,n){return this.transport.postWithResponse(no(`/api/ai/entity/${e}/improve/${t}`,{feedback:n}),{})}createEntityByEntityIdReview(e){return this.transport.postWithResponse(`/api/ai/entity/${e}/review`,{})}createEntityCleanup(e){return this.transport.postWithResponse("/api/ai/entity/cleanup",e)}createEntityCleanupLane(e){return this.transport.postWithResponse("/api/ai/entity/cleanup/lane",e)}createEntityDefinitionByEntityTypeByEntityIdStagesByStageKeyRun(e,t,n,r){return this.transport.postWithResponse(`/api/ai/entity-definition/${e}/${t}/stages/${n}/run`,r)}createEntityDefinitionCandidates(e){return this.transport.postWithResponse("/api/ai/entity-definition/candidates",e)}createEntityDifferentiationRate(e){return this.transport.postWithResponse("/api/ai/entity-differentiation/rate",e)}createEntityDifferentiationRecommend(e){return this.transport.postWithResponse("/api/ai/entity-differentiation/recommend",e)}createEntityDifferentiationRun(e){return this.transport.postWithResponse("/api/ai/entity-differentiation/run",e)}createEntityPreparationByEntityTypeByEntityIdRun(e,t,n){return this.transport.postWithResponse(`/api/ai/entity-preparation/${e}/${t}/run`,n)}createEntityReadinessReconcileByEntityType(e){return this.transport.postWithResponse(`/api/ai/entity-readiness/reconcile/${e}`,{})}createEntityReadinessScorecard(e){return this.transport.postWithResponse("/api/ai/entity-readiness/scorecard",e)}createEntityWorkItemByIdApply(e){return this.transport.postWithResponse(`/api/ai/entity-work-item/${e}/apply`,{})}createEntityWorkItemByWorkItemIdDismiss(e,t){return this.transport.postWithResponse(`/api/ai/entity-work-item/${e}/dismiss`,t)}createEntityWorkItemByWorkItemIdResolve(e,t){return this.transport.postWithResponse(`/api/ai/entity-work-item/${e}/resolve`,t)}createImageGenerate(e){return this.transport.postWithResponse("/api/ai/image/generate",e)}createMlLabel(e){return this.transport.insert("/api/ml/label",e)}createMlLabelset(e){return this.transport.insert("/api/ml/labelset",e)}createMlModel(e){return this.transport.insert("/api/ml/model",e)}createMlModelByModelidByRevision(e,t){return this.transport.postWithResponse(`/api/ml/model/${e}/${t}`,{})}createMlModelcategory(e){return this.transport.insert("/api/ml/modelcategory",e)}createMlModelExperimentResult(e){return this.transport.request("/api/ml/model/experiment/result")}createMlSample(e){return this.transport.postWithResponse(no("/api/ml/sample",{tagsString:e}),{})}createMlTrainingdataset(e){return this.transport.insert("/api/ml/trainingdataset",e)}createNewAgentcontext(){return this.transport.getFormResponse("/api/ai/agentcontext/factory")}createNewAgentpersona(){return this.transport.getFormResponse("/api/ai/agentpersona/factory")}createNewApplicabilitycondition(){return this.transport.getFormResponse("/api/vteam/businesscapability/applicabilitycondition/factory")}createNewArtifactexplorerview(){return this.transport.request("/api/vteam/artifactexplorerview/factory")}createNewArtifactspec(){return this.transport.getFormResponse("/api/vteam/artifactspec/factory")}createNewBusinesscapability(){return this.transport.getFormResponse("/api/vteam/businesscapability/factory")}createNewBusinesshealthcategory(){return this.transport.getFormResponse("/api/vteam/businesshealthcategory/factory")}createNewCapabilityblueprintitem(){return this.transport.getFormResponse("/api/vteam/businesshealthcategory/capabilityblueprintitem/factory")}createNewConversation(){return this.transport.getFormResponse("/api/ai/conversation/factory")}createNewDepartment(){return this.transport.getFormResponse("/api/vteam/department/factory")}createNewEja(){return this.transport.getFormResponse("/api/vteam/eja/factory")}createNewExperiment(){return this.transport.getFormResponse("/api/ml/model/experiment/factory")}createNewInput(){return this.transport.getFormResponse("/api/vteam/businesscapability/input/factory")}createNewInteraction(){return this.transport.getFormResponse("/api/ml/conversation/interaction/factory")}createNewLabel(){return this.transport.getFormResponse("/api/ml/label/factory")}createNewLabelset(){return this.transport.getFormResponse("/api/ml/labelset/factory")}createNewMember(){return this.transport.getFormResponse("/api/vteam/member/factory")}createNewMode(){return this.transport.getFormResponse("/api/ai/agentcontext/mode/factory")}createNewModel(){return this.transport.getFormResponse("/api/ml/model/factory")}createNewModelcategory(){return this.transport.getFormResponse("/api/ml/modelcategory/factory")}createNewModellabel(){return this.transport.getFormResponse("/api/ml/modellabel/factory")}createNewModelschema(){return this.transport.getFormResponse("/api/vteam/artifactspec/modelschema/factory")}createNewModelSetting(){return this.transport.getFormResponse("/api/ml/model/setting/factory")}createNewNonartifactinput(){return this.transport.getFormResponse("/api/vteam/sop/nonartifactinput/factory")}createNewNote(){return this.transport.getFormResponse("/api/ml/model/note/factory")}createNewOperation(){return this.transport.getFormResponse("/api/vteam/artifactspec/operation/factory")}createNewOutput(){return this.transport.getFormResponse("/api/vteam/businesscapability/output/factory")}createNewPreprocessor(){return this.transport.getFormResponse("/api/ml/model/preprocessor/factory")}createNewPreprocessorSetting(){return this.transport.getFormResponse("/api/ml/model/preprocessor/setting/factory")}createNewRevision(){return this.transport.getFormResponse("/api/ml/model/revision/factory")}createNewRole(){return this.transport.getFormResponse("/api/ai/agentcontext/role/factory")}createNewSample(){return this.transport.requestForInvokeResultEx("/api/ai/agent/execute/response/sample/factory")}createNewSop(){return this.transport.getFormResponse("/api/vteam/sop/factory")}createNewStrategicpillar(){return this.transport.getFormResponse("/api/vteam/businesshealthcategory/strategicpillar/factory")}createNewToolbox(){return this.transport.getFormResponse("/api/ai/toolbox/factory")}createNewTrainingdataset(){return this.transport.getFormResponse("/api/ml/trainingdataset/factory")}createNewTrigger(){return this.transport.getFormResponse("/api/vteam/eja/trigger/factory")}createRagReconcileByEntityType(e){return this.transport.postWithResponse(`/api/ai/rag/reconcile/${e}`,{})}createRelationshipReadinessRun(e){return this.transport.postWithResponse("/api/ai/relationship-readiness/run",e)}createRelationshipReadinessRunBatch(e){return this.transport.postWithResponse("/api/ai/relationship-readiness/run-batch",e)}createTextquery(e){return this.transport.postWithResponse("/api/ai/textquery",e)}createTextqueryFactoryByType(e,t){return this.transport.request(no(`/api/ai/textquery/factory/${e}`,{query:t}))}createToolbox(e){return this.transport.insert("/api/ai/toolbox",e)}createVteamArtifactexplorerview(e){return this.transport.insert("/api/vteam/artifactexplorerview",e)}createVteamArtifactspec(e){return this.transport.insert("/api/vteam/artifactspec",e)}createVteamArtifactspecByIdImprovementRun(e,t){return this.transport.postWithResponse(`/api/ai/vteam/artifactspec/${e}/improvement/run`,t)}createVteamArtifactspecByIdSampleCanonical(e,t){return this.transport.postWithResponse(`/api/vteam/artifactspec/${e}/sample/canonical`,t)}createVteamArtifactspecByIdSampleCanonicalGenerate(e,t){return this.transport.postWithResponse(`/api/vteam/artifactspec/${e}/sample/canonical/generate`,t)}createVteamArtifactspecByIdSampleCanonicalPreview(e,t){return this.transport.postWithResponse(`/api/vteam/artifactspec/${e}/sample/canonical/preview`,t)}createVteamArtifactspecCandidates(e){return this.transport.postWithResponse("/api/vteam/artifactspec/candidates",e)}createVteamArtifactspecImprovementBatchRun(e,t){return this.transport.postWithResponse(no("/api/ai/vteam/artifactspec/improvement/batch/run",{id:e}),t)}createVteamBusinesscapability(e){return this.transport.insert("/api/vteam/businesscapability",e)}createVteamBusinesscapabilitybuilderArtifactSpecificationCreateStub(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/artifact-specification/create-stub",e)}createVteamBusinesscapabilitybuilderAttachVtm(e){return this.transport.insert("/api/vteam/businesscapabilitybuilder/attach-vtm",e)}createVteamBusinesscapabilitybuilderCandidateFromSeed(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/candidate/from-seed",e)}createVteamBusinesscapabilitybuilderCandidateRefreshArtifacts(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/candidate/refresh-artifacts",e)}createVteamBusinesscapabilitybuilderCandidateRevise(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/candidate/revise",e)}createVteamBusinesscapabilitybuilderCreate(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/create",e)}createVteamBusinesscapabilitybuilderRecommendVtm(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/recommend-vtm",e)}createVteamBusinesscapabilitybuilderSeed(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/seed",e)}createVteamBusinesscapabilitybuilderSeedRevise(e){return this.transport.postWithResponse("/api/vteam/businesscapabilitybuilder/seed/revise",e)}createVteamBusinesshealthcategory(e){return this.transport.insert("/api/vteam/businesshealthcategory",e)}createVteamBusinesshealthcategoryBuilderPillarsApply(e){return this.transport.insert("/api/vteam/businesshealthcategory/builder/pillars/apply",e)}createVteamBusinesshealthcategoryBuilderPillarsGenerate(e){return this.transport.postWithResponse("/api/vteam/businesshealthcategory/builder/pillars/generate",e)}createVteamBusinesshealthcategoryBuilderPillarsReview(e){return this.transport.postWithResponse("/api/vteam/businesshealthcategory/builder/pillars/review",e)}createVteamCatalogHealthReviewByMode(e){return this.transport.postWithResponse(`/api/vteam/catalog/health/review/${e}`,{})}createVteamDepartment(e){return this.transport.insert("/api/vteam/department",e)}createVteamEja(e){return this.transport.insert("/api/vteam/eja",e)}createVteamMember(e){return this.transport.insert("/api/vteam/member",e)}createVteamSop(e){return this.transport.insert("/api/vteam/sop",e)}createVteamSopExecute(e){return this.transport.postWithResponse("/api/vteam/sop/execute",e)}createVteamSopGenerate(e){return this.transport.postWithResponse("/api/vteam/sop/generate",e)}createVtmHealthreviewSnapshot(e){return this.transport.postWithResponse("/api/ai/vtm/healthreview/snapshot",e)}deleteAgentcontextById(e){return this.transport.delete(`/api/ai/agentcontext/${e}`)}deleteAgentpersonaById(e){return this.transport.delete(`/api/ai/agentpersona/${e}`)}deleteAgentSessionById(e){return this.transport.deleteWithResponse(`/api/ai/agent/session/${e}`)}deleteConversationById(e){return this.transport.delete(`/api/ai/conversation/${e}`)}deleteMlLabelsetById(e){return this.transport.delete(`/api/ml/labelset/${e}`)}deleteMlModelById(e){return this.transport.delete(`/api/ml/model/${e}`)}deleteMlModelcategoryById(e){return this.transport.delete(`/api/ml/modelcategory/${e}`)}deleteMlSampleBySampleidLabelByLabelid(e,t){return this.transport.delete(`/api/ml/sample/${e}/label/${t}`)}deleteMlTrainingdatasetById(e){return this.transport.request(`/api/ml/trainingdataset/${e}`)}deleteToolboxById(e){return this.transport.delete(`/api/ai/toolbox/${e}`)}deleteVteamArtifactexplorerviewById(e){return this.transport.delete(`/api/vteam/artifactexplorerview/${e}`)}deleteVteamArtifactspecById(e){return this.transport.delete(`/api/vteam/artifactspec/${e}`)}deleteVteamBusinesscapabilityById(e){return this.transport.delete(`/api/vteam/businesscapability/${e}`)}deleteVteamBusinesshealthcategoryById(e){return this.transport.delete(`/api/vteam/businesshealthcategory/${e}`)}deleteVteamDepartmentById(e){return this.transport.delete(`/api/vteam/department/${e}`)}deleteVteamEjaById(e){return this.transport.delete(`/api/vteam/eja/${e}`)}deleteVteamMemberById(e){return this.transport.delete(`/api/vteam/member/${e}`)}deleteVteamSopById(e){return this.transport.delete(`/api/vteam/sop/${e}`)}getAgentcontextById(e){return this.transport.getFormResponse(`/api/ai/agentcontext/${e}`)}getAgentcontextByIdSecrets(e){return this.transport.getFormResponse(`/api/ai/agentcontext/${e}/secrets`)}getAgentpersonaById(e){return this.transport.getFormResponse(`/api/ai/agentpersona/${e}`)}getAgentPing(){return this.transport.request("/api/ai/agent/ping")}getAgentSessionById(e){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}`)}getAgentSessionByIdArchive(e){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}/archive`)}getAgentSessionByIdComplete(e){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}/complete`)}getAgentSessionByIdRename(e,t){return this.transport.requestForInvokeResultEx(no(`/api/ai/agent/session/${e}/rename`,{name:t}))}getAgentSessionByIdShare(e){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}/share`)}getAgentSessionBySessionidBranchByTurnid(e,t){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}/branch/${t}`)}getAgentSessionBySessionidChapterRestoreByChapterid(e,t){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}/chapter/restore/${t}`)}getAgentSessionBySessionidRollbackByTurnid(e,t){return this.transport.requestForInvokeResultEx(`/api/ai/agent/session/${e}/rollback/${t}`)}getArtifactByArtifactidHuman(e){return this.transport.requestForInvokeResultEx(`/api/ai/artifact/${e}/human`)}getArtifactByArtifactidHumanRevisionByRevision(e,t){return this.transport.requestForInvokeResultEx(`/api/ai/artifact/${e}/human/revision/${t}`)}getArtifactqueryByPointIdHuman(e){return this.transport.requestForInvokeResultEx(`/api/ai/artifactquery/${e}/human`)}getArtifactqueryEntityTypes(){return this.transport.requestForInvokeResultEx("/api/ai/artifactquery/entity-types")}getArtifactsProductionReadiness(e){return this.transport.requestForInvokeResultEx(no("/api/ai/artifacts/production-readiness",{sampleSize:e}))}getConversationById(e){return this.transport.getFormResponse(`/api/ai/conversation/${e}`)}getConversationByKeyKeyinuse(e){return this.transport.request(`/api/ai/conversation/${e}/keyinuse`)}getEntitiesByEntityIdImprovementReportsByReviewId(e,t){return this.transport.requestForInvokeResultEx(`/api/ai/entities/${e}/improvement-reports/${t}`)}getEntityByEntityIdRagDetail(e){return this.transport.requestForInvokeResultEx(`/api/ai/entity/${e}/rag/detail`)}getEntityByEntityIdShapeFieldByStepSession(e,t){return this.transport.requestForInvokeResultEx(`/api/ai/entity/${e}/shape-field/${t}/session`)}getEntityDefinitionByEntityTypeMetadata(e){return this.transport.requestForInvokeResultEx(`/api/ai/entity-definition/${e}/metadata`)}getEntityDifferentiationRunsById(e){return this.transport.requestForInvokeResultEx(`/api/ai/entity-differentiation/runs/${e}`)}getEntityFieldsByEntityType(e){return this.transport.requestForInvokeResultEx(`/api/ai/entity/fields/${e}`)}getEntityWorkItemByWorkItemId(e){return this.transport.requestForInvokeResultEx(`/api/ai/entity-work-item/${e}`)}getMlLabelById(e){return this.transport.getFormResponse(`/api/ml/label/${e}`)}getMlLabelsetById(e){return this.transport.getFormResponse(`/api/ml/labelset/${e}`)}getMlModelById(e){return this.transport.getFormResponse(`/api/ml/model/${e}`)}getMlModelByIdByRevisionExperimentResults(e,t){return this.transport.request(`/api/ml/model/${e}/${t}/experiment/results`)}getMlModelByKeyKeyinuse(e){return this.transport.request(`/api/ml/model/${e}/keyinuse`)}getMlModelByModelidByRevision(e,t){return this.transport.request(`/api/ml/model/${e}/${t}`)}getMlModelcategoryById(e){return this.transport.getFormResponse(`/api/ml/modelcategory/${e}`)}getMlModelcategoryByKeyKeyinuse(e){return this.transport.request(`/api/ml/modelcategory/${e}/keyinuse`)}getMlSampleById(e){return this.transport.request(`/api/ml/sample/${e}`)}getMlSampleByIdDetail(e){return this.transport.request(`/api/ml/sample/${e}/detail`)}getMlSampleBySampleidLabelByLabelid(e,t){return this.transport.get(`/api/ml/sample/${e}/label/${t}`)}getMlTrainingdatasetById(e){return this.transport.getFormResponse(`/api/ml/trainingdataset/${e}`)}getRelationshipReadinessByLaneKeyPopulation(e){return this.transport.requestForInvokeResultEx(`/api/ai/relationship-readiness/${e}/population`)}getRequestArtifactauthoringById(e){return this.transport.requestForInvokeResultEx(`/api/ai/request/artifactauthoring/${e}`)}getToolboxById(e){return this.transport.getFormResponse(`/api/ai/toolbox/${e}`)}getVteamArtifactexplorer(){return this.transport.requestForInvokeResultEx("/api/vteam/artifactexplorer")}getVteamArtifactexplorerviewById(e){return this.transport.request(`/api/vteam/artifactexplorerview/${e}`)}getVteamArtifactsByMappingIdPressByEntityId(e,t){return this.transport.requestForInvokeResultEx(`/api/vteam/artifacts/${e}/press/${t}`)}getVteamArtifactspecById(e){return this.transport.getFormResponse(`/api/vteam/artifactspec/${e}`)}getVteamArtifactspecByIdInuse(e){return this.transport.request(`/api/vteam/artifactspec/${e}/inuse`)}getVteamArtifactspecByKeyKeyinuse(e){return this.transport.request(`/api/vteam/artifactspec/${e}/keyinuse`)}getVteamArtifactspecsResetstatus(){return this.transport.get("/api/vteam/artifactspecs/resetstatus")}getVteamBusinesscapabilityById(e){return this.transport.getFormResponse(`/api/vteam/businesscapability/${e}`)}getVteamBusinesscapabilityByIdInuse(e){return this.transport.request(`/api/vteam/businesscapability/${e}/inuse`)}getVteamBusinesscapabilityByIdValidate(e){return this.transport.requestForInvokeResultEx(`/api/vteam/businesscapability/${e}/validate`)}getVteamBusinesscapabilityByKeyKeyinuse(e){return this.transport.request(`/api/vteam/businesscapability/${e}/keyinuse`)}getVteamBusinesshealthcategoryById(e){return this.transport.getFormResponse(`/api/vteam/businesshealthcategory/${e}`)}getVteamBusinesshealthcategoryByIdInuse(e){return this.transport.request(`/api/vteam/businesshealthcategory/${e}/inuse`)}getVteamBusinesshealthcategoryByIdValidate(e){return this.transport.requestForInvokeResultEx(`/api/vteam/businesshealthcategory/${e}/validate`)}getVteamBusinesshealthcategoryByKeyKeyinuse(e){return this.transport.request(`/api/vteam/businesshealthcategory/${e}/keyinuse`)}getVteamByOrgnsReferenceDirectoryDepartmentsById(e,t,n){return this.transport.requestForInvokeResultEx(no(`/api/vteam/${e}/reference-directory/departments/${t}`,{language:n}))}getVteamByOrgnsReferenceDirectoryDepartmentsTlaByTla(e,t,n){return this.transport.requestForInvokeResultEx(no(`/api/vteam/${e}/reference-directory/departments/tla/${t}`,{language:n}))}getVteamByOrgnsReferenceDirectoryTeamMembersById(e,t,n){return this.transport.requestForInvokeResultEx(no(`/api/vteam/${e}/reference-directory/team-members/${t}`,{language:n}))}getVteamByOrgnsReferenceDirectoryTeamMembersFeatured(e,t){return this.transport.requestForInvokeResultEx(no(`/api/vteam/${e}/reference-directory/team-members/featured`,{language:t}))}getVteamByOrgnsReferenceDirectoryTeamMembersTlaByTla(e,t,n){return this.transport.requestForInvokeResultEx(no(`/api/vteam/${e}/reference-directory/team-members/tla/${t}`,{language:n}))}getVteamCatalog(){return this.transport.requestForInvokeResultEx("/api/vteam/catalog")}getVteamCatalogHealthDeficiencyByDeficiencyId(e){return this.transport.requestForInvokeResultEx(`/api/vteam/catalog/health/deficiency/${e}`)}getVteamCatalogHealthReviewByRunId(e){return this.transport.requestForInvokeResultEx(`/api/vteam/catalog/health/review/${e}`)}getVteamDepartmentById(e){return this.transport.getFormResponse(`/api/vteam/department/${e}`)}getVteamDepartmentByIdInuse(e){return this.transport.request(`/api/vteam/department/${e}/inuse`)}getVteamDepartmentByKeyKeyinuse(e){return this.transport.request(`/api/vteam/department/${e}/keyinuse`)}getVteamEjaById(e){return this.transport.getFormResponse(`/api/vteam/eja/${e}`)}getVteamEjaByIdInuse(e){return this.transport.request(`/api/vteam/eja/${e}/inuse`)}getVteamEjaByKeyKeyinuse(e){return this.transport.request(`/api/vteam/eja/${e}/keyinuse`)}getVteamMeetingAgentSessionByAgentSessionId(e){return this.transport.request(`/api/vteam/meeting/agent-session/${e}`)}getVteamMeetingById(e){return this.transport.request(`/api/vteam/meeting/${e}`)}getVteamMeetingByIdRun(e){return this.transport.request(`/api/vteam/meeting/${e}/run`)}getVteamMemberById(e){return this.transport.getFormResponse(`/api/vteam/member/${e}`)}getVteamMemberByIdInuse(e){return this.transport.request(`/api/vteam/member/${e}/inuse`)}getVteamMemberByIdVideoByOrientation(e,t){return this.transport.get(`/api/vteam/member/${e}/video/${t}`)}getVteamMemberByKeyKeyinuse(e){return this.transport.request(`/api/vteam/member/${e}/keyinuse`)}getVteamSopById(e){return this.transport.getFormResponse(`/api/vteam/sop/${e}`)}getVteamSopByIdInuse(e){return this.transport.request(`/api/vteam/sop/${e}/inuse`)}getVteamSopByKeyKeyinuse(e){return this.transport.request(`/api/vteam/sop/${e}/keyinuse`)}getVteamSopsBySopIdArtifactAlignmentReview(e,t){return this.transport.requestForInvokeResultEx(no(`/api/vteam/sops/${e}/artifact-alignment-review`,{maturity:t}))}listAgentcontextByIdModes(e){return this.transport.getListResponse(`/api/ai/agentcontext/${e}/modes`)}listAgentcontextByIdRoles(e){return this.transport.getListResponse(`/api/ai/agentcontext/${e}/roles`)}listAgentcontexts(){return this.transport.getListResponse("/api/ai/agentcontexts")}listAgentpersonas(){return this.transport.getListResponse("/api/ai/agentpersonas")}listAgentSessions(){return this.transport.getListResponse("/api/ai/agent/sessions")}listAgenttools(){return this.transport.getListResponse("/api/ai/agenttools")}listConversations(){return this.transport.getListResponse("/api/ai/conversations")}listConversationsUser(){return this.transport.getListResponse("/api/ai/conversations/user")}listCoreDefinitionCleanupRecordsByEntityType(e,t){return this.transport.getListResponse(no(`/api/ai/core-definition-cleanup/records/${e}`,{showAll:t}))}listEntitiesByEntityIdImprovementReports(e){return this.transport.getListResponse(`/api/ai/entities/${e}/improvement-reports`)}listEntitiesByEntityIdRecommendations(e){return this.transport.getListResponse(`/api/ai/entities/${e}/recommendations`)}listEntitiesByEntityIdRecommendationsPending(e){return this.transport.getListResponse(`/api/ai/entities/${e}/recommendations/pending`)}listEntitiesByEntityType(e){return this.transport.getListResponse(`/api/ai/entities/${e}`)}listEntityBySourceEntityIdWorkItems(e){return this.transport.getListResponse(`/api/ai/entity/${e}/work-items`)}listEntityDifferentiationRuns(e,t,n,r,o,a,s,l,u,f,v,D,A,W,J,pe,fe,ye){return this.transport.getListResponse(no("/api/ai/entity-differentiation/runs",{nextPartitionKey:e,nextRowKey:t,pageIndex:n,pageSize:r,startDate:o,endDate:a,groupBy:s,groupByType:l,groupBySize:u,url:f,categoryKey:v,timeBucketSize:D,timeBucket:A,showDrafts:W,showDeleted:J,orderBy:pe,orderByDesc:fe,hasCursor:ye}))}listEntityWorkItems(){return this.transport.getListResponse("/api/ai/entity-work-items")}listEntityWorkItemsStateByState(e){return this.transport.getListResponse(`/api/ai/entity-work-items/state/${e}`)}listMlLabels(){return this.transport.getListResponse("/api/ml/labels")}listMlLabelsets(){return this.transport.getListResponse("/api/ml/labelsets")}listMlLabelsSearch(e){return this.transport.getListResponse(no("/api/ml/labels/search",{search:e}))}listMlModelByModelidRevisions(e){return this.transport.getListResponse(`/api/ml/model/${e}/revisions`)}listMlModelcategories(){return this.transport.getListResponse("/api/ml/modelcategories")}listMlModels(){return this.transport.getListResponse("/api/ml/models")}listMlSamplesLabelByLabelid(e){return this.transport.getListResponse(`/api/ml/samples/label/${e}`)}listMlTrainingdatasets(){return this.transport.getListResponse("/api/ml/trainingdatasets")}listRelationshipReadinessByEntitytypeLanes(e){return this.transport.getListResponse(`/api/ai/relationship-readiness/${e}/lanes`)}listRelationshipReadinessByLaneKeyAll(e){return this.transport.getListResponse(`/api/ai/relationship-readiness/${e}/all`)}listRelationshipReadinessByLaneKeyBlocked(e){return this.transport.getListResponse(`/api/ai/relationship-readiness/${e}/blocked`)}listRelationshipReadinessByLaneKeyByIdRelationshipsCurrent(e,t){return this.transport.getListResponse(`/api/ai/relationship-readiness/${e}/${t}/relationships/current`)}listRelationshipReadinessByLaneKeyCandidates(e){return this.transport.getListResponse(`/api/ai/relationship-readiness/${e}/candidates`)}listRelationshipReadinessLanes(){return this.transport.getListResponse("/api/ai/relationship-readiness/lanes")}listStartupctxproviders(){return this.transport.getListResponse("/api/ai/startupctxproviders")}listToolboxes(){return this.transport.getListResponse("/api/ai/toolboxes")}listVteamArtifactByArtifactidSops(e){return this.transport.getListResponse(`/api/vteam/artifact/${e}/sops`)}listVteamArtifactexplorerviews(){return this.transport.getListResponse("/api/vteam/artifactexplorerviews")}listVteamArtifactspecs(){return this.transport.getListResponse("/api/vteam/artifactspecs")}listVteamArtifactspecsActive(){return this.transport.getListResponse("/api/vteam/artifactspecs/active")}listVteamBusinesscapabilities(){return this.transport.getListResponse("/api/vteam/businesscapabilities")}listVteamBusinesshealthcategories(){return this.transport.getListResponse("/api/vteam/businesshealthcategories")}listVteamBusinesshealthcategoryByBusinessHealthCategoryIdBusinesscapabilities(e){return this.transport.getListResponse(`/api/vteam/businesshealthcategory/${e}/businesscapabilities`)}listVteamByOrgnsReferenceDirectoryDepartments(e,t){return this.transport.getListResponse(no(`/api/vteam/${e}/reference-directory/departments`,{language:t}))}listVteamCatalogHealthDeficiencies(){return this.transport.getListResponse("/api/vteam/catalog/health/deficiencies")}listVteamCatalogHealthDeficienciesOpen(){return this.transport.getListResponse("/api/vteam/catalog/health/deficiencies/open")}listVteamCatalogHealthReviews(){return this.transport.getListResponse("/api/vteam/catalog/health/reviews")}listVteamDepartments(){return this.transport.getListResponse("/api/vteam/departments")}listVteamEjaByEjaIdMembers(e){return this.transport.getListResponse(`/api/vteam/eja/${e}/members`)}listVteamEjas(){return this.transport.getListResponse("/api/vteam/ejas")}listVteamMeetingsOrg(){return this.transport.getListResponse("/api/vteam/meetings/org")}listVteamMeetingsUser(){return this.transport.getListResponse("/api/vteam/meetings/user")}listVteamMembers(){return this.transport.getListResponse("/api/vteam/members")}listVteamSopExecuteByIdHistory(e){return this.transport.getListResponse(`/api/vteam/sop/execute/${e}/history`)}listVteamSops(){return this.transport.getListResponse("/api/vteam/sops")}listVteamSopsBySopidEjas(e){return this.transport.getListResponse(`/api/vteam/sops/${e}/ejas`)}updateAgentcontext(e){return this.transport.update("/api/ai/agentcontext",e)}updateAgentpersona(e){return this.transport.update("/api/ai/agentpersona",e)}updateConversation(e){return this.transport.update("/api/ai/conversation",e)}updateMlLabel(e){return this.transport.update("/api/ml/label",e)}updateMlLabelset(e){return this.transport.update("/api/ml/labelset",e)}updateMlModel(e){return this.transport.update("/api/ml/model",e)}updateMlModelcategory(e){return this.transport.update("/api/ml/modelcategory",e)}updateMlSampleBySampleid(e){return this.transport.update(`/api/ml/sample/${e}`,{})}updateMlTrainingdataset(e){return this.transport.update("/api/ml/trainingdataset",e)}updateToolbox(e){return this.transport.update("/api/ai/toolbox",e)}updateVteamArtifactexplorerview(e){return this.transport.update("/api/vteam/artifactexplorerview",e)}updateVteamArtifactspec(e){return this.transport.update("/api/vteam/artifactspec",e)}updateVteamBusinesscapability(e){return this.transport.update("/api/vteam/businesscapability",e)}updateVteamBusinesshealthcategory(e){return this.transport.update("/api/vteam/businesshealthcategory",e)}updateVteamDepartment(e){return this.transport.update("/api/vteam/department",e)}updateVteamEja(e){return this.transport.update("/api/vteam/eja",e)}updateVteamMember(e){return this.transport.update("/api/vteam/member",e)}updateVteamSop(e){return this.transport.update("/api/vteam/sop",e)}}class F0e{transport;constructor(e){this.transport=e}createIndustry(e){return this.transport.insert("/api/industry",e)}createLandingpage(e){return this.transport.insert("/api/landingpage",e)}createLandingpageLayout(e){return this.transport.insert("/api/landingpage/layout",e)}createLandingpageMenu(e){return this.transport.insert("/api/landingpage/menu",e)}createLandingpagePalette(e){return this.transport.insert("/api/landingpage/palette",e)}createNewCarousel(){return this.transport.getFormResponse("/api/landingpage/carousel/factory")}createNewCjr(){return this.transport.getFormResponse("/api/rolereality/cjr/factory")}createNewIndustry(){return this.transport.getFormResponse("/api/industry/factory")}createNewInlinestyle(){return this.transport.getFormResponse("/api/landingpage/layout/inlinestyle/factory")}createNewLandingpage(){return this.transport.getFormResponse("/api/landingpage/factory")}createNewLandingpageinfo(){return this.transport.getFormResponse("/api/landingpageinfo/factory")}createNewLayout(){return this.transport.getFormResponse("/api/landingpage/layout/factory")}createNewMenu(){return this.transport.getFormResponse("/api/landingpage/menu/factory")}createNewNiche(){return this.transport.getFormResponse("/api/industry/niche/factory")}createNewPalette(){return this.transport.getFormResponse("/api/landingpage/palette/factory")}createNewPersona(){return this.transport.getFormResponse("/api/industry/persona/factory")}createNewPersonaGet(){return this.transport.getFormResponse("/api/persona/factory")}createNewRolereality(){return this.transport.getFormResponse("/api/rolereality/factory")}createNewSection(){return this.transport.getFormResponse("/api/landingpage/section/factory")}createNewSensors(){return this.transport.getFormResponse("/api/industry/sensors/factory")}createNewTargetmarket(){return this.transport.getFormResponse("/api/targetmarket/factory")}createPersona(e){return this.transport.insert("/api/persona",e)}createRolereality(e){return this.transport.insert("/api/rolereality",e)}createTargetmarket(e){return this.transport.insert("/api/targetmarket",e)}deleteIndustryById(e){return this.transport.delete(`/api/industry/${e}`)}deleteLandingpageById(e){return this.transport.delete(`/api/landingpage/${e}`)}deleteLandingpageLayoutById(e){return this.transport.delete(`/api/landingpage/layout/${e}`)}deleteLandingpageMenuById(e){return this.transport.delete(`/api/landingpage/menu/${e}`)}deleteLandingpagePaletteById(e){return this.transport.delete(`/api/landingpage/palette/${e}`)}deletePersonaById(e){return this.transport.delete(`/api/persona/${e}`)}deleteRolerealityById(e){return this.transport.delete(`/api/rolereality/${e}`)}deleteTargetmarketById(e){return this.transport.delete(`/api/targetmarket/${e}`)}getIndustryById(e){return this.transport.getFormResponse(`/api/industry/${e}`)}getIndustryByIdSurveys(e){return this.transport.request(`/api/industry/${e}/surveys`)}getIndustryByIndustryidByIndustrynicheidContactlist(e,t){return this.transport.requestForInvokeResultEx(`/api/industry/${e}/${t}/contactlist`)}getIndustryByIndustryidContactlist(e){return this.transport.requestForInvokeResultEx(`/api/industry/${e}/contactlist`)}getIndustryByIndustryidNichesPicker(e){return this.transport.request(`/api/industry/${e}/niches/picker`)}getIndustryCrossorgByIndustryId(e){return this.transport.requestForInvokeResultEx(`/api/industry/crossorg/${e}`)}getLandingpageById(e){return this.transport.getFormResponse(`/api/landingpage/${e}`)}getLandingpageCarouselTags(){return this.transport.request("/api/landingpage/carousel/tags")}getLandingpageFooterTags(){return this.transport.request("/api/landingpage/footer/tags")}getLandingpageHeaderTags(){return this.transport.request("/api/landingpage/header/tags")}getLandingpageLayoutById(e){return this.transport.getFormResponse(`/api/landingpage/layout/${e}`)}getLandingpageLayoutTags(){return this.transport.request("/api/landingpage/layout/tags")}getLandingpageMenuById(e){return this.transport.getFormResponse(`/api/landingpage/menu/${e}`)}getLandingpagePaletteById(e){return this.transport.getFormResponse(`/api/landingpage/palette/${e}`)}getLandingpagePaletteTags(){return this.transport.request("/api/landingpage/palette/tags")}getLandingpageSectionTags(){return this.transport.request("/api/landingpage/section/tags")}getLandingpageTags(){return this.transport.request("/api/landingpage/tags")}getMenuById(e){return this.transport.request(`/api/menu/${e}`)}getPersonaById(e){return this.transport.getFormResponse(`/api/persona/${e}`)}getPersonaVpcGenerate(e,t){return this.transport.requestForInvokeResultEx(function P0e(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}("/api/persona/vpc/generate",{q:e,r:t}))}getRolerealityById(e){return this.transport.getFormResponse(`/api/rolereality/${e}`)}getTargetmarketById(e){return this.transport.getFormResponse(`/api/targetmarket/${e}`)}getTargetmarketKeyByKey(e){return this.transport.getFormResponse(`/api/targetmarket/key/${e}`)}getTargetmarketsPicker(){return this.transport.request("/api/targetmarkets/picker")}listIndustryByIndustryidMailinglists(e){return this.transport.getListResponse(`/api/industry/${e}/mailinglists`)}listIndustryByIndustryidNiches(e){return this.transport.getListResponse(`/api/industry/${e}/niches`)}listLandingpageLayouts(){return this.transport.getListResponse("/api/landingpage/layouts")}listLandingpageMenus(){return this.transport.getListResponse("/api/landingpage/menus")}listLandingpagePalettes(){return this.transport.getListResponse("/api/landingpage/palettes")}listLandingpages(){return this.transport.getListResponse("/api/landingpages")}listPersonas(){return this.transport.getListResponse("/api/personas")}listRolerealities(){return this.transport.getListResponse("/api/rolerealities")}listTargetmarkets(){return this.transport.getListResponse("/api/targetmarkets")}updateIndustry(e){return this.transport.update("/api/industry",e)}updateLandingpage(e){return this.transport.update("/api/landingpage",e)}updateLandingpageLayout(e){return this.transport.update("/api/landingpage/layout",e)}updateLandingpageMenu(e){return this.transport.update("/api/landingpage/menu",e)}updateLandingpagePalette(e){return this.transport.update("/api/landingpage/palette",e)}updatePersona(e){return this.transport.update("/api/persona",e)}updateRolereality(e){return this.transport.update("/api/rolereality",e)}updateTargetmarket(e){return this.transport.update("/api/targetmarket",e)}}function v7(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class R0e{transport;constructor(e){this.transport=e}createBulkMailer(e){return this.transport.insert("/api/email/bulk/mailer",e)}createList(e){return this.transport.insert("/api/email/list",e)}createListByIdUpload(e){return this.transport.postWithResponse(`/api/email/list/${e}/upload`,{})}createMailer(e){return this.transport.insert("/api/email/mailer",e)}createNewAbtemplate(){return this.transport.getFormResponse("/api/email/bulk/mailer/abtemplate/factory")}createNewAttachment(){return this.transport.getFormResponse("/api/email/attachment/factory")}createNewEmail(){return this.transport.getFormResponse("/api/email/sender/email/factory")}createNewList(){return this.transport.getFormResponse("/api/email/list/factory")}createNewMailer(){return this.transport.getFormResponse("/api/email/bulk/mailer/factory")}createNewMailerGet(){return this.transport.getFormResponse("/api/email/mailer/factory")}createNewSend(){return this.transport.getFormResponse("/api/email/send/factory")}createNewSender(){return this.transport.getFormResponse("/api/email/sender/factory")}createRefreshlinks(e){return this.transport.postWithResponse("/api/email/refreshlinks",e)}createSender(e){return this.transport.insert("/api/email/sender",e)}deleteBulkMailerById(e){return this.transport.delete(`/api/email/bulk/mailer/${e}`)}deleteListById(e){return this.transport.delete(`/api/email/list/${e}`)}deleteMailerById(e){return this.transport.delete(`/api/email/mailer/${e}`)}deleteMailinglistById(e){return this.transport.delete(`/api/email/mailinglist/${e}`)}deleteSenderById(e){return this.transport.delete(`/api/email/sender/${e}`)}emailBulkMailerIdSend(e){return this.transport.get(`/api/email/bulk/mailer/${e}/send`)}emailCampaignSend(e,t,n,r){return this.transport.requestForInvokeResultEx(v7("/api/email/campaign/send",{name:e,listId:t,senderId:n,designId:r}))}emailMailerIdSend(e){return this.transport.get(`/api/email/mailer/${e}/send`)}emailSend(e){return this.transport.insert("/api/email/send",e)}getBulkMailerById(e){return this.transport.getFormResponse(`/api/email/bulk/mailer/${e}`)}getEmailtemplatesButtonTags(){return this.transport.request("/api/emailtemplates/button/tags")}getEmailtemplatesHerosectionTags(){return this.transport.request("/api/emailtemplates/herosection/tags")}getEmailtemplatesLayoutTags(){return this.transport.request("/api/emailtemplates/layout/tags")}getEmailtemplatesMaincolorsTags(){return this.transport.request("/api/emailtemplates/maincolors/tags")}getEmailtemplatesSectionsTags(){return this.transport.request("/api/emailtemplates/sections/tags")}getEmailtemplatesSocialmediaTags(){return this.transport.request("/api/emailtemplates/socialmedia/tags")}getEmailtemplatesTags(){return this.transport.request("/api/emailtemplates/tags")}getEmailtemplatesTagsColors(){return this.transport.request("/api/emailtemplates/tags/colors")}getListById(e){return this.transport.getFormResponse(`/api/email/list/${e}`)}getListByListidImportjobByJobidRefresh(e,t){return this.transport.requestForInvokeResultEx(`/api/email/list/${e}/importjob/${t}/refresh`)}getMailerById(e){return this.transport.getFormResponse(`/api/email/mailer/${e}`)}getMailinglistByIdRefresh(e){return this.transport.get(`/api/email/mailinglist/${e}/refresh`)}getSenderById(e){return this.transport.getFormResponse(`/api/email/sender/${e}`)}getSenderCreateByUserid(e,t){return this.transport.requestForInvokeResultEx(v7(`/api/email/sender/create/${e}`,{nickname:t}))}listBulkMailers(){return this.transport.getListResponse("/api/email/bulk/mailers")}listCampaigns(){return this.transport.getListResponse("/api/email/campaigns")}listDesigns(){return this.transport.getListResponse("/api/email/designs")}listMailerByIdResults(e){return this.transport.getListResponse(`/api/email/mailer/${e}/results`)}listMailers(){return this.transport.getListResponse("/api/email/mailers")}listMailinglists(){return this.transport.getListResponse("/api/email/mailinglists")}lists(){return this.transport.getListResponse("/api/email/lists")}listSenders(){return this.transport.getListResponse("/api/email/senders")}listSentemailHistoryCompanyByCustomerid(e){return this.transport.getListResponse(`/api/email/sentemail/history/company/${e}`)}listSentemailHistoryContactByContactid(e){return this.transport.getListResponse(`/api/email/sentemail/history/contact/${e}`)}listSentemailHistoryMailerByMailerid(e){return this.transport.getListResponse(`/api/email/sentemail/history/mailer/${e}`)}listSentemailHistoryMessageByMessageid(e){return this.transport.getListResponse(`/api/email/sentemail/history/message/${e}`)}listSentemailHistoryOrg(){return this.transport.getListResponse("/api/email/sentemail/history/org")}listSentemailIndividualHistoryOrg(){return this.transport.getListResponse("/api/email/sentemail/individual/history/org")}listSentemailsAll(){return this.transport.getListResponse("/api/email/sentemails/all")}listSentemailsIndividualAll(){return this.transport.getListResponse("/api/email/sentemails/individual/all")}updateBulkMailer(e){return this.transport.update("/api/email/bulk/mailer",e)}updateList(e){return this.transport.update("/api/email/list",e)}updateMailer(e){return this.transport.update("/api/email/mailer",e)}updateSender(e){return this.transport.update("/api/email/sender",e)}}function Kd(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class O0e{transport;constructor(e){this.transport=e}createDeviceadminDeviceworkflow(e){return this.transport.insert("/api/deviceadmin/deviceworkflow",e)}createDeviceadminUnitset(e){return this.transport.insert("/api/deviceadmin/unitset",e)}createDeviceByDevicerepoid(e,t,n){return this.transport.postWithResponse(Kd(`/api/device/${e}`,{reassign:t}),n)}createDeviceByDevicerepoidByDeviceidGeolocation(e,t,n,r){return this.transport.insert(Kd(`/api/device/${e}/${t}/geolocation`,{id:n}),r)}createDeviceByDevicerepoidByDeviceidLocation(e,t,n){return this.transport.postWithResponse(`/api/device/${e}/${t}/location`,n)}createDeviceByDevicerepoidByDeviceidNote(e,t,n){return this.transport.insert(`/api/device/${e}/${t}/note`,n)}createDeviceByDevicerepoidByDeviceidSensor(e,t,n){return this.transport.insert(`/api/device/${e}/${t}/sensor`,n)}createDeviceByDevicerepoidByDeviceidWificonnection(e,t,n){return this.transport.insert(`/api/device/${e}/${t}/wificonnection`,n)}createDeviceByDevicerepoidByIdDiagram(e,t,n){return this.transport.postWithResponse(`/api/device/${e}/${t}/diagram`,n)}createDeviceByDevicerepoidDeviceByDeviceidImage(e,t){return this.transport.postWithResponse(`/api/device/${e}/device/${t}/image`,{})}createDeviceByDevicerepoidDeviceByDeviceidSensor(e,t,n){return this.transport.postWithResponse(`/api/device/${e}/device/${t}/sensor`,n)}createDeviceByDevicerepoidUserdevice(e,t,n){return this.transport.postWithResponse(Kd(`/api/device/${e}/userdevice`,{overwrite:t}),n)}createDeviceByRepoidByDeviceidTransaction(e,t,n){return this.transport.insert(`/api/device/${e}/${t}/transaction`,n)}createDeviceClearexception(e){return this.transport.insert("/api/device/clearexception",e)}createDeviceconfig(e){return this.transport.insert("/api/deviceconfig",e)}createDeviceCurrentContact(e){return this.transport.postWithResponse("/api/device/current/contact",e)}createDeviceHandleexception(e){return this.transport.insert("/api/device/handleexception",e)}createDeviceHandlexception(e){return this.transport.insert("/api/device/handlexception",e)}createDevicemessagetype(e){return this.transport.insert("/api/devicemessagetype",e)}createDevicemessagetypeFieldsParse(){return this.transport.postWithResponse("/api/devicemessagetype/fields/parse",{})}createDevicemessagetypeSevensegementTest(e){return this.transport.postWithResponse("/api/devicemessagetype/sevensegement/test",e)}createDeviceNotificationGenerate(e){return this.transport.postWithResponse("/api/device/notification/generate",e)}createDeviceOwner(e){return this.transport.insert("/api/device/owner",e)}createDeviceRemoteconfigByOrgidByRepoidByIdByPinCommandByCmdid(e,t,n,r,o,a){return this.transport.insert(`/api/device/remoteconfig/${e}/${t}/${n}/${r}/command/${o}`,a)}createDeviceRemoteconfigByRepoidByIdCommandByCmdid(e,t,n,r){return this.transport.insert(`/api/device/remoteconfig/${e}/${t}/command/${n}`,r)}createDevicerepo(e){return this.transport.insert("/api/devicerepo",e)}createDeviceStatusOffline(e,t){return this.transport.postWithResponse(Kd("/api/device/status/offline",{lastcontact:e}),t)}createDeviceStatusOnline(e,t){return this.transport.postWithResponse(Kd("/api/device/status/online",{lastContact:e}),t)}createDevicetype(e){return this.transport.insert("/api/devicetype",e)}createDeviceypeByDevicetypeidByFiletypeUpload(e,t){return this.transport.postWithResponse(`/api/deviceype/${e}/${t}/upload`,{})}createNewBomitem(){return this.transport.getFormResponse("/api/devicetype/bomitem/factory")}createNewCommand(){return this.transport.getFormResponse("/api/deviceconfig/command/factory")}createNewContact(){return this.transport.getFormResponse("/api/device/current/contact/factory")}createNewCustomr(e,t){return this.transport.getFormResponse(`/api/device/${e}/customr/${t}/factory`)}createNewDevice(e){return this.transport.getFormResponse(`/api/device/${e}/factory`)}createNewDeviceconfig(){return this.transport.getFormResponse("/api/deviceconfig/factory")}createNewDevicemessagetype(){return this.transport.getFormResponse("/api/devicemessagetype/factory")}createNewDevicerepo(){return this.transport.getFormResponse("/api/devicerepo/factory")}createNewDevicetype(){return this.transport.getFormResponse("/api/devicetype/factory")}createNewErrorcode(){return this.transport.getFormResponse("/api/deviceconfig/errorcode/factory")}createNewField(){return this.transport.getFormResponse("/api/devicemessagetype/field/factory")}createNewFramingbyte(){return this.transport.getFormResponse("/api/devicemessagetype/framingbyte/factory")}createNewHeader(){return this.transport.getFormResponse("/api/devicemessagetype/header/factory")}createNewMessagewatchdog(){return this.transport.getFormResponse("/api/deviceconfig/messagewatchdog/factory")}createNewModuleconfig(){return this.transport.getFormResponse("/api/deviceconfig/route/moduleconfig/factory")}createNewNote(){return this.transport.getFormResponse("/api/device/note/factory")}createNewParameter(){return this.transport.getFormResponse("/api/deviceconfig/command/parameter/factory")}createNewProperty(){return this.transport.getFormResponse("/api/deviceconfig/property/factory")}createNewRoute(){return this.transport.getFormResponse("/api/deviceconfig/route/factory")}createNewSamplemessage(){return this.transport.getFormResponse("/api/devicemessagetype/samplemessage/factory")}createNewSensor(){return this.transport.getFormResponse("/api/device/sensor/factory")}createNewSensordefinition(){return this.transport.getFormResponse("/api/deviceconfig/sensordefinition/factory")}createNewSensordefinitionGet(){return this.transport.getFormResponse("/api/device/sensordefinition/factory")}createNewStandard(){return this.transport.getFormResponse("/api/devicerepo/standard/factory")}createNewTransaction(){return this.transport.getFormResponse("/api/device/transaction/factory")}createNewWatchdogexclusion(){return this.transport.getFormResponse("/api/deviceconfig/watchdogexclusion/factory")}deleteDeviceadminDeviceworkflowsById(e){return this.transport.delete(`/api/deviceadmin/deviceworkflows/${e}`)}deleteDeviceadminUnitsetByUnitsetid(e){return this.transport.delete(`/api/deviceadmin/unitset/${e}`)}deleteDeviceByDevicerepoidByDeviceidErrorByErrorcode(e,t,n){return this.transport.delete(`/api/device/${e}/${t}/error/${n}`)}deleteDeviceByDevicerepoidByDeviceidLocationByLocationidRemove(e,t,n){return this.transport.delete(`/api/device/${e}/${t}/location/${n}/remove`)}deleteDeviceByDevicerepoidById(e,t){return this.transport.delete(`/api/device/${e}/${t}`)}deleteDeviceByDevicerepoidByIdDiagram(e,t){return this.transport.deleteWithResponse(`/api/device/${e}/${t}/diagram`)}deleteDeviceByDevicerepoidByIdPin(e,t){return this.transport.deleteWithResponse(`/api/device/${e}/${t}/pin`)}deleteDeviceByDevicerepoidDeviceByDeviceidSensorBySensorid(e,t,n){return this.transport.deleteWithResponse(`/api/device/${e}/device/${t}/sensor/${n}`)}deleteDeviceconfigById(e){return this.transport.delete(`/api/deviceconfig/${e}`)}deleteDeviceCurrentContactById(e){return this.transport.deleteWithResponse(`/api/device/current/contact/${e}`)}deleteDevicemessagetypeById(e){return this.transport.delete(`/api/devicemessagetype/${e}`)}deleteDevicerepoById(e){return this.transport.delete(`/api/devicerepo/${e}`)}deleteDevicetypeById(e){return this.transport.delete(`/api/devicetype/${e}`)}deviceDevicerepoidIdIosbleaddressIosbleaddressSet(e,t,n){return this.transport.get(`/api/device/${e}/${t}/iosbleaddress/${n}/set`)}deviceDevicerepoidIdMacaddressMacaddressSet(e,t,n){return this.transport.get(`/api/device/${e}/${t}/macaddress/${n}/set`)}deviceDevicerepoidIdPinSetPin(e,t,n){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/pin/set/${n}`)}deviceErrorErroridClear(e){return this.transport.get(`/api/device/error/${e}/clear`)}deviceRemoteconfigOrgidRepoidIdPinAllSend(e,t,n,r){return this.transport.get(`/api/device/remoteconfig/${e}/${t}/${n}/${r}/all/send`)}deviceRemoteconfigOrgidRepoidIdPinIdxSend(e,t,n,r,o){return this.transport.get(`/api/device/remoteconfig/${e}/${t}/${n}/${r}/${o}/send`)}deviceRemoteconfigRepoidIdAllSend(e,t){return this.transport.get(`/api/device/remoteconfig/${e}/${t}/all/send`)}deviceRemoteconfigRepoidIdIdxSend(e,t,n){return this.transport.get(`/api/device/remoteconfig/${e}/${t}/${n}/send`)}getByDevicerepoidByDeviceidCustomstatusReset(e,t){return this.transport.get(`/api/devices/${e}/${t}/customstatus/reset`)}getByDevicerepoidByIdReset(e,t){return this.transport.get(`/api/devices/${e}/${t}/reset`)}getByDevicerepoidByParentidAttachchildByChildid(e,t,n){return this.transport.get(`/api/devices/${e}/${t}/attachchild/${n}`)}getByDevicerepoidByParentidRemovechildByChildid(e,t,n){return this.transport.get(`/api/devices/${e}/${t}/removechild/${n}`)}getByDevicerepoidCustomerByCustomeridReset(e,t){return this.transport.get(`/api/devices/${e}/customer/${t}/reset`)}getDeviceadminDeviceworkflowByDeviceWorkflowId(e){return this.transport.getFormResponse(`/api/deviceadmin/deviceworkflow/${e}`)}getDeviceadminDeviceworkflowsByIdInuse(e){return this.transport.request(`/api/deviceadmin/deviceworkflows/${e}/inuse`)}getDeviceadminDeviceworkflowsKeyinuseByKey(e){return this.transport.request(`/api/deviceadmin/deviceworkflows/keyinuse/${e}`)}getDeviceadminFactoryAction(){return this.transport.getFormResponse("/api/deviceadmin/factory/action")}getDeviceadminFactoryActionparameter(){return this.transport.getFormResponse("/api/deviceadmin/factory/actionparameter")}getDeviceadminFactoryAdminnote(){return this.transport.getFormResponse("/api/deviceadmin/factory/adminnote")}getDeviceadminFactoryAttribute(){return this.transport.getFormResponse("/api/deviceadmin/factory/attribute")}getDeviceadminFactoryCustomfield(){return this.transport.getFormResponse("/api/deviceadmin/factory/customfield")}getDeviceadminFactoryCustomfieldcollection(){return this.transport.getFormResponse("/api/deviceadmin/factory/customfieldcollection")}getDeviceadminFactoryDevicebusinessrule(){return this.transport.getFormResponse("/api/deviceadmin/factory/devicebusinessrule")}getDeviceadminFactoryDeviceworkflow(){return this.transport.getFormResponse("/api/deviceadmin/factory/deviceworkflow")}getDeviceadminFactoryInput(){return this.transport.getFormResponse("/api/deviceadmin/factory/input")}getDeviceadminFactoryInputcommand(){return this.transport.getFormResponse("/api/deviceadmin/factory/inputcommand")}getDeviceadminFactoryInputcommandParameter(){return this.transport.getFormResponse("/api/deviceadmin/factory/inputcommand/parameter")}getDeviceadminFactoryOutputcommand(){return this.transport.getFormResponse("/api/deviceadmin/factory/outputcommand")}getDeviceadminFactoryOutputcommandParameter(){return this.transport.getFormResponse("/api/deviceadmin/factory/outputcommand/parameter")}getDeviceadminFactoryPage(){return this.transport.getFormResponse("/api/deviceadmin/factory/page")}getDeviceadminFactoryParameter(){return this.transport.getFormResponse("/api/deviceadmin/factory/parameter")}getDeviceadminFactoryUnit(){return this.transport.getFormResponse("/api/deviceadmin/factory/unit")}getDeviceadminFactoryUnitset(){return this.transport.getFormResponse("/api/deviceadmin/factory/unitset")}getDeviceadminUnitsetByIdInuse(e){return this.transport.request(`/api/deviceadmin/unitset/${e}/inuse`)}getDeviceadminUnitsetByUnitsetid(e){return this.transport.getFormResponse(`/api/deviceadmin/unitset/${e}`)}getDeviceadminUnitsetKeyinuseByKey(e){return this.transport.request(`/api/deviceadmin/unitset/keyinuse/${e}`)}getDeviceAlarmsSilence(){return this.transport.get("/api/device/alarms/silence")}getDeviceByDevicerepoidByDeviceidByPemidPem(e,t,n){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/${n}/pem`)}getDeviceByDevicerepoidByDeviceidLocationByLocationidAdd(e,t,n){return this.transport.get(`/api/device/${e}/${t}/location/${n}/add`)}getDeviceByDevicerepoidByDevicetypeidCreate(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/create`)}getDeviceByDevicerepoidById(e,t){return this.transport.getFormResponse(`/api/device/${e}/${t}`)}getDeviceByDevicerepoidByIdAlarmsEnable(e,t){return this.transport.get(`/api/device/${e}/${t}/alarms/enable`)}getDeviceByDevicerepoidByIdAlarmsSilence(e,t){return this.transport.get(`/api/device/${e}/${t}/alarms/silence`)}getDeviceByDevicerepoidByIdBoundingbox(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/boundingbox`)}getDeviceByDevicerepoidByIdCustomstatusByStatus(e,t,n){return this.transport.get(`/api/device/${e}/${t}/customstatus/${n}`)}getDeviceByDevicerepoidByIdDebugmodeByDebugmode(e,t,n){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/debugmode/${n}`)}getDeviceByDevicerepoidByIdLabel(e,t){return this.transport.request(`/api/device/${e}/${t}/label`)}getDeviceByDevicerepoidByIdLinkShort(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/link/short`)}getDeviceByDevicerepoidByIdMetadata(e,t){return this.transport.getFormResponse(`/api/device/${e}/${t}/metadata`)}getDeviceByDevicerepoidByIdName(e,t,n){return this.transport.requestForInvokeResultEx(Kd(`/api/device/${e}/${t}/name`,{devicename:n}))}getDeviceByDevicerepoidByIdPin(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/pin`)}getDeviceByDevicerepoidByIdSetDeviceidByNewdeviceid(e,t,n){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/set/deviceid/${n}`)}getDeviceByDevicerepoidByIdStatusByStatus(e,t,n){return this.transport.get(`/api/device/${e}/${t}/status/${n}`)}getDeviceByDevicerepoidByIdTestmodeByTestmode(e,t,n){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/testmode/${n}`)}getDeviceByDevicerepoidConnectionsettingsReset(e){return this.transport.requestForInvokeResultEx(`/api/device/${e}/connectionsettings/reset`)}getDeviceByDevicerepoidDeviceByDeviceidImageByMediaid(e,t,n){return this.transport.request(`/api/device/${e}/device/${t}/image/${n}`)}getDeviceByDevicerepoidDeviceidByDeviceid(e,t){return this.transport.getFormResponse(`/api/device/${e}/deviceid/${t}`)}getDeviceByDevicerepoidDeviceidByDeviceidMetadata(e,t){return this.transport.getFormResponse(`/api/device/${e}/deviceid/${t}/metadata`)}getDeviceByDevicerepoidErrorsByDeviceidSilenceByErrorid(e,t,n){return this.transport.get(`/api/device/${e}/errors/${t}/silence/${n}`)}getDeviceByDevicerepoidInuseByDeviceid(e,t){return this.transport.request(`/api/device/${e}/inuse/${t}`)}getDeviceByDevicerepoidIosbleaddressByIosbleaddress(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/iosbleaddress/${t}`)}getDeviceByDevicerepoidKeyByDevicetypekeyCreate(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/key/${t}/create`)}getDeviceByDevicerepoidMacaddressByMacaddress(e,t){return this.transport.requestForInvokeResultEx(`/api/device/${e}/macaddress/${t}`)}getDeviceByDevicerepoidWatchdogByDeviceidNotificationsBySilenced(e,t,n){return this.transport.get(`/api/device/${e}/watchdog/${t}/notifications/${n}`)}getDeviceByOrgidByDevicerepoidByIdByPinSignin(e,t,n,r){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/${n}/${r}/signin`)}getDeviceByOrgidByDevicerepoidByIdByPinView(e,t,n,r){return this.transport.requestForInvokeResultEx(`/api/device/${e}/${t}/${n}/${r}/view`)}getDeviceByRepoidByIdErrorByErrorcodeRaise(e,t,n){return this.transport.get(`/api/device/${e}/${t}/error/${n}/raise`)}getDeviceconfigById(e){return this.transport.getFormResponse(`/api/deviceconfig/${e}`)}getDeviceconfigByIdCustompage(e){return this.transport.requestForInvokeResultEx(`/api/deviceconfig/${e}/custompage`)}getDeviceconfigByIdCustompageQuicklink(e){return this.transport.requestForInvokeResultEx(`/api/deviceconfig/${e}/custompage/quicklink`)}getDeviceconfigByIdInuse(e){return this.transport.request(`/api/deviceconfig/${e}/inuse`)}getDeviceconfigByIdProperties(e){return this.transport.request(`/api/deviceconfig/${e}/properties`)}getDeviceconfigByKeyKeyinuse(e){return this.transport.request(`/api/deviceconfig/${e}/keyinuse`)}getDeviceCurrent(){return this.transport.requestForInvokeResultEx("/api/device/current")}getDeviceErrorByErroridSilence(e){return this.transport.get(`/api/device/error/${e}/silence`)}getDevicegroupsKeyinuseByKey(e){return this.transport.request(`/api/devicegroups/keyinuse/${e}`)}getDevicemessagetypeById(e){return this.transport.getFormResponse(`/api/devicemessagetype/${e}`)}getDevicemessagetypeByIdInuse(e){return this.transport.request(`/api/devicemessagetype/${e}/inuse`)}getDevicemessagetypeByKeyKeyinuse(e){return this.transport.request(`/api/devicemessagetype/${e}/keyinuse`)}getDevicemessagetypeClone(e){return this.transport.get("/api/devicemessagetype/clone")}getDeviceNotificationRaisedByRepoidByRaisedidSummary(e,t){return this.transport.requestForInvokeResultEx(`/api/device/notification/raised/${e}/${t}/summary`)}getDeviceownerAccountByPhoneNumberByCodeCreate(e,t){return this.transport.requestForInvokeResultEx(`/api/deviceowner/account/${e}/${t}/create`)}getDeviceownerAccountByPhoneNumberByCodeLogin(e,t){return this.transport.requestForInvokeResultEx(`/api/deviceowner/account/${e}/${t}/login`)}getDeviceownerPhoneByPhoneNumberSendcode(e){return this.transport.get(`/api/deviceowner/phone/${e}/sendcode`)}getDeviceownerSearchPhoneByPhoneNumber(e){return this.transport.get(`/api/deviceowner/search/phone/${e}`)}getDeviceProductAssociate(e){return this.transport.get(Kd("/api/device/product/associate",{confirm:e}))}getDeviceRemoteconfigByRepoidByDeviceidFirmwareByFirmwareidRevisionByRevisionid(e,t,n,r,o){return this.transport.requestForInvokeResultEx(Kd(`/api/device/remoteconfig/${e}/${t}/firmware/${n}/revision/${r}`,{triggeredRemotely:o}))}getDeviceRemoteconfigByRepoidByIdQuery(e,t){return this.transport.get(`/api/device/remoteconfig/${e}/${t}/query`)}getDeviceRemoteconfigByRepoidByIdRestart(e,t){return this.transport.get(`/api/device/remoteconfig/${e}/${t}/restart`)}getDevicerepoById(e){return this.transport.getFormResponse(`/api/devicerepo/${e}`)}getDevicerepoByIdInuse(e){return this.transport.request(`/api/devicerepo/${e}/inuse`)}getDeviceRepoByIdWifiprofiles(e){return this.transport.request(`/api/device/repo/${e}/wifiprofiles`)}getDevicerepoByOrgidByIdLogoDark(e,t){return this.transport.request(`/api/devicerepo/${e}/${t}/logo/dark`)}getDevicerepoByOrgidByIdLogoLight(e,t){return this.transport.request(`/api/devicerepo/${e}/${t}/logo/light`)}getDevicerepoByOrgidByIdTheme(e,t){return this.transport.requestForInvokeResultEx(`/api/devicerepo/${e}/${t}/theme`)}getDeviceRepoByRepoidDefaultlistener(e){return this.transport.requestForInvokeResultEx(`/api/device/repo/${e}/defaultlistener`)}getDeviceResetByNewpin(e){return this.transport.requestForInvokeResultEx(`/api/device/reset/${e}`)}getDevicetypeByDevicetypeidQaCompleted(e){return this.transport.requestForInvokeResultEx(`/api/devicetype/${e}/qa/completed`)}getDevicetypeById(e){return this.transport.getFormResponse(`/api/devicetype/${e}`)}getDevicetypeByIdInuse(e){return this.transport.request(`/api/devicetype/${e}/inuse`)}getDevicetypeByKeyKeyinuse(e){return this.transport.request(`/api/devicetype/${e}/keyinuse`)}listByDevicerepoid(e){return this.transport.getListResponse(`/api/devices/${e}`)}listByDevicerepoidByParentidChildren(e,t){return this.transport.getListResponse(`/api/devices/${e}/${t}/children`)}listByDevicerepoidByUserid(e,t){return this.transport.getListResponse(`/api/devices/${e}/${t}`)}listByDevicerepoidCustomerByCustomerid(e,t){return this.transport.getListResponse(`/api/devices/${e}/customer/${t}`)}listByDevicerepoidCustomerByCustomeridLocationByCustomerlocationid(e,t,n){return this.transport.getListResponse(`/api/devices/${e}/customer/${t}/location/${n}`)}listByDevicerepoidCustomstatusByCustomstatus(e,t){return this.transport.getListResponse(`/api/devices/${e}/customstatus/${t}`)}listByDevicerepoidDeviceByDeviceidOwners(e,t){return this.transport.getListResponse(`/api/devices/${e}/device/${t}/owners`)}listByDevicerepoidDeviceconfigByConfigid(e,t){return this.transport.getListResponse(`/api/devices/${e}/deviceconfig/${t}`)}listByDevicerepoidDeviceconfigByConfigidFull(e,t){return this.transport.getListResponse(`/api/devices/${e}/deviceconfig/${t}/full`)}listByDevicerepoidDevicetypeByDevicetypeid(e,t){return this.transport.getListResponse(`/api/devices/${e}/devicetype/${t}`)}listByDevicerepoidDevicetypeKeyByDevicetypeid(e,t){return this.transport.getListResponse(`/api/devices/${e}/devicetype/key/${t}`)}listByDevicerepoidSearchBySearch(e,t){return this.transport.getListResponse(`/api/devices/${e}/search/${t}`)}listByDevicerepoidStatus(e){return this.transport.getListResponse(`/api/devices/${e}/status`)}listByDevicerepoidStatusByStatus(e,t){return this.transport.getListResponse(`/api/devices/${e}/status/${t}`)}listDeviceadminDeviceworkflows(){return this.transport.getListResponse("/api/deviceadmin/deviceworkflows")}listDeviceadminUnitsets(){return this.transport.getListResponse("/api/deviceadmin/unitsets")}listDeviceByDevicerepoidArchivesByDeviceid(e,t){return this.transport.getListResponse(`/api/device/${e}/archives/${t}`)}listDeviceByDevicerepoidArchivesSensorByDeviceid(e,t){return this.transport.getListResponse(`/api/device/${e}/archives/sensor/${t}`)}listDeviceByDevicerepoidByDeviceidConnectionlog(e,t){return this.transport.getListResponse(`/api/device/${e}/${t}/connectionlog`)}listDeviceByDevicerepoidByIdAlarmsSilenced(e,t){return this.transport.getListResponse(`/api/device/${e}/${t}/alarms/silenced`)}listDeviceByDevicerepoidErrorsByDeviceid(e,t){return this.transport.getListResponse(`/api/device/${e}/errors/${t}`)}listDeviceByDevicerepoidPemsByDeviceid(e,t){return this.transport.getListResponse(`/api/device/${e}/pems/${t}`)}listDeviceByDevicerepoidPemsErrorsByErrorreason(e,t){return this.transport.getListResponse(`/api/device/${e}/pems/errors/${t}`)}listDeviceByDevicerepoidStatusByDeviceidHistory(e,t){return this.transport.getListResponse(`/api/device/${e}/status/${t}/history`)}listDeviceByRepoidByDeviceidRecords(e,t){return this.transport.getListResponse(`/api/device/${e}/${t}/records`)}listDeviceByRepoidByDeviceidTypeByKeyRecords(e,t,n){return this.transport.getListResponse(`/api/device/${e}/${t}/type/${n}/records`)}listDeviceByRepoidLocationByLocationidRecords(e,t){return this.transport.getListResponse(`/api/device/${e}/location/${t}/records`)}listDeviceByRepoidLocationByLocationidTypeByKeyRecords(e,t,n){return this.transport.getListResponse(`/api/device/${e}/location/${t}/type/${n}/records`)}listDeviceByRepoidRecords(e){return this.transport.getListResponse(`/api/device/${e}/records`)}listDeviceByRepoidTypeByKeyRecords(e,t){return this.transport.getListResponse(`/api/device/${e}/type/${t}/records`)}listDeviceconfigByDeviceconfigidDevicetypes(e){return this.transport.getListResponse(`/api/deviceconfig/${e}/devicetypes`)}listDeviceconfigByIdSimulators(e){return this.transport.getListResponse(`/api/deviceconfig/${e}/simulators`)}listDeviceconfigs(){return this.transport.getListResponse("/api/deviceconfigs")}listDevicemessagetypes(){return this.transport.getListResponse("/api/devicemessagetypes")}listDevicemessagetypesIncoming(){return this.transport.getListResponse("/api/devicemessagetypes/incoming")}listDevicemessagetypesOutgoing(){return this.transport.getListResponse("/api/devicemessagetypes/outgoing")}listDevicemessagetypesPublic(){return this.transport.getListResponse("/api/devicemessagetypes/public")}listDevicemessagetypesSevenseg(){return this.transport.getListResponse("/api/devicemessagetypes/sevenseg")}listDeviceNotificationByDeviceidHistory(e){return this.transport.getListResponse(`/api/device/notification/${e}/history`)}listDeviceNotificationRaisedByDeviceidHistory(e){return this.transport.getListResponse(`/api/device/notification/raised/${e}/history`)}listDeviceNotificationRaisedRepoByRepoidHistory(e){return this.transport.getListResponse(`/api/device/notification/raised/repo/${e}/history`)}listDeviceNotificationRepoByRepoidHistory(e){return this.transport.getListResponse(`/api/device/notification/repo/${e}/history`)}listDevicerepos(){return this.transport.getListResponse("/api/devicerepos")}listDevicereposAvailable(){return this.transport.getListResponse("/api/devicerepos/available")}listDevicetypeByDevicetypeidQaResults(e){return this.transport.getListResponse(`/api/devicetype/${e}/qa/results`)}listDevicetypeByIdSimulators(e){return this.transport.getListResponse(`/api/devicetype/${e}/simulators`)}listDevicetypes(){return this.transport.getListResponse("/api/devicetypes")}updateDeviceadminDeviceworkflow(e){return this.transport.update("/api/deviceadmin/deviceworkflow",e)}updateDeviceadminUnitset(e){return this.transport.update("/api/deviceadmin/unitset",e)}updateDeviceByDevicerepoid(e,t){return this.transport.updateWithResponse(`/api/device/${e}`,t)}updateDeviceByDevicerepoidByDeviceidProperty(e,t,n){return this.transport.update(`/api/device/${e}/${t}/property`,n)}updateDeviceByDevicerepoidStatus(e,t){return this.transport.update(`/api/device/${e}/status`,t)}updateDeviceconfig(e){return this.transport.update("/api/deviceconfig",e)}updateDeviceCurrentContact(e){return this.transport.updateWithResponse("/api/device/current/contact",e)}updateDevicemessagetype(e){return this.transport.update("/api/devicemessagetype",e)}updateDevicemessagetypeFieldparserValidate(e){return this.transport.request("/api/devicemessagetype/fieldparser/validate")}updateDevicemessagetypeFieldValidate(e){return this.transport.request("/api/devicemessagetype/field/validate")}updateDeviceProperties(e){return this.transport.updateWithResponse("/api/device/properties",e)}updateDevicerepo(e){return this.transport.update("/api/devicerepo",e)}updateDevicetype(e){return this.transport.update("/api/devicetype",e)}}function Nv(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class L0e{transport;constructor(e){this.transport=e}businessSigneddocumentIdSigneeSigneeidPinEmailSend(e,t){return this.transport.requestForInvokeResultEx(`/api/business/signeddocument/${e}/signee/${t}/pin/email/send`)}businessSigneddocumentIdSigneeSigneeidPinPhoneSend(e,t){return this.transport.requestForInvokeResultEx(`/api/business/signeddocument/${e}/signee/${t}/pin/phone/send`)}createNewLineitem(){return this.transport.getFormResponse("/api/business/proposal/lineitem/factory")}createNewLineitemGet(e,t){return this.transport.getFormResponse(`/api/business/proposal/${e}/lineitem/${t}/factory`)}createNewProposal(){return this.transport.getFormResponse("/api/business/proposal/factory")}createNewProposalGet(e){return this.transport.getFormResponse(`/api/business/proposal/${e}/factory`)}createNewSigneddocument(){return this.transport.getFormResponse("/api/business/signeddocument/factory")}createNewSignee(){return this.transport.getFormResponse("/api/business/signeddocument/signee/factory")}createProposal(e){return this.transport.insert("/api/business/proposal",e)}createProposalTemplatePreview(e){return this.transport.postWithResponse("/api/business/proposal/template/preview",e)}createSigneddocument(e){return this.transport.insert("/api/business/signeddocument",e)}createSigneddocumentByIdSignee(e,t){return this.transport.postWithResponse(`/api/business/signeddocument/${e}/signee`,t)}createSigneddocumentUpload(){return this.transport.postWithResponse("/api/business/signeddocument/upload",{})}deleteProposalById(e){return this.transport.delete(`/api/business/proposal/${e}`)}deleteSigneddocumentById(e){return this.transport.delete(`/api/business/signeddocument/${e}`)}getProposalById(e){return this.transport.getFormResponse(`/api/business/proposal/${e}`)}getProposalByIdAgreement(e){return this.transport.getFormResponse(`/api/business/proposal/${e}/agreement`)}getProposalByIdPdf(e){return this.transport.request(`/api/business/proposal/${e}/pdf`)}getProposalByIdPreview(e){return this.transport.requestForInvokeResultEx(`/api/business/proposal/${e}/preview`)}getProposalTags(){return this.transport.requestForInvokeResultEx("/api/business/proposal/tags")}getReportsIncomestatment(e,t){return this.transport.request(Nv("/api/business/reports/incomestatment",{month:e,year:t}))}getSigneddocumentByDocidDownload(e){return this.transport.request(`/api/business/signeddocument/${e}/download`)}getSigneddocumentByDocidSigneeBySigneeeidPhoneByPhone(e,t,n){return this.transport.requestForInvokeResultEx(`/api/business/signeddocument/${e}/signee/${t}/phone/${n}`)}getSigneddocumentByDocidSigneeBySigneeidSign(e,t){return this.transport.requestForInvokeResultEx(`/api/business/signeddocument/${e}/signee/${t}/sign`)}getSigneddocumentByDocidSigneesRequest(e,t){return this.transport.get(Nv(`/api/business/signeddocument/${e}/signees/request`,{signeeid:t}))}getSigneddocumentById(e){return this.transport.getFormResponse(`/api/business/signeddocument/${e}`)}listProposals(){return this.transport.getListResponse("/api/business/proposals")}listProposalsByCustomerId(e){return this.transport.getListResponse(`/api/business/proposals/${e}`)}listProposalsStatusByStatus(e){return this.transport.getListResponse(`/api/business/proposals/status/${e}`)}listSigneddocuments(e){return this.transport.getListResponse(Nv("/api/business/signeddocuments",{type:e}))}listSigneddocumentsAppuserById(e,t){return this.transport.getListResponse(Nv(`/api/business/signeddocuments/appuser/${e}`,{type:t}))}listSigneddocumentsCustomerById(e,t){return this.transport.getListResponse(Nv(`/api/business/signeddocuments/customer/${e}`,{type:t}))}updateProposal(e){return this.transport.update("/api/business/proposal",e)}updateSigneddocumentByIdSignee(e,t){return this.transport.updateWithResponse(`/api/business/signeddocument/${e}/signee`,t)}updateSigneddocumentByIdSigneeComplete(e,t){return this.transport.updateWithResponse(`/api/business/signeddocument/${e}/signee/complete`,t)}}class B0e{transport;constructor(e){this.transport=e}createNewExpectedoutput(e){return this.transport.getFormResponse(function N0e(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}("/api/verifier/expectedoutput/factory",{type:e}))}createNewMessageattributeparser(){return this.transport.getFormResponse("/api/messageattributeparser/factory")}createVerifier(e){return this.transport.insert("/api/verifier",e)}createVerifierruntimeMessageattributeparserExecute(e){return this.transport.request("/api/verifierruntime/messageattributeparser/execute")}createVerifierruntimeMessageparserExecute(e){return this.transport.request("/api/verifierruntime/messageparser/execute")}deleteVerifierById(e){return this.transport.delete(`/api/verifier/${e}`)}getVerifierById(e){return this.transport.getFormResponse(`/api/verifier/${e}`)}getVerifierFactoryByType(e){return this.transport.getFormResponse(`/api/verifier/factory/${e}`)}getVerifiersKeyinuseByKey(e){return this.transport.request(`/api/verifiers/keyinuse/${e}`)}listDevicemessagetypes(){return this.transport.getListResponse("/api/devicemessagetypes")}listDevicemessagetypesIncoming(){return this.transport.getListResponse("/api/devicemessagetypes/incoming")}listDevicemessagetypesOutgoing(){return this.transport.getListResponse("/api/devicemessagetypes/outgoing")}listDevicemessagetypesPublic(){return this.transport.getListResponse("/api/devicemessagetypes/public")}listDevicemessagetypesSevenseg(){return this.transport.getListResponse("/api/devicemessagetypes/sevenseg")}listVerifiersComponentByComponentid(e){return this.transport.getListResponse(`/api/verifiers/component/${e}`)}listVerifiersOrgByOrgid(e){return this.transport.getListResponse(`/api/verifiers/org/${e}`)}updateVerifier(e){return this.transport.update("/api/verifier",e)}}class V0e{transport;constructor(e){this.transport=e}createAccount(e){return this.transport.postWithResponse("/api/account",e)}createAccountAccountlinkingregistrationCreateAccount(e){return this.transport.postWithResponse("/api/account/accountlinkingregistration/create/account",e)}createAccountAccountlinkingregistrationCreateCreditcard(e){return this.transport.postWithResponse("/api/account/accountlinkingregistration/create/creditcard",e)}createAccountAccountlinkingregistrationLinkAccount(e){return this.transport.postWithResponse("/api/account/accountlinkingregistration/link/account",e)}createAccountAccountlinkingregistrationLinkCreditcard(e){return this.transport.postWithResponse("/api/account/accountlinkingregistration/link/creditcard",e)}createAccountByIdTransaction(e,t){return this.transport.postWithResponse(`/api/account/${e}/transaction`,t)}createAccountCreditcard(e){return this.transport.request("/api/account/creditcard")}createAccountlinkingregistration(e){return this.transport.insert("/api/accountlinkingregistration",e)}createAccountPlaidLink(e){return this.transport.postWithResponse("/api/account/plaid/link",e)}createAccountsPlaidWebhook(e){return this.transport.request("/api/accounts/plaid/webhook")}createAccountTransactionCategory(e){return this.transport.postWithResponse("/api/account/transaction/category",e)}createNewAccountlinkingregistration(){return this.transport.getFormResponse("/api/accountlinkingregistration/factory")}createNewCategory(){return this.transport.getFormResponse("/api/account/transaction/category/factory")}createNewCreditcard(){return this.transport.getFormResponse("/api/account/creditcard/factory")}deleteAccountByIdTransactionByTxidVoid(e,t){return this.transport.deleteWithResponse(`/api/account/${e}/transaction/${t}/void`)}deleteAccountCreditcardById(e){return this.transport.request(`/api/account/creditcard/${e}`)}deleteAccountlinkingregistrationById(e){return this.transport.delete(`/api/accountlinkingregistration/${e}`)}deleteAccountPlaidItemById(e){return this.transport.delete(`/api/account/plaid/item/${e}`)}getAccountById(e){return this.transport.requestForInvokeResultEx(`/api/account/${e}`)}getAccountByIdTransactionByTransactionid(e,t){return this.transport.requestForInvokeResultEx(`/api/account/${e}/transaction/${t}`)}getAccountCreditcardById(e){return this.transport.getFormResponse(`/api/account/creditcard/${e}`)}getAccountlinkingregistrationById(e){return this.transport.getFormResponse(`/api/accountlinkingregistration/${e}`)}getAccountlinkingregistrationLinktargets(){return this.transport.requestForInvokeResultEx("/api/accountlinkingregistration/linktargets")}getAccountlinkingregistrationProviderByProviderExternalByExternalProviderId(e,t){return this.transport.getFormResponse(`/api/accountlinkingregistration/provider/${e}/external/${t}`)}getAccountPlaidByItemId(e){return this.transport.requestForInvokeResultEx(`/api/account/plaid/${e}`)}getAccountPlaidSyncByItemId(e){return this.transport.requestForInvokeResultEx(`/api/account/plaid/sync/${e}`)}getAccountPlaidToken(){return this.transport.requestForInvokeResultEx("/api/account/plaid/token")}getAccountTransactionCategoryById(e){return this.transport.getFormResponse(`/api/account/transaction/category/${e}`)}listAccountByIdTransactions(e){return this.transport.getListResponse(`/api/account/${e}/transactions`)}listAccountCreditcards(){return this.transport.getListResponse("/api/account/creditcards")}listAccountCreditcardsCardholderByCardHolderId(e){return this.transport.getListResponse(`/api/account/creditcards/cardholder/${e}`)}listAccountlinkingregistrations(){return this.transport.getListResponse("/api/accountlinkingregistrations")}listAccountlinkingregistrationsProviderByProvider(e){return this.transport.getListResponse(`/api/accountlinkingregistrations/provider/${e}`)}listAccountlinkingregistrationsProviderByProviderExternalByExternalProviderId(e,t){return this.transport.getListResponse(`/api/accountlinkingregistrations/provider/${e}/external/${t}`)}listAccounts(){return this.transport.getListResponse("/api/accounts")}listAccountsActive(){return this.transport.getListResponse("/api/accounts/active")}listAccountTransactionCategories(){return this.transport.getListResponse("/api/account/transaction/categories")}listAccountTransactionCategoriesActive(){return this.transport.getListResponse("/api/account/transaction/categories/active")}updateAccount(e){return this.transport.updateWithResponse("/api/account",e)}updateAccountByIdTransaction(e,t){return this.transport.updateWithResponse(`/api/account/${e}/transaction`,t)}updateAccountCreditcard(e){return this.transport.request("/api/account/creditcard")}updateAccountlinkingregistration(e){return this.transport.update("/api/accountlinkingregistration",e)}updateAccountTransactionCategory(e){return this.transport.updateWithResponse("/api/account/transaction/category",e)}}function Bv(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class $0e{transport;constructor(e){this.transport=e}createDeploymentFsliteTicket(e){return this.transport.postWithResponse("/api/deployment/fslite/ticket",e)}createDeploymentHost(e){return this.transport.insert("/api/deployment/host",e)}createDeploymentInstance(e){return this.transport.insert("/api/deployment/instance",e)}createDeploymentInstanceByIdTestmodeByEnabled(e,t){return this.transport.insert(`/api/deployment/instance/${e}/testmode/${t}`,{})}createDeploymentInstanceByIdWifiprofile(e,t){return this.transport.postWithResponse(`/api/deployment/instance/${e}/wifiprofile`,t)}createDeploymentRemotedeployment(e){return this.transport.insert("/api/deployment/remotedeployment",e)}createDeploymentSolution(e){return this.transport.insert("/api/deployment/solution",e)}createDeploymentSolutionPublish(e){return this.transport.insert("/api/deployment/solution/publish",e)}createDeploymentUserMessage(e){return this.transport.insert("/api/deployment/user/message",e)}createNewCredentials(){return this.transport.getFormResponse("/api/deployment/instance/credentials/factory")}createNewHost(){return this.transport.getFormResponse("/api/deployment/host/factory")}createNewInstance(){return this.transport.getFormResponse("/api/deployment/instance/factory")}createNewRemotedeployment(){return this.transport.getFormResponse("/api/deployment/remotedeployment/factory")}createNewSolution(){return this.transport.getFormResponse("/api/deployment/solution/factory")}deleteDeploymentHostById(e){return this.transport.delete(`/api/deployment/host/${e}`)}deleteDeploymentHostByIdRemoveByInstanceid(e,t){return this.transport.delete(`/api/deployment/host/${e}/remove/${t}`)}deleteDeploymentInstanceAccounts(){return this.transport.request("/api/deployment/instance/accounts")}deleteDeploymentInstanceById(e){return this.transport.delete(`/api/deployment/instance/${e}`)}deleteDeploymentInstanceByInstanceIdAccountByInstanceAccountId(e,t){return this.transport.delete(`/api/deployment/instance/${e}/account/${t}`)}deleteDeploymentInstanceInstanceserviceById(e){return this.transport.delete(`/api/deployment/instance/instanceservice/${e}`)}deleteDeploymentRemotedeploymentById(e){return this.transport.delete(`/api/deployment/remotedeployment/${e}`)}deleteDeploymentSolutionById(e){return this.transport.delete(`/api/deployment/solution/${e}`)}getDeploymentFsliteTicketByTemplateidByRepoidByDeviceid(e,t,n){return this.transport.requestForInvokeResultEx(`/api/deployment/fslite/ticket/${e}/${t}/${n}`)}getDeploymentHost(){return this.transport.requestForInvokeResultEx("/api/deployment/host")}getDeploymentHostByHostidByStatusByVersion(e,t,n){return this.transport.get(`/api/deployment/host/${e}/${t}/${n}`)}getDeploymentHostById(e){return this.transport.getFormResponse(`/api/deployment/host/${e}`)}getDeploymentHostByIdAddByInstanceid(e,t){return this.transport.get(`/api/deployment/host/${e}/add/${t}`)}getDeploymentHostByIdDeploycontainer(e){return this.transport.get(`/api/deployment/host/${e}/deploycontainer`)}getDeploymentHostByIdDeployhost(e){return this.transport.get(`/api/deployment/host/${e}/deployhost`)}getDeploymentHostByIdDestroyhost(e){return this.transport.get(`/api/deployment/host/${e}/destroyhost`)}getDeploymentHostByIdGenerateByKey(e,t){return this.transport.requestForInvokeResultEx(`/api/deployment/host/${e}/generate/${t}`)}getDeploymentHostByIdInuse(e){return this.transport.request(`/api/deployment/host/${e}/inuse`)}getDeploymentHostByIdRestarthost(e){return this.transport.get(`/api/deployment/host/${e}/restarthost`)}getDeploymentHostByIdSecure(e){return this.transport.getFormResponse(`/api/deployment/host/${e}/secure`)}getDeploymentHostByIdUpdate(e){return this.transport.get(`/api/deployment/host/${e}/update`)}getDeploymentHostByKeyKeyinuse(e){return this.transport.request(`/api/deployment/host/${e}/keyinuse`)}getDeploymentHostEhcheckpointSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/host/ehcheckpoint/settings")}getDeploymentHostLoggingSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/host/logging/settings")}getDeploymentHostRpcSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/host/rpc/settings")}getDeploymentHostSharedInstances(){return this.transport.requestForInvokeResultEx("/api/deployment/host/shared/instances")}getDeploymentHostUsageSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/host/usage/settings")}getDeploymentHostWsnotifyAzureeventhubSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/host/wsnotify/azureeventhub/settings")}getDeploymentHostWsnotifyRabbitmqSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/host/wsnotify/rabbitmq/settings")}getDeploymentInstanceById(e){return this.transport.getFormResponse(`/api/deployment/instance/${e}`)}getDeploymentInstanceByIdDebugmode(e){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/debugmode`)}getDeploymentInstanceByIdDeployhost(e){return this.transport.get(`/api/deployment/instance/${e}/deployhost`)}getDeploymentInstanceByIdDestroyhost(e){return this.transport.get(`/api/deployment/instance/${e}/destroyhost`)}getDeploymentInstanceByIdInuse(e){return this.transport.request(`/api/deployment/instance/${e}/inuse`)}getDeploymentInstanceByIdPause(e){return this.transport.get(`/api/deployment/instance/${e}/pause`)}getDeploymentInstanceByIdReloadsolution(e){return this.transport.get(`/api/deployment/instance/${e}/reloadsolution`)}getDeploymentInstanceByIdReset(e){return this.transport.get(`/api/deployment/instance/${e}/reset`)}getDeploymentInstanceByIdResetartcontainer(e){return this.transport.get(`/api/deployment/instance/${e}/resetartcontainer`)}getDeploymentInstanceByIdRestarthost(e){return this.transport.get(`/api/deployment/instance/${e}/restarthost`)}getDeploymentInstanceByIdRuntime(e){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/runtime`)}getDeploymentInstanceByIdStart(e){return this.transport.get(`/api/deployment/instance/${e}/start`)}getDeploymentInstanceByIdStop(e){return this.transport.get(`/api/deployment/instance/${e}/stop`)}getDeploymentInstanceByIdTestmode(e){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/testmode`)}getDeploymentInstanceByIdTestmodeByTestmode(e,t){return this.transport.get(`/api/deployment/instance/${e}/testmode/${t}`)}getDeploymentInstanceByIdUpdateruntime(e){return this.transport.get(`/api/deployment/instance/${e}/updateruntime`)}getDeploymentInstanceByIdWifiprofileByWifiid(e,t){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/wifiprofile/${t}`)}getDeploymentInstanceByInstanceIdAccountByUsername(e,t){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/account/${t}`)}getDeploymentInstanceByInstanceidAccountByUsernameKeyRegenerateByKeyname(e,t,n){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/account/${t}/key/regenerate/${n}`)}getDeploymentInstanceByInstanceidDefaultlistener(e){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/defaultlistener`)}getDeploymentInstanceByInstanceidDeviceByIdNotificationsEnable(e,t){return this.transport.get(`/api/deployment/instance/${e}/device/${t}/notifications/enable`)}getDeploymentInstanceByInstanceidDeviceByIdNotificationsSilence(e,t){return this.transport.get(`/api/deployment/instance/${e}/device/${t}/notifications/silence`)}getDeploymentInstanceByInstanceidGenerateByKey(e,t){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/generate/${t}`)}getDeploymentInstanceByInstanceidImageByRepoidByTagid(e,t,n){return this.transport.get(`/api/deployment/instance/${e}/image/${t}/${n}`)}getDeploymentInstanceByInstanceidSettings(e){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/${e}/settings`)}getDeploymentInstanceByKeyKeyinuse(e){return this.transport.request(`/api/deployment/instance/${e}/keyinuse`)}getDeploymentInstanceCacheSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/cache/settings")}getDeploymentInstanceDeviceconnectioneventSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/deviceconnectionevent/settings")}getDeploymentInstanceDevicedataSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/devicedata/settings")}getDeploymentInstanceDevicestorageSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/devicestorage/settings")}getDeploymentInstanceDeviceTransactionstorage(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/device/transactionstorage")}getDeploymentInstanceDevicewatchdogSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/devicewatchdog/settings")}getDeploymentInstanceEhcheckpointSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/ehcheckpoint/settings")}getDeploymentInstanceFull(){return this.transport.request("/api/deployment/instance/full")}getDeploymentInstanceInstanceserviceAllocateByType(e,t){return this.transport.requestForInvokeResultEx(Bv(`/api/deployment/instance/instanceservice/allocate/${e}`,{replaceExisting:t}))}getDeploymentInstanceKeyByKeyid(e){return this.transport.requestForInvokeResultEx(`/api/deployment/instance/key/${e}`)}getDeploymentInstanceLoggingSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/logging/settings")}getDeploymentInstanceMediaaByIdDownload(e){return this.transport.request(`/api/deployment/instance/mediaa/${e}/download`)}getDeploymentInstancePemSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/pem/settings")}getDeploymentInstanceRpcSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/rpc/settings")}getDeploymentInstanceSensorarchivedataSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/sensorarchivedata/settings")}getDeploymentInstanceSolutionversion(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/solutionversion")}getDeploymentInstanceStatusByStatusByIsdeployedByVersion(e,t,n){return this.transport.get(`/api/deployment/instance/status/${e}/${t}/${n}`)}getDeploymentInstanceUsageSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/usage/settings")}getDeploymentInstanceWsnotifyAzureeventhubSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/wsnotify/azureeventhub/settings")}getDeploymentInstanceWsnotifyRabbitmqSettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/wsnotify/rabbitmq/settings")}getDeploymentInstanceWsnotifySettings(){return this.transport.requestForInvokeResultEx("/api/deployment/instance/wsnotify/settings")}getDeploymentMlModelByModelid(e){return this.transport.request(`/api/deployment/ml/model/${e}`)}getDeploymentMlModelByModelidByRevisionid(e,t){return this.transport.request(`/api/deployment/ml/model/${e}/${t}`)}getDeploymentRemotedeploymentById(e){return this.transport.getFormResponse(`/api/deployment/remotedeployment/${e}`)}getDeploymentRemotedeploymentByIdInuse(e){return this.transport.request(`/api/deployment/remotedeployment/${e}/inuse`)}getDeploymentRemotedeploymentByIdRegenerateaccesskeys(e){return this.transport.get(`/api/deployment/remotedeployment/${e}/regenerateaccesskeys`)}getDeploymentSolutionById(e){return this.transport.getFormResponse(`/api/deployment/solution/${e}`)}getDeploymentSolutionByIdValidate(e){return this.transport.request(`/api/deployment/solution/${e}/validate`)}getDeploymentSolutionByKeyInUse(e){return this.transport.request(`/api/deployment/solution/${e}/InUse`)}getDeploymentSolutionByKeyKeyinuse(e,t){return this.transport.request(Bv(`/api/deployment/solution/${e}/keyinuse`,{id:t}))}getDeploymentUsernotifinfoById(e){return this.transport.requestForInvokeResultEx(`/api/deployment/usernotifinfo/${e}`)}listDeploymentactivityActiveByIdByTake(e,t,n){return this.transport.getListResponse(Bv(`/api/deploymentactivity/active/${e}/${t}`,{before:n}))}listDeploymentactivityCompletedByIdByTake(e,t,n){return this.transport.getListResponse(Bv(`/api/deploymentactivity/completed/${e}/${t}`,{before:n}))}listDeploymentactivityFailedByIdByTake(e,t,n){return this.transport.getListResponse(Bv(`/api/deploymentactivity/failed/${e}/${t}`,{before:n}))}listDeploymentHostByIdDeployedinstances(e){return this.transport.getListResponse(`/api/deployment/host/${e}/deployedinstances`)}listDeploymentHostByIdStatushistory(e){return this.transport.getListResponse(`/api/deployment/host/${e}/statushistory`)}listDeploymentHosts(){return this.transport.getListResponse("/api/deployment/hosts")}listDeploymentInstanceByIdConnectedMonitored(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/connected/monitored`)}listDeploymentInstanceByIdConnectedTimedout(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/connected/timedout`)}listDeploymentInstanceByIdDevicetypes(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/devicetypes`)}listDeploymentInstanceByIdMessageWatchdogMonitored(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/message/watchdog/monitored`)}listDeploymentInstanceByIdMessageWatchdogTimedout(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/message/watchdog/timedout`)}listDeploymentInstanceByIdSimulators(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/simulators`)}listDeploymentInstanceByIdStatushistory(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/statushistory`)}listDeploymentInstanceByInstanceIdAccounts(e){return this.transport.getListResponse(`/api/deployment/instance/${e}/accounts`)}listDeploymentInstances(){return this.transport.getListResponse("/api/deployment/instances")}listDeploymentInstancesByStr(e){return this.transport.getListResponse(`/api/deployment/instances/${e}`)}listDeploymentRemotedeployments(){return this.transport.getListResponse("/api/deployment/remotedeployments")}listDeploymentSolutionByIdVersions(e){return this.transport.getListResponse(`/api/deployment/solution/${e}/versions`)}listDeploymentSolutions(){return this.transport.getListResponse("/api/deployment/solutions")}updateDeploymentHost(e){return this.transport.update("/api/deployment/host",e)}updateDeploymentHostStatus(e){return this.transport.update("/api/deployment/host/status",e)}updateDeploymentInstance(e){return this.transport.update("/api/deployment/instance",e)}updateDeploymentInstanceByIdWifiprofile(e,t){return this.transport.updateWithResponse(`/api/deployment/instance/${e}/wifiprofile`,t)}updateDeploymentInstanceStatus(e){return this.transport.update("/api/deployment/instance/status",e)}updateDeploymentRemotedeployment(e){return this.transport.update("/api/deployment/remotedeployment",e)}updateDeploymentSolution(e){return this.transport.update("/api/deployment/solution",e)}}function y7(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class H0e{transport;constructor(e){this.transport=e}createNewItem(){return this.transport.getFormResponse("/api/fslite/ticketstatusdefinition/item/factory")}createNewNote(){return this.transport.formPost("/api/fslite/ticket/note/factory",{})}createNewPartskit(){return this.transport.getFormResponse("/api/fslite/partskit/factory")}createNewServiceboard(e){return this.transport.getFormResponse(y7("/api/fslite/serviceboard/factory",{id:e}))}createNewTemplatecategory(){return this.transport.getFormResponse("/api/fslite/templatecategory/factory")}createNewTicket(){return this.transport.getFormResponse("/api/fslite/ticket/factory")}createNewTicketstatusdefinition(){return this.transport.getFormResponse("/api/fslite/ticketstatusdefinition/factory")}createNewTicketsTemplate(e){return this.transport.getFormResponse(y7("/api/fslite/tickets/template/factory",{id:e}))}createPartskit(e){return this.transport.insert("/api/fslite/partskit",e)}createServiceboard(e){return this.transport.insert("/api/fslite/serviceboard",e)}createTemplatecategory(e){return this.transport.insert("/api/fslite/templatecategory",e)}createTicket(e){return this.transport.postWithResponse("/api/fslite/ticket",e)}createTicketByIdAssignedto(e,t){return this.transport.postWithResponse(`/api/fslite/ticket/${e}/assignedto`,t)}createTicketByIdNote(e,t){return this.transport.postWithResponse(`/api/fslite/ticket/${e}/note`,t)}createTicketByIdStatus(e,t){return this.transport.postWithResponse(`/api/fslite/ticket/${e}/status`,t)}createTicketCreate(e){return this.transport.postWithResponse("/api/fslite/ticket/create",e)}createTickets(e){return this.transport.postForListResponse("/api/fslite/tickets",e)}createTicketstatusdefinition(e){return this.transport.insert("/api/fslite/ticketstatusdefinition",e)}createTicketsTemplate(e){return this.transport.insert("/api/fslite/tickets/template",e)}deletePartskitById(e){return this.transport.delete(`/api/fslite/partskit/${e}`)}deleteServiceboardById(e){return this.transport.delete(`/api/fslite/serviceboard/${e}`)}deleteTemplatecategoryById(e){return this.transport.delete(`/api/fslite/templatecategory/${e}`)}deleteTicketById(e){return this.transport.delete(`/api/fslite/ticket/${e}`)}deleteTicketstatusdefinitionById(e){return this.transport.delete(`/api/fslite/ticketstatusdefinition/${e}`)}deleteTicketsTemplateById(e){return this.transport.delete(`/api/fslite/tickets/template/${e}`)}getPartskitById(e){return this.transport.getFormResponse(`/api/fslite/partskit/${e}`)}getPartskitByIdDetail(e){return this.transport.request(`/api/fslite/partskit/${e}/detail`)}getPartskitByKeyKeyinuse(e){return this.transport.request(`/api/fslite/partskit/${e}/keyinuse`)}getServiceboardById(e){return this.transport.getFormResponse(`/api/fslite/serviceboard/${e}`)}getServiceboardsByKeyKeyinuse(e){return this.transport.request(`/api/fslite/serviceboards/${e}/keyinuse`)}getTemplatecategoryById(e){return this.transport.getFormResponse(`/api/fslite/templatecategory/${e}`)}getTemplatecategoryByKeyKeyinuse(e){return this.transport.request(`/api/fslite/templatecategory/${e}/keyinuse`)}getTicketById(e){return this.transport.getFormResponse(`/api/fslite/ticket/${e}`)}getTicketByIdClosedByClosed(e,t){return this.transport.requestForInvokeResultEx(`/api/fslite/ticket/${e}/closed/${t}`)}getTicketByIdViewedByViewed(e,t){return this.transport.requestForInvokeResultEx(`/api/fslite/ticket/${e}/viewed/${t}`)}getTicketsCloseById(e){return this.transport.get(`/api/fslite/tickets/close/${e}`)}getTicketstatusdefinitionById(e){return this.transport.getFormResponse(`/api/fslite/ticketstatusdefinition/${e}`)}getTicketstatusdefinitionByIdDetail(e){return this.transport.request(`/api/fslite/ticketstatusdefinition/${e}/detail`)}getTicketstatusdefinitionByKeyKeyinuse(e){return this.transport.request(`/api/fslite/ticketstatusdefinition/${e}/keyinuse`)}getTicketsTemplateById(e){return this.transport.getFormResponse(`/api/fslite/tickets/template/${e}`)}getTicketsTemplateByIdDetail(e){return this.transport.request(`/api/fslite/tickets/template/${e}/detail`)}getTicketsTemplatesByKeyKeyinuse(e){return this.transport.request(`/api/fslite/tickets/templates/${e}/keyinuse`)}listByBoardidTickets(e){return this.transport.getListResponse(`/api/fslite/${e}/tickets`)}listPartskits(){return this.transport.getListResponse("/api/fslite/partskits")}listServiceboards(){return this.transport.getListResponse("/api/fslite/serviceboards")}listTemplatecategories(){return this.transport.getListResponse("/api/fslite/templatecategories")}listTicketClosed(){return this.transport.getListResponse("/api/fslite/ticket/closed")}listTicketDeviceById(e){return this.transport.getListResponse(`/api/fslite/ticket/device/${e}`)}listTicketOpen(){return this.transport.getListResponse("/api/fslite/ticket/open")}listTickets(){return this.transport.getListResponse("/api/fslite/tickets")}listTicketsStatusByStatus(e){return this.transport.getListResponse(`/api/fslite/tickets/status/${e}`)}listTicketstatusdefinition(){return this.transport.getListResponse("/api/fslite/ticketstatusdefinition")}listTicketsTemplates(){return this.transport.getListResponse("/api/fslite/tickets/templates")}updatePartskit(e){return this.transport.update("/api/fslite/partskit",e)}updateServiceboard(e){return this.transport.update("/api/fslite/serviceboard",e)}updateTemplatecategory(e){return this.transport.update("/api/fslite/templatecategory",e)}updateTicket(e){return this.transport.update("/api/fslite/ticket",e)}updateTicketstatusdefinition(e){return this.transport.update("/api/fslite/ticketstatusdefinition",e)}updateTicketsTemplate(e){return this.transport.update("/api/fslite/tickets/template",e)}}function Qd(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class U0e{transport;constructor(e){this.transport=e}createAssemblyInstruction(e){return this.transport.insert("/api/mfg/assembly/instruction",e)}createAutofeeder(e){return this.transport.insert("/api/mfg/autofeeder",e)}createAutofeederTemplate(e){return this.transport.insert("/api/mfg/autofeeder/template",e)}createComponent(e){return this.transport.insert("/api/mfg/component",e)}createComponentByIdPurchase(e,t){return this.transport.insert(`/api/mfg/component/${e}/purchase`,t)}createComponentLabelsByRowByCol(e,t,n){return this.transport.request(`/api/mfg/component/labels/${e}/${t}`)}createComponentPackage(e){return this.transport.insert("/api/mfg/component/package",e)}createComponentPackageByIdLayout(e,t){return this.transport.insert(`/api/mfg/component/package/${e}/layout`,t)}createDigikeyPartlookup(e){return this.transport.postWithResponse("/api/mfg/digikey/partlookup",e)}createGcodeGenerate(e){return this.transport.postWithResponse("/api/mfg/gcode/generate",e)}createGcodemapping(e){return this.transport.insert("/api/mfg/gcodemapping",e)}createGcodeProject(e){return this.transport.insert("/api/mfg/gcode/project",e)}createInventoryLocation(e){return this.transport.insert("/api/mfg/inventory/location",e)}createMachine(e){return this.transport.insert("/api/mfg/machine",e)}createMachineByMachineidRevisionTestfit(e,t){return this.transport.postWithResponse(`/api/mfg/machine/${e}/revision/testfit`,t)}createNewAttribute(){return this.transport.getFormResponse("/api/mfg/component/attribute/factory")}createNewAutofeeder(){return this.transport.getFormResponse("/api/mfg/autofeeder/factory")}createNewAutofeederTemplate(e){return this.transport.getFormResponse(`/api/mfg/autofeeder/template/${e}/factory`)}createNewAutofeederTemplateGet(){return this.transport.getFormResponse("/api/mfg/autofeeder/template/factory")}createNewCamera(){return this.transport.getFormResponse("/api/mfg/machine/camera/factory")}createNewComponent(){return this.transport.getFormResponse("/api/mfg/component/factory")}createNewDrill(){return this.transport.getFormResponse("/api/mfg/gcode/drill/factory")}createNewFeederrail(){return this.transport.getFormResponse("/api/mfg/machine/feederrail/factory")}createNewGcodemapping(){return this.transport.getFormResponse("/api/mfg/gcodemapping/factory")}createNewHole(){return this.transport.getFormResponse("/api/mfg/gcode/hole/factory")}createNewInstruction(){return this.transport.getFormResponse("/api/mfg/assembly/instruction/factory")}createNewLayer(){return this.transport.getFormResponse("/api/mfg/gcode/layer/factory")}createNewLocation(){return this.transport.getFormResponse("/api/mfg/inventory/location/factory")}createNewMachine(){return this.transport.getFormResponse("/api/mfg/machine/factory")}createNewMilling(){return this.transport.getFormResponse("/api/mfg/pcb/milling/factory")}createNewNozzletip(){return this.transport.getFormResponse("/api/mfg/machine/nozzletip/factory")}createNewNozzletipGet(){return this.transport.getFormResponse("/api/mfg/pnp/nozzletip/factory")}createNewOrder(){return this.transport.getFormResponse("/api/mfg/order/factory")}createNewPackage(){return this.transport.getFormResponse("/api/mfg/component/package/factory")}createNewPartPack(){return this.transport.getFormResponse("/api/mfg/PartPack/factory")}createNewPcb(){return this.transport.getFormResponse("/api/mfg/pcb/factory")}createNewPlane(){return this.transport.getFormResponse("/api/mfg/gcode/plane/factory")}createNewPnpjob(){return this.transport.getFormResponse("/api/mfg/pnpjob/factory")}createNewPolygon(){return this.transport.getFormResponse("/api/mfg/gcode/polygon/factory")}createNewProject(){return this.transport.getFormResponse("/api/mfg/gcode/project/factory")}createNewPurchase(){return this.transport.getFormResponse("/api/mfg/component/purchase/factory")}createNewRect(){return this.transport.getFormResponse("/api/mfg/gcode/rect/factory")}createNewRevision(){return this.transport.getFormResponse("/api/mfg/pcb/revision/factory")}createNewRow(){return this.transport.getFormResponse("/api/mfg/stripfeeder/row/factory")}createNewRun(e){return this.transport.getFormResponse(`/api/mfg/pnpjob/${e}/run/factory`)}createNewStagingplate(){return this.transport.getFormResponse("/api/mfg/machine/stagingplate/factory")}createNewStep(){return this.transport.getFormResponse("/api/mfg/assembly/instructions/step/factory")}createNewStripfeeder(){return this.transport.getFormResponse("/api/mfg/stripfeeder/factory")}createNewStripfeederTemplate(e){return this.transport.getFormResponse(`/api/mfg/stripfeeder/template/${e}/factory`)}createNewStripfeederTemplateGet(){return this.transport.getFormResponse("/api/mfg/stripfeeder/template/factory")}createNewTool(){return this.transport.getFormResponse("/api/mfg/gcode/tool/factory")}createNewToolhead(){return this.transport.getFormResponse("/api/mfg/machine/toolhead/factory")}createNewVariant(){return this.transport.getFormResponse("/api/mfg/pcb/variant/factory")}createOrder(e){return this.transport.insert("/api/mfg/order",e)}createPartPack(e){return this.transport.insert("/api/mfg/PartPack",e)}createPcb(e){return this.transport.insert("/api/mfg/pcb",e)}createPcbMilling(e){return this.transport.insert("/api/mfg/pcb/milling",e)}createPnpjob(e){return this.transport.insert("/api/mfg/pnpjob",e)}createPnpjobRun(e){return this.transport.insert("/api/mfg/pnpjob/run",e)}createPnpNozzletip(e){return this.transport.insert("/api/mfg/pnp/nozzletip",e)}createStripfeeder(e){return this.transport.insert("/api/mfg/stripfeeder",e)}createStripfeederTemplate(e){return this.transport.insert("/api/mfg/stripfeeder/template",e)}deleteAssemblyInstructionById(e){return this.transport.delete(`/api/mfg/assembly/instruction/${e}`)}deleteAutofeederById(e){return this.transport.delete(`/api/mfg/autofeeder/${e}`)}deleteAutofeederTemplateById(e){return this.transport.delete(`/api/mfg/autofeeder/template/${e}`)}deleteComponentById(e){return this.transport.delete(`/api/mfg/component/${e}`)}deleteComponentPackageById(e){return this.transport.delete(`/api/mfg/component/package/${e}`)}deleteGcodemappingById(e){return this.transport.delete(`/api/mfg/gcodemapping/${e}`)}deleteGcodeProjectById(e){return this.transport.delete(`/api/mfg/gcode/project/${e}`)}deleteInventoryLocationById(e){return this.transport.delete(`/api/mfg/inventory/location/${e}`)}deleteMachineById(e){return this.transport.delete(`/api/mfg/machine/${e}`)}deleteOrderById(e){return this.transport.delete(`/api/mfg/order/${e}`)}deletePartPackById(e){return this.transport.delete(`/api/mfg/PartPack/${e}`)}deletePcbById(e){return this.transport.delete(`/api/mfg/pcb/${e}`)}deletePcbMillingById(e){return this.transport.delete(`/api/mfg/pcb/milling/${e}`)}deletePnpjobById(e){return this.transport.delete(`/api/mfg/pnpjob/${e}`)}deletePnpNozzletipById(e){return this.transport.delete(`/api/mfg/pnp/nozzletip/${e}`)}deleteStripfeederById(e){return this.transport.delete(`/api/mfg/stripfeeder/${e}`)}deleteStripfeederTemplateById(e){return this.transport.delete(`/api/mfg/stripfeeder/template/${e}`)}getAssemblyInstructionById(e){return this.transport.getFormResponse(`/api/mfg/assembly/instruction/${e}`)}getAutofeederById(e,t){return this.transport.getFormResponse(Qd(`/api/mfg/autofeeder/${e}`,{loadcomponent:t}))}getAutofeederFeederidById(e,t){return this.transport.getFormResponse(Qd(`/api/mfg/autofeeder/feederid/${e}`,{loadcomponent:t}))}getAutofeederTemplateById(e){return this.transport.getFormResponse(`/api/mfg/autofeeder/template/${e}`)}getComponentById(e,t){return this.transport.getFormResponse(Qd(`/api/mfg/component/${e}`,{loadcomponent:t}))}getComponentByIdLabelByRowByCol(e,t,n){return this.transport.request(`/api/mfg/component/${e}/label/${t}/${n}`)}getComponentPackageById(e){return this.transport.getFormResponse(`/api/mfg/component/package/${e}`)}getGcodemappingById(e){return this.transport.getFormResponse(`/api/mfg/gcodemapping/${e}`)}getGcodeProjectById(e){return this.transport.getFormResponse(`/api/mfg/gcode/project/${e}`)}getInventoryLocationById(e){return this.transport.getFormResponse(`/api/mfg/inventory/location/${e}`)}getMachineById(e){return this.transport.getFormResponse(`/api/mfg/machine/${e}`)}getMachineByMachineidStagingplateByPlateidByRowByColStripfeederByFeederidAttach(e,t,n,r,o){return this.transport.get(`/api/mfg/machine/${e}/stagingplate/${t}/${n}/${r}/stripfeeder/${o}/attach`)}getOrderById(e){return this.transport.getFormResponse(`/api/mfg/order/${e}`)}getOrderByIdLabels(e){return this.transport.request(`/api/mfg/order/${e}/labels`)}getOrderLineitem(){return this.transport.getFormResponse("/api/mfg/order/lineitem")}getPartPackById(e){return this.transport.getFormResponse(`/api/mfg/PartPack/${e}`)}getPcbById(e){return this.transport.getFormResponse(`/api/mfg/pcb/${e}`)}getPcbByIdRevisionByRevidJob(e,t,n){return this.transport.requestForInvokeResultEx(Qd(`/api/mfg/pcb/${e}/revision/${t}/job`,{name:n}))}getPcbMillingById(e){return this.transport.getFormResponse(`/api/mfg/pcb/milling/${e}`)}getPnpjobById(e){return this.transport.getFormResponse(`/api/mfg/pnpjob/${e}`)}getPnpjobRunById(e){return this.transport.getFormResponse(`/api/mfg/pnpjob/run/${e}`)}getPnpNozzletipById(e){return this.transport.getFormResponse(`/api/mfg/pnp/nozzletip/${e}`)}getStripfeederById(e,t){return this.transport.getFormResponse(Qd(`/api/mfg/stripfeeder/${e}`,{loadcomponent:t}))}getStripfeederTemplateById(e){return this.transport.getFormResponse(`/api/mfg/stripfeeder/template/${e}`)}listAssemblyInstructions(){return this.transport.getListResponse("/api/mfg/assembly/instructions")}listAutofeeders(){return this.transport.getListResponse("/api/mfg/autofeeders")}listAutofeederTemplates(){return this.transport.getListResponse("/api/mfg/autofeeder/templates")}listComponentPackages(){return this.transport.getListResponse("/api/mfg/component/packages")}listComponents(e){return this.transport.getListResponse(Qd("/api/mfg/components",{componentType:e}))}listGcodemappings(){return this.transport.getListResponse("/api/mfg/gcodemappings")}listGcodeProjects(){return this.transport.getListResponse("/api/mfg/gcode/projects")}listInventoryLocations(){return this.transport.getListResponse("/api/mfg/inventory/locations")}listMachineByIdStagingplates(e){return this.transport.getListResponse(`/api/mfg/machine/${e}/stagingplates`)}listMachineByMachineidAutofeeders(e,t){return this.transport.getListResponse(Qd(`/api/mfg/machine/${e}/autofeeders`,{loadcomponents:t}))}listMachineByMachineidStripfeeders(e,t){return this.transport.getListResponse(Qd(`/api/mfg/machine/${e}/stripfeeders`,{loadcomponents:t}))}listMachines(){return this.transport.getListResponse("/api/mfg/machines")}listOrders(){return this.transport.getListResponse("/api/mfg/orders")}listPartPacks(){return this.transport.getListResponse("/api/mfg/PartPacks")}listPcbMillings(){return this.transport.getListResponse("/api/mfg/pcb/millings")}listPcbs(){return this.transport.getListResponse("/api/mfg/pcbs")}listPnpjobRuns(){return this.transport.getListResponse("/api/mfg/pnpjob/runs")}listPnpjobs(){return this.transport.getListResponse("/api/mfg/pnpjobs")}listPnpNozzletips(){return this.transport.getListResponse("/api/mfg/pnp/nozzletips")}listStripfeeders(){return this.transport.getListResponse("/api/mfg/stripfeeders")}listStripfeederTemplates(){return this.transport.getListResponse("/api/mfg/stripfeeder/templates")}updateAssemblyInstruction(e){return this.transport.update("/api/mfg/assembly/instruction",e)}updateAutofeeder(e){return this.transport.update("/api/mfg/autofeeder",e)}updateAutofeederByIdPartcountByPartcount(e,t){return this.transport.update(`/api/mfg/autofeeder/${e}/partcount/${t}`,{})}updateAutofeederTemplate(e){return this.transport.update("/api/mfg/autofeeder/template",e)}updateComponent(e){return this.transport.update("/api/mfg/component",e)}updateComponentByIdPurchaseByOrderidReceiveByQty(e,t,n){return this.transport.update(`/api/mfg/component/${e}/purchase/${t}/receive/${n}`,{})}updateComponentByIdVisionprofileByType(e,t,n){return this.transport.update(`/api/mfg/component/${e}/visionprofile/${t}`,n)}updateComponentPackage(e){return this.transport.update("/api/mfg/component/package",e)}updateComponentPackageByIdVisionprofileByType(e,t,n){return this.transport.update(`/api/mfg/component/package/${e}/visionprofile/${t}`,n)}updateGcodemapping(e){return this.transport.update("/api/mfg/gcodemapping",e)}updateGcodeProject(e){return this.transport.update("/api/mfg/gcode/project",e)}updateInventoryLocation(e){return this.transport.update("/api/mfg/inventory/location",e)}updateMachine(e){return this.transport.update("/api/mfg/machine",e)}updateOrder(e){return this.transport.update("/api/mfg/order",e)}updatePartPack(e){return this.transport.update("/api/mfg/PartPack",e)}updatePcb(e){return this.transport.update("/api/mfg/pcb",e)}updatePcbMilling(e){return this.transport.update("/api/mfg/pcb/milling",e)}updatePmpjobRunByIdPlacement(e,t){return this.transport.update(`/api/mfg/pmpjob/run/${e}/placement`,t)}updatePnpjob(e){return this.transport.update("/api/mfg/pnpjob",e)}updatePnpjobRun(e){return this.transport.update("/api/mfg/pnpjob/run",e)}updatePnpNozzletip(e){return this.transport.update("/api/mfg/pnp/nozzletip",e)}updateStripfeeder(e){return this.transport.update("/api/mfg/stripfeeder",e)}updateStripfeederByIdRowByRowidxPartindexByIdx(e,t,n){return this.transport.update(`/api/mfg/stripfeeder/${e}/row/${t}/partindex/${n}`,{})}updateStripfeederTemplate(e){return this.transport.update("/api/mfg/stripfeeder/template",e)}}function nI(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}class j0e{transport;constructor(e){this.transport=e}createNewCot(){return this.transport.getFormResponse("/api/notification/cot/factory")}createNewCustomer(e){return this.transport.getFormResponse(`/api/notification/customer/${e}/factory`)}createNewHeader(){return this.transport.getFormResponse("/api/notification/rest/header/factory")}createNewMqtt(){return this.transport.getFormResponse("/api/notification/mqtt/factory")}createNewNotification(){return this.transport.getFormResponse("/api/notification/factory")}createNewRecipient(){return this.transport.request("/api/notification/device/recipient/factory")}createNewRest(){return this.transport.getFormResponse("/api/notification/rest/factory")}createNotification(e){return this.transport.insert("/api/notification",e)}createNotificationDeviceRecipient(e){return this.transport.insert("/api/notification/device/recipient",e)}deleteNotificationById(e){return this.transport.delete(`/api/notification/${e}`)}deleteNotificationDeviceByRepoidRecipientById(e,t){return this.transport.delete(`/api/notification/device/${e}/recipient/${t}`)}getNotificationById(e){return this.transport.getFormResponse(`/api/notification/${e}`)}getNotificationDeviceByRepoidByIdOfflineTest(e,t,n){return this.transport.get(nI(`/api/notification/device/${e}/${t}/offline/test`,{lastcontact:n}))}getNotificationDeviceByRepoidByIdOnlineTest(e,t,n){return this.transport.get(nI(`/api/notification/device/${e}/${t}/online/test`,{lastcontact:n}))}getNotificationsByRepoidByDeviceuniqueidByNotificationkey(e,t,n,r,o){return this.transport.requestForInvokeResultEx(nI(`/api/notifications/${e}/${t}/${n}`,{testing:r,dryrun:o}))}listNotificationByRepoidByDeviceidDeviceRecipients(e,t){return this.transport.getListResponse(`/api/notification/${e}/${t}/device/recipients`)}listNotifications(){return this.transport.getListResponse("/api/notifications")}listNotificationsCustomerByCustomerid(e){return this.transport.getListResponse(`/api/notifications/customer/${e}`)}listNotificationsTemplates(){return this.transport.getListResponse("/api/notifications/templates")}updateNotification(e){return this.transport.update("/api/notification",e)}}class Y0e{transport;constructor(e){this.transport=e}createNewEntry(){return this.transport.getFormResponse("/api/jobs/schedule/entry/factory")}createNewSchedule(){return this.transport.getFormResponse("/api/jobs/schedule/factory")}createSchedule(e){return this.transport.insert("/api/jobs/schedule",e)}createScheduleByScheduleManifestIdReconcile(e){return this.transport.postWithResponse(`/api/jobs/schedule/${e}/reconcile`,{})}deleteScheduleByScheduleManifestId(e){return this.transport.delete(`/api/jobs/schedule/${e}`)}getScheduleByScheduleManifestId(e){return this.transport.getFormResponse(`/api/jobs/schedule/${e}`)}listSchedules(){return this.transport.getListResponse("/api/jobs/schedules")}updateSchedule(e){return this.transport.update("/api/jobs/schedule",e)}}class z0e{transport;constructor(e){this.transport=e}createLabel(e){return this.transport.postWithResponse("/api/label",e)}getLabelset(){return this.transport.requestForInvokeResultEx("/api/labelset")}listLabelEntitiesById(e){return this.transport.getListResponse(`/api/label/entities/${e}`)}listLabelEntitiesByIdTypeByEntityType(e,t){return this.transport.getListResponse(`/api/label/entities/${e}/type/${t}`)}updateLabel(e){return this.transport.updateWithResponse("/api/label",e)}}class q0e{transport;constructor(e){this.transport=e}createSyncEntityPatch(e){return this.transport.insert("/api/admin/sync/entity/patch",e)}createSyncEntityUpsert(e){return this.transport.postWithResponse("/api/admin/sync/entity/upsert",e)}getSyncEntityByEntitytypeByKey(e,t){return this.transport.requestForInvokeResultEx(`/api/admin/sync/entity/${e}/${t}`)}getSyncEntityById(e){return this.transport.requestForInvokeResultEx(`/api/admin/sync/entity/${e}`)}getSyncEntityByIdEntityheader(e){return this.transport.requestForInvokeResultEx(`/api/admin/sync/entity/${e}/entityheader`)}listSyncSummaries(e,t,n){return this.transport.getListResponse(function W0e(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}("/api/admin/sync/summaries",{entityType:e,search:t,take:n}))}}class K0e{transport;constructor(e){this.transport=e}deleteByEntityidRating(e){return this.transport.deleteWithResponse(`/api/entity/${e}/rating`)}entityIdPublicSet(e){return this.transport.get(`/api/entity/${e}/public/set`)}getByEntityidCalchash(e){return this.transport.get(`/api/entity/${e}/calchash`)}getByEntityidIndex(e){return this.transport.get(`/api/entity/${e}/index`)}getByIdForm(e){return this.transport.request(`/api/entity/${e}/form`)}getByIdGraph(e){return this.transport.requestForInvokeResultEx(`/api/entity/${e}/graph`)}getByIdResolveEntityheaders(e){return this.transport.requestForInvokeResultEx(`/api/entity/${e}/resolve/entityheaders`)}getEntitiesByEntitytype(e){return this.transport.requestForInvokeResultEx(`/api/entities/${e}`)}getEntitytypeByEntitytypeResolveEntityheaders(e,t){return this.transport.requestForInvokeResultEx(function G0e(i,e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(null!=r){if(Array.isArray(r)){for(const o of r)null!=o&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(o))}`);continue}t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`)}}return 0===t.length?i:i.indexOf("?")>=0?`${i}&${t.join("&")}`:`${i}?${t.join("&")}`}(`/api/entitytype/${e}/resolve/entityheaders`,{continuationToken:t}))}updateByEntityidCategory(e,t){return this.transport.update(`/api/entity/${e}/category`,t)}updateByEntityidRateByRating(e,t){return this.transport.updateWithResponse(`/api/entity/${e}/rate/${t}`,{})}}class b7{services;clients;constructor(e,t){this.services=e,this.clients=t}getUsers(){return this.clients.user.listUsers(!1)}}class C7{services;clients;constructor(e,t){this.services=e,this.clients=t}orgWebSocket=null;_isLoggedIn$=new Ut(0);_org$=new Ut(null);_user$=new Ut(null);_users$=new Ut(null);registerLocalUser(e){var t=this;return O(function*(){yield t.setOrg(e.currentOrganization),yield t.setUser(e),yield t.setIsLoggedIn(!0),yield t.getUserFavorites(),yield t.getMRU(),e.currentOrganization&&(yield t.refreshUserOrganization()),yield t.services.storage.removeItemAsync("active_user_summary_basic"),yield t.services.storage.getItemAsync("app_user")})()}refreshUserOrganization(){var e=this;return O(function*(){yield e.services.storage.removeItemAsync("app_user_org");let t=yield e.clients.org.getCurrentSummary();t.successful&&(yield e.services.storage.setItemAsync("app_user_org",JSON.stringify(t.result)))})()}setUser(e){var t=this;return O(function*(){return e?(yield t.services.storage.setItemAsync("app_user",JSON.stringify(e)),t._user$.next(e)):(yield t.services.storage.removeItemAsync("app_user"),yield t.setOrg(null),t._user$.next(null)),!0})()}key="auth.signinSeeds.v1";hasAnyLoginSeeds(){var e=this;return O(function*(){return(yield e.listLoginSeeds()).length>0})()}listLoginSeeds(){var e=this;return O(function*(){try{const t=yield e.services.storage.getItemAsync(e.key);if(!t)return[];const n=JSON.parse(t);return Array.isArray(n)?n.filter(r=>!!r?.email):[]}catch{return[]}})()}getPrimaryLoginSeed(){var e=this;return O(function*(){const t=yield e.listLoginSeeds();return t.length?t.slice().sort((n,r)=>(r.lastUsedUtc||"").localeCompare(n.lastUsedUtc||""))[0]:null})()}upsertLoginSeedEmail(e){var t=this;return O(function*(){const n=(e||"").trim().toLowerCase();if(!n)return;const r=(new Date).toISOString(),o=(yield t.listLoginSeeds()).filter(a=>a.email.toLowerCase()!==n);o.unshift({email:n,lastUsedUtc:r}),yield t.services.storage.setItemAsync(t.key,JSON.stringify(o.slice(0,5)))})()}clearAllLoginSeeds(){var e=this;return O(function*(){yield e.services.storage.removeItemAsync(e.key)})()}setOrg(e){var t=this;return O(function*(){return t.orgWebSocket&&t.orgWebSocket.socket.close(),e?(yield t,t.services.storage.setItemAsync("app_user_org",JSON.stringify(e)),t.orgWebSocket=yield t.services.notifications.openSLSocket("OrgService","entity",e.id),t._org$.next({id:e.id,key:e.namespace,text:e.text})):(t._org$.next(null),yield t,t.services.storage.removeItemAsync("app_user_org")),!0})()}loadCurrentUser(){var e=this;return O(function*(){const t=yield e.clients.user.get();if(t.successful)return console.log(`response - ${t.successful} - ${t.model.currentOrganization}`),yield e.registerLocalUser(t.model),t.model;window.location.href=e.services.environment.production?"/Account/Login":"/login"})()}setLoginResponse(e){var t=this;return O(function*(){yield t.setUser(e.user),e.user.currentOrganization&&(yield t.services.storage.setItemAsync(`user_mru_${e.user.currentOrganization.id}`,JSON.stringify(e.mostRecentlyUsed)),yield t.services.storage.setItemAsync(`user_favorites_${e.user.currentOrganization.id}`,JSON.stringify(e.favorites)),yield t.services.storage.setItemAsync("app_user_org",JSON.stringify(e.user.currentOrganization)),yield t.refreshRoles()),yield t.setIsLoggedIn(!0)})()}login(e,t,n,r,o){var a=this;return O(function*(){let s={endUserAppOrgId:r,email:e,password:t,inviteId:o,rememberMe:n,module:a.services.environment.moduleRouteHome},l=yield a.clients.auth.createV1Login(s);return l.successful&&(yield a.setLoginResponse(l.result)),l})()}refreshRoles(){var e=this;return O(function*(){let n=(yield e.clients.user.getRoles()).map(r=>r.role.key);yield e.services.storage.setItemAsync("app_user_roles",JSON.stringify(n))})()}getIsLoggedIn(){var e=this;return O(function*(){return"true"==e.services.cookies.get("authenticated")?(yield e,e.services.storage.setItemAsync("is_logged_in","login_true"),!0):"login_true"==(yield e.services.storage.getItemAsync("is_logged_in"))})()}setIsLoggedIn(e){var t=this;return O(function*(){t._isLoggedIn$.next(e),yield t,t.services.storage.setItemAsync("is_logged_in",e?"login_true":"login_false")})()}getCurrentOrg(){var e=this;return O(function*(){let t=yield e.services.storage.getItemAsync("app_user_org");return JSON.parse(t)})()}getMruForOrg(e){var t=this;return O(function*(){let n=yield t.services.storage.getItemAsync(`user_mru_${e}`);if(n)return JSON.parse(n);let r=yield t.clients.user.getMru();if(r.successful)return yield t.services.storage.setItemAsync(`user_mru_${e}`,JSON.stringify(r.result)),r.result;throw"could not load mru"})()}getMRU(){var e=this;return O(function*(){let t=yield e.getCurrentOrg();return new Promise(function(){var r=O(function*(o,a){if(t){let s=window.setInterval(O(function*(){let l=yield e.getMruForOrg(t.id);l&&(o(l),window.clearInterval(s))}),50)}else o({all:[],modules:[]})});return function(o,a){return r.apply(this,arguments)}}())})()}loadUserFromStorage(){var e=this;return O(function*(){let t=yield e.services.storage.getItemAsync("app_user");if(t)return JSON.parse(t);if(yield e.getIsLoggedIn())return yield e.loadCurrentUser();throw"not logged in, should not attempt to load user."})()}getUser(){var e=this;return O(function*(){if(yield e.getIsLoggedIn())return new Promise(function(){var n=O(function*(r,o){let a=window.setInterval(O(function*(){let s=yield e.loadUserFromStorage();try{s&&(r(s),window.clearInterval(a))}catch{window.clearInterval(a),e.services.navigation.gotoLogin(window.location.pathname)}}),50)});return function(r,o){return n.apply(this,arguments)}}());e.services.navigation.gotoLogin(window.location.pathname)})()}getUserFavorites(){var e=this;return O(function*(){let t=yield e.getCurrentOrg();return new Promise(function(){var r=O(function*(o,a){if(t){let s=window.setInterval(O(function*(){let l=yield e.getUserFavoritesForOrg(t.id);l&&(o(l),window.clearInterval(s))}),50)}else o({favorites:[],modules:[]})});return function(o,a){return r.apply(this,arguments)}}())})()}getUserFavoritesForOrg(e){var t=this;return O(function*(){let n=yield t.services.storage.getItemAsync(`user_favorites_${e}`);if(n)return JSON.parse(n);let r=yield t.clients.user.getFavorites();return yield t.services.storage.setItemAsync(`user_favorites_${e}`,JSON.stringify(r.result)),r.result})()}onLoggedIn(){return this._isLoggedIn$.asObservable()}onUsers(){return this._users$.asObservable()}onUser(){return this._user$.asObservable()}onOrg(){return this._org$.asObservable()}}class tf{_services;constructor(e,t,n,r,o,a,s){this._services=function X0e(i,e,t,n,r,o,a,s){return{storage:i,navigation:e,network:t,errors:n,cookies:r,logger:o,notifications:a,environment:s}}(e,t,n,r,o,a,s,ft)}get services(){return this._services}static \u0275fac=function(t){return new(t||tf)(Me(Kg),Me(Qg),Me(Wd),Me(Zg),Me(Xg),Me(Jg),Me(Gd))};static \u0275prov=Ue({token:tf,factory:tf.\u0275fac,providedIn:"root"})}class nf{_clients;constructor(e){this._clients=function Q0e(i){return{transport:i,media:new M0e(i),auth:new D0e(i),user:new T0e(i),org:new E0e(i),sys:new I0e(i),ai:new A0e(i),marketing:new F0e(i),email:new R0e(i),devices:new O0e(i),business:new L0e(i),deviceMessaging:new B0e(i),accounting:new V0e(i),fieldServiceLite:new H0e(i),iotDeployment:new $0e(i),mfg:new U0e(i),notifications:new j0e(i),jobs:new Y0e(i),labels:new z0e(i),admin:new q0e(i),entities:new K0e(i)}}(e)}get clients(){return this._clients}static \u0275fac=function(t){return new(t||nf)(Me(g7))};static \u0275prov=Ue({token:nf,factory:nf.\u0275fac,providedIn:"root"})}class Vv{_managers;constructor(e,t){this._managers=function Z0e(i,e){return{userManager:new C7(e,i),orgManager:new b7(e,i)}}(e.clients,t.services)}get managers(){return this._managers}static \u0275fac=function(t){return new(t||Vv)(Me(nf),Me(tf))};static \u0275prov=Ue({token:Vv,factory:Vv.\u0275fac,providedIn:"root"})}class $v{rootRoute;router;activeLeafRoute$;paramMap$;constructor(e,t){this.rootRoute=e,this.router=t,console.log("AppRoutingService initialized with root route: ",e,t),this.activeLeafRoute$=this.router.events.pipe(Li(n=>n instanceof Cc),rr(null),Ve(()=>{let n=this.rootRoute;for(;n.firstChild;)n=n.firstChild;return n})),this.paramMap$=this.activeLeafRoute$.pipe(to(n=>n.paramMap))}static \u0275fac=function(t){return new(t||$v)(Me(mi),Me(_i))};static \u0275prov=Ue({token:$v,factory:$v.\u0275fac,providedIn:"root"})}class Dp{_coreServices;_generatedClients;_nuvOsManagers;_appRouting;constructor(e,t,n,r){this._coreServices=e.services,this._generatedClients=t.clients,this._nuvOsManagers=n.managers,this._appRouting=r}get services(){return this._coreServices}get clients(){return this._generatedClients}get appRouting(){return this._appRouting}get mgrs(){return this._nuvOsManagers}static \u0275fac=function(t){return new(t||Dp)(Me(tf),Me(nf),Me(Vv),Me($v))};static \u0275prov=Ue({token:Dp,factory:Dp.\u0275fac,providedIn:"root"})}function J0e(i,e){if(1&i&&(c(0,"div",15),m(1),d()),2&i){const t=g();p(1),$e(" ",t.resourceName||t.entityFieldName," ")}}function ebe(i,e){if(1&i&&(c(0,"div",16),B(1,"i",17),c(2,"span"),m(3),d()()),2&i){const t=g();p(3),Ae(t.errorMessage)}}function tbe(i,e){if(1&i&&(c(0,"div",32),m(1),d()),2&i){const t=g(2);p(1),$e(" Recommended display size: ",t.formField.displayImageSize," ")}}function nbe(i,e){if(1&i&&(c(0,"option",39),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),$e(" ",t.text," ")}}function ibe(i,e){if(1&i&&(c(0,"option",39),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),$e(" ",t.text," ")}}function rbe(i,e){if(1&i&&(c(0,"option",39),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),$e(" ",t.text," ")}}function obe(i,e){1&i&&B(0,"img",44),2&i&&h("src",g(3).referenceImageUrl,gi)}function abe(i,e){if(1&i){const t=re();c(0,"div",40)(1,"div",41),b(2,obe,1,1,"img",42),c(3,"div")(4,"strong"),m(5,"Reference image available"),d(),c(6,"span"),m(7," The new image will use the related image for visual continuity. "),d()()(),c(8,"label",43)(9,"input",23),P("ngModelChange",function(r){return E(t),I(g(2).useReferenceImage=r)})("ngModelChange",function(){return E(t),I(g(2).onUseReferenceImageChanged())}),d(),c(10,"span"),m(11,"Use reference image"),d()()()}if(2&i){const t=g(2);p(2),h("ngIf",t.useReferenceImage&&t.referenceImageUrl),p(7),h("ngModel",t.useReferenceImage)}}function sbe(i,e){1&i&&(c(0,"span"),m(1," (current)"),d())}function lbe(i,e){if(1&i&&(c(0,"option",39),m(1),Zt(2,"dateTimePrinter"),b(3,sbe,2,0,"span",53),d()),2&i){const t=e.$implicit,n=g(3);h("ngValue",t.id),p(1),dr(" ",t.name," - ",Xt(2,4,t.creationDate),""),p(2),h("ngIf",t.id===n.existingResource.currentRevision)}}function cbe(i,e){if(1&i&&(c(0,"div",25),B(1,"textarea",59),d()),2&i){const t=g(4);p(1),h("ngModel",null==t.revision?null:t.revision.originalPrompt)}}function dbe(i,e){if(1&i&&(c(0,"div",25),B(1,"textarea",59),d()),2&i){const t=g(4);p(1),h("ngModel",null==t.revision?null:t.revision.revisedPrompt)}}function ube(i,e){if(1&i){const t=re();c(0,"div",54)(1,"div",55)(2,"label")(3,"input",56),P("ngModelChange",function(r){return E(t),I(g(3).promptType=r)}),d(),m(4," Original Prompt "),d(),c(5,"label")(6,"input",57),P("ngModelChange",function(r){return E(t),I(g(3).promptType=r)}),d(),m(7," Revised Prompt "),d()(),b(8,cbe,2,1,"div",58),b(9,dbe,2,1,"div",58),d()}if(2&i){const t=g(3);p(3),h("ngModel",t.promptType),p(3),h("ngModel",t.promptType),p(2),h("ngIf","original"===t.promptType),p(1),h("ngIf","revised"===t.promptType)}}function pbe(i,e){if(1&i&&(c(0,"div",60),B(1,"img",61),d()),2&i){const t=g(3);p(1),h("src",t.getImageUrl(t.revision),gi)}}function hbe(i,e){if(1&i){const t=re();c(0,"section",19)(1,"div",45)(2,"div",46)(3,"div",20)(4,"h3"),m(5,"Revisions"),d()(),c(6,"div",25)(7,"label"),m(8,"Revision History"),d(),c(9,"div",47)(10,"select",48),P("ngModelChange",function(r){return E(t),I(g(2).currentRevisionId=r)})("change",function(){return E(t),I(g(2).onRevisionSelected())}),b(11,lbe,4,6,"option",27),d(),c(12,"button",49),P("click",function(){E(t);const r=g(2);return I(r.applyRevision(r.revision))}),m(13," Use this Revision "),d()()(),b(14,ube,10,4,"div",50),d(),c(15,"div",51)(16,"div",20)(17,"h3"),m(18),d()(),b(19,pbe,2,1,"div",52),d()()()}if(2&i){const t=g(2);p(10),h("ngModel",t.currentRevisionId),p(1),h("ngForOf",t.existingResource.history),p(1),h("disabled",!t.revision||t.revision.id===t.existingResource.currentRevision),p(2),h("ngIf",(null==t.revision?null:t.revision.originalPrompt)||(null==t.revision?null:t.revision.revisedPrompt)),p(4),Ae(t.previewTitle),p(1),h("ngIf",t.revision)}}function gbe(i,e){if(1&i){const t=re();c(0,"div",18)(1,"section",19)(2,"div",20)(3,"div")(4,"h3"),m(5,"Generation Settings"),d(),b(6,tbe,2,1,"div",21),d(),c(7,"label",22)(8,"input",23),P("ngModelChange",function(r){return E(t),I(g().imageRequest.isPublic=r)}),d(),c(9,"span"),m(10,"Public image"),d()()(),c(11,"div",24)(12,"div",25)(13,"label"),m(14,"Image Style"),d(),c(15,"select",26),P("ngModelChange",function(r){return E(t),I(g().updateImageStyle(r))}),b(16,nbe,2,2,"option",27),d()(),c(17,"div",25)(18,"label"),m(19,"Image Size"),d(),c(20,"select",26),P("ngModelChange",function(r){return E(t),I(g().updateImageSize(r))}),b(21,ibe,2,2,"option",27),d()(),c(22,"div",25)(23,"label"),m(24,"Image Quality"),d(),c(25,"select",26),P("ngModelChange",function(r){return E(t),I(g().updateImageQuality(r))}),b(26,rbe,2,2,"option",27),d()(),c(27,"div",28)(28,"label"),m(29,"Images"),d(),c(30,"input",29),P("ngModelChange",function(r){return E(t),I(g().imageRequest.numberGenerated=r)}),d()()()(),b(31,abe,12,2,"div",30),c(32,"section",19)(33,"div",31)(34,"div")(35,"h3"),m(36,"Prompt Workspace"),d(),c(37,"div",32),m(38),d()(),c(39,"button",33),P("click",function(){return E(t),I(g().generate())}),B(40,"i",34),m(41),d()(),c(42,"div",35)(43,"div",25)(44,"label"),m(45,"Image Purpose"),d(),c(46,"textarea",36),P("ngModelChange",function(r){return E(t),I(g().imageRequest.imagePurpose=r)}),d()(),c(47,"div",25)(48,"label"),m(49,"Style Guidance"),d(),c(50,"textarea",36),P("ngModelChange",function(r){return E(t),I(g().imageRequest.imageGenerationStyleGuidance=r)}),d()()(),c(51,"div",25)(52,"label"),m(53),d(),c(54,"textarea",37),P("ngModelChange",function(r){return E(t),I(g().imageRequest.userPrompt=r)}),d()()(),b(55,hbe,20,6,"section",38),d()}if(2&i){const t=g();p(6),h("ngIf",null==t.formField?null:t.formField.displayImageSize),p(2),h("ngModel",t.imageRequest.isPublic),p(7),h("ngModel",null==t.imageRequest.imageStyle?null:t.imageRequest.imageStyle.key),p(1),h("ngForOf",t.imageStyleOptions),p(4),h("ngModel",null==t.imageRequest.imageSize?null:t.imageRequest.imageSize.key),p(1),h("ngForOf",t.imageSizeOptions),p(4),h("ngModel",null==t.imageRequest.imageQuality?null:t.imageRequest.imageQuality.key),p(1),h("ngForOf",t.imageQualityOptions),p(4),h("ngModel",t.imageRequest.numberGenerated),p(1),h("ngIf",t.hasAvailableReferenceImage),p(7),$e(" ",t.hasExistingResource?"Describe the next refinement.":"Describe the image you want to create."," "),p(1),h("disabled",t.busy||!(null!=t.imageRequest.userPrompt&&t.imageRequest.userPrompt.trim())),p(2),$e(" ",t.generateButtonText," "),p(5),h("ngModel",t.imageRequest.imagePurpose),p(4),h("ngModel",t.imageRequest.imageGenerationStyleGuidance),p(3),Ae(t.hasExistingResource?"Requested Changes":"Generation Instructions"),p(1),h("ngModel",t.imageRequest.userPrompt)("placeholder",t.hasExistingResource?"Describe the changes you want to make to this image.":"Describe the image you want to create."),p(1),h("ngIf",t.existingResource)}}function fbe(i,e){1&i&&(c(0,"div",62)(1,"div",63)(2,"h4"),m(3,"Generating image\u2026"),d(),c(4,"p"),m(5,"This may take a minute or two."),d(),B(6,"app-loading-spinner",64),d()())}class Hv{ctx;activeModal;mediaService;formField;entity;entityTypeName;entityFieldName;entityId;resourceName;mediaResourceId;referenceMediaResourceId;onApplyContent=new Ie;availableReferenceMediaResourceId;useReferenceImage=!1;get hasAvailableReferenceImage(){return!this.hasExistingResource&&!!this.availableReferenceMediaResourceId}onUseReferenceImageChanged(){this.imageRequest.referenceMediaResourceId=this.useReferenceImage?this.availableReferenceMediaResourceId:null}busy=!1;errorMessage="";promptType="original";imageRequest;existingResource;revision;currentRevisionId;baseUrl=ft.siteUri;imageStyleOptions;imageSizeOptions;imageQualityOptions;referenceImageUrl;constructor(e,t,n){this.ctx=e,this.activeModal=t,this.mediaService=n}ngOnInit(){var e=this;return O(function*(){yield e.initializeAsync()})()}get hasExistingResource(){return!!this.existingResource?.id}get selectedRevision(){return this.existingResource?.history?.length&&this.currentRevisionId&&this.existingResource.history.find(e=>e.id===this.currentRevisionId)||null}get canApply(){return!!this.existingResource?.id}get generateButtonText(){return this.hasExistingResource?"Generate Revision":"Generate Image"}get previewTitle(){return this.hasExistingResource?"Current Image":"Generated Image"}generate(){var e=this;return O(function*(){if(e.errorMessage="",e.imageRequest?.userPrompt&&e.imageRequest.userPrompt.trim()){e.busy=!0;try{const t=e.buildRequestForSubmit(),n=yield e.ctx.clients.ai.createImageGenerate(t);if(!n?.successful)return void(e.errorMessage=n?.errorMessage||"Image generation failed.");if(!n.result||0===n.result.length)return void(e.errorMessage="Image generation did not return any media resources.");e.existingResource=n.result[0],e.hydrateFromExistingResource(e.existingResource,!1)}finally{e.busy=!1}}else e.errorMessage="Generation instructions are required."})()}apply(){var e=this;return O(function*(){!e.existingResource||(e.onApplyContent.emit({id:e.existingResource.id,key:e.existingResource.key,text:e.existingResource.fileName,isPublic:e.existingResource.isPublic}),e.activeModal.close())})()}applyRevision(e){var t=this;return O(function*(){!t.existingResource?.id||!e?.id||(yield t.mediaService.setMediaRevision(t.existingResource.id,e.id),t.existingResource.currentRevision=e.id,t.currentRevisionId=e.id,t.revision=e,t.onApplyContent.emit({id:t.existingResource.id,key:t.existingResource.key,text:t.existingResource.fileName,isPublic:t.existingResource.isPublic}))})()}onRevisionSelected(){!this.existingResource?.history?.length||(this.revision=this.existingResource.history.find(e=>e.id===this.currentRevisionId)||null,this.promptType="original",this.imageRequest&&(this.imageRequest.previousResponseId=this.revision?.responseId||null))}updateImageStyle(e){this.imageRequest.imageStyle=this.createEntityHeaderEx(e,this.imageStyleOptions)}updateImageSize(e){this.imageRequest.imageSize=this.createEntityHeaderEx(e,this.imageSizeOptions)}updateImageQuality(e){this.imageRequest.imageQuality=this.createEntityHeaderEx(e,this.imageQualityOptions)}loadReferenceImageUrl(){var e=this;return O(function*(){let t=yield e.ctx.mgrs.userManager.getCurrentOrg();e.referenceMediaResourceId&&(e.referenceImageUrl=`${e.baseUrl}/api/media/resource/${t.id}/${e.referenceMediaResourceId}/download`)})()}getImageUrl(e){return this.existingResource?.id&&e?.id?`${this.baseUrl}/api/media/resource/${this.existingResource.id}/download/${e.id}`:""}cancel(){this.activeModal.close()}initializeAsync(){var e=this;return O(function*(){e.busy=!0,e.errorMessage="";try{e.mediaResourceId?yield e.loadExistingResourceAsync(e.mediaResourceId):yield e.loadNewRequestAsync()}finally{e.busy=!1}})()}loadNewRequestAsync(){var e=this;return O(function*(){const t=yield e.ctx.clients.media.createNewImagegeneration(e.entityTypeName,e.entityFieldName,e.entityId);e.imageStyleOptions=t.view.imageStyle.options,e.imageQualityOptions=t.view.imageQuality.options,e.imageSizeOptions=t.view.imageSize.options,e.imageRequest=t.model,e.applyNewRequestDefaults(),yield e.loadReferenceImageUrl()})()}loadExistingResourceAsync(e){var t=this;return O(function*(){const n=yield t.ctx.clients.media.createNewImagegeneration(t.entityTypeName,t.entityFieldName,t.entityId);t.imageStyleOptions=n.view.imageStyle.options,t.imageQualityOptions=n.view.imageQuality.options,t.imageSizeOptions=n.view.imageSize.options;const r=yield t.ctx.clients.media.getResourceById(e);t.existingResource=r.model,t.hydrateFromExistingResource(t.existingResource,!0)})()}hydrateFromExistingResource(e,t){this.existingResource=e,e?.history?.length?(this.currentRevisionId=e.currentRevision||e.history[0].id,this.revision=e.history.find(n=>n.id===this.currentRevisionId)||e.history[0]):(this.currentRevisionId=null,this.revision=null),e?.imageGenerationRequest?(this.imageRequest=this.cloneRequest(e.imageGenerationRequest),this.imageRequest.referenceMediaResourceId=this.referenceMediaResourceId):(this.imageRequest=this.createFallbackRequest(),t&&this.applyNewRequestDefaults()),this.imageRequest.resourceName=this.resourceName||this.imageRequest.resourceName,this.imageRequest.entityTypeName=this.entityTypeName||this.imageRequest.entityTypeName,this.imageRequest.entityFieldName=this.entityFieldName||this.imageRequest.entityFieldName,this.imageRequest.entityId=this.entityId||this.imageRequest.entityId,this.imageRequest.mediaResourceId=e?.id||null,this.imageRequest.previousResponseId=this.revision?.responseId||null,this.availableReferenceMediaResourceId=null,this.useReferenceImage=!1,this.imageRequest.referenceMediaResourceId=null}createFallbackRequest(){return{resourceName:this.resourceName,entityId:this.entityId,entityTypeName:this.entityTypeName,entityFieldName:this.entityFieldName,mediaResourceId:this.mediaResourceId||null,previousResponseId:null,referenceMediaResourceId:this.referenceMediaResourceId,imageStyle:this.createEntityHeaderEx("editorialphotography",this.imageStyleOptions),imageSize:this.createEntityHeaderEx("square1024x1024",this.imageSizeOptions),imageQuality:this.createEntityHeaderEx("standard",this.imageQualityOptions),numberGenerated:1,imagePurpose:"",imageGenerationStyleGuidance:"",userPrompt:"",isPublic:!0}}normalizeImageSizeOption(e){switch(e){case"square1024x1024":case"1024x1024":return"square1024x1024";case"portrait1024x1536":case"1024x1536":return"portrait1024x1536";case"landscape1536x1024":case"1536x1024":return"landscape1536x1024";default:return e}}applyNewRequestDefaults(){!this.imageRequest||(this.imageRequest.resourceName=this.resourceName||this.imageRequest.resourceName,this.imageRequest.entityTypeName=this.entityTypeName||this.imageRequest.entityTypeName,this.imageRequest.entityFieldName=this.entityFieldName||this.imageRequest.entityFieldName,this.imageRequest.entityId=this.entityId||this.imageRequest.entityId,this.imageRequest.mediaResourceId=null,this.imageRequest.previousResponseId=null,this.formField?.imageStyle&&(this.imageRequest.imageStyle=this.createEntityHeaderEx(this.formField.imageStyle,this.imageStyleOptions)),this.formField?.generatedImageSize&&(this.imageRequest.imageSize=this.createEntityHeaderEx(this.normalizeImageSizeOption(this.formField.generatedImageSize),this.imageSizeOptions)),this.formField?.aiImageQuality&&(this.imageRequest.imageQuality=this.createEntityHeaderEx(this.formField.aiImageQuality,this.imageQualityOptions)),this.formField?.aiImagePurpose&&(this.imageRequest.imagePurpose=this.formField.aiImagePurpose),this.formField?.imageGenerationStyleGuidance&&(this.imageRequest.imageGenerationStyleGuidance=this.formField.imageGenerationStyleGuidance),this.availableReferenceMediaResourceId=this.referenceMediaResourceId||this.resolveReferenceMediaResourceId(),this.useReferenceImage=!!this.availableReferenceMediaResourceId,this.imageRequest.referenceMediaResourceId=this.useReferenceImage?this.availableReferenceMediaResourceId:null)}resolveReferenceMediaResourceId(){const e=this.formField?.aiReferenceImageField;if(!e||!this.entity)return null;const t=e.charAt(0).toLowerCase()+e.slice(1);return(this.entity[e]||this.entity[t])?.id||null}buildRequestForSubmit(){const e=this.cloneRequest(this.imageRequest);return e.resourceName=this.resourceName||e.resourceName,e.entityTypeName=this.entityTypeName||e.entityTypeName,e.entityFieldName=this.entityFieldName||e.entityFieldName,e.entityId=this.entityId||e.entityId,e.mediaResourceId=this.existingResource?.id||null,e.previousResponseId=this.revision?.responseId||null,e.referenceMediaResourceId=this.hasExistingResource?null:this.useReferenceImage?this.availableReferenceMediaResourceId:null,e}cloneRequest(e){return JSON.parse(JSON.stringify(e))}createEntityHeaderEx(e,t){if(!t)return;const n=t.find(r=>r.key===e);if(n)return{id:n.id,key:n.key,text:n.label,value:n.key};console.warn(`Could not find option with key ${e} to create EntityHeaderEx.`)}static \u0275fac=function(t){return new(t||Hv)(H(Dp),H(ar),H(Ys))};static \u0275cmp=Oe({type:Hv,selectors:[["app-image-generator"]],inputs:{formField:"formField",entity:"entity",entityTypeName:"entityTypeName",entityFieldName:"entityFieldName",entityId:"entityId",resourceName:"resourceName",mediaResourceId:"mediaResourceId",referenceMediaResourceId:"referenceMediaResourceId"},outputs:{onApplyContent:"onApplyContent"},decls:20,vars:5,consts:[[1,"image-generation-studio"],[1,"image-generation-studio__shell"],[1,"image-generation-studio__header"],[1,"image-generation-studio__title-row"],["type","button",1,"studio-icon-button",3,"click"],[1,"fa","fa-chevron-left"],[1,"image-generation-studio__title-block"],[1,"image-generation-studio__eyebrow"],["class","image-generation-studio__context",4,"ngIf"],[1,"image-generation-studio__header-actions"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],["class","image-generation-studio__error",4,"ngIf"],["class","image-generation-studio__body",4,"ngIf"],["class","image-generation-studio__loading",4,"ngIf"],[1,"image-generation-studio__context"],[1,"image-generation-studio__error"],[1,"fa","fa-exclamation-circle"],[1,"image-generation-studio__body"],[1,"studio-panel"],[1,"studio-panel__header"],["class","studio-panel__meta",4,"ngIf"],[1,"studio-public-toggle"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"studio-settings-grid"],[1,"form-group"],[1,"form-select",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"form-group","studio-count-field"],["type","number","min","1","max","10",1,"form-control",3,"ngModel","ngModelChange"],["class","studio-reference-image",4,"ngIf"],[1,"studio-panel__header","studio-panel__header--action"],[1,"studio-panel__meta"],["type","button",1,"btn","btn-primary","studio-generate-button",3,"disabled","click"],[1,"fa","fa-sparkles"],[1,"studio-guidance-grid"],["rows","4",1,"form-control",3,"ngModel","ngModelChange"],["rows","6",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["class","studio-panel",4,"ngIf"],[3,"ngValue"],[1,"studio-reference-image"],[1,"studio-reference-image__content"],["style","height:64px;border-radius:8px","alt","Reference image",3,"src",4,"ngIf"],[1,"studio-reference-image__toggle"],["alt","Reference image",2,"height","64px","border-radius","8px",3,"src"],[1,"studio-workbench"],[1,"studio-workbench__left"],[1,"studio-revision-picker"],[1,"form-select",3,"ngModel","ngModelChange","change"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],["class","studio-prompt-history",4,"ngIf"],[1,"studio-workbench__right"],["class","studio-preview",4,"ngIf"],[4,"ngIf"],[1,"studio-prompt-history"],[1,"studio-prompt-history__toggle"],["type","radio","name","promptType","value","original",3,"ngModel","ngModelChange"],["type","radio","name","promptType","value","revised",3,"ngModel","ngModelChange"],["class","form-group",4,"ngIf"],["rows","12","readonly","",1,"form-control",3,"ngModel"],[1,"studio-preview"],[3,"src"],[1,"image-generation-studio__loading"],[1,"image-generation-studio__loading-card"],["caption","Please wait"]],template:function(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"header",2)(3,"div",3)(4,"button",4),P("click",function(){return n.cancel()}),B(5,"i",5),d(),c(6,"div",6)(7,"div",7),m(8,"AI Image Studio"),d(),c(9,"h2"),m(10,"Image Generation"),d(),b(11,J0e,2,1,"div",8),d(),c(12,"div",9)(13,"button",10),P("click",function(){return n.cancel()}),m(14," Close "),d(),c(15,"button",11),P("click",function(){return n.apply()}),m(16," Use Image "),d()()()(),b(17,ebe,4,1,"div",12),b(18,gbe,56,19,"div",13),b(19,fbe,7,0,"div",14),d()()),2&t&&(p(11),h("ngIf",n.resourceName||n.entityFieldName),p(4),h("disabled",!n.canApply),p(2),h("ngIf",n.errorMessage),p(1),h("ngIf",n.imageRequest),p(1),h("ngIf",n.busy))},dependencies:[Ot,rt,Mr,Dr,Dn,Ea,Ml,pr,jT,en,KT,GT,qt,ap,js],styles:["[_nghost-%COMP%]{height:100%}.image-generation-studio__shell[_ngcontent-%COMP%]{min-height:0;overflow:hidden}.image-generation-studio__body[_ngcontent-%COMP%]{min-height:0;overflow-y:auto}.image-generation-studio[_ngcontent-%COMP%]{position:relative}.image-generation-studio__shell[_ngcontent-%COMP%]{position:relative;padding:16px;min-height:480px}.image-generation-studio__header[_ngcontent-%COMP%]{margin-bottom:16px}.image-generation-studio__title-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px}.image-generation-studio__title-block[_ngcontent-%COMP%]{flex:1}.image-generation-studio__eyebrow[_ngcontent-%COMP%]{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--color-body-secondary)}.image-generation-studio__title-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:4px 0;font-size:26px;line-height:1.2}.image-generation-studio__context[_ngcontent-%COMP%]{color:var(--color-body-secondary)}.image-generation-studio__header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.studio-icon-button[_ngcontent-%COMP%]{border:none;background:transparent;font-size:18px;line-height:1;padding:8px;cursor:pointer;color:var(--color-body)}.image-generation-studio__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:12px 14px;margin-bottom:16px;border-radius:8px;background:rgba(220,53,69,.08);color:#a61d2d}.image-generation-studio__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.studio-panel[_ngcontent-%COMP%]{padding:16px;border:1px solid var(--color-border, #ddd);border-radius:10px;background:var(--color-panel-background, #fff)}.studio-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.studio-panel__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.studio-panel__meta[_ngcontent-%COMP%]{margin-top:3px;font-size:13px;color:var(--color-body-secondary)}.studio-settings-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(190px,1fr) minmax(160px,.8fr) 110px;gap:14px;align-items:end}.studio-settings-grid[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin-bottom:0}.studio-public-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin:0;padding:7px 10px;border:1px solid var(--color-border, #d8dde3);border-radius:999px;cursor:pointer;white-space:nowrap;font-weight:500}.studio-public-toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0}.studio-count-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{text-align:center}@media (max-width: 1100px){.studio-settings-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.studio-panel__header[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.studio-settings-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.studio-checkbox__input[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-height:38px}.studio-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:12px}.studio-workbench[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.studio-revision-picker[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center}.studio-revision-picker[_ngcontent-%COMP%] .form-select[_ngcontent-%COMP%]{flex:1}.studio-prompt-history__toggle[_ngcontent-%COMP%]{display:flex;gap:16px;margin-bottom:10px}.studio-prompt-history__toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.studio-preview[_ngcontent-%COMP%]{border:1px solid var(--color-border, #ddd);border-radius:10px;overflow:hidden;background:#fafafa;padding:8px}.studio-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:auto}.image-generation-studio__loading[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:10px;z-index:10}.image-generation-studio__loading-card[_ngcontent-%COMP%]{width:320px;max-width:calc(100% - 32px);padding:20px;border-radius:12px;background:#fff;text-align:center}.image-generation-studio__loading-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 8px}.image-generation-studio__loading-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px;color:var(--color-body-secondary)}@media (max-width: 960px){.studio-workbench[_ngcontent-%COMP%], .studio-settings-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.image-generation-studio__title-row[_ngcontent-%COMP%]{flex-wrap:wrap}.image-generation-studio__header-actions[_ngcontent-%COMP%]{width:100%;justify-content:flex-end}}.image-generation-studio[_ngcontent-%COMP%]{height:100%;min-height:0}.image-generation-studio__shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;padding:0}.image-generation-studio__header[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px 16px 0;background:var(--color-panel-background, #fff);z-index:2}.image-generation-studio__error[_ngcontent-%COMP%]{flex:0 0 auto;margin:12px 16px 0}.image-generation-studio__body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px}.studio-guidance-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media (max-width: 900px){.studio-guidance-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.studio-reference-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border:1px solid var(--color-border, #d8dde3);border-radius:10px;background:var(--color-panel-background, #fff)}.studio-reference-image__content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.studio-reference-image__content[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--color-accent)}.studio-reference-image__content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.studio-reference-image__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;color:var(--color-body-secondary)}.studio-reference-image__toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin:0;white-space:nowrap}@media (max-width: 700px){.studio-reference-image[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}}"]})}function mbe(i,e){if(1&i){const t=re();c(0,"div")(1,"img",9),P("click",function(){const o=E(t).$implicit;return I(g(2).select(o))}),d()()}if(2&i){const t=e.$implicit;p(1),h("src",t.thumbnail,gi)}}function _be(i,e){if(1&i&&(c(0,"div",7),b(1,mbe,2,1,"div",8),d()),2&i){const t=g();p(1),h("ngForOf",t.results.model)}}function vbe(i,e){if(1&i){const t=re();c(0,"div"),B(1,"img",10),c(2,"div")(3,"h4"),m(4),d(),c(5,"label"),m(6,"License:"),d(),c(7,"a",11),m(8),d(),c(9,"label",12),m(10,"Size:"),d(),m(11),d(),c(12,"div",13)(13,"button",14),P("click",function(){return E(t),I(g().apply())}),m(14,"Apply"),d(),c(15,"button",15),P("click",function(){return E(t),I(g().selectedImage=void 0)}),m(16,"Cancel"),d()()()}if(2&i){const t=g();p(1),_t("src",t.selectedImage.url,gi),p(3),Ae(t.selectedImage.title),p(3),_t("href",t.selectedImage.license_url,gi),p(1),Ae(t.selectedImage.license),p(3),dr(" ",t.selectedImage.width,"x",t.selectedImage.height," ")}}class mw{mediaService;activeModal;results;constructor(e,t){this.mediaService=e,this.activeModal=t}searchQuery;source;selectedImage;isPublic=!1;previewImageUrl;onApplyContent=new Ie;ngOnInit(){}searchNow(){var e=this;return O(function*(){e.results=void 0,e.selectedImage=void 0,e.results=yield e.mediaService.searchImages(e.searchQuery,e.source)})()}apply(){var e=this;return O(function*(){let t=new Date,n=e.selectedImage.url.split(".").pop();n=n??"png";let o={fileName:`FromSearch_${Yn.toDateOnly(t).replaceAll("/","")}_${Yn.dateToHHMM(t).replace(":","")}.${n}`,isPublic:e.isPublic,uri:e.selectedImage.url,license:e.selectedImage.license_url},a=yield e.mediaService.createMediaResource(o);console.log(a),e.onApplyContent.emit({id:a.result.id,key:a.result.key,text:a.result.fileName}),e.activeModal.close()})()}select(e){this.selectedImage=e}static \u0275fac=function(t){return new(t||mw)(H(Ys),H(ar))};static \u0275cmp=Oe({type:mw,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(t,n){1&t&&(c(0,"div")(1,"div",0)(2,"h4"),m(3,"Image Search"),d(),B(4,"hr"),c(5,"div",1)(6,"input",2),P("ngModelChange",function(o){return n.searchQuery=o})("keydown.enter",function(){return n.searchNow()}),d()(),c(7,"div",3)(8,"button",4),P("click",function(){return n.searchNow()}),m(9,"Search"),d()(),b(10,_be,2,1,"div",5),b(11,vbe,17,6,"div",6),d()()),2&t&&(p(6),h("ngModel",n.searchQuery),p(2),h("disabled",!n.searchQuery),p(2),h("ngIf",n.results&&!n.selectedImage),p(1),h("ngIf",n.selectedImage))},dependencies:[Ot,rt,Dn,en,qt],styles:["label[_ngcontent-%COMP%]{font-weight:700;margin-right:10px}"]})}function ybe(i,e){if(1&i){const t=re();c(0,"li",8)(1,"div",9)(2,"div",10),m(3),d(),c(4,"div")(5,"span",11),P("click",function(){const o=E(t).$implicit;return I(g(3).applyContentAsLink(o))}),m(6,"Link to Content"),d(),c(7,"span",11),P("click",function(){const o=E(t).$implicit;return I(g(3).editContent(o))}),m(8,"Edit"),d()()()()}if(2&i){const t=e.$implicit;p(3),$e(" ",t.name," ")}}function bbe(i,e){if(1&i&&(c(0,"ol",6),b(1,ybe,9,1,"li",7),d()),2&i){const t=g(2);p(1),h("ngForOf",t.items.model)}}function Cbe(i,e){1&i&&(c(0,"div"),m(1," Sorry, no shared images available for this content type. "),d())}function wbe(i,e){if(1&i){const t=re();c(0,"div")(1,"button",13),P("click",function(){return E(t),I(g(3).saveToLibrary())}),m(2,"Add to image library"),d()()}}function xbe(i,e){if(1&i){const t=re();c(0,"div")(1,"span"),m(2,"Name *"),d(),c(3,"input",12),P("ngModelChange",function(r){return E(t),I(g(2).resource.name=r)}),d(),b(4,wbe,3,0,"div",3),d()}if(2&i){const t=g(2);p(3),h("ngModel",t.resource.name),p(1),h("ngIf",!t.resource.mediaTypeKey)}}function kbe(i,e){if(1&i){const t=re();c(0,"div",1)(1,"h4"),m(2),d(),B(3,"hr"),c(4,"div")(5,"strong"),m(6,"Model:"),d(),m(7),d(),c(8,"div")(9,"strong"),m(10,"Field Text:"),d(),m(11),d(),c(12,"div")(13,"strong"),m(14,"Key:"),d(),m(15),d(),b(16,bbe,2,1,"ol",2),b(17,Cbe,2,0,"div",3),b(18,xbe,5,2,"div",3),B(19,"hr"),c(20,"div",4)(21,"button",5),P("click",function(){return E(t),I(g().cancel())}),m(22,"Cancel"),d()()()}if(2&i){const t=g();p(2),Ae(t.field.label),p(5),$e(" ",t.field.host.form.modelTitle,""),p(4),$e(" ",t.field.label,""),p(4),$e(" ",t.mediaTypeKey,""),p(1),h("ngIf",t.items&&t.items.model.length>0),p(1),h("ngIf",t.items&&0==t.items.model.length),p(1),h("ngIf",t.resource)}}class _w{activeModal;mediaService;items;resource;editResource;mediaTypeKey;field;fieldChange;constructor(e,t){this.activeModal=e,this.mediaService=t}ngOnInit(){var e=this;return O(function*(){if(console.log(e.field.host.form),e.mediaTypeKey=`${e.field.host.form.modelName.toLowerCase()}-${e.field.name.toLowerCase()}`,e.items=yield e.mediaService.loadMediaResourcesForMediaTypeKey(e.mediaTypeKey),e.field.value){let t=e.field.value,n=yield e.mediaService.loadMediaResource(t.id);n.successful&&(e.resource=n.model)}console.log(e.items)})()}applyContentAsLink(e){console.log("applyContentAsLink",e),this.field.value={id:e.id,text:e.name,name:e.name,key:e.key},this.activeModal.close(),this.fieldChange(this.field)}editContent(e){var t=this;return O(function*(){t.editResource=(yield t.mediaService.loadMediaResource(e.id)).model})()}saveToLibrary(){this.resource.mediaTypeKey=this.mediaTypeKey,this.mediaService.updateMediaResource(this.resource),this.activeModal.close(this.resource)}getImageUrl(e){return""}cancel(){this.activeModal.dismiss()}static \u0275fac=function(t){return new(t||_w)(H(ar),H(Ys))};static \u0275cmp=Oe({type:_w,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(t,n){1&t&&b(0,kbe,23,7,"div",0),2&t&&h("ngIf",n.field)},dependencies:[Ot,rt,Dn,en,qt],styles:["label[_ngcontent-%COMP%]{font-weight:700}label[_ngcontent-%COMP%] span.required[_ngcontent-%COMP%]{color:red}"]})}class as{static getDownloadUrl(e,t,n=!1){if(!e||!t)return;const r=n?`?t=${(new Date).getTime()}`:"";return`${ft.siteUri}/api/media/resource/${e}/${t}/download${r}`}static createEntityHeader(e){if(e?.id)return{id:e.id,key:e.key,text:e.fileName||e.name||e.text}}static contains(e,t){return!!t?.id&&(e||[]).some(n=>n.id===t.id)}}const Lc=function(i,e){return{"fa-star":i,"fa-star-o":e}};function Mbe(i,e){if(1&i){const t=re();c(0,"div"),B(1,"i",2)(2,"i",3)(3,"i",3)(4,"i",3)(5,"i",3),c(6,"i",4),P("click",function(){return E(t),I(g().clearRating())}),d()()}if(2&i){const t=g();p(2),h("ngClass",ci(4,Lc,t.rating.stars>=2,t.rating.stars<2)),p(1),h("ngClass",ci(7,Lc,t.rating.stars>=3,t.rating.stars<3)),p(1),h("ngClass",ci(10,Lc,t.rating.stars>=4,t.rating.stars<4)),p(1),h("ngClass",ci(13,Lc,t.rating.stars>=5,t.rating.stars<5))}}const Uv=function(i){return{color:i}};function Dbe(i,e){if(1&i){const t=re();c(0,"div")(1,"i",5),P("mouseover",function(){return E(t),I(g().highlightRating(1))})("mouseleave",function(){return E(t),I(g().reset())})("click",function(){return E(t),I(g().rate(1))}),d(),c(2,"i",5),P("mouseover",function(){return E(t),I(g().highlightRating(2))})("mouseleave",function(){return E(t),I(g().reset())})("click",function(){return E(t),I(g().rate(2))}),d(),c(3,"i",5),P("mouseover",function(){return E(t),I(g().highlightRating(3))})("mouseleave",function(){return E(t),I(g().reset())})("click",function(){return E(t),I(g().rate(3))}),d(),c(4,"i",5),P("mouseover",function(){return E(t),I(g().highlightRating(4))})("mouseleave",function(){return E(t),I(g().reset())})("click",function(){return E(t),I(g().rate(4))}),d(),c(5,"i",5),P("mouseover",function(){return E(t),I(g().highlightRating(5))})("mouseleave",function(){return E(t),I(g().reset())})("click",function(){return E(t),I(g().rate(5))}),d()()}if(2&i){const t=g();p(1),h("ngStyle",bt(10,Uv,t.tempStars>=1?"gold":"gray"))("ngClass",ci(12,Lc,t.tempStars>=1,!t.tempStars)),p(1),h("ngStyle",bt(15,Uv,t.tempStars>=2?"gold":"gray"))("ngClass",ci(17,Lc,t.tempStars>=2,!t.tempStars||t.tempStars<2)),p(1),h("ngStyle",bt(20,Uv,t.tempStars>=3?"gold":"gray"))("ngClass",ci(22,Lc,t.tempStars>=3,!t.tempStars||t.tempStars<3)),p(1),h("ngStyle",bt(25,Uv,t.tempStars>=4?"gold":"gray"))("ngClass",ci(27,Lc,t.tempStars>=4,!t.tempStars||t.tempStars<4)),p(1),h("ngStyle",bt(30,Uv,5==t.tempStars?"gold":"gray"))("ngClass",ci(32,Lc,5==t.tempStars,!t.tempStars||t.tempStars<5))}}class jv{set=new Ie;clear=new Ie;rating;tempStars;constructor(){}ngOnInit(){}highlightRating(e){this.tempStars=e}reset(){this.tempStars=void 0}rate(e){this.set?.emit(e)}clearRating(){this.clear?.emit()}static \u0275fac=function(t){return new(t||jv)};static \u0275cmp=Oe({type:jv,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(t,n){1&t&&(c(0,"div",0),b(1,Mbe,7,16,"div",1),b(2,Dbe,6,35,"div",1),d()),2&t&&(p(1),h("ngIf",n.rating),p(1),h("ngIf",!n.rating))},dependencies:[Vi,rt,Rs],styles:["i[_ngcontent-%COMP%]{cursor:pointer;font-size:1.5em}"]})}const Tbe=["mediaLibraryModal"],Sbe=["advancedView"];function Ebe(i,e){if(1&i){const t=re();c(0,"button",5),P("click",function(){return E(t),I(g().generateImage())}),B(1,"i",20),c(2,"span"),m(3,"AI"),d()()}}function Ibe(i,e){if(1&i){const t=re();c(0,"button",5),P("click",function(){return E(t),I(g().downloadFile())}),B(1,"i",21),c(2,"span"),m(3,"Download"),d()()}}function Abe(i,e){if(1&i){const t=re();c(0,"button",5),P("click",function(){return E(t),I(g().showAdvanced())}),B(1,"i",22),c(2,"span"),m(3,"Advanced"),d()()}}function Pbe(i,e){if(1&i){const t=re();c(0,"button",23),P("click",function(){E(t);const r=g();return r.field.value=void 0,r.downloadFileName=void 0,r.fileNameOrStatus=void 0,I(r.error=void 0)}),B(1,"i",24),c(2,"span"),m(3,"Remove"),d()()}}const Fbe=function(i){return{"nv-file-over":i}};function Rbe(i,e){if(1&i){const t=re();c(0,"div",25)(1,"div",26),P("fileOver",function(r){return E(t),I(g().fileOverBase(r))}),c(2,"div",27),B(3,"i",28),d(),c(4,"strong"),m(5,"Drop an image here"),d(),c(6,"span"),m(7,"or choose one from your computer"),d(),c(8,"label",29)(9,"span"),m(10,"Select File"),d(),B(11,"input",30),d()()()}if(2&i){const t=g();p(1),h("ngClass",bt(3,Fbe,t.hasBaseDropZoneOver))("uploader",t.uploader),p(10),h("uploader",t.uploader)}}function Obe(i,e){if(1&i&&B(0,"img",36),2&i){const t=g(2);h("src",t.downloadFileName,gi)("alt",(null==t.field.value?null:t.field.value.text)||t.field.label)}}function Lbe(i,e){if(1&i&&(c(0,"div",37),B(1,"i",38),c(2,"span"),m(3),d()()),2&i){const t=g(2);p(3),Ae(t.field.value.text)}}function Nbe(i,e){if(1&i&&(c(0,"div",39)(1,"strong"),m(2),d(),c(3,"span"),m(4,"Ready to use"),d()()),2&i){const t=g(2);p(2),Ae((null==t.field.value?null:t.field.value.text)||"Selected image")}}function Bbe(i,e){if(1&i&&(c(0,"div",31)(1,"div",32),b(2,Obe,1,2,"img",33),b(3,Lbe,4,1,"div",34),d(),b(4,Nbe,5,1,"div",35),d()),2&i){const t=g();p(2),h("ngIf",t.field.isFileUploadImage),p(1),h("ngIf",!t.field.isFileUploadImage),p(1),h("ngIf",t.field.isFileUploadImage)}}const Vbe=function(i){return{width:i}};function $be(i,e){if(1&i&&(c(0,"div",40)(1,"span"),m(2),d(),c(3,"div",41),B(4,"div",42),d()()),2&i){const t=g();p(2),Ae(t.fileNameOrStatus),p(2),h("ngStyle",bt(2,Vbe,t.uploader.progress+"%"))}}function Hbe(i,e){if(1&i&&(c(0,"div",43),B(1,"i",44),c(2,"span"),m(3),d()()),2&i){const t=g();p(3),Ae(t.error)}}function Ube(i,e){if(1&i&&(c(0,"option",55),m(1),d()),2&i){const t=e.$implicit;h("value",t.key),p(1),Ae(t.name)}}function jbe(i,e){if(1&i&&B(0,"img",65),2&i){const t=g().$implicit;_t("alt",t.name),h("src",t.link,gi)}}function Ybe(i,e){if(1&i){const t=re();c(0,"tr")(1,"td",60)(2,"div",61),b(3,jbe,1,2,"img",62),d()(),c(4,"td"),m(5),d(),c(6,"td"),m(7),d(),c(8,"td")(9,"span",63),P("click",function(){const o=E(t).$implicit;return I(g(3).selectResource(o))}),m(10,"Use as a Share"),d()(),c(11,"td")(12,"span",64),P("click",function(){const o=E(t).$implicit;return I(g(3).makeACopy(o))}),m(13,"Make a Copy"),d()()()}if(2&i){const t=e.$implicit;p(3),h("ngIf",t.link),p(2),$e(" ",t.name," "),p(2),$e(" ",t.category," ")}}function zbe(i,e){if(1&i){const t=re();c(0,"div",66)(1,"span",67),P("click",function(){return E(t),I(g(3).showNextPage())}),m(2,"Next Page"),B(3,"i",68),d()()}}function Wbe(i,e){if(1&i&&(c(0,"div")(1,"table",56)(2,"thead")(3,"tr")(4,"th"),m(5,"Preview"),d(),c(6,"th"),m(7,"Name"),d(),c(8,"th"),m(9,"Category"),d(),B(10,"th")(11,"th"),d()(),c(12,"tbody",57),b(13,Ybe,14,3,"tr",58),d()(),b(14,zbe,4,0,"div",59),d()),2&i){const t=g(2);p(13),h("ngForOf",t.mediaResources.model),p(1),h("ngIf",t.mediaResources.hasMoreRecords)}}function qbe(i,e){if(1&i){const t=re();c(0,"div",45)(1,"h4",46),m(2,"Media Library"),d(),c(3,"div",47)(4,"label"),m(5,"Category:"),d(),c(6,"select",48),P("ngModelChange",function(r){return E(t),I(g().categoryFilter=r)})("change",function(){return E(t),I(g().mediaFilterByCategory())}),c(7,"option",49),m(8,"-all-"),d(),b(9,Ube,2,2,"option",50),d()(),c(10,"button",51),P("click",function(){return I(E(t).$implicit.dismiss())}),c(11,"span",52),m(12,"\xd7"),d()()(),c(13,"div",53),b(14,Wbe,15,2,"div",54),d()}if(2&i){const t=g();p(6),h("ngModel",t.categoryFilter),p(3),h("ngForOf",null==t.categories?null:t.categories.model),p(5),h("ngIf",t.mediaResources)}}function Gbe(i,e){if(1&i){const t=re();c(0,"div",47)(1,"label"),m(2,"File Name:"),d(),c(3,"input",79),P("ngModelChange",function(r){return E(t),I(g(2).resource.name=r)}),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.resource.name)}}function Kbe(i,e){if(1&i&&(c(0,"div",80)(1,"div",81)(2,"label"),m(3,"Content Type:"),d(),m(4),d(),c(5,"div",81)(6,"label"),m(7,"File Size:"),d(),m(8),Zt(9,"fileSize"),d(),c(10,"div",81)(11,"label"),m(12,"Actual Size:"),d(),m(13),d()()),2&i){const t=g(2);p(4),$e(" ",t.resource.mimeType," "),p(4),$e(" ",Xt(9,4,t.resource.contentSize)," "),p(5),dr(" ",t.resource.width,"x",t.resource.height," ")}}function Qbe(i,e){if(1&i){const t=re();c(0,"div")(1,"span",67),P("click",function(){return E(t),I(g(3).copyToThumbNailField())}),B(2,"i",90),m(3," Copy to Thumbnail"),d()()}}function Zbe(i,e){if(1&i&&(c(0,"option",55),m(1),d()),2&i){const t=e.$implicit;h("value",t.key),p(1),Ae(t.name)}}function Xbe(i,e){if(1&i){const t=re();c(0,"div")(1,"fieldset")(2,"legend"),m(3,"Resize Image"),d(),c(4,"label"),m(5,"Recommended:"),d(),m(6),c(7,"label"),m(8,"New Size"),d(),c(9,"div")(10,"input",82),P("ngModelChange",function(r){return E(t),I(g(2).resizeWidth=r)}),d(),m(11,"x "),c(12,"input",83),P("ngModelChange",function(r){return E(t),I(g(2).resizeHeight=r)}),d()(),c(13,"div")(14,"label"),m(15,"File Type:"),d(),c(16,"select",84),P("ngModelChange",function(r){return E(t),I(g(2).resizeFileType=r)}),c(17,"option",85),m(18,"JPEG"),d(),c(19,"option",86),m(20,"PNG"),d(),c(21,"option",87),m(22,"WEBP"),d()()(),c(23,"div",66)(24,"button",88),P("click",function(){return E(t),I(g(2).resize())}),m(25,"Resize"),d()()(),b(26,Qbe,4,0,"div",54),c(27,"div",47)(28,"label"),m(29,"Category:"),d(),c(30,"select",48),P("ngModelChange",function(r){return E(t),I(g(2).mediaCategoryId=r)})("change",function(){return E(t),I(g(2).categoryChanged())}),c(31,"option",49),m(32,"-select category-"),d(),b(33,Zbe,2,2,"option",50),d()(),c(34,"app-rating",89),P("set",function(r){return E(t),I(g(2).setRating(r))})("clear",function(){return E(t),I(g(2).clearRating())}),d()()}if(2&i){const t=g(2);p(6),$e(" ",t.field.displayImageSize," "),p(4),h("ngModel",t.resizeWidth),p(2),h("ngModel",t.resizeHeight),p(4),h("ngModel",t.resizeFileType),p(10),h("ngIf",t.field.thumbnailField),p(4),h("ngModel",t.mediaCategoryId),p(3),h("ngForOf",null==t.categories?null:t.categories.model),p(1),h("rating",t.userRating)}}function Jbe(i,e){if(1&i){const t=re();c(0,"div",45)(1,"h4",46),m(2,"Advanced Image Options"),d(),c(3,"button",51),P("click",function(){return E(t),I(g().advancedModal.dismiss())}),c(4,"span",52),m(5,"\xd7"),d()()(),c(6,"div",53),b(7,Gbe,4,1,"div",69),c(8,"div",70)(9,"div",71)(10,"div",72)(11,"img",73,74),P("click",function(r){E(t);const o=Vr(12);return I(g().setFocalPoint(r,o))}),d(),B(13,"span",75),d(),c(14,"div",76)(15,"span"),m(16,"Click the image to set its focal point."),d(),c(17,"button",77),P("click",function(){return E(t),I(g().resetFocalPoint())}),m(18," Center "),d()()(),b(19,Kbe,14,6,"div",78),b(20,Xbe,35,8,"div",54),d()()}if(2&i){const t=g();p(7),h("ngIf",t.resource),p(4),h("src",t.downloadFileName,gi),p(2),cn("left",100*t.focalPointX,"%")("top",100*t.focalPointY,"%"),p(6),h("ngIf",t.resource),p(1),h("ngIf",t.resource)}}class vw extends Gt{modalService;mediaService;adminService;userService;hasBaseDropZoneOver=!1;uploader;error;resource;fileNameOrStatus;orgId;focalPointX=.5;focalPointY=.5;resizeWidth;resizeHeight;resizeFileType;userRating;currentUser;downloadFileName;mediaResources;mediaLibraryModal;currentModal;advancedView;advancedModal;static formView(e,t){return{label:e,uploadUrl:t,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(e,t,n,r){super(),this.modalService=e,this.mediaService=t,this.adminService=n,this.userService=r}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){if(t.fileNameOrStatus=null,t.orgId=(yield t.userService.getCurrentOrg()).id,t.field.refresh=O(function*(){t.downloadFileName=as.getDownloadUrl(t.orgId,t.field.value?.id)}),t.field.value&&(t.field.downloadUrl?t.downloadFileName=t.field.downloadUrl:t.field.value?.id&&(t.downloadFileName=as.getDownloadUrl(t.orgId,t.field.value.id))),t.currentUser=yield t.userService.getUser(),(!t.field.uploadUrl||!t.field.uploadUrl.startsWith("http"))&&(t.field.uploadUrl=`${ft.siteUri}${t.field.uploadUrl}`),t.categories=yield t.adminService.getCategories("mediaresource"),t.uploader=new N_({url:t.field.uploadUrl}),t.uploader.onAfterAddingFile=n=>{t.error=void 0,t.fileNameOrStatus=`Uploading: ${n.some.name}`,t.field.value=n.some.name,t.uploader.uploadItem(n)},t.uploader.onErrorItem=(n,r,o,a)=>{t.error=`Upload error: ${o}`},t.uploader.onCancelItem=(n,r,o,a)=>{t.error=`Upload canceled: ${o}`},t.uploader.onCompleteItem=(n,r,o,a)=>{const s=JSON.parse(r);if(s.successful)if(t.field.value=n.some.name,t.fileNameOrStatus=`Success uploading: ${n.some.name}`,t.field.fileUploaded)t.field.fileUploaded(s.result,n.some.name);else{const l=s.result;l.id&&("MediaResource"===t.form.modelName?(t.field.value=n.some.name,t.model[t.field.name]=n.some.name):t.field.value=as.createEntityHeader(l)),window.setTimeout(()=>{t.field.value?.id&&t.field.isFileUploadImage&&(t.downloadFileName=as.getDownloadUrl(t.orgId,t.field.value.id))},1500)}else t.error=s.errors[0].message},t.field.displayImageSize){const n=t.field.displayImageSize.split("x");t.resizeWidth=parseInt(n[0]),t.resizeHeight=parseInt(n[1])}t.resizeFileType="webp",e().call(t)})()}setRating(e){var t=this;return O(function*(){const n=yield t.mediaService.setRating(t.resource.id,e);n.successful&&(t.resource.stars=n.result.stars,t.resource.ratings=n.result.ratings,t.resource.ratingsCount=n.result.ratingsCount,t.userRating=n.result.ratings.find(r=>r.user.id===t.currentUser.id))})()}clearRating(){var e=this;return O(function*(){const t=yield e.mediaService.clearRating(e.resource.id);t.successful&&(e.resource.stars=t.result.stars,e.resource.ratings=t.result.ratings,e.resource.ratingsCount=t.result.ratingsCount,e.userRating=void 0)})()}resolveReferenceMediaResourceId(e){return e?this.model[e]?.id??null:null}generateImage(){var e=this;return O(function*(){e.resource=void 0;const t=e.modalService.open(Hv,{size:"xl",windowClass:"image-generation-modal",beforeDismiss:()=>!0}).componentInstance;t.entityFieldName=e.field.name,t.entityTypeName=e.form.modelName,t.entityId=e.model.id,t.formField=e.field,t.entity=e.model,t.resourceName=e.field.label||e.field.name,t.mediaResourceId=e.field.value?.id,e.field.aiReferenceImageField&&e.form.view[e.field.aiReferenceImageField]?.value&&(t.referenceMediaResourceId=e.form.view[e.field.aiReferenceImageField].value.id),console.log(e.field.aiReferenceImageField,e.form.view[e.field.aiReferenceImageField],t.referenceMediaResourceId),t.onApplyContent.subscribe(n=>{e.field.value=n,e.downloadFileName=void 0,window.setTimeout(()=>{e.downloadFileName=as.getDownloadUrl(e.orgId,e.field.value.id,!0)},1e3)})})()}searchImages(){this.modalService.open(mw,{size:"xl",beforeDismiss:()=>!0}).componentInstance.onApplyContent.subscribe(t=>{this.field.value=t,this.downloadFileName=as.getDownloadUrl(this.orgId,this.field.value.id)})}setFocalPoint(e,t){const n=t.getBoundingClientRect();n.width<=0||n.height<=0||(this.focalPointX=this.clamp((e.clientX-n.left)/n.width),this.focalPointY=this.clamp((e.clientY-n.top)/n.height),this.field.value={...this.field.value,focalPointX:this.focalPointX,focalPointY:this.focalPointY})}resetFocalPoint(){this.focalPointX=.5,this.focalPointY=.5,this.field.value={...this.field.value,focalPointX:this.focalPointX,focalPointY:this.focalPointY}}clamp(e){return Math.max(0,Math.min(1,e))}showAdvanced(){var e=this;return O(function*(){const t=yield e.mediaService.loadMediaResource(e.field.value.id);if(t.successful){if(e.mediaCategoryId=t.model.category?.id??"-1",e.field.displayImageSize){const n=e.field.displayImageSize.split("x");e.resizeWidth=parseInt(n[0]),e.resizeHeight=parseInt(n[1])}e.focalPointX=e.field.value?.focalPointX??.5,e.focalPointY=e.field.value?.focalPointY??.5,e.userRating=t.model.ratings.find(n=>n.user.id===e.currentUser.id),e.resource=t.model,e.resource.width&&e.resource.height&&e.resizeWidth&&e.resizeHeight&&e.resizeHeight>0&&(e.resizeWidth=Math.round(e.resizeHeight*(e.resource.width/e.resource.height)))}e.advancedModal=e.modalService.open(e.advancedView,{size:"xl"})})()}categoryChanged(){var e=this;return O(function*(){if(e.mediaCategoryId&&"-1"!==e.mediaCategoryId&&e.mediaCategoryId!==e.resource?.category?.id){const t=e.categories.model.find(o=>o.key===e.mediaCategoryId),n={id:t.key,key:t.key,text:t.name};(yield e.mediaService.assignCategory(e.resource.id,n)).successful&&(e.resource.category=n)}})()}showMediaPicker(){var e=this;return O(function*(){e.currentModal=e.modalService.open(e.mediaLibraryModal,{size:"xl"}),e.categoryFilter=e.form.modelName.toLocaleLowerCase()+e.field.name.toLocaleLowerCase(),e.mediaResources=yield e.mediaService.getMediaByCategory(e.categoryFilter)})()}showAllMedia(){var e=this;return O(function*(){e.mediaResources=yield e.mediaService.getAllMedia()})()}showNextPage(){var e=this;return O(function*(){e.mediaResources=yield e.mediaService.getAllMedia(e.mediaResources.pageIndex+1,e.mediaResources.pageSize)})()}downloadFile(){window.open(this.downloadFileName)}fileOverBase(e){this.hasBaseDropZoneOver=e}resize(){var e=this;return O(function*(){const t=yield e.mediaService.resizeMediaResource(e.resource.id,{fileType:e.resizeFileType,width:e.resizeWidth,height:e.resizeHeight});t.successful&&(e.resource=t.result,e.downloadFileName=as.getDownloadUrl(e.orgId,e.resource.id,!0))})()}showSharedImageModal(){const e=this.modalService.open(_w,{size:"lg",beforeDismiss:()=>!0}).componentInstance;e.field=this.field,e.fieldChange=t=>{this.downloadFileName=as.getDownloadUrl(this.orgId,this.field.value.id)},this.currentModal.close()}selectResource(e){this.field.value={id:e.id,key:e.key,text:e.name},this.downloadFileName=e.link,this.currentModal.close()}makeACopy(e){var t=this;return O(function*(){const n=yield t.mediaService.cloneMediaResource(e.id,t.form.modelName,t.field.name,e.name);if(n.successful){const r=n.result;t.field.value={id:r.id,key:r.key,text:r.name},t.downloadFileName=as.getDownloadUrl(t.orgId,t.field.value.id)}t.currentModal.close()})()}mediaFilterByCategory(){var e=this;return O(function*(){e.mediaResources=e.categoryFilter&&"-1"!==e.categoryFilter?yield e.mediaService.getMediaByCategory(e.categoryFilter):yield e.mediaService.getAllMedia()})()}viewImageHistory(){window.open("/contentmanagement/")}copyToThumbNailField(){var e=this;return O(function*(){const t=e.form.modelName,n=e.field.thumbnailField,r=e.form.view.name?e.form.view.name.value:"Auto Generated Resource",o=yield e.mediaService.cloneMediaResource(e.field.value.id,t,n,r);if(o.successful){const a=o.result;e.form.view[e.field.thumbnailField].value={id:a.id,key:a.key,text:a.name},e.form.view[e.field.thumbnailField].refresh()}})()}static \u0275fac=function(t){return new(t||vw)(H(Pn),H(Ys),H(ns),H(Hn))};static \u0275cmp=Oe({type:vw,selectors:[["app-file-upload"]],viewQuery:function(t,n){if(1&t&&(Wt(Tbe,5),Wt(Sbe,5)),2&t){let r;ut(r=pt())&&(n.mediaLibraryModal=r.first),ut(r=pt())&&(n.advancedView=r.first)}},features:[it],decls:24,vars:18,consts:[[3,"name","label","isRequired"],[1,"media-field"],[1,"media-field__toolbar"],[1,"media-field__actions"],["type","button","class","media-action",3,"click",4,"ngIf"],["type","button",1,"media-action",3,"click"],[1,"fa","fa-images"],[1,"media-field__actions","media-field__actions--secondary"],["type","button","class","media-action media-action--danger",3,"click",4,"ngIf"],[1,"media-field__content"],["class","media-field__empty",4,"ngIf"],["class","media-preview",4,"ngIf"],["class","media-field__status",4,"ngIf"],["class","media-field__error",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["id","mediaLibraryModal"],["mediaLibraryModal",""],["id","advancedView"],["advancedView",""],[1,"fa","fas","fa-sparkles"],[1,"fa","fa-download"],[1,"fa","fa-gear"],["type","button",1,"media-action","media-action--danger",3,"click"],[1,"fa","fas","fa-trash"],[1,"media-field__empty"],["ng2FileDrop","",1,"media-drop-zone",3,"ngClass","uploader","fileOver"],[1,"media-drop-zone__icon"],[1,"fa","fa-file-upload"],[1,"media-upload-button"],["type","file","ng2FileSelect","",1,"upload",3,"uploader"],[1,"media-preview"],[1,"media-preview__image"],[3,"src","alt",4,"ngIf"],["class","media-preview__file",4,"ngIf"],["class","media-preview__details",4,"ngIf"],[3,"src","alt"],[1,"media-preview__file"],[1,"fa","fa-file"],[1,"media-preview__details"],[1,"media-field__status"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[1,"media-field__error"],[1,"fa","fa-exclamation-circle"],[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"],[4,"ngIf"],[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","style","border-radius: 6px;",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",2,"border-radius","6px",3,"src","alt"],[1,"save-bar"],[1,"action",3,"click"],[1,"fa","fa-chevron-right"],["class","form-group",4,"ngIf"],[2,"display","flex","margin-top","10px"],[1,"focal-point-editor"],[1,"focal-point-editor__image"],["alt","Select image focal point",3,"src","click"],["advancedImage",""],[1,"focal-point-editor__marker"],[1,"focal-point-editor__footer"],["type","button",1,"btn","btn-link","btn-sm",3,"click"],["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"],[1,"img-attr"],["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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"div",2)(3,"div",3),b(4,Ebe,4,0,"button",4),c(5,"button",5),P("click",function(){return n.showMediaPicker()}),B(6,"i",6),c(7,"span"),m(8,"Media Library"),d()(),b(9,Ibe,4,0,"button",4),d(),c(10,"div",7),b(11,Abe,4,0,"button",4),b(12,Pbe,4,0,"button",8),d()(),c(13,"div",9),b(14,Rbe,12,5,"div",10),b(15,Bbe,5,3,"div",11),b(16,$be,5,4,"div",12),b(17,Hbe,4,1,"div",13),d()(),B(18,"app-form-field-validation-section",14)(19,"app-form-field-help",15),b(20,qbe,15,3,"ng-template",16,17,jr),b(22,Jbe,21,8,"ng-template",18,19,jr)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(4),h("ngIf",n.field.imageUpload),p(5),h("ngIf",n.downloadFileName),p(2),h("ngIf",n.downloadFileName&&n.field.imageUpload),p(1),h("ngIf",n.field.value),p(2),h("ngIf",n.uploader&&!n.downloadFileName),p(1),h("ngIf",n.downloadFileName),p(1),h("ngIf",n.fileNameOrStatus&&!n.error&&!n.downloadFileName),p(1),h("ngIf",n.error),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,Dn,Ea,pr,en,qt,Vi,Ot,rt,Rs,Bd,Vd,Nn,Bn,Vn,jv,Hg],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}.focal-point-editor[_ngcontent-%COMP%]{width:min(420px,100%)}.focal-point-editor__image[_ngcontent-%COMP%]{position:relative;display:inline-block;max-width:100%;overflow:hidden;border:1px solid var(--color-border, #d8dde3);border-radius:8px;cursor:crosshair;line-height:0}.focal-point-editor__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:auto;height:auto;max-width:100%;max-height:420px}.focal-point-editor__marker[_ngcontent-%COMP%]{position:absolute;width:22px;height:22px;border:2px solid white;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 2px #000000a6,0 2px 8px #00000059}.focal-point-editor__marker[_ngcontent-%COMP%]:before, .focal-point-editor__marker[_ngcontent-%COMP%]:after{position:absolute;content:"";background:white}.focal-point-editor__marker[_ngcontent-%COMP%]:before{top:9px;left:-5px;width:28px;height:2px}.focal-point-editor__marker[_ngcontent-%COMP%]:after{top:-5px;left:9px;width:2px;height:28px}.focal-point-editor__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;color:var(--color-body-secondary);font-size:13px}.media-field[_ngcontent-%COMP%]{overflow:hidden;margin-top:6px;border:1px solid #dfe4ea;border-radius:10px;background:#fff;box-shadow:0 1px 2px #1622330a}.media-field__toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:6px 10px;border-bottom:1px solid #e7ebef;background:#f8fafc}.media-field__actions[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.media-field__actions--secondary[_ngcontent-%COMP%]{justify-content:flex-end}.media-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:#347fd1;font:inherit;cursor:pointer;transition:background-color .12s ease,color .12s ease}.media-action[_ngcontent-%COMP%]:hover{background:#eaf3fd;color:#1e67b1}.media-action[_ngcontent-%COMP%]:focus{outline:2px solid rgba(52,127,209,.3);outline-offset:1px}.media-action--danger[_ngcontent-%COMP%]{color:#dc3545}.media-action--danger[_ngcontent-%COMP%]:hover{background:#fff0f1;color:#b92534}.media-field__content[_ngcontent-%COMP%]{padding:14px}.media-preview[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:14px}.media-preview__image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:160px;min-height:160px;overflow:hidden;border:1px solid #dce2e8;border-radius:10px;background:linear-gradient(45deg,#f3f5f7 25%,transparent 25%),linear-gradient(-45deg,#f3f5f7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f3f5f7 75%),linear-gradient(-45deg,transparent 75%,#f3f5f7 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;box-shadow:0 2px 8px #16223314}.media-preview__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:auto;height:160px;max-width:320px;object-fit:contain}.media-preview__details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;min-width:160px}.media-preview__details[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#25313d;font-size:14px;font-weight:600}.media-preview__details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#73808c;font-size:13px}.media-preview__file[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:18px;color:#4f5d69}.media-preview__file[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#347fd1;font-size:24px}.media-drop-zone[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:170px;padding:24px;border:2px dashed #cbd4dd;border-radius:9px;background:#fafbfd;color:#667481;text-align:center;transition:border-color .12s ease,background-color .12s ease}.media-drop-zone[_ngcontent-%COMP%]:hover, .media-drop-zone.nv-file-over[_ngcontent-%COMP%]{border-color:#347fd1;background:#f2f7fd}.media-drop-zone[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#34414d;font-size:14px}.media-drop-zone[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:13px}.media-drop-zone__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin-bottom:4px;border-radius:50%;background:#e8f2fc;color:#347fd1;font-size:18px}.media-upload-button[_ngcontent-%COMP%]{position:relative;display:inline-flex!important;align-items:center;justify-content:center;min-height:34px;margin-top:8px;padding:6px 14px;overflow:hidden;border-radius:6px;background:#347fd1;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.media-upload-button[_ngcontent-%COMP%]:hover{background:#286db7}.media-upload-button[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.media-field__status[_ngcontent-%COMP%]{margin-top:12px;color:#667481;font-size:13px}.media-field__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px 12px;border:1px solid #f1b8be;border-radius:6px;background:#fff2f3;color:#b92534;font-size:13px}']})}class Yv{clientService;activeModal;form;constructor(e,t){this.clientService=e,this.activeModal=t}itemAdded=new Ie;factoryUrl;ngOnInit(){var e=this;return O(function*(){let t=yield e.clientService.getFormResponse(e.factoryUrl);t.formFieldsSimple&&(t.formFields=t.formFieldsSimple,t.formFieldsCol2=void 0),e.form=t})()}saved(){var e=this.form.model;this.itemAdded?.emit({id:e.id,name:e.name,label:e.name,text:e.name,key:e.key}),this.activeModal.close()}cancelled(){this.activeModal.close()}static \u0275fac=function(t){return new(t||Yv)(H(hn),H(ar))};static \u0275cmp=Oe({type:Yv,selectors:[["app-picker-add"]],outputs:{itemAdded:"itemAdded"},decls:1,vars:3,consts:[[3,"form","autoSave","inPlaceEditing","saved","cancel"]],template:function(t,n){1&t&&(c(0,"app-form",0),P("saved",function(){return n.saved()})("cancel",function(){return n.cancelled()}),d()),2&t&&h("form",n.form)("autoSave",!0)("inPlaceEditing",!0)},dependencies:[Ol]})}function eCe(i,e){if(1&i&&(c(0,"option",8),m(1),d()),2&i){const t=e.$implicit;_t("value",t.id),p(1),Ae(t.label)}}function tCe(i,e){1&i&&(c(0,"div",9),B(1,"span",10),d()),2&i&&mt("data-target",g().popupId)}function nCe(i,e){if(1&i){const t=re();c(0,"div",11),P("click",function(){return E(t),I(g().add())}),B(1,"span",12),d()}}class yw extends Gt{modalService;constructor(e){super(),this.modalService=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(e){console.log(e),this.field&&(this.showValidationErrors=!0,this.hasValue="-1"!==this.field.value),super.changed(e),console.log(this.field.value)}add(){const e=this.modalService.open(Yv,{size:"lg"}).componentInstance;e.factoryUrl=this.field.factoryUrl,e.itemAdded.subscribe(t=>{this.field.value=t.key,this.field.display=t.text,this.changed(this.field),this.field.options.push(t)})}populateOptionsFromField(){this.field.options=[],this.field.options.unshift({key:"-1",label:this.field.watermark??"-select-",text:this.field.watermark??"-select-",id:"-1"});let t=this.view[this.field.pickerProviderFieldName].value.map(n=>({id:n.id,text:n.name,key:n.id,label:n.name}));this.field.options.push(...t)}ngOnInit(){this.field.pickerProviderFieldName?(this.populateOptionsFromField(),this.view[this.field.pickerProviderFieldName].propertyChanged=t=>{this.populateOptionsFromField()}):this.field.options.find(e=>"-1"===e.id)||this.field.options.unshift({key:"-1",label:this.field.watermark??"-select-",text:this.field.watermark??"-select-",id:"-1"}),super.ngOnInit()}static \u0275fac=function(t){return new(t||yw)(H(Pn))};static \u0275cmp=Oe({type:yw,selectors:[["app-picker"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"select",2),P("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.onChanged(o)}),b(3,eCe,2,2,"option",3),d(),b(4,tCe,2,1,"div",4),b(5,nCe,2,0,"div",5),d(),B(6,"app-form-field-validation-section",6)(7,"app-form-field-help",7)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),h("ngModel",n.field.value)("disabled",!n.field.isUserEditable),p(1),h("ngForOf",n.field.options),p(1),h("ngIf",n.field.help),p(1),h("ngIf",n.field.factoryUrl),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,pr,en,qt,Ot,rt,Nn,Bn,Vn]})}function iCe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().addDiscussion())}),B(1,"i",11),m(2,"Add"),d()}}function rCe(i,e){if(1&i){const t=re();c(0,"i",12),P("click",function(){return E(t),I(g().expanded=!0)}),d()}}function oCe(i,e){if(1&i){const t=re();c(0,"i",13),P("click",function(){return E(t),I(g().expanded=!1)}),d()}}const w7="lists link image table code help wordcount fullscreen",x7="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",aCe=function(){return{branding:!1,plugins:w7,toolbar:x7}};function sCe(i,e){if(1&i){const t=re();c(0,"editor",14),P("ngModelChange",function(r){return E(t),I(g().discussionText=r)}),d()}if(2&i){const t=g();h("init",dc(2,aCe))("ngModel",t.discussionText)}}function lCe(i,e){if(1&i){const t=re();c(0,"div",15)(1,"button",16),P("click",function(){return E(t),I(g().saveNewDiscussion())}),m(2,"Save"),d(),c(3,"button",17),P("click",function(){E(t);const r=g();return r.isEditorVisible=!1,I(r.discussionText="")}),m(4,"Cancel"),d()()}if(2&i){const t=g();p(1),h("disabled",!t.discussionText)}}function cCe(i,e){if(1&i){const t=re();c(0,"div")(1,"div",22)(2,"span",23),m(3),d(),m(4),c(5,"i",24),P("click",function(r){E(t);const o=g().$implicit;return g(2).editDiscussion(o),I(r.stopPropagation())}),d(),c(6,"i",25),P("click",function(r){E(t);const o=g().$implicit;return g(2).remove(o),I(r.stopPropagation())}),d()(),c(7,"div",26),B(8,"div",27),d()()}if(2&i){const t=g().$implicit,n=g(2);p(3),Ae(t.user.text),p(1),$e(" - ",n.formatTimeStamp(t.timestamp)," "),p(4),h("innerHTML",t.note,Gn)}}const dCe=function(){return{plugins:w7,branding:!1,toolbar:x7}};function uCe(i,e){if(1&i){const t=re();c(0,"div")(1,"editor",14),P("ngModelChange",function(r){return E(t),I(g().$implicit.note=r)}),d(),c(2,"div",15)(3,"button",28),P("click",function(){return E(t),I(g().$implicit.isEditing=!1)})("click",function(){E(t);const r=g().$implicit;return I(g(2).saveDiscussion(r))}),m(4,"Save"),d(),c(5,"button",17),P("click",function(){return E(t),I(g().$implicit.isEditing=!1)}),m(6,"Cancel"),d()()()}if(2&i){const t=g().$implicit;p(1),h("init",dc(2,dCe))("ngModel",t.note)}}function pCe(i,e){if(1&i&&(c(0,"div",20),b(1,cCe,9,3,"div",21),b(2,uCe,7,3,"div",21),d()),2&i){const t=e.$implicit;p(1),h("ngIf",!t.isEditing),p(1),h("ngIf",t.isEditing)}}function hCe(i,e){if(1&i&&(c(0,"div",18),b(1,pCe,3,2,"div",19),d()),2&i){const t=g();p(1),h("ngForOf",t.field.value)}}class bw extends Gt{pmService;discussionText;isEditorVisible=!1;expanded=!1;constructor(e){super(),this.pmService=e}selected(e){}remove(e){}ngOnInit(){super.ngOnInit(),this.expanded=this.field.openByDefault}formatTimeStamp(e){const t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString()}`}saveNewDiscussion(){var e=this;return O(function*(){var t=yield e.pmService.createDiscussion();t.note=e.discussionText,e.field.value.unshift(t),e.discussionText=void 0,e.isEditorVisible=!1})()}addDiscussion(){this.discussionText="",this.isEditorVisible=!0}editDiscussion(e){this.discussionText=e.note,e.isEditing=!0}saveDiscussion(e){e.note=this.discussionText,e.isEditing=!1}static \u0275fac=function(t){return new(t||bw)(H(xp))};static \u0275cmp=Oe({type:bw,selectors:[["app-discussion-list"]],features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"label"),m(4),d()(),c(5,"div"),b(6,iCe,3,0,"span",3),b(7,rCe,1,0,"i",4),b(8,oCe,1,0,"i",5),d()(),b(9,sCe,1,3,"editor",6),b(10,lCe,5,1,"div",7),b(11,hCe,2,1,"div",8),B(12,"app-form-field-help",9),d()),2&t&&(p(4),dr(" ",n.field.label," (",n.field.value.length,")"),p(2),h("ngIf",!n.isEditorVisible),p(1),h("ngIf",!n.expanded),p(1),h("ngIf",n.expanded),p(1),h("ngIf",n.isEditorVisible),p(1),h("ngIf",n.isEditorVisible),p(1),h("ngIf",(null==n.field?null:n.field.value)&&n.expanded),p(1),h("field",n.field))},dependencies:[en,qt,Ot,rt,Nd,Nn],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 iI{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 zv{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(e){let t="declare class Attributes {\n";for(const r of e)switch(t+=` /**\n * DataType: ${r.attributeType.text}\n `,r.description&&(t+=`* ${r.description}.\n `),t+=" */\n",r.attributeType.id){case"valuewithunit":case"decimal":case"integer":t+=`\t static ${r.key}:number;\n`;break;case"true-false":t+=`\t static ${r.key}:boolean;\n`;break;case"geolocation":t+=`\t static ${r.key}:GeoLocation;\n`;break;case"mlinference":t+=`\t static ${r.key}:MLInference;\n`;break;default:t+=`\t static ${r.key}:any;\n`}return{classLib:t,fileName:"attributes.d.ts"}}GetWorkflowInputsLib(e){let t="declare class WorkflowInputs {\n";for(const n of e)switch(t+=` /**\n * DataType: ${n.inputType.text}\n `,n.description&&(t+=`* ${n.description}.\n `),t+=" */\n",n.inputType.id){case"valuewithunit":case"decimal":case"integer":t+=`\t static ${n.key}:number;\n`;break;case"true-false":t+=`\t static ${n.key}:boolean;\n`;break;case"geolocation":t+=`\t static ${n.key}:GeoLocation;\n`;break;case"mlinference":t+=`\t static ${n.key}:MLInference;\n`;break;default:t+=`\t static ${n.key}:any;\n`}return t+="}\n",{classLib:t,fileName:"workflowInput.d.ts"}}GetInputLib(){return{classLib:"declare class Input{ getValue(); setValue(value); }\n\n",fileName:"input.d.ts"}}GetInputsLib(e){let t="declare class Inputs {";for(const n of e)t+="\t"+n.key+":Input;\n";return t+="}",{classLib:t,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(e){let t="";for(const n of e){t+=`declare class ${n.key}OutputCommand {\n`;for(const r of n.parameters)r.description&&(t+=` /**\n * ${r.description}.\n */\n`),t+=`\t${r.key}:string;\n`;t+="/**\n* Enqueue an output command to be sent to the device or output source.\n*/\n",t+="\tenqueue() : void\n",t+="}\n\n"}for(const n of e)t+=`declare class ${n.key}Factory {\n`,t+="/**\n* Create an instance of an output command that can be enqeued to be sent to a device or output source.\n*/\n",t+=`\tcreate() : ${n.key}OutputCommand;\n`,t+="/**\nWill invoke the method to create the output command.\n*/\n",t+="\tsend(...args : any[]) : void;\n",t+="}\n";t+="declare class OutputCommands {\n";for(const n of e)t+=`\t static ${n.key}:${n.key}Factory;\n`;return t+="}",{classLib:t,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(e){let t="";for(const n of e){t+=`declare class ${n.key}StateMachine {\n`,t+=` /** \n @param event ${n.name} Events:\n`;for(const r of n.events)t+=`'${r.key}' `;t+=" */ \n",t+=" send(event: string, ...args : any[]) : void\n",t+="}\n"}t+="declare class StateMachines {\n";for(const n of e)n.description&&(t+=` /**\n * ${n.description}.\n */\n`),t+=`\tstatic ${n.key}:${n.key}StateMachine;\n`;return t+="}",{classLib:t,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 e="/** \n * Log a message to the device \n **/ \nfunction logToDevice(msg:string) { }\n\n";return e+="/** \n * Clear Device Log \n **/ \nfunction clearDeviceLog() { }\n\n",e+="/** \n * Generate a new Guid \n **/ \nfunction newGuid() { }\n\n",e+="/** \n * Generate a new Id, similar to a 32 bit guid, but only upper case letters and numbers \n **/ \nfunction newId() { }\n\n",e+="/** \n * Write a message to the device console \n **/ \nfunction logConsole(msg: string) { }\n\n",e+="/** \n * Send a command to the device \n **/ \nfunction sendCommand(command: string, payload: string):void { }\n\n",e+="/** \n * Credit device account\n **/ \nfunction creditAccount(command: transactionType, payload: number, description: string):void { }\n\n",e+="/** \n * Debit device account\n **/ \nfunction debitAccount(command: transactionType, payload: number, description: string):void { }\n\n",e+="/** \n * Set a property that will be associated with the device \n **/ \nfunction addToPropertyBag(key:string,property) { }\n\n",e+="/** \n * Get a property from property bag that was previously associated with the device \n **/ \nfunction getFromPropertyBag(key:string,defaultValue?:any) :any { }\n\n",e+="/** \n * Check if a property exists in the property bag \n **/ \nfunction hasPropertyBagValue(key:string,defaultValue?:any) :boolean { }\n\n",e+="/** \n * Clear a property that was previously associated with the device \n **/ \nfunction clearPropertyBagValue(key:string) :any { }\n\n",e+="/** \n * Set a temporary storage variable in Session Values \n **/ \nfunction setSessionValue(key:string,property) { }\n\n",e+="/** \n * Get a temporary storage variable from Session Values \n **/ \nfunction getSessionValue(key:string,defaultValue?:any) :any { }\n\n",e+="/** \n * Check if a property exists in the Session Values \n **/ \nfunction hasSessionValue(key:string,defaultValue?:any) :boolean { }\n\n",e+="/** \n * Clear a temporary storage variable \n **/ \nfunction clearSessionValue(key:string) :any { }\n\n",e+="/** \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",e+="/** \n * Send a web socket notification to the current instance \n **/ \nfunction sendInstanceNotification(payloadType:string, payload:any) { }\n\n",e+="/** \n * Send a web socket notification to device configurations for current device \n **/ \nfunction sendDeviceConfigurationNotification(payloadType:string, payload:any) { }\n\n",e+="/** \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(e){const t=[];return t.push(this.GetGeoLocationLib()),t.push(this.GetPEMBusLib()),t.push(this.GetIoTDeviceLib()),t.push(this.GetMLLib()),t.push(this.GetDeviceStreamLib()),t.push(this.GetMessagingLib()),t.push(this.GetAttributeLib()),t.push(this.GetDeviceExceptionLib()),t.push(this.GetWorkflowInputsLib(e.inputs)),t.push(this.DevicePropertiesLib()),t.push(this.GetAttributesLib(e.attributes)),t.push(this.GetInputLib()),t.push(this.GetInputsLib(e.inputs)),t.push(this.GetOutputCommandLib()),t.push(this.GetOutputCommandsLib(e.outputCommands)),t.push(this.GetStateMachineLib()),t.push(this.GetStateMachinesLib(e.stateMachines)),t.push(this.GetDeviceWorkflowLib()),t.push(this.GetDeviceWorkflowRepoLib()),t.push(this.GetSensorSetters()),t.push(this.SetFSLiteTicketScript()),t}GetStateObjectModel(){const e=[];return 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}GetCustomPipelineObjectModel(e){const t=[];return t.push(this.GetGeoLocationLib()),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}}class gCe extends zv{GetScriptHelpLinks(){var e=[];return e.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),e.push({title:"State Machine - onTransition",link:"http://support.nuviot.com/help.html#/Scripting/StateTransition.md"}),e.push({title:"State Machine - handle",link:"http://support.nuviot.com/help.html#/Scripting/StateMachineSendEvent.md"}),e.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),e.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),e}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(e){super()}GetExtraLibs(e){let t=new zv,n=this.GetWorkflowObjectModel(e);return n.concat(t.GetStateObjectModel()),n}}class fCe extends zv{GetScriptHelpLinks(){var e=[];return e.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),e.push({title:"State Machine - onTransition",link:"http://support.nuviot.com/help.html#/Scripting/StateTransition.md"}),e.push({title:"State Machine - handle",link:"http://support.nuviot.com/help.html#/Scripting/StateMachineSendEvent.md"}),e.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),e.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),e}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(e,t,n,r,o,a,s){super(),this.StateMachine=t,this.DeviceWorkflow=e,this.Transition=n,this.ConnectionId=s,this.Event=a,this.SourceState=r,this.DestState=o}GetExtraLibs(){return this.GetWorkflowObjectModel(this.DeviceWorkflow)}UpdateScriptOnModel(e){this.Transition.transitionAction=e}}class mCe extends zv{businessRule;GetScriptHelpLinks(){const e=[];return e.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),e.push({title:"Business Rules Script",link:"http://support.nuviot.com/help.html#/scripting/businessrules"}),e.push({title:"Working with Attributes",link:"http://support.nuviot.com/help.html#/scripting/workingwithattributes"}),e.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),e.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),e}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(e,t){super(),this.workflow=e,this.businessRule=t}GetExtraLibs(){const e=this.GetWorkflowObjectModel(this.workflow),t={fileName:"businessRuleExec.d.ts",classLib:"declare class ServiceTicketTemplate { /**\n *Create a new service ticket from the given template.\n */ id; }\n\n"};return t.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",e.push(t),e}UpdateScriptOnModel(e){this.businessRule.script=e}}class _Ce extends zv{GetScriptHelpLinks(){var e=[];return e.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),e.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),e.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),e}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(e){super(),this.customModule=e}GetExtraLibs(){return this.GetCustomPipelineObjectModel(this.customModule)}UpdateScriptOnModel(e){this.customModule.script=e}}class Wv{constructor(){}getScriptLibs(e,t){switch(console.log("getScriptLibs",e,t),e.scriptTemplateName){case"unitConversionFromScript":case"unitConversionToScript":return iI.GetExtraLibs();default:console.warn(`Don't know how to get default script libs for ${e.scriptTemplateName}`)}return[]}getDefaultScript(e){switch(e.scriptTemplateName){case"unitConversionToScript":return iI.GetToDefaultScript();case"unitConversionFromScript":return iI.GetFromDefaultScript();case"stateTransitionInAction":return gCe.GetDefaultScript();case"transitionAction":return fCe.GetDefaultScript();case"businessRule":return mCe.GetDefaultScript();case"customPipelineModule":return _Ce.GetDefaultScript();default:console.warn(`Don't know how to get default script for ${e.scriptTemplateName}`)}return""}static \u0275fac=function(t){return new(t||Wv)};static \u0275prov=Ue({token:Wv,factory:Wv.\u0275fac,providedIn:"root"})}const rI=new Xe("NGX_MONACO_EDITOR_CONFIG"),vCe=["editorContainer"];let M7,k7=!1;class Cw{config;set insideNg(e){this._insideNg=e,this._editor&&(this._editor.dispose(),this.initMonaco(this._options,this.insideNg))}get insideNg(){return this._insideNg}_editorContainer;onInit=new Ie;_editor;_options;_windowResizeSubscription;_insideNg=!1;constructor(e){this.config=e}ngAfterViewInit(){k7?M7.then(()=>{this.initMonaco(this._options,this.insideNg)}):(k7=!0,M7=new Promise(e=>{const t=this.config.baseUrl||`${ft.production?ft.moduleRouteHome:""}/assets`;if("object"==typeof window.monaco)return this.initMonaco(this._options,this.insideNg),void e();const n=()=>{window.require.config({paths:{vs:`${t}/monaco/min/vs`}}),window.require(["vs/editor/editor.main"],()=>{"function"==typeof this.config.onMonacoLoad&&this.config.onMonacoLoad(),this.initMonaco(this._options,this.insideNg),e()})};if(window.require)n();else{const r=document.createElement("script");r.type="text/javascript",r.src=`${t}/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(t){return new(t||Cw)(H(rI))};static \u0275cmp=Oe({type:Cw,selectors:[["ng-component"]],viewQuery:function(t,n){if(1&t&&Wt(vCe,7),2&t){let r;ut(r=pt())&&(n._editorContainer=r.first)}},inputs:{insideNg:"insideNg"},outputs:{onInit:"onInit"},decls:0,vars:0,template:function(t,n){},encapsulation:2})}function yCe(i,e){if(1&i&&(c(0,"h4",9),m(1),d()),2&i){const t=g();p(1),Ae(t.field.label)}}function bCe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().fullScreenView())}),B(1,"i",11),m(2,"Full Screen "),d()}}function CCe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().normalView())}),B(1,"i",12),m(2,"Done "),d()}}function wCe(i,e){if(1&i){const t=re();c(0,"i",19),P("click",function(){return E(t),I(g().$implicit.visible=!0)}),d()}}function xCe(i,e){if(1&i){const t=re();c(0,"i",20),P("click",function(){return E(t),I(g().$implicit.visible=!1)}),d()}}function kCe(i,e){if(1&i){const t=re();c(0,"div",22),P("click",function(){const o=E(t).$implicit;return I(g(4).insertTag(o))}),m(1),d()}if(2&i){const t=e.$implicit;p(1),Ae(t)}}function MCe(i,e){if(1&i&&(c(0,"div"),b(1,kCe,2,1,"div",21),d()),2&i){const t=g().$implicit;p(1),h("ngForOf",t.tags)}}function DCe(i,e){if(1&i&&(c(0,"div")(1,"div")(2,"h5",15)(3,"div",9),m(4),d(),c(5,"div"),b(6,wCe,1,0,"i",16),b(7,xCe,1,0,"i",17),d()(),c(8,"p"),m(9),d(),b(10,MCe,2,1,"div",18),d()()),2&i){const t=e.$implicit;p(4),$e(" ",t.name," "),p(2),h("ngIf",!t.visible),p(1),h("ngIf",t.visible),p(2),Ae(t.description),p(1),h("ngIf",t.visible)}}function TCe(i,e){if(1&i&&(c(0,"div",13),b(1,DCe,11,5,"div",14),d()),2&i){const t=g();p(1),h("ngForOf",t.tagGroups)}}const SCe=function(i,e){return{"full-screen":i,"normal-height":e}};class qv extends Cw{cmsService;zone;editorConfig;_value="";propagateChange=e=>{};onTouched=()=>{};field;fullScreenMode=!1;compiledLibraries;tagGroups=[];set options(e){this._options=Object.assign({},this.config.defaultOptions,e),this._editor&&(this._editor.dispose(),this.initMonaco(e,this.insideNg))}get options(){return this._options}set model(e){this.options.model=e,this._editor&&(this._editor.dispose(),this.initMonaco(this.options,this.insideNg))}constructor(e,t,n){super(n),this.cmsService=e,this.zone=t,this.editorConfig=n}writeValue(e){this._value=e||"",setTimeout(()=>{this._editor&&!this.options.model&&this._editor.setValue(this._value)})}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.onTouched=e}initMonaco(e,t){const n=!!e.model;if(n){const r=monaco.editor.getModel(e.model.uri||"");r?(e.model=r,e.model.setValue(this._value)):e.model=monaco.editor.createModel(e.model.value,e.model.language,e.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)}}t?this._editor=monaco.editor.create(this._editorContainer.nativeElement,e):this.zone.runOutsideAngular(()=>{this._editor=monaco.editor.create(this._editorContainer.nativeElement,e)}),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=_n(window,"resize").subscribe(()=>this._editor.layout()),this.onInit.emit(this._editor),this.getTags()}ngOnDestroy(){if(super.ngOnDestroy(),this.compiledLibraries)for(let e of this.compiledLibraries)e.dispose();this.compiledLibraries=void 0}getTags(){var e=this;return O(function*(){let t=[];for(let n of e.field.tagsCSVURls){let r=yield e.cmsService.getTagGroup(n);t.push(r)}e.tagGroups=t})()}fullScreenView(){this.fullScreenMode=!0}normalView(){this.fullScreenMode=!1}insertTag(e){var t=this._editor.getPosition(),n=new monaco.Range(t.lineNumber,t.column,t.lineNumber,t.column);this._editor.executeEdits("my-source",[{identifier:{major:1,minor:1},range:n,text:e,forceMoveMarkers:!0}])}static \u0275fac=function(t){return new(t||qv)(H(Pc),H($t),H(rI))};static \u0275cmp=Oe({type:qv,selectors:[["ngx-monaco-editor"]],inputs:{field:"field",options:"options",model:"model"},features:[On([{provide:la,useExisting:Rn(()=>qv),multi:!0}]),it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),b(2,yCe,2,1,"h4",2),c(3,"div",3),b(4,bCe,3,0,"span",4),b(5,CCe,3,0,"span",4),d()(),c(6,"div",5),B(7,"div",6,7),b(9,TCe,2,1,"div",8),d()()),2&t&&(h("ngClass",ci(5,SCe,n.fullScreenMode,!n.fullScreenMode)),p(2),h("ngIf",n.fullScreenMode),p(2),h("ngIf",!n.fullScreenMode),p(1),h("ngIf",n.fullScreenMode),p(4),h("ngIf",n.fullScreenMode))},dependencies:[Vi,Ot,rt],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 ECe=function(i){return{"normal-mode":i}},ICe=function(i){return{"full-screen-mode":i}};class ww{activeModal;scriptManager;constructor(e,t){this.activeModal=e,this.scriptManager=t}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(e){this._fld=e;let t=this.scriptManager.getScriptLibs(e,this.parentModel);t&&!this._fld.extraScriptLibs&&(this._fld.extraScriptLibs=t),this.script=e.scriptTemplateName?e.value?e.value:this.scriptManager.getDefaultScript(e):e.value??e.defaultValue}get field(){return this._fld}scriptUpdated=new Ie;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(t){return new(t||ww)(H(ar),H(Wv))};static \u0275cmp=Oe({type:ww,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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"h5",2),m(3),d(),c(4,"button",3),P("click",function(){return n.closeModal()}),c(5,"span",4),m(6,"\xd7"),d()()(),c(7,"div",5)(8,"ngx-monaco-editor",6),P("ngModelChange",function(o){return n.script=o}),d()(),c(9,"div",7)(10,"button",8),P("click",function(){return n.saveChanges()}),m(11,"Save Changes to Server"),d(),c(12,"button",9),P("click",function(){return n.closeModal()}),m(13,"Close"),d()()()),2&t&&(p(3),$e("Edit Script - ",n.field.label,""),p(4),h("ngClass",bt(6,ECe,!1===n.fullScreenEnabled))("ngClass",bt(8,ICe,n.fullScreenEnabled)),p(1),h("field",n.field)("options",n.editorOptions)("ngModel",n.script))},dependencies:[Vi,en,qt,qv],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 ACe(i,e){if(1&i){const t=re();c(0,"span",7),P("click",function(){return E(t),I(g(2).showScriptEditor())}),m(1),d()}if(2&i){const t=g(2);p(1),Ae(t.getLabel())}}function PCe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function FCe(i,e){if(1&i&&(c(0,"div",2),B(1,"app-form-field-label",3),c(2,"div",4),b(3,ACe,2,1,"span",5),b(4,PCe,2,1,"div",6),d()()),2&i){const t=g();p(1),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled)}}class xw extends Gt{modalService;constructor(e){super(),this.modalService=e}showScriptEditor(){const t=this.modalService.open(ww,{size:"xl"}).componentInstance;t.save=()=>this.save(),"RawHtml"===this.field.fieldType&&(t.language="html"),t.field=this.field,t.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(t){return new(t||xw)(H(Pn))};static \u0275cmp=Oe({type:xw,selectors:[["app-script"]],features:[it],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(t,n){1&t&&(b(0,FCe,5,5,"div",0),B(1,"app-form-field-validation-section",1)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors))},dependencies:[rt,Bn,Vn],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 D7=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 LCe(i,e){if(1&i){const t=re();c(0,"editor",13),P("ngModelChange",function(r){return E(t),I(g().sourceContent=r)}),d()}if(2&i){const t=g();h("init",dc(2,D7))("ngModel",t.sourceContent)}}function NCe(i,e){if(1&i){const t=re();c(0,"textarea",14),P("ngModelChange",function(r){return E(t),I(g().sourceContent=r)}),d()}2&i&&h("ngModel",g().sourceContent)}function BCe(i,e){if(1&i){const t=re();c(0,"editor",13),P("ngModelChange",function(r){return E(t),I(g().response=r)}),d()}if(2&i){const t=g();h("init",dc(2,D7))("ngModel",t.response)}}function VCe(i,e){if(1&i){const t=re();c(0,"textarea",14),P("ngModelChange",function(r){return E(t),I(g().response=r)}),d()}2&i&&h("ngModel",g().response)}function $Ce(i,e){1&i&&B(0,"div",15)}function HCe(i,e){if(1&i&&(c(0,"div",16)(1,"h4"),m(2,"Please Wait..."),d(),c(3,"h4"),m(4,"...I'll Be Back"),d(),B(5,"app-loading-spinner",17),d()),2&i){const t=g();p(5),h("caption",t.terminatorQuote)}}class Gv{activeModal;mlService;form;busy=!1;htmlContent=!1;request;outputFormat;response;sourceContent;onApplyContent=new Ie;_requestOption="-1";get requestOption(){return this._requestOption}set requestOption(e){this._requestOption=e,this.request=e}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(e,t){this.activeModal=e,this.mlService=t}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 e=this;return O(function*(){let t=parseInt((Math.random()*e.terminatorQuotes.length).toString());if(e.terminatorQuote=e.terminatorQuotes[t],console.log(e.terminatorQuote),e.busy=!0,!e.request&&!e.sourceContent)return void alert("Please provide a Request or Content.");var n="";e.request&&(n=e.request),"HTML"==e.outputFormat&&(n+=" please format as html"),e.sourceContent&&(n+=`: ${e.sourceContent}`);let r={query:n,role:"user",conversationId:void 0},o=yield e.mlService.textQuery(r);if(e.response=o.result.response,e.busy=!1,e.form.view.summary&&!e.form.view.summary.value){r.query=`Please summarize the following content: ${e.response}`;let a=yield e.mlService.textQuery(r);a.successful&&(e.form.view.summary.value=a.result.response)}})()}apply(){this.onApplyContent?.emit(this.response),this.activeModal.close()}cancel(){this.activeModal.close()}static \u0275fac=function(t){return new(t||Gv)(H(ar),H(qg))};static \u0275cmp=Oe({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(t,n){1&t&&(c(0,"div")(1,"div",0)(2,"h4"),m(3,"T-800"),d(),c(4,"label"),m(5,"Common Tasks"),d(),c(6,"select",1),P("ngModelChange",function(o){return n.requestOption=o}),c(7,"option",2),m(8,"-select an task-"),d(),c(9,"option"),m(10,"Please Reword"),d(),c(11,"option"),m(12,"Please Reword and Provide More Detail"),d(),c(13,"option"),m(14,"Please Create an Email"),d(),c(15,"option"),m(16,"Please Fix the grammar"),d(),c(17,"option"),m(18,"Please Explain so that a second grader would understand"),d(),c(19,"option"),m(20,"Please Answer the question"),d(),c(21,"option"),m(22,"Please Generate Content"),d()(),c(23,"label"),m(24,"Output Format"),d(),c(25,"select",1),P("ngModelChange",function(o){return n.outputFormat=o}),c(26,"option"),m(27,"Plain Text"),d(),c(28,"option"),m(29,"HTML"),d()(),c(30,"div",3)(31,"label"),m(32,"Request"),d(),c(33,"input",4),P("ngModelChange",function(o){return n.request=o}),d()(),c(34,"div",3)(35,"label"),m(36,"Content"),d(),b(37,LCe,1,3,"editor",5),b(38,NCe,1,1,"textarea",6),d(),c(39,"div",3)(40,"label"),m(41,"Response"),d(),b(42,BCe,1,3,"editor",5),b(43,VCe,1,1,"textarea",6),d(),c(44,"div",7)(45,"button",8),P("click",function(){return n.callTerminator()}),m(46,"Ask Terminator"),d(),c(47,"button",9),P("click",function(){return n.apply()}),m(48,"Apply"),d(),c(49,"button",10),P("click",function(){return n.cancel()}),m(50,"Cancel"),d()()(),b(51,$Ce,1,0,"div",11),b(52,HCe,6,1,"div",12),d()),2&t&&(p(6),h("ngModel",n.requestOption),p(19),h("ngModel",n.outputFormat),p(8),h("ngModel",n.request),p(4),h("ngIf",n.htmlContent),p(1),h("ngIf",!n.htmlContent),p(4),h("ngIf",n.htmlContent),p(1),h("ngIf",!n.htmlContent),p(4),h("disabled",!n.response),p(4),h("ngIf",n.busy),p(1),h("ngIf",n.busy))},dependencies:[rt,Mr,Dr,Dn,pr,en,qt,Nd,ap],styles:["label[_ngcontent-%COMP%]{font-weight:700;font-family:Roboto,sans-serif}"]})}function UCe(i,e){if(1&i){const t=re();c(0,"div",8)(1,"div",9)(2,"button",10),P("click",function(){return E(t),I(g(2).import=!0)}),m(3,"Import"),d(),c(4,"p"),m(5,"Import an existing template into this object."),d()(),c(6,"div",9)(7,"button",10),P("click",function(){E(t);const r=g(2);return r.export=!0,I(r.isEditingContent=!0)}),m(8,"Export"),d(),c(9,"p"),m(10,"Save the provided content as a template that can be used in other objects."),d()()()}}function jCe(i,e){if(1&i){const t=re();c(0,"li",14)(1,"div",15)(2,"div",9),m(3),d(),c(4,"div")(5,"span",16),P("click",function(){const o=E(t).$implicit;return I(g(4).applyContentAsLink(o))}),m(6,"Link to Content"),d(),c(7,"span",16),P("click",function(){const o=E(t).$implicit;return I(g(4).applyContent(o))}),m(8,"Copy Content"),d(),c(9,"span",16),P("click",function(){const o=E(t).$implicit;return I(g(4).editContent(o))}),m(10,"Edit"),d()()()()}if(2&i){const t=e.$implicit;p(3),$e(" ",t.name," ")}}function YCe(i,e){if(1&i&&(c(0,"ol",12),b(1,jCe,11,1,"li",13),d()),2&i){const t=g(3);p(1),h("ngForOf",t.templates.model)}}function zCe(i,e){1&i&&(c(0,"p"),m(1," Sorry there is no shared content available to import. "),d())}function WCe(i,e){if(1&i&&(c(0,"div")(1,"h4"),m(2,"Import"),d(),b(3,YCe,2,1,"ol",11),b(4,zCe,2,0,"p",3),d()),2&i){const t=g(2);p(3),h("ngIf",t.templates),p(1),h("ngIf",0==t.templates.model.length)}}function qCe(i,e){1&i&&(c(0,"div")(1,"h4"),m(2,"Export"),d()())}function GCe(i,e){if(1&i){const t=re();c(0,"input",18),P("ngModelChange",function(r){return E(t),I(g(3).content=r)}),d()}2&i&&h("ngModel",g(3).content)}function KCe(i,e){if(1&i){const t=re();c(0,"textarea",18),P("ngModelChange",function(r){return E(t),I(g(3).field.value=r)}),d()}2&i&&h("ngModel",g(3).field.value)}function QCe(i,e){if(1&i){const t=re();c(0,"editor",22),P("ngModelChange",function(r){return E(t),I(g(3).content=r)}),d()}if(2&i){const t=g(3);h("init",t.getEditorOptions())("ngModel",t.content)}}function ZCe(i,e){if(1&i){const t=re();c(0,"div",17)(1,"label"),m(2,"Name"),d(),c(3,"input",18),P("ngModelChange",function(r){return E(t),I(g(2).sharedContentName=r)}),d(),c(4,"label"),m(5),c(6,"span",19),m(7,"*"),d()(),b(8,GCe,1,1,"input",20),b(9,KCe,1,1,"textarea",20),b(10,QCe,1,2,"editor",21),d()}if(2&i){const t=g(2);p(3),h("ngModel",t.sharedContentName),p(2),$e("",t.field.label," "),p(3),h("ngIf","Text"==t.field.fieldType),p(1),h("ngIf","MultiLineText"==t.field.fieldType),p(1),h("ngIf","HtmlEditor"==t.field.fieldType)}}function XCe(i,e){if(1&i){const t=re();c(0,"button",23),P("click",function(){return E(t),I(g(2).saveSharedContent())}),m(1,"Save"),d()}if(2&i){const t=g(2);h("disabled",!t.sharedContentName||t.sharedContentName.length<3)}}function JCe(i,e){if(1&i){const t=re();c(0,"div",1)(1,"h4"),m(2),d(),B(3,"hr"),b(4,UCe,11,0,"div",2),b(5,WCe,5,2,"div",3),b(6,qCe,3,0,"div",3),b(7,ZCe,11,5,"div",4),B(8,"hr"),c(9,"div",5),b(10,XCe,2,1,"button",6),c(11,"button",7),P("click",function(){return E(t),I(g().cancel())}),m(12,"Cancel"),d()()()}if(2&i){const t=g();p(2),Ae(t.field.label),p(2),h("ngIf",!t.import&&!t.export&&!t.isEditingContent),p(1),h("ngIf",t.import&&!t.isEditingContent),p(1),h("ngIf",t.export),p(1),h("ngIf",t.sharedContent&&t.isEditingContent),p(3),h("ngIf",t.isEditingContent)}}class rf{siteContentService;activeModal;sharedContentName="";content;import=!1;export=!1;isAddingNew;isEditingContent=!1;templates;sharedContent;field;constructor(e,t){this.siteContentService=e,this.activeModal=t}ngOnInit(){var e=this;return O(function*(){e.templates=yield e.siteContentService.getSharedContentItems(e.field.sharedContentKey),e.sharedContent=(yield e.siteContentService.createSharedContent(e.field.sharedContentKey)).model,e.sharedContent.key=e.sharedContent.id.toLowerCase(),e.sharedContent.sharedContentKey=e.field.sharedContentKey,e.isAddingNew=!0,e.content=e.field.value})()}saveSharedContent(){var e=this;return O(function*(){e.sharedContent.name=e.sharedContentName,e.sharedContent.content=e.content,(e.isAddingNew?yield e.siteContentService.addSharedContent(e.sharedContent):yield e.siteContentService.updateSharedContent(e.sharedContent)).successful&&(e.activeModal.close(),e.field.value.startsWith("sharedcontentid=")||(e.field.value=e.content))})()}applyContentAsLink(e){this.field.value=`sharedcontentid=${e.id}`,this.activeModal.close()}applyContent(e){var t=this;return O(function*(){let n=yield t.siteContentService.getSharedContent(e.id);t.field.value=n.model.content,t.activeModal.close()})()}editContent(e){var t=this;return O(function*(){let n=yield t.siteContentService.getSharedContent(e.id);t.sharedContent=n.model,t.content=t.sharedContent.content,t.sharedContentName=t.sharedContent.name,t.isAddingNew=!1,t.isEditingContent=!0})()}getEditorOptions(){let e=[];if(this.field.tags)for(let t of this.field.tags)e.push({title:t.title,value:t.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:e,mergetags_suffix:"]",mergetags_prefix:"[",min_height:400,branding:!1}}cancel(){this.activeModal.dismiss()}static \u0275fac=function(t){return new(t||rf)(H(Pa),H(ar))};static \u0275cmp=Oe({type:rf,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(t,n){1&t&&b(0,JCe,13,6,"div",0),2&t&&h("ngIf",n.field)},dependencies:[Ot,rt,Dn,en,qt,Nd],styles:["label[_ngcontent-%COMP%]{font-weight:700}label[_ngcontent-%COMP%] span.required[_ngcontent-%COMP%]{color:red}"]})}class Kv{elementRef;minRows=1;maxRows=10;resizeTick;constructor(e){this.elementRef=e}ngAfterViewInit(){setTimeout(()=>this.resize())}ngOnChanges(e){setTimeout(()=>this.resize())}onInput(){this.resize()}onFocus(){this.resize()}resize(){const e=this.elementRef.nativeElement,t=window.getComputedStyle(e),n=this.getLineHeight(e,t),r=this.toPixels(t.borderTopWidth)+this.toPixels(t.borderBottomWidth),o=this.toPixels(t.paddingTop)+this.toPixels(t.paddingBottom),a=n*this.minRows+o+r,s=n*this.maxRows+o+r;e.style.height="auto";const l=Math.max(a,Math.min(e.scrollHeight+r,s));e.style.height=`${l}px`,e.style.overflowY=e.scrollHeight+r>s?"auto":"hidden"}getLineHeight(e,t){const n=this.toPixels(t.lineHeight);if(n>0)return n;const r=this.toPixels(t.fontSize);return r>0?1.25*r:20}toPixels(e){const t=Number.parseFloat(e);return Number.isFinite(t)?t:0}static \u0275fac=function(t){return new(t||Kv)(H(At))};static \u0275dir=ot({type:Kv,selectors:[["textarea","nuvosAutoResizeTextarea",""]],hostBindings:function(t,n){1&t&&P("input",function(){return n.onInput()})("focus",function(){return n.onFocus()})},inputs:{minRows:"minRows",maxRows:"maxRows",resizeTick:"resizeTick"},features:[li]})}function ewe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().fullScreen())}),B(1,"i",11),m(2,"Full Screen "),d()}}function twe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().normalViewMode())}),B(1,"i",12),m(2,"Done "),d()}}function nwe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().showSharedContentModal())}),B(1,"i",13),m(2," Shared Content "),d()}}function iwe(i,e){if(1&i){const t=re();c(0,"i",20),P("click",function(){return E(t),I(g().$implicit.visible=!0)}),d()}}function rwe(i,e){if(1&i){const t=re();c(0,"i",21),P("click",function(){return E(t),I(g().$implicit.visible=!1)}),d()}}function owe(i,e){if(1&i){const t=re();c(0,"div",23),P("click",function(){const o=E(t).$implicit;return I(g(4).insertTag(o))}),m(1),d()}if(2&i){const t=e.$implicit;p(1),Ae(t)}}function awe(i,e){if(1&i&&(c(0,"div"),b(1,owe,2,1,"div",22),d()),2&i){const t=g().$implicit;p(1),h("ngForOf",t.tags)}}function swe(i,e){if(1&i&&(c(0,"div")(1,"div")(2,"h5",16)(3,"div",2),m(4),d(),c(5,"div"),b(6,iwe,1,0,"i",17),b(7,rwe,1,0,"i",18),d()(),c(8,"p"),m(9),d(),b(10,awe,2,1,"div",19),d()()),2&i){const t=e.$implicit;p(4),$e(" ",t.name," "),p(2),h("ngIf",!t.visible),p(1),h("ngIf",t.visible),p(2),Ae(t.description),p(1),h("ngIf",t.visible)}}function lwe(i,e){if(1&i&&(c(0,"div",14),b(1,swe,11,5,"div",15),d()),2&i){const t=g();p(1),h("ngForOf",t.tagGroups)}}const cwe=function(i){return{fullScreen:i}},dwe=function(i){return{fontFamily:i}};class kw extends Gt{modalService;cmsService;fullScreenMode=!1;tagGroups=[];constructor(e,t){super(),this.modalService=e,this.cmsService=t}keyDown(e){let t=e.target;if("Tab"===e.key){e.preventDefault();const n=t.selectionStart,r=t.selectionEnd;t.value=t.value.substring(0,n)+"\t"+t.value.substring(r),t.selectionStart=t.selectionEnd=n+1}}textElement;onBlur(e){super.onBlur(e),this.textElement=e.target,this.isFocused=!1}insertTag(e){if(this.textElement){const t=this.textElement.selectionStart,n=this.textElement.selectionEnd,r=this.textElement.value;this.textElement.value=r.substring(0,t)+e+r.substring(n),this.textElement.selectionStart=this.textElement.selectionEnd=t+e.length,this.field.value=this.textElement.value}}aiContentEdit(){const e=this.modalService.open(Gv,{size:"lg",beforeDismiss:()=>!0}).componentInstance;e.sourceContent=this.field.value,e.onApplyContent.subscribe(t=>{this.field.value=t})}showSharedContentModal(){this.modalService.open(rf,{size:"lg",beforeDismiss:()=>!0}).componentInstance.field=this.field}fullScreen(){var e=this;return O(function*(){e.fullScreenMode=!0;let t=[];for(let n of e.field.tagsCSVURls){let r=yield e.cmsService.getTagGroup(n);t.push(r)}e.tagGroups=t})()}normalViewMode(){this.fullScreenMode=!1}isFocused=!1;get hasTextValue(){return!!String(this.field?.value||"").trim()}get effectiveRows(){return this.fullScreenMode?this.field.rows||8:this.isFocused||this.hasTextValue?this.field.rows||6:Math.min(this.field.rows||2,2)}onFocus(e){this.isFocused=!0,super.onFocus(e)}static \u0275fac=function(t){return new(t||kw)(H(Pn),H(Pc))};static \u0275cmp=Oe({type:kw,selectors:[["app-text-area"]],features:[it],decls:13,vars:28,consts:[[3,"ngClass"],[1,"label-bar",2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired","ai"],["class","action",3,"click",4,"ngIf"],[1,"textarea-shell"],["nuvosAutoResizeTextarea","",1,"form-control","multiline-textarea",2,"flex-grow","1",3,"name","placeholder","id","ngModel","minRows","maxRows","resizeTick","disabled","ngStyle","ngModelChange","keydown","change","input","focus","blur"],["class","tag-panel",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"],[1,"tag-panel"],[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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"app-form-field-label",3),P("ai",function(){return n.aiContentEdit()}),d()(),c(4,"div"),b(5,ewe,3,0,"span",4),b(6,twe,3,0,"span",4),b(7,nwe,3,0,"span",4),d()(),c(8,"div",5)(9,"textarea",6),P("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)}),d(),b(10,lwe,2,1,"div",7),d(),B(11,"app-form-field-validation-section",8)(12,"app-form-field-help",9),d()),2&t&&(h("ngClass",bt(24,cwe,n.fullScreenMode)),p(3),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),h("ngIf",!n.fullScreenMode),p(1),h("ngIf",n.fullScreenMode),p(1),h("ngIf",n.field.sharedContentKey),p(2),_t("name",n.field.name),_t("placeholder",n.field.watermark||"click to add "+n.field.label.toLocaleLowerCase()),_t("id",n.field.name),h("ngModel",n.field.value)("minRows",1)("maxRows",n.fullScreenMode?999:n.field.rows||8)("resizeTick",n.field.value+":"+n.fullScreenMode)("disabled",!n.field.isUserEditable)("ngStyle",bt(26,dwe,"MultiLineTextAreaFixedFont"==n.field.fieldType?"consolas":"")),p(1),h("ngIf",n.fullScreenMode),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,Vi,Ot,rt,Rs,Nn,Bn,Vn,Kv],styles:[".fullScreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;background-color:#fff;display:flex;flex-direction:column}.fullScreen[_ngcontent-%COMP%] .label-bar[_ngcontent-%COMP%]{margin-left:20px;margin-top:20px;margin-right:20px;flex:0 0 auto}.fullScreen[_ngcontent-%COMP%] .textarea-shell[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0}.fullScreen[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1 1 auto;height:calc(100vh - 120px)!important;min-height:calc(100vh - 120px)!important;max-height:calc(100vh - 120px)!important;background-color:#fff;border:1px solid #ccc;margin:10px;padding:10px;font-size:16px;resize:none;overflow-y:auto!important}.fullScreen[_ngcontent-%COMP%] .tag-panel[_ngcontent-%COMP%]{width:400px;height:auto;overflow-y:auto;flex:0 0 400px}.multiline-textarea[_ngcontent-%COMP%]{min-height:2.25rem;line-height:1.35;overflow-y:hidden;resize:none;transition:height 80ms ease,box-shadow .12s ease,background-color .12s ease}.multiline-textarea.compact-empty[_ngcontent-%COMP%]{height:2.25rem;overflow:hidden;resize:none}"]})}function uwe(i,e){if(1&i){const t=re();c(0,"span",7),P("click",function(){return E(t),I(g().showSharedContentModal())}),B(1,"i",8),m(2," Shared Content "),d()}}function pwe(i,e){if(1&i){const t=re();c(0,"input",13),P("ngModelChange",function(r){return E(t),I(g(2).field.value=r)})("change",function(r){return E(t),I(g(2).changed(r))})("input",function(r){return E(t),I(g(2).textChanged(r))})("focus",function(r){return E(t),I(g(2).onFocus(r))})("blur",function(r){return E(t),I(g(2).onBlur(r))}),d()}if(2&i){const t=g(2);cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.field.value)("type",t.inputType)("disabled",!t.field.isUserEditable)}}function hwe(i,e){if(1&i){const t=re();c(0,"div",14)(1,"h6"),m(2,"Linked Content - Ready Only"),c(3,"span",7),P("click",function(){return E(t),I(g(2).field.value="")}),B(4,"i",15),m(5,"Edit"),d()(),m(6),Zt(7,"async"),Zt(8,"sharedContent"),d()}if(2&i){const t=g(2);p(6),$e(" ",Xt(7,1,Xt(8,3,t.field.value)),"")}}function gwe(i,e){1&i&&(c(0,"span",16),B(1,"i",17),d()),2&i&&mt("data-target",g(2).popupId)}function fwe(i,e){if(1&i&&(c(0,"div",9),b(1,pwe,1,8,"input",10),b(2,hwe,9,5,"div",11),b(3,gwe,2,1,"span",12),d()),2&i){const t=g();p(1),h("ngIf",!t.field.value||"Text"!=t.field.fieldType||!t.field.value.toString().startsWith("sharedcontentid")),p(1),h("ngIf",t.field.value&&"Text"==t.field.fieldType&&t.field.value.toString().startsWith("sharedcontentid")),p(1),h("ngIf",t.field.help)}}class Mw extends Gt{modalService;constructor(e){super(),this.modalService=e}ngOnInit(){super.ngOnInit()}showSharedContentModal(){this.modalService.open(rf,{size:"lg",beforeDismiss:()=>!0}).componentInstance.field=this.field}static \u0275fac=function(t){return new(t||Mw)(H(Pn))};static \u0275cmp=Oe({type:Mw,selectors:[["app-text-box"]],features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"app-form-field-label",2),d(),c(3,"div"),b(4,uwe,3,0,"span",3),d()(),b(5,fwe,4,3,"div",4),B(6,"app-form-field-validation-section",5)(7,"app-form-field-help",6)),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),h("ngIf",n.field.sharedContentKey),p(1),h("ngIf",!0),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,rt,Nn,Bn,Vn,k0,Fg],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 Zd{client;router;apps;_currentAppsList$=new Ut;currentApp;_currentApp$=new Ut;_currentFolder$=new Ut;_currentFolder;_currentView;_currentView$=new Ut;_currentViewKey;_dateRange;kiosks;_currentKiosksList$=new Ut;_currentKioskKey;_currentKioskViewKey;_kioskViews;_kioskViews$=new Ut;currentKiosk;_currentKiosk$=new Ut;_currentKioskView;_currentKioskView$=new Ut;_dateRange$=new Ut;_addedWidgets$=new Ut(1);constructor(e,t){this.client=e,this.router=t}deviceRepoAppId;loadApps(e,t){var n=this;return O(function*(){let r=yield n.client.getListResponse(`/api/ui/apps/${e}`);if(n.apps=r.model,"iotdashboard"===e&&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),t){const o=n.apps.find(a=>a.id===t);o?(n._currentApp$.next(o),n.currentApp=o):n.currentApp=null}return n.apps})()}getApp(e,t){var n=this;return O(function*(){let r=yield n.client.requestForInvokeResultEx(`/api/ui/app/${e}/${t}`);return n.setCurrentApp(r.result),r.result})()}getAppForEditing(e,t){return this.client.getFormResponse(`/api/ui/app/edit/${e}/${t}`)}createApp(e){return this.client.getFormResponse(`/api/ui/app/${e}/factory`)}createViewFolder(){return this.client.getFormResponse("/api/ui/app/folder/factory")}createView(){return this.client.getFormResponse("/api/ui/app/view/factory")}insertApp(e){var t=this;return O(function*(){return yield t.client.insert("/api/ui/app",e)})()}updateApp(e){var t=this;return O(function*(){return yield t.client.update("/api/ui/app",e)})()}saveApp(e){var t=this;return O(function*(){if(e.isEditing)return yield t.client.update("/api/ui/app",e);{let n=yield t.client.insert("/api/ui/app",e);return n.successful&&(e.isEditing=!0),n}})()}deleteApp(e){return this.client.delete(`/api/ui/iotapp/${e}`)}editApp(e){var t=this;return O(function*(){let n=yield t.client.getFormResponse("/api/ui/app/factory");return n.isEditing=!0,n.model=e,n})()}editFolder(e){var t=this;return O(function*(){let n=yield t.client.getFormResponse("/api/ui/app/folder/factory");return n.isEditing=!0,n.model=e,n})()}editView(e){var t=this;return O(function*(){let n=yield t.client.getFormResponse("/api/ui/app/view/factory");return n.isEditing=!0,n.model=e,n})()}navigateToAppsHome(){this.router.navigate(["apps"])}navigateToKiosksHome(){this.router.navigate(["kiosks"])}addWidgetToCurrentView(e){if(!e)throw new Error("Widget Template was Null");const t={id:Yn.newGuid(),name:e.name,widgetId:e.widgetId,title:e.title,widgetAttributes:e.getDefaultWidgetAttributes(),order:this.getCurrentView().widgets.length+1};console.log(t),this.getCurrentView().widgets.push(t)}createWidget(e,t,n){return this.client.request("/api/ui/widget/factory")}insertWidget(e){return this.client.insert("/api/ui/widget",e)}updateWidget(e){return this.client.update("/api/ui/widget",e)}onWidgetAddedToView(){return this._addedWidgets$.asObservable()}removeWidgetById(e){const t=this._currentView.widgets.find(r=>r.id===e),n=this._currentView.widgets.indexOf(t);this._currentView.widgets.splice(n,1)}reorderWidgets(e){const t=this._currentView.widgets;this._currentView.widgets=[];for(const n of e){const r=t.find(o=>o.id===n);this._currentView.widgets.push(r)}}getWidgets(e,t){return this.client.getListResponse(`/api/ui/dashboard/${e}/${t}`)}deviceSelected(e,t){this.router.navigate(this._currentView?["app",{appid:this.currentApp.id,folder:this._currentFolder,view:this._currentView.key,deviceid:t,repoid:e}]:this.currentApp?["app",{appid:this.currentApp.id,deviceid:t,repoid:e}]:["apps",{deviceid:t,repoid:e}])}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 e=this._dateRange.split("x");return{start:new Date(parseInt(e[0],10)),end:new Date(parseInt(e[1],10)),hasValue:!0}}return{hasValue:!0}}setDateRange(e,t){e&&t?(this._dateRange=`${e.getTime()}x${t.getTime()}`,this._dateRange$.next({start:e,end:t,hasValue:!0})):(this._dateRange=null,this._dateRange$.next({hasValue:!1}))}onCurrentApp(){return this._currentApp$.asObservable()}onCurrentFolder(){return this._currentFolder$.asObservable()}setCurrentFolder(e){this._currentFolder=e,this._currentFolder$.next(e)}getCurrentFolder(){return this._currentFolder}setCurrentView(e){this._currentView=e,this._currentView$.next(e)}setCurrentApp(e){this.currentApp=e,this._currentApp$.next(e)}onCurrentView(){return this._currentView$.asObservable()}getCurrentView(){return this._currentView}loadKioskViews(e,t,n){return new Promise((o,a)=>{this.currentKiosk&&e===this.currentKiosk.id&&this._kioskViews?(o(this._kioskViews),this.setCurrentKioskView(this.currentKiosk.key,t)):this.client.getListResponse(`/api/ui/kiosks/${e}/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,t)}).catch(s=>{a(s)})})}setCurrentKioskView(e,t){(e!==this._currentKioskKey||t!==this._currentKioskViewKey)&&(this._currentKioskKey=e,this._currentKioskViewKey=t,this.kiosks?(this.currentKiosk=this.kiosks.find(n=>n.key===e),this.currentKiosk&&(this._currentKiosk$.next(this.currentKiosk),this._currentKioskView=this.currentKiosk.views.find(n=>n.key===t),this._currentKioskView$.next(this._currentKioskView))):this.currentKiosk?this.loadKioskViews(this.currentKiosk.id,this._currentKioskViewKey,this.currentKiosk):this.router.navigate(["kiosks"]))}setKiosk(e,t){if(this.kiosks){const n=this.kiosks.find(r=>r.id===e);n&&(this.loadKioskViews(e,t,n),this.currentKiosk=n,this.router.navigate(["kiosk",{kioskid:e}]),this._currentKiosk$.next(n))}else this.loadKiosks(e,t)}loadKiosks(e,t){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),e){const s=this.kiosks.find(l=>l.id===e);s?(this.loadKioskViews(e,t,s),this._currentKiosk$.next(s),this.currentKiosk=s):this.currentKiosk=null}}).catch(a=>{console.log("we are reject",a),o(a)})})}loadKiosk(e,t){return new Promise((r,o)=>{this.currentKiosk&&this.currentKiosk.id===e&&this.currentKiosk.viewDefinitions&&this._currentViewKey===t?r(this.currentKiosk):this.kiosks?(this.currentKiosk=this.kiosks.find(a=>a.id===e),this.currentKiosk&&(this._currentKiosk$.next(this.currentKiosk),r(this.currentKiosk),this.loadKioskViews(e,t,this.currentKiosk))):this.loadKiosks(e,t).then(a=>r(this.currentKiosk))})}getKiosk(e){return this.client.requestForInvokeResultEx(`/api/ui/kiosk/${e}`)}createKiosk(){return this.client.requestForInvokeResultEx("/api/ui/kiosk/factory")}insertKiosk(e){return new Promise((n,r)=>{this.client.insert("/api/ui/kiosk",e).then(o=>{this.kiosks.push(e),n(o)}).catch(o=>r(o))})}updateKiosk(e){return new Promise((n,r)=>{this.client.update("/api/ui/kiosk",e).then(o=>{this.kiosks&&(this.kiosks=this.kiosks.filter(a=>a.id!==e.id),this.kiosks.push(e)),n(o)}).catch(o=>r(o))})}deleteKiosk(e){return this.client.delete(`/api/ui/kiosk/${e}`)}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(t){return new(t||Zd)(Me(hn),Me(_i))};static \u0275prov=Ue({token:Zd,factory:Zd.\u0275fac,providedIn:"root"})}function mwe(i,e){if(1&i){const t=re();c(0,"label",20),m(1," Entity Icon Guidance "),c(2,"textarea",21),P("ngModelChange",function(r){return E(t),I(g(2).baseIconPrompt=r)}),d(),c(3,"small",11),m(4," Durable guidance from the entity type. This helps preserve the correct visual metaphor. "),d()()}if(2&i){const t=g(2);p(2),h("ngModel",t.baseIconPrompt)}}function _we(i,e){if(1&i&&(c(0,"div",22),m(1),d()),2&i){const t=g(2);p(1),$e(" ",t.generationError," ")}}function vwe(i,e){if(1&i){const t=re();c(0,"button",23),P("click",function(){return E(t),I(g(2).clearGeneratedIconPreview())}),m(1," Clear Preview "),d()}}function ywe(i,e){if(1&i){const t=re();c(0,"div",24)(1,"div",25),B(2,"nuv-icon",26),d(),c(3,"div",27)(4,"strong"),m(5),d(),c(6,"span"),m(7),d(),c(8,"button",28),P("click",function(){return E(t),I(g(2).applyGeneratedIcon())}),m(9," Apply Icon "),d()()()}if(2&i){const t=g(2);p(2),h("imageSize",128)("iconName",t.generatedIconPreview.iconReference)("altText",t.generatedIconPreview.displayName||"Generated icon preview"),p(3),Ae(t.generatedIconPreview.displayName||"Generated semantic icon"),p(2),Ae(t.generatedIconPreview.iconReference)}}function bwe(i,e){1&i&&(c(0,"div",29),m(1," Generated icon preview will appear here. "),d())}function Cwe(i,e){if(1&i){const t=re();c(0,"section",4)(1,"div",5)(2,"div",6)(3,"h4"),m(4,"Generate a semantic icon"),d(),c(5,"p"),m(6," Generate a new icon using this entity, its current/default icon, and optional guidance. "),d()(),c(7,"div",7)(8,"div")(9,"span"),m(10,"Entity Type"),d(),c(11,"strong"),m(12),d()(),c(13,"div")(14,"span"),m(15,"Icon Name"),d(),c(16,"input",8),P("ngModelChange",function(r){return E(t),I(g().iconGenerationName=r)}),d()(),c(17,"div")(18,"span"),m(19,"Current Icon"),d(),c(20,"strong"),m(21),d()()(),c(22,"label",9),m(23," Icon Description "),c(24,"textarea",10),P("ngModelChange",function(r){return E(t),I(g().iconGenerationDescription=r)}),d(),c(25,"small",11),m(26," This only guides icon generation. It does not change the entity unless you save that elsewhere. "),d()(),b(27,mwe,5,1,"label",12),c(28,"label"),m(29," Additional instructions "),c(30,"textarea",13),P("ngModelChange",function(r){return E(t),I(g().generationGuidance=r)}),d(),c(31,"small",11),m(32," Optional guidance for this generated icon only. Entity style, color, and semantic rules still apply. "),d()(),b(33,_we,2,1,"div",14),c(34,"div",15)(35,"button",16),P("click",function(){return E(t),I(g().generateIcon())}),m(36),d(),b(37,vwe,2,0,"button",17),d(),b(38,ywe,10,5,"div",18),b(39,bwe,2,0,"div",19),d()()}if(2&i){const t=g();p(12),Ae(t.entityTypeName||"Unknown"),p(4),h("ngModel",t.iconGenerationName),p(5),Ae(t.currentIcon||"None"),p(3),h("ngModel",t.iconGenerationDescription),p(3),h("ngIf",t.baseIconPrompt),p(3),h("ngModel",t.generationGuidance),p(3),h("ngIf",t.generationError),p(2),h("disabled",t.isGeneratingIcon),p(1),$e(" ",t.isGeneratingIcon?"Generating...":"Generate Icon"," "),p(1),h("ngIf",t.generatedIconPreview),p(1),h("ngIf",t.generatedIconPreview),p(1),h("ngIf",!t.generatedIconPreview&&!t.isGeneratingIcon)}}function wwe(i,e){if(1&i){const t=re();c(0,"button",2),P("click",function(){return E(t),I(g(2).clearSearch())}),m(1,"Clear"),d()}}function xwe(i,e){if(1&i&&(c(0,"div",43),m(1),d()),2&i){const t=g().$implicit;p(1),Ae(t.description)}}function kwe(i,e){if(1&i){const t=re();c(0,"button",37),P("click",function(){const o=E(t).$implicit;return I(g(3).iconClicked(o.icon))}),c(1,"div",38),B(2,"nuv-icon",39),d(),c(3,"div",40),m(4),d(),c(5,"div",41),m(6),d(),b(7,xwe,2,1,"div",42),d()}if(2&i){const t=e.$implicit;p(2),h("imageSize",64)("iconName",t.icon)("altText",t.name),p(2),Ae(t.name),p(2),Ae(t.icon),p(1),h("ngIf",t.description)}}function Mwe(i,e){if(1&i&&(c(0,"div",35),b(1,kwe,8,6,"button",36),d()),2&i){const t=g(2);p(1),h("ngForOf",t.filteredSemanticIcons)("ngForTrackBy",t.trackSemanticIcon)}}function Dwe(i,e){1&i&&(c(0,"div",29),m(1," No semantic icons match your search. "),d())}function Twe(i,e){if(1&i){const t=re();c(0,"section",4)(1,"header",30)(2,"div")(3,"h3"),m(4,"Choose Icon"),d(),c(5,"p"),m(6,"Select a generated semantic icon, generate a new one, or use the legacy catalog."),d()(),c(7,"div",31)(8,"input",32),P("ngModelChange",function(r){return E(t),I(g().searchText=r)})("input",function(){return E(t),I(g().applyFilter())}),d(),b(9,wwe,2,0,"button",33),d()(),b(10,Mwe,2,2,"div",34),b(11,Dwe,2,0,"div",19),d()}if(2&i){const t=g();p(8),h("ngModel",t.searchText),p(1),h("ngIf",t.searchText),p(1),h("ngIf",t.filteredSemanticIcons.length),p(1),h("ngIf",!t.filteredSemanticIcons.length)}}function Swe(i,e){if(1&i){const t=re();c(0,"button",2),P("click",function(){return E(t),I(g(2).clearSearch())}),m(1,"Clear"),d()}}function Ewe(i,e){if(1&i){const t=re();c(0,"button",45),P("click",function(){const o=E(t).$implicit;return I(g(3).iconClicked(o))}),c(1,"div",38),B(2,"nuv-icon",46),d(),c(3,"div",41),m(4),d()()}if(2&i){const t=e.$implicit;p(2),h("iconName",t),p(2),Ae(t)}}function Iwe(i,e){if(1&i&&(c(0,"div",35),b(1,Ewe,5,2,"button",44),d()),2&i){const t=g(2);p(1),h("ngForOf",t.legacyIcons)("ngForTrackBy",t.trackLegacyIcon)}}function Awe(i,e){1&i&&(c(0,"div",29),m(1," No legacy icons match your search. "),d())}function Pwe(i,e){if(1&i){const t=re();c(0,"section",4)(1,"header",30)(2,"div")(3,"h3"),m(4,"Choose Icon"),d(),c(5,"p"),m(6,"Select a generated semantic icon, generate a new one, or use the legacy catalog."),d()(),c(7,"div",31)(8,"input",32),P("ngModelChange",function(r){return E(t),I(g().searchText=r)})("input",function(){return E(t),I(g().applyFilter())}),d(),b(9,Swe,2,0,"button",33),d()(),b(10,Iwe,2,2,"div",34),b(11,Awe,2,0,"div",19),d()}if(2&i){const t=g();p(8),h("ngModel",t.searchText),p(1),h("ngIf",t.searchText),p(1),h("ngIf",t.legacyIcons.length),p(1),h("ngIf",!t.legacyIcons.length)}}class Dw{uiService;ctx;constructor(e,t){this.uiService=e,this.ctx=t}iconSelected=new Ie;orgNamespace;entityTypeName;entityId;entityKey;entityName;entityDescription;currentIcon;baseIconPrompt;iconGenerationName="";iconGenerationDescription="";isVisible=!1;activeTab="generate";searchText="";allLegacyIcons=[];legacyIcons=[];semanticIcons=[];filteredSemanticIcons=[];isLoadingSemanticIcons=!1;semanticIconError="";generationGuidance="";generatedIconPreview;isGeneratingIcon=!1;generationError="";ngOnInit(){var e=this;return O(function*(){e.allLegacyIcons=e.uiService.getAllIcons(),e.legacyIcons=e.allLegacyIcons,e.iconGenerationName=e.entityName||"",e.iconGenerationDescription=e.entityDescription||"",yield e.loadSemanticIcons(),e.applyFilter()})()}setActiveTab(e){this.activeTab=e,this.applyFilter()}iconClicked(e){this.iconSelected.emit(e),this.isVisible=!1}applyFilter(){const e=this.searchText?.trim().toLowerCase();if(!e)return this.legacyIcons=this.allLegacyIcons,void(this.filteredSemanticIcons=this.semanticIcons);this.legacyIcons=this.allLegacyIcons.filter(t=>t.toLowerCase().indexOf(e)>=0),this.filteredSemanticIcons=this.semanticIcons.filter(t=>t.name.toLowerCase().indexOf(e)>=0||t.icon.toLowerCase().indexOf(e)>=0||t.description&&t.description.toLowerCase().indexOf(e)>=0||t.sourceEntityType&&t.sourceEntityType.toLowerCase().indexOf(e)>=0||t.sourceEntityName&&t.sourceEntityName.toLowerCase().indexOf(e)>=0)}clearSearch(){this.searchText="",this.applyFilter()}refreshSemanticIcons(){var e=this;return O(function*(){yield e.loadSemanticIcons(),e.applyFilter()})()}createGenerationRequest(){return{entityTypeName:this.entityTypeName,entityId:this.entityId,entityKey:this.entityKey,entityName:this.iconGenerationName?.trim()||this.entityName,entityDescription:this.iconGenerationDescription?.trim()||this.entityDescription,currentIcon:this.currentIcon,baseIconPrompt:this.baseIconPrompt,additionalGuidance:this.generationGuidance?.trim()||void 0,applyChanges:!1}}generateIcon(){var e=this;return O(function*(){if(e.generationError="",e.generatedIconPreview=null,e.entityTypeName)if(e.entityId){e.isGeneratingIcon=!0;try{const t=e.createGenerationRequest(),n=yield e.ctx.clients.media.createIconsSemanticInstanceGenerate(t);if(!n)throw new Error("Icon generation API returned no response.");if(!n.successful)throw new Error(n.errors?.join(", ")||"Icon generation request was unsuccessful.");if(!n.result)throw new Error("Icon generation API returned no preview result.");if(!n.result.iconReference)throw new Error("Generated icon result did not include an icon reference.");e.generatedIconPreview={iconReference:n.result.iconReference,previewUrl:n.result.previewUrl||n.result.sourceUrl,displayName:e.iconGenerationName?.trim()||e.entityName||n.result.iconKey||"Generated icon"},yield e.refreshSemanticIcons()}catch(t){console.error("Could not generate semantic icon.",t),e.generationError=t instanceof Error&&t.message?t.message:"Could not generate semantic icon.",e.generatedIconPreview=null}finally{e.isGeneratingIcon=!1}}else e.generationError="The entity must be saved before generating an icon.";else e.generationError="Entity type is required to generate an icon."})()}applyGeneratedIcon(){this.generatedIconPreview?.iconReference?this.iconClicked(this.generatedIconPreview.iconReference):this.generationError="Generated icon reference is missing."}clearGeneratedIconPreview(){this.generatedIconPreview=null,this.generationError=""}trackLegacyIcon(e,t){return t}trackSemanticIcon(e,t){return t.icon}loadSemanticIcons(){var e=this;return O(function*(){e.isLoadingSemanticIcons=!0,e.semanticIconError="";try{const t=yield e.loadSystemSemanticIconCatalog();if(!t)throw new Error("System semantic icon catalog response was empty.");if(!t.icons)throw new Error("System semantic icon catalog did not include an icons collection.");e.semanticIcons=t.icons.map(r=>e.mapCatalogEntry(r)).filter(r=>!!r.icon),e.filteredSemanticIcons=e.semanticIcons}catch(t){console.error("Could not load semantic icons.",t),e.semanticIconError=t instanceof Error&&t.message?t.message:"Could not load semantic icon catalog.",e.semanticIcons=[],e.filteredSemanticIcons=[]}finally{e.isLoadingSemanticIcons=!1}})()}loadSystemSemanticIconCatalog(){var e=this;return O(function*(){const t=yield e.ctx.clients.media.getIconsSemanticCatalogSystemMaster();if(!t)throw new Error("System semantic icon catalog API returned no response.");if(!t.successful)throw new Error(t.errors?.join(", ")||"System semantic icon catalog API returned an unsuccessful result.");if(!t.result)throw new Error("System semantic icon catalog API returned no catalog document.");return t.result})()}mapCatalogEntry(e){return{name:e.displayName||e.iconKey,icon:this.createLagoVistaIconReference(e),previewUrl:e.previewUrl,description:e.meaning||e.additionalGuidance||e.searchText,sourceEntityType:e.sourceEntityType,sourceEntityName:e.sourceEntityKey||e.sourceEntityId}}createLagoVistaIconReference(e){return e?.iconKey?`lago-icon://system/${e.familyKey||"nuvos-semantic-icon"}/${e.iconKey}`:""}static \u0275fac=function(t){return new(t||Dw)(H(Zd),H(Dp))};static \u0275cmp=Oe({type:Dw,selectors:[["app-icon-picker"]],inputs:{orgNamespace:"orgNamespace",entityTypeName:"entityTypeName",entityId:"entityId",entityKey:"entityKey",entityName:"entityName",entityDescription:"entityDescription",currentIcon:"currentIcon",baseIconPrompt:"baseIconPrompt"},outputs:{iconSelected:"iconSelected"},decls:11,vars:9,consts:[[1,"icon-picker"],[1,"icon-picker__tabs"],["type","button",3,"click"],["class","icon-picker__content",4,"ngIf"],[1,"icon-picker__content"],[1,"icon-picker__generate-panel"],[1,"icon-picker__generate-copy"],[1,"icon-picker__generation-context"],["type","text","placeholder","Icon subject or name",3,"ngModel","ngModelChange"],[1,"icon-picker__guidance-field"],["placeholder","Describe what this icon should visually represent.",3,"ngModel","ngModelChange"],[1,"icon-picker__field-hint"],["class","icon-picker__guidance-field icon-picker__guidance-field--base",4,"ngIf"],["placeholder","Example: make this feel focused on onboarding, approvals, compliance, or planning.",3,"ngModel","ngModelChange"],["class","icon-picker__error",4,"ngIf"],[1,"icon-picker__generate-actions"],["type","button",1,"icon-picker__primary-button",3,"disabled","click"],["type","button","class","icon-picker__secondary-button",3,"click",4,"ngIf"],["class","icon-picker__generated-preview",4,"ngIf"],["class","icon-picker__empty-state",4,"ngIf"],[1,"icon-picker__guidance-field","icon-picker__guidance-field--base"],["placeholder","Entity-level guidance used to keep generated icons consistent.",3,"ngModel","ngModelChange"],[1,"icon-picker__error"],["type","button",1,"icon-picker__secondary-button",3,"click"],[1,"icon-picker__generated-preview"],[1,"icon-picker__preview","icon-picker__preview--large"],["fontSize","96px",3,"imageSize","iconName","altText"],[1,"icon-picker__generated-details"],["type","button",1,"icon-picker__primary-button",3,"click"],[1,"icon-picker__empty-state"],[1,"icon-picker__header"],[1,"icon-picker__search"],["type","text","placeholder","Search icons...",3,"ngModel","ngModelChange","input"],["type","button",3,"click",4,"ngIf"],["class","icon-picker__grid",4,"ngIf"],[1,"icon-picker__grid"],["type","button","class","icon-picker__card",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["type","button",1,"icon-picker__card",3,"click"],[1,"icon-picker__preview"],["fontSize","64px",3,"imageSize","iconName","altText"],[1,"icon-picker__label"],[1,"icon-picker__value"],["class","icon-picker__description",4,"ngIf"],[1,"icon-picker__description"],["type","button","class","icon-picker__card icon-picker__card--legacy",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["type","button",1,"icon-picker__card","icon-picker__card--legacy",3,"click"],["fontSize","64px",3,"iconName"]],template:function(t,n){1&t&&(c(0,"div",0)(1,"nav",1)(2,"button",2),P("click",function(){return n.setActiveTab("generate")}),m(3," Generate "),d(),c(4,"button",2),P("click",function(){return n.setActiveTab("semantic")}),m(5," Semantic Catalog "),d(),c(6,"button",2),P("click",function(){return n.setActiveTab("legacy")}),m(7," Legacy Catalog "),d()(),b(8,Cwe,40,12,"section",3),b(9,Twe,12,4,"section",3),b(10,Pwe,12,4,"section",3),d()),2&t&&(p(2),St("icon-picker__tab--active","generate"===n.activeTab),p(2),St("icon-picker__tab--active","semantic"===n.activeTab),p(2),St("icon-picker__tab--active","legacy"===n.activeTab),p(2),h("ngIf","generate"===n.activeTab),p(1),h("ngIf","semantic"===n.activeTab),p(1),h("ngIf","legacy"===n.activeTab))},dependencies:[Dn,en,qt,Ot,rt,es],styles:[".icon-picker[_ngcontent-%COMP%]{width:100%;color:var(--color-fg);padding:20px}.icon-picker__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.icon-picker__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:700}.icon-picker__header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--color-fg-muted, #6b7280);font-size:.9rem}.icon-picker__search[_ngcontent-%COMP%]{display:flex;gap:.5rem;min-width:280px}.icon-picker__search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:1px solid var(--color-border, #d1d5db);border-radius:.5rem;padding:.55rem .75rem;background:var(--color-bg, #ffffff);color:var(--color-fg)}.icon-picker__search[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:1px solid var(--color-border, #d1d5db);border-radius:.5rem;background:var(--color-bg, #ffffff);color:var(--color-fg);padding:.55rem .75rem;cursor:pointer}.icon-picker__tabs[_ngcontent-%COMP%]{display:flex;gap:.5rem;border-bottom:1px solid var(--color-border, #d1d5db);margin-bottom:1rem}.icon-picker__tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;outline:none;background:transparent;color:var(--color-fg-muted, #6b7280);padding:.75rem 1rem;cursor:pointer;border-bottom:3px solid transparent;font-weight:600;border-radius:.65rem .65rem 0 0}.icon-picker__tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.icon-picker__tab--active[_ngcontent-%COMP%]{color:var(--color-primary, #1976D2)!important;border-bottom-color:var(--color-primary, #1976D2)!important}.icon-picker__content[_ngcontent-%COMP%]{height:850px;overflow-y:auto;padding-right:.5rem}.icon-picker__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.85rem}.icon-picker__card[_ngcontent-%COMP%]{border:1px solid var(--color-border, #d1d5db);border-radius:.85rem;background:var(--color-bg, #ffffff);color:var(--color-fg);padding:1rem;cursor:pointer;text-align:center;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.icon-picker__card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);border-color:var(--color-primary, #1976D2);box-shadow:0 10px 24px #0f172a1f}.icon-picker__card--legacy[_ngcontent-%COMP%]{min-height:140px}.icon-picker__preview[_ngcontent-%COMP%]{width:84px;height:84px;border-radius:1rem;background:var(--color-surface-muted, rgba(148, 163, 184, .12));display:flex;align-items:center;justify-content:center;overflow:hidden}.icon-picker__label[_ngcontent-%COMP%]{font-weight:700;font-size:.95rem;line-height:1.2}.icon-picker__value[_ngcontent-%COMP%]{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--color-fg-muted, #6b7280);font-size:.75rem;line-height:1.2}.icon-picker__description[_ngcontent-%COMP%]{color:var(--color-fg-muted, #6b7280);font-size:.78rem;line-height:1.25}.icon-picker__empty-state[_ngcontent-%COMP%]{border:1px dashed var(--color-border, #d1d5db);border-radius:.85rem;padding:2rem;color:var(--color-fg-muted, #6b7280);text-align:center;background:var(--color-surface-muted, rgba(148, 163, 184, .08))}.icon-picker__generate-panel[_ngcontent-%COMP%]{display:grid;gap:1rem;max-width:720px}.icon-picker__generate-panel[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;gap:.4rem;color:var(--color-fg);font-weight:600}.icon-picker__generate-panel[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:120px;resize:vertical;border:1px solid var(--color-border, #d1d5db);border-radius:.75rem;padding:.75rem;background:var(--color-bg, #ffffff);color:var(--color-fg)}.icon-picker__generate-copy[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.1rem}.icon-picker__generate-copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.35rem 0 0;color:var(--color-fg-muted, #6b7280)}.icon-picker__generate-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.icon-picker__primary-button[_ngcontent-%COMP%]{border:0;border-radius:.65rem;padding:.7rem 1.1rem;background:var(--color-primary, #1976D2);color:#fff;cursor:pointer;font-weight:700}.icon-picker__generate-panel[_ngcontent-%COMP%]{display:grid;gap:1rem;max-width:860px}.icon-picker__generate-copy[_ngcontent-%COMP%]{border:1px solid var(--color-border, #d1d5db);border-radius:1rem;padding:1rem;background:linear-gradient(135deg,rgba(25,118,210,.08),rgba(104,29,214,.06))}.icon-picker__generate-copy[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:1.15rem;font-weight:800;color:var(--color-fg)}.icon-picker__generate-copy[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.35rem 0 0;color:var(--color-fg-muted, #6b7280);line-height:1.35}.icon-picker__generation-context[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.icon-picker__generation-context[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border:1px solid var(--color-border, #d1d5db);border-radius:.85rem;padding:.75rem;background:var(--color-surface-muted, rgba(148, 163, 184, .08));min-width:0}.icon-picker__generation-context[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;color:var(--color-fg-muted, #6b7280);font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:.3rem}.icon-picker__generation-context[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;color:var(--color-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem}.icon-picker__generate-panel[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;gap:.45rem;color:var(--color-fg);font-weight:700}.icon-picker__generate-panel[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:120px;resize:vertical;border:1px solid var(--color-border, #d1d5db);border-radius:.85rem;padding:.85rem;background:var(--color-bg, #ffffff);color:var(--color-fg);line-height:1.35;outline:none}.icon-picker__generate-panel[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #1976D2);box-shadow:0 0 0 3px #1976d224}.icon-picker__generate-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.icon-picker__primary-button[_ngcontent-%COMP%]{border:0;border-radius:.7rem;padding:.72rem 1.1rem;background:var(--color-primary, #1976D2);color:#fff;cursor:pointer;font-weight:800;box-shadow:0 8px 18px #1976d238}.icon-picker__primary-button[_ngcontent-%COMP%]:hover{filter:brightness(1.04)}.icon-picker__primary-button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default;box-shadow:none}.icon-picker__secondary-button[_ngcontent-%COMP%]{border:1px solid var(--color-border, #d1d5db);border-radius:.7rem;padding:.72rem 1rem;background:var(--color-bg, #ffffff);color:var(--color-fg);cursor:pointer;font-weight:700}.icon-picker__secondary-button[_ngcontent-%COMP%]:hover{border-color:var(--color-primary, #1976D2)}.icon-picker__error[_ngcontent-%COMP%]{border:1px solid rgba(220,38,38,.35);border-radius:.75rem;padding:.8rem .9rem;color:#b91c1c;background:rgba(220,38,38,.08);font-weight:600}.icon-picker__generated-preview[_ngcontent-%COMP%]{display:grid;grid-template-columns:140px minmax(0,1fr);gap:1rem;align-items:center;border:1px solid var(--color-border, #d1d5db);border-radius:1rem;padding:1rem;background:var(--color-surface-muted, rgba(148, 163, 184, .08))}.icon-picker__preview--large[_ngcontent-%COMP%]{width:128px;height:128px;border-radius:1.25rem;background:repeating-conic-gradient(rgba(148,163,184,.22) 0% 25%,rgba(148,163,184,.08) 0% 50%) 50%/18px 18px;display:flex;align-items:center;justify-content:center;overflow:hidden}.icon-picker__generated-details[_ngcontent-%COMP%]{display:grid;gap:.55rem;min-width:0}.icon-picker__generated-details[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--color-fg);font-size:1rem}.icon-picker__generated-details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--color-fg-muted, #6b7280);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-picker__generated-details[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{justify-self:start}@media (max-width: 720px){.icon-picker__generated-preview[_ngcontent-%COMP%]{grid-template-columns:1fr}.icon-picker__preview--large[_ngcontent-%COMP%]{justify-self:center}}.icon-picker__field-hint[_ngcontent-%COMP%]{color:var(--color-fg-muted, #6b7280);font-size:.78rem;font-weight:500}.icon-picker__guidance-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{font-size:.9rem}.icon-picker__guidance-field--base[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{background:rgba(25,118,210,.04);border-color:#1976d23d}.icon-picker__guidance-field--base[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #1976D2);box-shadow:0 0 0 3px #1976d21f}.icon-picker__generation-description[_ngcontent-%COMP%]{border:1px solid var(--color-border, #d1d5db);border-radius:.85rem;padding:.85rem;background:var(--color-surface-muted, rgba(148, 163, 184, .08));min-width:0}.icon-picker__generation-description[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;color:var(--color-fg-muted, #6b7280);font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:.35rem}.icon-picker__generation-description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--color-fg);font-size:.9rem;line-height:1.4}.icon-picker__generation-context[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})}function Fwe(i,e){if(1&i){const t=re();c(0,"nuv-icon",7),P("click",function(){return E(t),I(g().showPicker())}),d()}if(2&i){const t=g();Am("data-bs-target","#",t.pickerId,""),h("imageSize",64)("iconName",t.field.value)}}function Rwe(i,e){if(1&i){const t=re();c(0,"div",8),P("click",function(){return E(t),I(g().showPicker())}),c(1,"span",9),m(2,"-select-"),d()()}2&i&&Am("data-bs-target","#",g().pickerId,"")}function Owe(i,e){if(1&i){const t=re();c(0,"div",10),P("click",function(){return E(t),I(g().showPicker())}),m(1," Replace\n"),d()}2&i&&Am("data-bs-target","#",g().pickerId,"")}class Tw extends Gt{userService;modalService;ariaLabel;modalId;pickerId;_filter;get filter(){return this._filter}set filter(e){this._filter=e,this.icons=e?this.allIcons.filter(t=>-1!=t.indexOf(e.toLocaleLowerCase())):this.allIcons}allIcons;icons;constructor(e,t,n){super(),this.userService=t,this.modalService=n,this.allIcons=e.getAllIcons(),this.icons=this.allIcons,this.pickerId=Yn.newGuid()}ngOnInit(){super.ngOnInit(),this.ariaLabel="popupHelp"+this.field.name,this.modalId="popupModal"+this.field.name}iconClicked(e){console.log(e),this.field.value=e}showPicker(){var e=this;return O(function*(){let t=e.modalService.open(Dw,{size:"lg"}),n=yield e.userService.getCurrentOrg(),r=t.componentInstance;r.currentIcon=e.field.value,r.entityId=e.form.model.id,r.entityName=e.form.view.name.value??e.form.model.name,r.entityKey=e.form.model.key,r.entityTypeName=e.form.modelName,r.orgNamespace=n?.namespace,r.entityDescription="",r.baseIconPrompt=e.form.aiIconGuidance,console.log(e.form),e.form.aiIconGuidanceEntityField&&(r.entityDescription=e.form.view[e.form.aiIconGuidanceEntityField]?.value??e.form.model[e.form.aiIconGuidanceEntityField]),r.entityDescription+=e.form.view.description.value??e.form.model.description??"",console.log(r),r.iconSelected.subscribe(o=>{e.field.value=o,t.close()})})()}static \u0275fac=function(t){return new(t||Tw)(H(Zd),H(Hn),H(Pn))};static \u0275cmp=Oe({type:Tw,selectors:[["app-form-icon-picker"]],features:[it],decls:7,vars:13,consts:[[3,"name","label","isRequired"],[1,"input-group"],["fontSize","32px","style","cursor:pointer","data-bs-toggle","modal",3,"imageSize","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,"imageSize","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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1),b(2,Fwe,1,3,"nuv-icon",2),b(3,Rwe,3,1,"div",3),d(),b(4,Owe,2,1,"div",4),B(5,"app-form-field-validation-section",5)(6,"app-form-field-help",6)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),h("ngIf",n.field.value),p(1),h("ngIf",!n.field.value),p(1),h("ngIf",n.field.value),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[rt,Nn,Bn,Vn,es],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 Lwe(i,e){1&i&&(c(0,"div",6),B(1,"span",7),d()),2&i&&mt("data-target",g().popupId)}class Sw extends Gt{hours;minutes;ampm;constructor(){super()}fieldSet(e){if(e?.value){let t=parseInt(e.value.substring(0,2)),n=5==e.value.length?parseInt(e.value.substring(3,5)):parseInt(e.value.substring(2,4));this.ampm=t>11?"PM":"AM",this.hours=t>12?(t-12).toString():t.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 t=Yn.toHHMM(this.hours,this.minutes,this.ampm,!1);this.field.value=t,console.log(t)}else this.field.value=void 0}static \u0275fac=function(t){return new(t||Sw)};static \u0275cmp=Oe({type:Sw,selectors:[["app-time-picker"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"div")(3,"select",2),P("ngModelChange",function(o){return n.hours=o})("ngModelChange",function(){return n.currentValueChanged()}),c(4,"option"),m(5,"HH"),d(),c(6,"option"),m(7,"12"),d(),c(8,"option"),m(9,"1"),d(),c(10,"option"),m(11,"2"),d(),c(12,"option"),m(13,"3"),d(),c(14,"option"),m(15,"4"),d(),c(16,"option"),m(17,"5"),d(),c(18,"option"),m(19,"6"),d(),c(20,"option"),m(21,"7"),d(),c(22,"option"),m(23,"8"),d(),c(24,"option"),m(25,"9"),d(),c(26,"option"),m(27,"10"),d(),c(28,"option"),m(29,"11"),d()()(),c(30,"div")(31,"select",2),P("ngModelChange",function(o){return n.minutes=o})("ngModelChange",function(){return n.currentValueChanged()}),c(32,"option"),m(33,"MM"),d(),c(34,"option"),m(35,"00"),d(),c(36,"option"),m(37,"05"),d(),c(38,"option"),m(39,"10"),d(),c(40,"option"),m(41,"15"),d(),c(42,"option"),m(43,"20"),d(),c(44,"option"),m(45,"25"),d(),c(46,"option"),m(47,"30"),d(),c(48,"option"),m(49,"35"),d(),c(50,"option"),m(51,"40"),d(),c(52,"option"),m(53,"45"),d(),c(54,"option"),m(55,"50"),d(),c(56,"option"),m(57,"55"),d()()(),c(58,"div")(59,"select",2),P("ngModelChange",function(o){return n.ampm=o})("ngModelChange",function(){return n.currentValueChanged()}),c(60,"option"),m(61,"AM PM"),d(),c(62,"option"),m(63,"AM"),d(),c(64,"option"),m(65,"PM"),d()()(),b(66,Lwe,2,1,"div",3),d(),B(67,"app-form-field-validation-section",4)(68,"app-form-field-help",5)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(3),h("ngModel",n.hours),p(28),h("ngModel",n.minutes),p(28),h("ngModel",n.ampm),p(7),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,pr,en,qt,rt,Nn,Bn,Vn],styles:["select[_ngcontent-%COMP%]{width:100px;text-align-last:right}option[_ngcontent-%COMP%]{direction:rtl}"]})}const Nwe=["dialogPopup"],Bwe=["hueSlider"],Vwe=["alphaSlider"];function $we(i,e){if(1&i&&B(0,"div"),2&i){const t=g();Cl("arrow arrow-",t.cpUsePosition,""),cn("top",t.arrowTop,"px")}}function Hwe(i,e){if(1&i){const t=re();c(0,"div",28),P("newValue",function(r){return E(t),I(g().onColorChange(r))})("dragStart",function(){return E(t),I(g().onDragStart("saturation-lightness"))})("dragEnd",function(){return E(t),I(g().onDragEnd("saturation-lightness"))}),B(1,"div",14),d()}if(2&i){const t=g();cn("background-color",t.hueSliderColor),h("rgX",1)("rgY",1),p(1),cn("top",null==t.slider?null:t.slider.v,"px")("left",null==t.slider?null:t.slider.s,"px")}}function Uwe(i,e){1&i&&(Du(),c(0,"svg",29),B(1,"path",30)(2,"path",31),d())}function jwe(i,e){if(1&i){const t=re();c(0,"button",32),P("click",function(r){E(t);const o=g();return I(o.onAddPresetColor(r,o.selectedColor))}),m(1),d()}if(2&i){const t=g();ko(t.cpAddColorButtonClass),h("disabled",t.cpPresetColors&&t.cpPresetColors.length>=t.cpMaxPresetColorsLength),p(1),$e(" ",t.cpAddColorButtonText," ")}}function Ywe(i,e){1&i&&B(0,"div",33)}function zwe(i,e){if(1&i){const t=re();c(0,"input",39),P("keyup.enter",function(r){return E(t),I(g(2).onAcceptColor(r))})("newValue",function(r){return E(t),I(g(2).onAlphaInput(r))}),d()}if(2&i){const t=g(2);h("rg",1)("value",null==t.cmykText?null:t.cmykText.a)}}function Wwe(i,e){1&i&&(c(0,"div"),m(1,"A"),d())}function qwe(i,e){if(1&i){const t=re();c(0,"div",34)(1,"div",35)(2,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onCyanInput(r))}),d(),c(3,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onMagentaInput(r))}),d(),c(4,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onYellowInput(r))}),d(),c(5,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onBlackInput(r))}),d(),b(6,zwe,1,2,"input",37),d(),c(7,"div",35)(8,"div"),m(9,"C"),d(),c(10,"div"),m(11,"M"),d(),c(12,"div"),m(13,"Y"),d(),c(14,"div"),m(15,"K"),d(),b(16,Wwe,2,0,"div",38),d()()}if(2&i){const t=g();cn("display",3!==t.format?"none":"block"),p(2),h("rg",100)("value",null==t.cmykText?null:t.cmykText.c),p(1),h("rg",100)("value",null==t.cmykText?null:t.cmykText.m),p(1),h("rg",100)("value",null==t.cmykText?null:t.cmykText.y),p(1),h("rg",100)("value",null==t.cmykText?null:t.cmykText.k),p(1),h("ngIf","disabled"!==t.cpAlphaChannel),p(10),h("ngIf","disabled"!==t.cpAlphaChannel)}}function Gwe(i,e){if(1&i){const t=re();c(0,"input",39),P("keyup.enter",function(r){return E(t),I(g(2).onAcceptColor(r))})("newValue",function(r){return E(t),I(g(2).onAlphaInput(r))}),d()}if(2&i){const t=g(2);h("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function Kwe(i,e){1&i&&(c(0,"div"),m(1,"A"),d())}function Qwe(i,e){if(1&i){const t=re();c(0,"div",40)(1,"div",35)(2,"input",41),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onHueInput(r))}),d(),c(3,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onSaturationInput(r))}),d(),c(4,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onLightnessInput(r))}),d(),b(5,Gwe,1,2,"input",37),d(),c(6,"div",35)(7,"div"),m(8,"H"),d(),c(9,"div"),m(10,"S"),d(),c(11,"div"),m(12,"L"),d(),b(13,Kwe,2,0,"div",38),d()()}if(2&i){const t=g();cn("display",2!==t.format?"none":"block"),p(2),h("rg",360)("value",null==t.hslaText?null:t.hslaText.h),p(1),h("rg",100)("value",null==t.hslaText?null:t.hslaText.s),p(1),h("rg",100)("value",null==t.hslaText?null:t.hslaText.l),p(1),h("ngIf","disabled"!==t.cpAlphaChannel),p(8),h("ngIf","disabled"!==t.cpAlphaChannel)}}function Zwe(i,e){if(1&i){const t=re();c(0,"input",39),P("keyup.enter",function(r){return E(t),I(g(2).onAcceptColor(r))})("newValue",function(r){return E(t),I(g(2).onAlphaInput(r))}),d()}if(2&i){const t=g(2);h("rg",1)("value",null==t.rgbaText?null:t.rgbaText.a)}}function Xwe(i,e){1&i&&(c(0,"div"),m(1,"A"),d())}function Jwe(i,e){if(1&i){const t=re();c(0,"div",42)(1,"div",35)(2,"input",43),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onRedInput(r))}),d(),c(3,"input",43),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onGreenInput(r))}),d(),c(4,"input",43),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onBlueInput(r))}),d(),b(5,Zwe,1,2,"input",37),d(),c(6,"div",35)(7,"div"),m(8,"R"),d(),c(9,"div"),m(10,"G"),d(),c(11,"div"),m(12,"B"),d(),b(13,Xwe,2,0,"div",38),d()()}if(2&i){const t=g();cn("display",1!==t.format?"none":"block"),p(2),h("rg",255)("value",null==t.rgbaText?null:t.rgbaText.r),p(1),h("rg",255)("value",null==t.rgbaText?null:t.rgbaText.g),p(1),h("rg",255)("value",null==t.rgbaText?null:t.rgbaText.b),p(1),h("ngIf","disabled"!==t.cpAlphaChannel),p(8),h("ngIf","disabled"!==t.cpAlphaChannel)}}function e2e(i,e){if(1&i){const t=re();c(0,"input",39),P("keyup.enter",function(r){return E(t),I(g(2).onAcceptColor(r))})("newValue",function(r){return E(t),I(g(2).onAlphaInput(r))}),d()}if(2&i){const t=g(2);h("rg",1)("value",t.hexAlpha)}}function t2e(i,e){1&i&&(c(0,"div"),m(1,"A"),d())}function n2e(i,e){if(1&i){const t=re();c(0,"div",44)(1,"div",35)(2,"input",45),P("blur",function(){return E(t),I(g().onHexInput(null))})("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onHexInput(r))}),d(),b(3,e2e,1,2,"input",37),d(),c(4,"div",35)(5,"div"),m(6,"Hex"),d(),b(7,t2e,2,0,"div",38),d()()}if(2&i){const t=g();cn("display",0!==t.format?"none":"block"),St("hex-alpha","forced"===t.cpAlphaChannel),p(2),h("value",t.hexText),p(1),h("ngIf","forced"===t.cpAlphaChannel),p(4),h("ngIf","forced"===t.cpAlphaChannel)}}function i2e(i,e){if(1&i){const t=re();c(0,"input",39),P("keyup.enter",function(r){return E(t),I(g(2).onAcceptColor(r))})("newValue",function(r){return E(t),I(g(2).onAlphaInput(r))}),d()}if(2&i){const t=g(2);h("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function r2e(i,e){if(1&i){const t=re();c(0,"div",46)(1,"div",35)(2,"input",36),P("keyup.enter",function(r){return E(t),I(g().onAcceptColor(r))})("newValue",function(r){return E(t),I(g().onValueInput(r))}),d(),b(3,i2e,1,2,"input",37),d(),c(4,"div",35)(5,"div"),m(6,"V"),d(),c(7,"div"),m(8,"A"),d()()()}if(2&i){const t=g();p(2),h("rg",100)("value",null==t.hslaText?null:t.hslaText.l),p(1),h("ngIf","disabled"!==t.cpAlphaChannel)}}function o2e(i,e){if(1&i){const t=re();c(0,"div",47)(1,"span",48),P("click",function(){return E(t),I(g().onFormatToggle(-1))}),d(),c(2,"span",48),P("click",function(){return E(t),I(g().onFormatToggle(1))}),d()()}}function a2e(i,e){if(1&i){const t=re();c(0,"span",55),P("click",function(r){E(t);const o=g().$implicit;return I(g(3).onRemovePresetColor(r,o))}),d()}2&i&&ko(g(4).cpRemoveColorButtonClass)}function s2e(i,e){if(1&i){const t=re();c(0,"div",53),P("click",function(){const o=E(t).$implicit;return I(g(3).setColorFromString(o))}),b(1,a2e,1,3,"span",54),d()}if(2&i){const t=e.$implicit,n=g(3);cn("background-color",t),p(1),h("ngIf",n.cpAddColorButton)}}function l2e(i,e){if(1&i&&(c(0,"div"),b(1,s2e,2,3,"div",52),d()),2&i){const t=g(2);ko(t.cpPresetColorsClass),p(1),h("ngForOf",t.cpPresetColors)}}function c2e(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);ko(t.cpPresetEmptyMessageClass),p(1),Ae(t.cpPresetEmptyMessage)}}function d2e(i,e){if(1&i&&(c(0,"div",49),B(1,"hr"),c(2,"div",50),m(3),d(),b(4,l2e,2,4,"div",51),b(5,c2e,2,4,"div",51),d()),2&i){const t=g();p(3),Ae(t.cpPresetLabel),p(1),h("ngIf",null==t.cpPresetColors?null:t.cpPresetColors.length),p(1),h("ngIf",!(null!=t.cpPresetColors&&t.cpPresetColors.length)&&t.cpAddColorButton)}}function u2e(i,e){if(1&i){const t=re();c(0,"button",58),P("click",function(r){return E(t),I(g(2).onCancelColor(r))}),m(1),d()}if(2&i){const t=g(2);ko(t.cpCancelButtonClass),p(1),Ae(t.cpCancelButtonText)}}function p2e(i,e){if(1&i){const t=re();c(0,"button",58),P("click",function(r){return E(t),I(g(2).onAcceptColor(r))}),m(1),d()}if(2&i){const t=g(2);ko(t.cpOKButtonClass),p(1),Ae(t.cpOKButtonText)}}function h2e(i,e){if(1&i&&(c(0,"div",56),b(1,u2e,2,4,"button",57),b(2,p2e,2,4,"button",57),d()),2&i){const t=g();p(1),h("ngIf",t.cpCancelButton),p(1),h("ngIf",t.cpOKButton)}}function g2e(i,e){1&i&&Pm(0)}function f2e(i,e){if(1&i&&(c(0,"div",59),b(1,g2e,1,0,"ng-container",60),d()),2&i){const t=g();p(1),h("ngTemplateOutlet",t.cpExtraTemplate)}}var vo=(()=>{return(i=vo||(vo={}))[i.HEX=0]="HEX",i[i.RGBA=1]="RGBA",i[i.HSLA=2]="HSLA",i[i.CMYK=3]="CMYK",vo;var i})();class Nc{constructor(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}}class Ew{constructor(e,t,n,r){this.h=e,this.s=t,this.v=n,this.a=r}}class Tp{constructor(e,t,n,r){this.h=e,this.s=t,this.l=n,this.a=r}}class Qv{constructor(e,t,n,r,o=1){this.c=e,this.m=t,this.y=n,this.k=r,this.a=o}}let v2e=(()=>{class i{constructor(){this.newValue=new Ie}inputChange(t){const n=t.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(t){return new(t||i)},i.\u0275dir=ot({type:i,selectors:[["","text",""]],hostBindings:function(t,n){1&t&&P("input",function(o){return n.inputChange(o)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}),i})(),y2e=(()=>{class i{constructor(t){this.elRef=t,this.dragEnd=new Ie,this.dragStart=new Ie,this.newValue=new Ie,this.listenerMove=n=>this.move(n),this.listenerStop=()=>this.stop()}mouseDown(t){this.start(t)}touchStart(t){this.start(t)}move(t){t.preventDefault(),this.setCursor(t)}start(t){this.setCursor(t),t.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(t){const n=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==t.pageX?t.pageX:t.touches[0].pageX)-n.left-window.pageXOffset}getY(t){const n=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==t.pageY?t.pageY:t.touches[0].pageY)-n.top-window.pageYOffset}setCursor(t){const n=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(t),n)),a=Math.max(0,Math.min(this.getY(t),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(t){return new(t||i)(H(At))},i.\u0275dir=ot({type:i,selectors:[["","slider",""]],hostBindings:function(t,n){1&t&&P("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 T7{constructor(e,t,n,r){this.h=e,this.s=t,this.v=n,this.a=r}}class S7{constructor(e,t,n,r){this.h=e,this.s=t,this.v=n,this.a=r}}let oI=(()=>{class i{constructor(){this.active=null}setActive(t){this.active&&this.active!==t&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=t}hsva2hsla(t){const n=t.h,r=t.s,o=t.v,a=t.a;if(0===o)return new Tp(n,0,0,a);if(0===r&&1===o)return new Tp(n,1,1,a);{const s=o*(2-r)/2;return new Tp(n,o*r/(1-Math.abs(2*s-1)),s,a)}}hsla2hsva(t){const n=Math.min(t.h,1),r=Math.min(t.s,1),o=Math.min(t.l,1),a=Math.min(t.a,1);if(0===o)return new Ew(n,0,0,a);{const s=o+r*(1-Math.abs(2*o-1))/2;return new Ew(n,2*(s-o)/s,s,a)}}hsvaToRgba(t){let n,r,o;const a=t.h,s=t.s,l=t.v,u=t.a,f=Math.floor(6*a),v=6*a-f,D=l*(1-s),A=l*(1-v*s),W=l*(1-(1-v)*s);switch(f%6){case 0:n=l,r=W,o=D;break;case 1:n=A,r=l,o=D;break;case 2:n=D,r=l,o=W;break;case 3:n=D,r=A,o=l;break;case 4:n=W,r=D,o=l;break;case 5:n=l,r=D,o=A;break;default:n=0,r=0,o=0}return new Nc(n,r,o,u)}cmykToRgb(t){return new Nc((1-t.c)*(1-t.k),(1-t.m)*(1-t.k),(1-t.y)*(1-t.k),t.a)}rgbaToCmyk(t){const n=1-Math.max(t.r,t.g,t.b);return 1===n?new Qv(0,0,0,1,t.a):new Qv((1-t.r-n)/(1-n),(1-t.g-n)/(1-n),(1-t.b-n)/(1-n),n,t.a)}rgbaToHsva(t){let n,r;const o=Math.min(t.r,1),a=Math.min(t.g,1),s=Math.min(t.b,1),l=Math.min(t.a,1),u=Math.max(o,a,s),f=Math.min(o,a,s),v=u,D=u-f;if(r=0===u?0:D/u,u===f)n=0;else{switch(u){case o:n=(a-s)/D+(a{class i{constructor(t,n,r,o,a,s){this.ngZone=t,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=[vo.HEX,vo.RGBA,vo.HSLA,vo.CMYK],this.useRootViewContainer=!1,this.eyeDropperSupported=Ls(this.platformId)&&"EyeDropper"in this.document.defaultView}handleEsc(t){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(t)}handleEnter(t){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(t)}ngOnInit(){this.slider=new T7(0,0,0,0),this.sliderDimMax=new S7(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.format=this.cpCmykEnabled?vo.CMYK:"rgba"===this.cpOutputFormat?vo.RGBA:"hsla"===this.cpOutputFormat?vo.HSLA:vo.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 S7(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.updateColorPicker(!1),this.cdRef.detectChanges())}openDialog(t,n=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(t),this.setColorFromString(t,n),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(t,n,r,o,a,s,l,u,f,v,D,A,W,J,pe,fe,ye,we,Te,Re,Ye,We,Ze,ht,vt,Ht,tn,Rt,ei,nn,qe,Qe,nt,kt,rn,ri,st,Fi){this.setInitialColor(r),this.setColorMode(u),this.isIE10=10===function _2e(){let i="";typeof navigator<"u"&&(i=navigator.userAgent.toLowerCase());const e=i.indexOf("msie ");return e>0&&parseInt(i.substring(e+5,i.indexOf(".",e)),10)}(),this.directiveInstance=t,this.directiveElementRef=n,this.cpDisableInput=A,this.cpCmykEnabled=f,this.cpAlphaChannel=v,this.cpOutputFormat=D,this.cpDialogDisplay=s,this.cpIgnoredElements=W,this.cpSaveClickOutside=J,this.cpCloseClickOutside=pe,this.useRootViewContainer=fe,this.width=this.cpWidth=parseInt(o,10),this.height=this.cpHeight=parseInt(a,10),this.cpPosition=ye,this.cpPositionOffset=parseInt(we,10),this.cpOKButton=Ht,this.cpOKButtonText=Rt,this.cpOKButtonClass=tn,this.cpCancelButton=ei,this.cpCancelButtonText=qe,this.cpCancelButtonClass=nn,this.cpEyeDropper=ri,this.fallbackColor=l||"#fff",this.setPresetConfig(Re,Ye),this.cpPresetColorsClass=We,this.cpMaxPresetColorsLength=Ze,this.cpPresetEmptyMessage=ht,this.cpPresetEmptyMessageClass=vt,this.cpAddColorButton=Qe,this.cpAddColorButtonText=kt,this.cpAddColorButtonClass=nt,this.cpRemoveColorButtonClass=rn,this.cpTriggerElement=st,this.cpExtraTemplate=Fi,Te||(this.dialogArrowOffset=0),"inline"===s&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===D&&"always"!==v&&"forced"!==v&&(this.cpAlphaChannel="disabled")}setColorMode(t){switch(t.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(t){this.initialColor=t}setPresetConfig(t,n){this.cpPresetLabel=t,this.cpPresetColors=n}setColorFromString(t,n=!0,r=!0){let o;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(o=this.service.stringToHsva(t,!0),!o&&!this.hsva&&(o=this.service.stringToHsva(t,!1))):o=this.service.stringToHsva(t,!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(t){this.directiveInstance.sliderDragEnd({slider:t,color:this.outputColor})}onDragStart(t){this.directiveInstance.sliderDragStart({slider:t,color:this.outputColor})}onMouseDown(t){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&t.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,t.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,t.target)&&0===this.cpIgnoredElements.filter(n=>n===t.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(t){t.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(t){this.hsva=null,t.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(t){const n=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),r=((this.dialogInputFields.indexOf(this.format)+t)%n+n)%n;this.format=this.dialogInputFields[r]}onColorChange(t){this.hsva.s=t.s/t.rgX,this.hsva.v=t.v/t.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(t){this.hsva.h=t.v/t.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(t){this.hsva.v=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(t){this.hsva.a=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(t){if(null===t)this.updateColorPicker();else{t&&"#"!==t[0]&&(t="#"+t);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(t);r&&(t.length<5&&(t="#"+t.substring(1).split("").map(o=>o+o).join("")),"forced"===this.cpAlphaChannel&&(t+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(t,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:r,value:t,color:this.outputColor})}}onRedInput(t){const n=this.service.hsvaToRgba(this.hsva),r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(n.r=t.v/t.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(t){const n=this.service.hsvaToRgba(this.hsva),r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(n.b=t.v/t.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(t){const n=this.service.hsvaToRgba(this.hsva),r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(n.g=t.v/t.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(t){const n=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;n&&(this.hsva.h=t.v/t.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:n,value:this.hsva.h,color:this.outputColor})}onValueInput(t){const n=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;n&&(this.hsva.v=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:n,value:this.hsva.v,color:this.outputColor})}onAlphaInput(t){const n=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;n&&(this.hsva.a=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:n,value:this.hsva.a,color:this.outputColor})}onLightnessInput(t){const n=this.service.hsva2hsla(this.hsva),r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(n.l=t.v/t.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(t){const n=this.service.hsva2hsla(this.hsva),r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(n.s=t.v/t.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(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.c=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.m=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.y=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.k=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(t,n){t.stopPropagation(),this.cpPresetColors.filter(r=>r===n).length||(this.cpPresetColors=this.cpPresetColors.concat(n),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(t,n){t.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(()=>{E7?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||(E7?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(t=!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 Ew(this.sliderH||this.hsva.h,1,1,1))),n&&(this.hslaText=new Tp(Math.round(360*a.h),Math.round(100*a.s),Math.round(100*a.l),Math.round(100*a.a)/100),this.rgbaText=new Nc(s.r,s.g,s.b,Math.round(100*s.a)/100),this.cpCmykEnabled&&(this.cmykText=new Qv(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!==vo.RGBA&&this.format!==vo.CMYK&&this.format!==vo.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?vo.RGBA:vo.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!==vo.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const u=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${u})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new T7((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),t&&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,t="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),t=r.getPropertyValue("position"),n=r.getPropertyValue("transform"),"static"!==t&&null===o&&(o=s),n&&"none"!==n&&null===a&&(a=s),"fixed"===t){o=a;break}s=s.parentNode}const u=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==t);if(this.useRootViewContainer||"fixed"===t&&(!o||o instanceof HTMLUnknownElement))this.top=u.top,this.left=u.left;else{null===o&&(o=s);const v=this.createDialogBox(o,"fixed"!==t);this.top=u.top-v.top,this.left=u.left-v.left}"fixed"===t&&(this.position="fixed");let f=this.cpPosition;"auto"===this.cpPosition&&(f=function m2e(i,e){let t="right",n="bottom";const{height:r,width:o}=i,{top:a,left:s}=e,l=a+e.height,u=s+e.width,f=a-r<0,v=l+r>(window.innerHeight||document.documentElement.clientHeight),D=s-o<0,A=u+o>(window.innerWidth||document.documentElement.clientWidth);return v&&(n="top"),f&&(n="bottom"),D&&(t="right"),A&&(t="left"),f&&v&&D&&A?["left","right","top","bottom"].reduce((pe,fe)=>i[pe]>i[fe]?pe:fe):D&&A?f?"bottom":v||a>l?"top":"bottom":f&&v?D?"right":A||s>u?"left":"right":`${n}-${t}`}(this.dialogElement.nativeElement.getBoundingClientRect(),this.cpTriggerElement.nativeElement.getBoundingClientRect())),"top"===f?(this.arrowTop=l-1,this.top-=l+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*u.width-this.dialogArrowOffset):"bottom"===f?(this.top+=u.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*u.width-this.dialogArrowOffset):"top-left"===f||"left-top"===f?(this.top-=l-u.height+u.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset):"top-right"===f||"right-top"===f?(this.top-=l-u.height+u.height*this.cpPositionOffset/100,this.left+=u.width+this.dialogArrowSize-2-this.dialogArrowOffset):"left"===f||"bottom-left"===f||"left-bottom"===f?(this.top+=u.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):(this.top+=u.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=u.width+this.dialogArrowSize-2),this.cpUsePosition=f}}isDescendant(t,n){let r=n.parentNode;for(;null!==r;){if(r===t)return!0;r=r.parentNode}return!1}createDialogBox(t,n){const{top:r,left:o}=t.getBoundingClientRect();return{top:r+(n?window.pageYOffset:0),left:o+(n?window.pageXOffset:0),width:t.offsetWidth,height:t.offsetHeight}}}return i.\u0275fac=function(t){return new(t||i)(H($t),H(At),H(oi),H(Jt),H(_d),H(oI))},i.\u0275cmp=Oe({type:i,selectors:[["color-picker"]],viewQuery:function(t,n){if(1&t&&(Wt(Nwe,7),Wt(Bwe,7),Wt(Vwe,7)),2&t){let r;ut(r=pt())&&(n.dialogElement=r.first),ut(r=pt())&&(n.hueSlider=r.first),ut(r=pt())&&(n.alphaSlider=r.first)}},hostBindings:function(t,n){1&t&&P("keyup.esc",function(o){return n.handleEsc(o)},0,A1)("keyup.enter",function(o){return n.handleEnter(o)},!1,A1)},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(t,n){1&t&&(c(0,"div",0,1),P("click",function(o){return o.stopPropagation()}),b(2,$we,1,5,"div",2),b(3,Hwe,2,8,"div",3),c(4,"div",4)(5,"div",5),B(6,"div",6),c(7,"div",7),P("click",function(){return n.eyeDropperSupported&&n.cpEyeDropper&&n.onEyeDropper()}),b(8,Uwe,3,0,"svg",8),d(),b(9,jwe,2,5,"button",9),d(),c(10,"div",10),b(11,Ywe,1,0,"div",11),c(12,"div",12,13),P("newValue",function(o){return n.onHueChange(o)})("dragStart",function(){return n.onDragStart("hue")})("dragEnd",function(){return n.onDragEnd("hue")}),B(14,"div",14),d(),c(15,"div",15,16),P("newValue",function(o){return n.onValueChange(o)})("dragStart",function(){return n.onDragStart("value")})("dragEnd",function(){return n.onDragEnd("value")}),B(17,"div",14),d(),c(18,"div",17,18),P("newValue",function(o){return n.onAlphaChange(o)})("dragStart",function(){return n.onDragStart("alpha")})("dragEnd",function(){return n.onDragEnd("alpha")}),B(20,"div",14),d()()(),b(21,qwe,17,12,"div",19),b(22,Qwe,14,10,"div",20),b(23,Jwe,14,10,"div",21),b(24,n2e,8,7,"div",22),b(25,r2e,9,3,"div",23),b(26,o2e,3,0,"div",24),b(27,d2e,6,3,"div",25),b(28,h2e,3,2,"div",26),b(29,f2e,2,1,"div",27),d()),2&t&&(cn("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"),St("open",n.show),p(2),h("ngIf","popup"===n.cpDialogDisplay),p(1),h("ngIf",1===(n.cpColorMode||1)),p(4),cn("background-color",n.selectedColor)("cursor",n.eyeDropperSupported&&n.cpEyeDropper?"pointer":null),p(1),h("ngIf",n.eyeDropperSupported&&n.cpEyeDropper),p(1),h("ngIf",n.cpAddColorButton),p(2),h("ngIf","disabled"===n.cpAlphaChannel),p(1),cn("display",1===(n.cpColorMode||1)?"block":"none"),h("rgX",1),p(2),cn("left",null==n.slider?null:n.slider.h,"px"),p(1),cn("display",2===(n.cpColorMode||1)?"block":"none"),h("rgX",1),p(2),cn("right",null==n.slider?null:n.slider.v,"px"),p(1),cn("display","disabled"===n.cpAlphaChannel?"none":"block")("background-color",n.alphaSliderColor),h("rgX",1),p(2),cn("left",null==n.slider?null:n.slider.a,"px"),p(1),h("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),p(1),h("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),p(1),h("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),p(1),h("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),p(1),h("ngIf",!n.cpDisableInput&&2===(n.cpColorMode||1)),p(1),h("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),p(1),h("ngIf",(null==n.cpPresetColors?null:n.cpPresetColors.length)||n.cpAddColorButton),p(1),h("ngIf",n.cpOKButton||n.cpCancelButton),p(1),h("ngIf",n.cpExtraTemplate))},dependencies:[Ot,rt,ju,v2e,y2e],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})(),w2e=(()=>{class i{constructor(t,n,r,o,a,s){this.injector=t,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 Ie(!0),this.cpToggleChange=new Ie(!0),this.cpSliderChange=new Ie(!0),this.cpSliderDragEnd=new Ie(!0),this.cpSliderDragStart=new Ie(!0),this.colorPickerOpen=new Ie(!0),this.colorPickerClose=new Ie(!0),this.colorPickerCancel=new Ie(!0),this.colorPickerSelect=new Ie(!0),this.colorPickerChange=new Ie(!1),this.cpCmykColorChange=new Ie(!0),this.cpPresetColorsChange=new Ie(!0)}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(t){this.inputChange(t)}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(t){t.cpToggle&&!this.cpDisabled&&(t.cpToggle.currentValue?this.openDialog():t.cpToggle.currentValue||this.closeDialog()),t.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(t.colorPicker.currentValue),this.dialog.setColorFromString(t.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(t.cpPresetLabel||t.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let t=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const o=this.injector.get(this.appRef.componentTypes[0],Bi.NULL);o!==Bi.NULL?t=o.vcRef||o.viewContainerRef||this.vcRef:this.viewAttachedToAppRef=!0}const n=this.cfr.resolveComponentFactory(b2e);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=Bi.create({providers:[],parent:t.injector});this.cmpRef=t.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!==t&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(t){this.cpCmykColorChange.emit(t)}stateChanged(t){this.cpToggleChange.emit(t),t?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(t,n=!0){this.ignoreChanges=n,this.colorPickerChange.emit(t)}colorSelected(t){this.colorPickerSelect.emit(t)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const t=this.elRef.nativeElement,n=this.cpIgnoredElements.filter(r=>r===t);!this.cpDisabled&&!n.length&&(typeof document<"u"&&t===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(t){this.dialog?this.dialog.setColorFromString(t.target.value,!0):(this.colorPicker=t.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(t){this.cpInputChange.emit(t)}sliderChanged(t){this.cpSliderChange.emit(t)}sliderDragEnd(t){this.cpSliderDragEnd.emit(t)}sliderDragStart(t){this.cpSliderDragStart.emit(t)}presetColorsChanged(t){this.cpPresetColorsChange.emit(t)}}return i.\u0275fac=function(t){return new(t||i)(H(Bi),H(rc),H(yd),H(Sr),H(At),H(oI))},i.\u0275dir=ot({type:i,selectors:[["","colorPicker",""]],hostBindings:function(t,n){1&t&&P("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:[li]}),i})(),I7=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[oI],imports:[fi]}),i})();function x2e(i,e){1&i&&(c(0,"div",6),B(1,"span",7),d()),2&i&&mt("data-target",g().popupId)}class Iw extends Gt{fgColor="#ffffff";constructor(){super()}ngOnInit(){super.ngOnInit(),this.field.value&&(this.fgColor=this.invertColor(this.field.value))}invertColor(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error(`Invalid HEX color. [${e}]`);var t=(255-parseInt(e.slice(0,2),16)).toString(16),n=(255-parseInt(e.slice(2,4),16)).toString(16),r=(255-parseInt(e.slice(4,6),16)).toString(16);return"#"+this.padZero(t)+this.padZero(n)+this.padZero(r)}padZero(e,t=2){return(new Array(t).join("0")+e).slice(-t)}colorChanged(e){this.textChanged(e),this.fgColor=this.invertColor(e)}static \u0275fac=function(t){return new(t||Iw)};static \u0275cmp=Oe({type:Iw,selectors:[["app-color-picker"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"input",2),P("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)}),d(),b(3,x2e,2,1,"div",3),d(),B(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("color",n.fgColor)("background-color",n.field.isUserEditable?"white":"#EEEEEE")("background",n.field.value),_t("name",n.field.name),_t("id",n.field.name),_t("placeholder",n.field.watermark),h("ngModel",n.field.value)("type",n.inputType)("colorPicker",n.field.value)("disabled",!n.field.isUserEditable),p(1),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,rt,w2e,Nn,Bn,Vn]})}function k2e(i,e){if(1&i){const t=re();c(0,"span",8),P("click",function(){return E(t),I(g().addChildItem())}),B(1,"i",9),m(2,"Add"),d()}}function M2e(i,e){1&i&&B(0,"i",10),2&i&&mt("data-target",g().popupId)}function D2e(i,e){if(1&i){const t=re();c(0,"i",11),P("click",function(){return E(t),I(g().expanded=!0)}),d()}}function T2e(i,e){if(1&i){const t=re();c(0,"i",12),P("click",function(){return E(t),I(g().expanded=!1)}),d()}}function S2e(i,e){if(1&i&&(c(0,"td",2),m(1),d()),2&i){const t=e.$implicit;p(1),$e(" ",t," ")}}function E2e(i,e){if(1&i){const t=re();c(0,"i",22),P("click",function(r){E(t);const o=g().$implicit;return g(2).removeClick(o),I(r.stopPropagation())}),d()}}function I2e(i,e){1&i&&(c(0,"i",23),m(1,"\xa0\xa0\xa0\xa0"),d())}function A2e(i,e){if(1&i){const t=re();c(0,"i",24),P("click",function(r){E(t);const o=g().$implicit;return g(2).moveDown(o),I(r.stopPropagation())}),d()}}function P2e(i,e){if(1&i){const t=re();c(0,"i",25),P("click",function(r){E(t);const o=g().$implicit;return g(2).moveUp(o),I(r.stopPropagation())}),d()}}function F2e(i,e){if(1&i){const t=re();c(0,"tr",15),P("click",function(){const o=E(t).$implicit;return I(g(2).selected(o))}),b(1,S2e,2,1,"td",16),c(2,"td",17),b(3,E2e,1,0,"i",18),b(4,I2e,2,0,"i",19),b(5,A2e,1,0,"i",20),b(6,P2e,1,0,"i",21),d()()}if(2&i){const t=e.$implicit,n=e.index,r=g(2);h("title",r.getItemKey(t,"key: ")),p(1),h("ngForOf",r.getDisplayValues(t,r.field)),p(2),h("ngIf",r.showRemove&&r.field.canAddRows),p(1),h("ngIf",r.field.value.length==n+1),p(1),h("ngIf",n0)}}function R2e(i,e){if(1&i&&(c(0,"div")(1,"table",13),b(2,F2e,7,6,"tr",14),d()()),2&i){const t=g();p(2),h("ngForOf",t.field.value)}}function O2e(i,e){1&i&&(c(0,"div"),m(1,"-no items- "),d())}class Aw extends Gt{modalComponent;nuviotClient;expanded;showRemove=!0;constructor(e,t){super(),this.modalComponent=e,this.nuviotClient=t}addChildItem(){var e=this;return O(function*(){if(e.field.factoryUrl){let t=e.field.factoryUrl.replace("{id}",e.model.id),n=yield e.nuviotClient.getFormResponse(t);e.field.addChildItem(n)}})()}selected(e){var t=this;return O(function*(){if(e.id){let n=t.field.factoryUrl.replace("{id}",t.model.id);const r=yield t.nuviotClient.getFormResponse(n);r.model=e,r.isEditing=!0,r.parent=t.form,t.field.childItemSelected(r,e)}})()}moveUp(e){if(this.field.value){let t=this.field.value.indexOf(e);t>0&&(this.field.value[t]=this.field.value[t-1],this.field.value[t-1]=e,this.field.isDirty=!0,this.field.propertyChanged?.(this.field))}}moveDown(e){if(this.field.value){let t=this.field.value.indexOf(e);t${e.name??e.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=O(function*(o){if(o){let a=t.field.value.indexOf(e);a>=0&&(t.isDirty=!0,t.field.isDirty=!0,t.field.value.splice(a,1),t.field.propertyChanged?.(t.field),t.field.childItemRemoved?.(t.form))}});return function(o){return r.apply(this,arguments)}}())}getDisplayValues(e,t){if(t.childItemName)return[e[t.childItemName]];if(t.childListDisplayMembers){let n=[],r=t.childListDisplayMembers;for(let o of r){let a=o.split(".");if(e){let s=e;for(let l of a)l=l.trim(),s&&("Text"==l&&(l="text"),s=s[l]);n.push(s)}}return n}if(t.childListDisplayMember){let n=t.childListDisplayMember.split(".");for(let r of n)if(!(e=e[r]))return["-"];return[e]}return[e.name??e.text]}static \u0275fac=function(t){return new(t||Aw)(H(Pn),H(hn))};static \u0275cmp=Oe({type:Aw,selectors:[["app-child-list"]],features:[it],decls:12,vars:8,consts:[[1,"panel"],[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"],[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","180"],["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"]],template:function(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"label"),m(4),d()(),c(5,"div"),b(6,k2e,3,0,"span",3),b(7,M2e,1,1,"i",4),b(8,D2e,1,0,"i",5),b(9,T2e,1,0,"i",6),d()(),b(10,R2e,3,1,"div",7),b(11,O2e,2,0,"div",7),d()),2&t&&(p(4),dr(" ",n.field.label," (",n.field.value.length,")"),p(2),h("ngIf",n.field.canAddRows),p(1),h("ngIf",n.field.help),p(1),h("ngIf",!n.expanded),p(1),h("ngIf",n.expanded),p(1),h("ngIf",(null==n.field?null:n.field.value)&&n.field.value.length>0&&n.expanded),p(1),h("ngIf",0==n.field.value.length&&n.expanded))},dependencies:[Ot,rt],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}"]})}const L2e=["linkPicker"];function N2e(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().isEditorVisible=!0)}),B(1,"i",11),m(2," Edit "),d()}}function B2e(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().showSharedContentModal())}),B(1,"i",12),m(2," Shared Content "),d()}}function V2e(i,e){if(1&i){const t=re();c(0,"div",10),P("click",function(){return E(t),I(g().isEditorVisible=!1)}),B(1,"i",13),m(2," Done "),d()}}function $2e(i,e){1&i&&(c(0,"h6"),m(1,"Linked Content - Ready Only"),d())}function H2e(i,e){if(1&i&&(c(0,"div",14),b(1,$2e,2,0,"h6",15),B(2,"div",16),Zt(3,"preformattedHtml"),Zt(4,"async"),Zt(5,"sharedContent"),d()),2&i){const t=g();p(1),h("ngIf",t.field.value&&t.field.value.startsWith("sharedcontentid")),p(1),h("innerHtml",Xt(3,2,Xt(4,4,Xt(5,6,t.field.value))),Gn)}}function U2e(i,e){if(1&i){const t=re();c(0,"div",17),P("click",function(){return E(t),I(g().isEditorVisible=!0)}),c(1,"span",18),B(2,"i",11),m(3," Add "),d()()}}function j2e(i,e){if(1&i){const t=re();c(0,"editor",19),P("ngModelChange",function(r){return E(t),I(g().field.value=r)}),d()}if(2&i){const t=g();h("init",t.getEditorOptions())("ngModel",t.field.value)}}function Y2e(i,e){if(1&i&&(c(0,"option",26),m(1),d()),2&i){const t=e.$implicit;h("value",t),p(1),Ae(t)}}function z2e(i,e){if(1&i){const t=re();c(0,"div",23)(1,"span"),m(2,"Category"),d(),c(3,"select",24),P("ngModelChange",function(r){return E(t),I(g(2).selectedCategory=r)})("change",function(){return E(t),I(g(2).filterByCategory())}),b(4,Y2e,2,2,"option",25),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.selectedCategory),p(1),h("ngForOf",t.categories)}}function W2e(i,e){if(1&i){const t=re();c(0,"div")(1,"div",27)(2,"label",28),m(3,"Name"),d(),c(4,"input",29),P("ngModelChange",function(r){return E(t),I(g(2).linkName=r)}),d()(),c(5,"div",27)(6,"label",28),m(7,"Link"),d(),c(8,"input",30),P("ngModelChange",function(r){return E(t),I(g(2).linkUrl=r)}),d()(),c(9,"div",27)(10,"label",28),m(11,"Open in New Window"),d(),B(12,"br"),c(13,"input",31),P("ngModelChange",function(r){return E(t),I(g(2).openInNewTab=r)}),d()(),c(14,"div",27)(15,"label",28),m(16,"Add Tracking Link"),d(),B(17,"br"),c(18,"input",32),P("ngModelChange",function(r){return E(t),I(g(2).addTrackingLink=r)})("change",function(){return E(t),I(g(2).addTrackingLinkChanged())}),d()(),c(19,"div",33)(20,"button",34),P("click",function(){return E(t),I(g(2).insertLink())}),B(21,"i",35),m(22," Insert Link "),d()()()}if(2&i){const t=g(2);p(4),h("ngModel",t.linkName),p(4),h("ngModel",t.linkUrl),p(5),h("ngModel",t.openInNewTab),p(5),h("ngModel",t.addTrackingLink)}}function q2e(i,e){if(1&i){const t=re();c(0,"li",40)(1,"div",17),P("click",function(){const o=E(t).$implicit;return I(g(4).insertFaqLink(o))}),c(2,"h6"),m(3),d(),B(4,"span",41),d()()}if(2&i){const t=e.$implicit;p(3),Ae(t.name),p(1),h("innerHTML",t.question,Gn)}}function G2e(i,e){1&i&&(c(0,"li"),m(1,"No FAQs found"),d())}function K2e(i,e){if(1&i&&(c(0,"ol",38),b(1,q2e,5,2,"li",39),b(2,G2e,2,0,"li",15),d()),2&i){const t=g(3);p(1),h("ngForOf",t.filtererdFaqs),p(1),h("ngIf",0===t.filtererdFaqs.length)}}function Q2e(i,e){if(1&i){const t=re();c(0,"li",40)(1,"div",17),P("click",function(){const o=E(t).$implicit;return I(g(4).selectGlossary(o))}),c(2,"h6"),m(3),d(),B(4,"span",41),d()()}if(2&i){const t=e.$implicit;p(3),Ae(t.name),p(1),h("innerHTML",t.description,Gn)}}function Z2e(i,e){1&i&&(c(0,"li"),m(1,"No glossaries found"),d())}function X2e(i,e){if(1&i&&(c(0,"ol",38),b(1,Q2e,5,2,"li",39),b(2,Z2e,2,0,"li",15),d()),2&i){const t=g(3);p(1),h("ngForOf",t.filteredGlossaries),p(1),h("ngIf",0===t.filteredGlossaries.length)}}function J2e(i,e){if(1&i){const t=re();c(0,"li",40)(1,"div",17),P("click",function(){const o=E(t).$implicit;return I(g(4).insertGlossaryLink(o))}),c(2,"h6"),m(3),d(),B(4,"span",41),d()()}if(2&i){const t=e.$implicit;p(3),Ae(t.name),p(1),h("innerHTML",t.definition,Gn)}}function exe(i,e){1&i&&(c(0,"li"),m(1,"No terms found"),d())}function txe(i,e){if(1&i&&(c(0,"ol",38),b(1,J2e,5,2,"li",39),b(2,exe,2,0,"li",15),d()),2&i){const t=g(3);p(1),h("ngForOf",t.terms),p(1),h("ngIf",0===t.terms.length)}}function nxe(i,e){if(1&i){const t=re();c(0,"li",40)(1,"div",17),P("click",function(){const o=E(t).$implicit;return I(g(4).insertLandingPageLink(o))}),c(2,"h6"),m(3),d(),B(4,"span",41),d()()}if(2&i){const t=e.$implicit;p(3),Ae(t.name),p(1),h("innerHTML",t.description,Gn)}}function ixe(i,e){1&i&&(c(0,"li"),m(1,"No landing pages found"),d())}function rxe(i,e){if(1&i&&(c(0,"ol",38),b(1,nxe,5,2,"li",39),b(2,ixe,2,0,"li",15),d()),2&i){const t=g(3);p(1),h("ngForOf",t.filteredLandingPages),p(1),h("ngIf",0===t.filteredLandingPages.length)}}function oxe(i,e){if(1&i){const t=re();c(0,"li",40)(1,"div",17),P("click",function(){const o=E(t).$implicit;return I(g(4).insertDownloadLink(o))}),c(2,"h6"),m(3),d(),B(4,"span",41),d()()}if(2&i){const t=e.$implicit;p(3),Ae(t.name),p(1),h("innerHTML",t.description,Gn)}}function axe(i,e){1&i&&(c(0,"li"),m(1,"No downloads found"),d())}function sxe(i,e){if(1&i&&(c(0,"ol",38),b(1,oxe,5,2,"li",39),b(2,axe,2,0,"li",15),d()),2&i){const t=g(3);p(1),h("ngForOf",t.filteredDownloads),p(1),h("ngIf",0===t.filteredDownloads.length)}}function lxe(i,e){if(1&i){const t=re();c(0,"li",40)(1,"div",17),P("click",function(){const o=E(t).$implicit;return I(g(4).insertSiteContentLink(o))}),c(2,"h6"),m(3),d(),B(4,"span",41),d()()}if(2&i){const t=e.$implicit;p(3),Ae(t.name),p(1),h("innerHTML",t.summary,Gn)}}function cxe(i,e){1&i&&(c(0,"li"),m(1,"No site content found"),d())}function dxe(i,e){if(1&i&&(c(0,"ol",38),b(1,lxe,5,2,"li",39),b(2,cxe,2,0,"li",15),d()),2&i){const t=g(3);p(1),h("ngForOf",t.filteredSiteContentItems),p(1),h("ngIf",0===t.filteredSiteContentItems.length)}}function uxe(i,e){if(1&i&&(c(0,"div",36),b(1,K2e,3,2,"ol",37),b(2,X2e,3,2,"ol",37),b(3,txe,3,2,"ol",37),b(4,rxe,3,2,"ol",37),b(5,sxe,3,2,"ol",37),b(6,dxe,3,2,"ol",37),d()),2&i){const t=g(2);p(1),h("ngIf",t.filtererdFaqs&&t.filtererdFaqs.length>0),p(1),h("ngIf",t.filteredGlossaries&&t.filteredGlossaries.length>0&&!t.terms),p(1),h("ngIf",t.terms),p(1),h("ngIf",t.filteredLandingPages),p(1),h("ngIf",t.filteredDownloads&&t.filteredDownloads.length>0),p(1),h("ngIf",t.filteredSiteContentItems&&t.filteredSiteContentItems.length>0)}}function pxe(i,e){if(1&i&&(c(0,"div",20)(1,"h4"),m(2),d(),b(3,z2e,5,2,"div",21),B(4,"hr"),b(5,W2e,23,4,"div",15),b(6,uxe,7,6,"div",22),d()),2&i){const t=g();p(2),Ae(t.linkPickerName),p(1),h("ngIf",t.categories&&t.categories.length>0),p(2),h("ngIf",!t.pickingLink),p(1),h("ngIf",t.pickingLink)}}class Pw extends Gt{modalService;cms;userService;zone;cdr;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(e,t,n,r,o,a,s,l,u){super(),this.modalService=e,this.cms=t,this.userService=n,this.zone=r,this.cdr=o,this.siteContentService=a,this.glossaryService=s,this.businessService=l,this.sanitizer=u}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t);let n=yield t.userService.getCurrentOrg();t.orgNs=n.namespace,t.isEditorVisible=t.field.openByDefault})()}getEditorOptions(){let e=[];if(this.field.tags)for(let t of this.field.tags)e.push({title:t.title,value:t.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:e,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:t=>{this.editor=t,t.ui.registry.addMenuItem("faqItem",{text:"Frequently Asked Question",onAction:()=>{this.zone.run(()=>{this.showLinkPicker("faqs")})}}),t.ui.registry.addMenuItem("glossaryItem",{text:"Glossary Term",onAction:()=>{this.zone.run(()=>{this.showLinkPicker("glossaries")})}}),t.ui.registry.addMenuItem("landingPageItem",{text:"Landing Page",onAction:()=>{this.zone.run(()=>{this.showLinkPicker("landingPages")})}}),t.ui.registry.addMenuItem("downloadableContentItem",{text:"Downloadable Content",onAction:()=>{this.zone.run(()=>{this.showLinkPicker("downloads")})}}),t.ui.registry.addMenuItem("siteContentItem",{text:"Site Content",onAction:()=>{this.zone.run(()=>{this.showLinkPicker("siteContent")})}})},branding:!1}}isStringEmpty(e){return null==e.value||!e.value||0==e.value.length}addLink(e,t){var n=window.location.hostname;n="localhost"==n?n="dev.nuviot.com":n,this.linkName=t,this.baseLinkUrl=`https://${n}${e}`,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(e){this.addLink(`/public/${this.orgNs}/product/${e.key}`,e.name)}insertProductPage(e){this.addLink(`/public/${this.orgNs}/product/${e.key}`,e.name)}insertFaqLink(e){this.addLink(`/public/${this.orgNs}/faq/${e.key}`,e.name)}insertGlossaryLink(e){this.addLink(`/public/${this.orgNs}/glossary/${this.selectedGlossary.key}/term/${e.key}`,e.name)}insertLandingPageLink(e){this.addLink(`/lp/${this.orgNs}/${e.key}`,e.name)}insertDownloadLink(e){this.addLink(`${this.orgNs}/${e.key}/download`,e.name)}insertSiteContentLink(e){this.addLink(`/public/${this.orgNs}/content/${e.categoryId}/${e.key}`,e.name)}showLinkPicker(e){var t=this;return O(function*(){switch(t.faqs=void 0,t.glossaries=void 0,t.landingPages=void 0,t.downloads=void 0,t.terms=void 0,t.siteContentItems=void 0,t.filteredSiteContentItems=void 0,t.filteredDownloads=void 0,t.filteredLandingPages=void 0,t.filtererdFaqs=void 0,t.filteredGlossaries=void 0,t.pickingLink=!0,console.log("showing link picker"),t.currentModal=t.modalService.open(t.linkPickerModal,{size:"lg",beforeDismiss:()=>!0}),console.log("showed link picker"),e){case"faqs":t.faqs=(yield t.cms.getFrequentlyAskedQuestions()).model,t.filtererdFaqs=Object.assign([],t.faqs),t.categories=t.faqs.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),t.categories.sort(),t.linkPickerName="FAQ Picker";break;case"product":t.linkPickerName="Product Picker";break;case"productpage":t.linkPickerName="Product Page Picker";break;case"glossaries":t.glossaries=(yield t.glossaryService.getGlossaries()).model,1==t.glossaries.length?yield t.selectGlossary(t.glossaries[0]):t.filteredGlossaries=Object.assign([],t.glossaries),t.categories=[],t.linkPickerName="Glossary Picker";break;case"landingPages":t.landingPages=(yield t.businessService.getLandingPages()).model,t.filteredLandingPages=Object.assign([],t.landingPages),t.categories=t.landingPages.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),t.categories.sort(),t.linkPickerName="Landing Page Picker",console.log("Landing pages picker set.");break;case"downloads":t.downloads=(yield t.cms.getContentDownloads()).model,t.filteredDownloads=Object.assign([],t.downloads),t.categories=t.downloads.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),t.categories.sort(),t.linkPickerName="Downloadable Content Picker";break;case"siteContent":t.siteContentItems=(yield t.siteContentService.getAllSiteContent()).model,t.filteredSiteContentItems=Object.assign([],t.siteContentItems),t.categories=t.siteContentItems.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),t.categories.sort(),t.linkPickerName="Site Content Picker"}t.linkType=e,t.selectedCategory="All",t.categories.length>0&&(t.categories.unshift("Uncategorized"),t.categories.unshift(t.selectedCategory)),console.log("All Done.")})()}selectGlossary(e){var t=this;return O(function*(){t.selectedGlossary=e;let n=yield t.glossaryService.getGlossary(e.id);t.terms=n.model.definitions,t.terms.sort((r,o)=>r.name.localeCompare(o.name))})()}filterByCategory(){switch(this.linkType){case"faqs":this.filtererdFaqs=this.faqs.filter(e=>e.category===this.selectedCategory||"All"===this.selectedCategory);break;case"landingPages":this.filteredLandingPages=this.landingPages.filter(e=>e.category===this.selectedCategory||"All"===this.selectedCategory);break;case"downloads":this.filteredDownloads=this.downloads.filter(e=>e.category===this.selectedCategory||"All"===this.selectedCategory)}}showSharedContentModal(){this.modalService.open(rf,{size:"lg",beforeDismiss:()=>!0}).componentInstance.field=this.field}aiContentEdit(){const e=this.modalService.open(Gv,{size:"lg",beforeDismiss:()=>!0}).componentInstance;e.sourceContent=this.field.value,e.htmlContent=!0,e.form=this.form,e.request=this.field.aiChatPrompt,e.onApplyContent.subscribe(t=>{this.field.value=t})}transformHTML(e,t){let n="";return t&&t.length>=0&&(n=t),e&&0!==e.length?this.sanitizer.bypassSecurityTrustHtml(e):n}static \u0275fac=function(t){return new(t||Pw)(H(Pn),H(Pc),H(Hn),H($t),H(oi),H(Pa),H(Dc),H(ca),H(Ns))};static \u0275cmp=Oe({type:Pw,selectors:[["app-html-editor"]],viewQuery:function(t,n){if(1&t&&Wt(L2e,5),2&t){let r;ut(r=pt())&&(n.linkPickerModal=r.first)}},inputs:{isEditorVisible:"isEditorVisible"},features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"app-form-field-label",2),P("ai",function(){return n.aiContentEdit()}),d()(),c(3,"div"),b(4,N2e,3,0,"span",3),b(5,B2e,3,0,"span",3),d(),b(6,V2e,3,0,"div",3),d(),b(7,H2e,6,8,"div",4),b(8,U2e,4,0,"div",5),b(9,j2e,1,2,"editor",6),B(10,"app-form-field-validation-section",7),b(11,pxe,7,4,"ng-template",8,9,jr)),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired)("aiButton",!0),p(2),h("ngIf",!n.isEditorVisible&&n.field.value&&n.field.value.length>0),p(1),h("ngIf",n.field.sharedContentKey),p(1),h("ngIf",n.isEditorVisible),p(1),h("ngIf",!n.isEditorVisible&&n.field.value),p(1),h("ngIf",n.isStringEmpty(n.field)&&!n.isEditorVisible),p(1),h("ngIf",n.isEditorVisible),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors))},dependencies:[Mr,Dr,Dn,Ml,pr,en,qt,Ot,rt,Nd,Bn,Vn,k0,Fg,Ed],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 hxe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(3).addChildItem())}),B(1,"i",12),m(2,"Add"),d()}}function gxe(i,e){1&i&&B(0,"i",13),2&i&&mt("data-target",g(3).popupId)}function fxe(i,e){if(1&i){const t=re();c(0,"i",14),P("click",function(){return E(t),I(g(3).expanded=!0)}),d()}}function mxe(i,e){if(1&i){const t=re();c(0,"i",15),P("click",function(){return E(t),I(g(3).expanded=!1)}),d()}}function _xe(i,e){if(1&i&&(c(0,"div"),b(1,hxe,3,0,"span",7),b(2,gxe,1,1,"i",8),b(3,fxe,1,0,"i",9),b(4,mxe,1,0,"i",10),d()),2&i){const t=g(2);p(1),h("ngIf",t.field.allowAddChild&&t.field.canAddRows),p(1),h("ngIf",t.field.help),p(1),h("ngIf",!t.expanded),p(1),h("ngIf",t.expanded)}}function vxe(i,e){if(1&i&&(c(0,"div",5)(1,"div",6)(2,"label"),m(3),d()(),b(4,_xe,5,4,"div",2),d()),2&i){const t=g();p(3),dr(" ",t.field.label," (",t.field.value.length,")"),p(1),h("ngIf",!t.editForm)}}function yxe(i,e){if(1&i&&(c(0,"td",6),m(1),d()),2&i){const t=e.$implicit;p(1),$e(" ",t," ")}}function bxe(i,e){if(1&i){const t=re();c(0,"i",25),P("click",function(r){E(t);const o=g().$implicit;return g(2).removeClick(o),I(r.stopPropagation())}),d()}}function Cxe(i,e){1&i&&(c(0,"i",26),m(1,"\xa0\xa0\xa0\xa0"),d())}function wxe(i,e){if(1&i){const t=re();c(0,"i",27),P("click",function(r){E(t);const o=g().$implicit;return g(2).moveDown(o),I(r.stopPropagation())}),d()}}function xxe(i,e){if(1&i){const t=re();c(0,"i",28),P("click",function(r){E(t);const o=g().$implicit;return g(2).moveUp(o),I(r.stopPropagation())}),d()}}function kxe(i,e){if(1&i){const t=re();c(0,"tr",18),P("click",function(){const o=E(t).$implicit;return I(g(2).selected(o))}),b(1,yxe,2,1,"td",19),c(2,"td",20),b(3,bxe,1,0,"i",21),b(4,Cxe,2,0,"i",22),b(5,wxe,1,0,"i",23),b(6,xxe,1,0,"i",24),d()()}if(2&i){const t=e.$implicit,n=e.index,r=g(2);h("title",r.getItemKey(t,"key: ")),p(1),h("ngForOf",r.getDisplayValues(t,r.field)),p(2),h("ngIf",r.showRemove&&r.field.allowAddChild&&r.field.canAddRows),p(1),h("ngIf",r.field.value.length==n+1),p(1),h("ngIf",n0)}}function Mxe(i,e){if(1&i&&(c(0,"div")(1,"table",16),b(2,kxe,7,6,"tr",17),d()()),2&i){const t=g();p(2),h("ngForOf",t.field.value)}}function Dxe(i,e){if(1&i){const t=re();c(0,"div",29)(1,"app-form",30),P("propertyChanged",function(r){return E(t),I(g().childFormPropertyChanged(r))})("cancel",function(){return E(t),I(g().editForm=void 0)})("saved",function(){return E(t),I(g().childSaved())}),d()()}if(2&i){const t=g();p(1),h("autoSave",!0)("inPlaceEditing",!0)("form",t.editForm)("isChildForm",!0)}}class Fw extends Gt{nuviotClient;modalComponent;showRemove=!0;expanded;editForm;ngOnInit(){super.ngOnInit(),this.expanded=this.field.openByDefault}constructor(e,t){super(),this.nuviotClient=e,this.modalComponent=t}addChildItem(){var e=this;return O(function*(){if(!e.field.saveBeforeRaisingEvent||(yield e.host.saveForm(!1)))if("ChildListInlinePicker"===e.field.fieldType&&e.field.entityHeaderPickerUrl){const t=e.modalComponent.open(ct,{size:"lg"}).componentInstance;t.pickerType=e.field.name,t.entityHeaderPickerUrl=e.field.entityHeaderPickerUrl,t.title=`Select ${e.field.label}`,t.model=e.model,t.view=e.view,t.itemSelected.subscribe(n=>{e.field.value||(e.field.value=[]),e.field.value.find(o=>o.id===n.id)?alert("Your selected item is already included and can not be added twice."):(e.field.value.push(n),e.isDirty=!0,e.field.isDirty=!0,e.field.propertyChanged?.(e.field))})}else if("ChildListInlinePicker"===e.field.fieldType&&e.field.pickerFor){const t=e.modalComponent.open(Fv,{size:"lg"}).componentInstance;t.pickerFor=e.field.pickerFor,t.title=`Select ${e.field.label}`,t.model=e.model,t.view=e.view,t.itemsSelected.subscribe(n=>{for(let r of n){let o=!1;e.field.value||(e.field.value=[]),e.field.value.find(s=>s.id===r.id)?alert("Your selected item is already included and can not be added twice."):(e.field.value.push(r),o=!0,e.isDirty=!0,e.field.isDirty=!0,e.field.propertyChanged?.(e.field))}})}else if(e.field.factoryUrl){let t=e.field.factoryUrl.replace("{id}",e.model.id),n=yield e.nuviotClient.getFormResponse(t);n.autoSave=!1,n.parent=e.form,n.formInlineFields&&(n.formFields=n.formInlineFields,n.formFieldsCol2=void 0),e.field.childFormAdded?.(n),e.field.addChildItem?e.field.addChildItem(n):e.field.inPlaceEditing&&(e.editForm=n)}else e.field.addChildItem?.({resultId:"childitem",successful:!0,model:{},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,isEditing:!1,parent:e.form})})()}childFormPropertyChanged(e){console.log("child form property changed",e),this.isDirty=!0,this.field.isDirty=!0,this.field.propertyChanged?.(this.field)}getItemKey(e,t){return t?`${t}${e.key}`:e.key}moveUp(e){if(this.field.value){let t=this.field.value.indexOf(e);t>0&&(this.field.value[t]=this.field.value[t-1],this.field.value[t-1]=e,this.field.isDirty=!0,this.field.propertyChanged?.(this.field))}}moveDown(e){if(this.field.value){let t=this.field.value.indexOf(e);t${e.name??e.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=O(function*(o){if(o){let a=t.field.value.indexOf(e);a>=0&&(t.isDirty=!0,t.field.isDirty=!0,t.field.value.splice(a,1),t.field.propertyChanged?.(t.field),t.field.childItemRemoved?.(t.form))}});return function(o){return r.apply(this,arguments)}}())}childSaved(){if(this.editForm.isEditing)this.field.value.find(t=>t.id===this.editForm.model.id).name=this.editForm.model.name;else if(this.field.isReferenceField){let e=this.editForm.model;this.field.value.push({id:e.id,text:e.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(e){var t=this;return O(function*(){if(t.field.getUrl&&t.field.isReferenceField){let n=t.field.getUrl.replace("{id}",e.id);const r=yield t.nuviotClient.getFormResponse(n);if(t.field.childItemSelected){if(t.field.saveBeforeRaisingEvent&&!(yield t.host.saveForm(!1)))return;t.field.childItemSelected(r,e)}else t.field.inPlaceEditing&&(r.formInlineFields&&(r.formFields=r.formInlineFields,r.formFieldsCol2=void 0),t.editForm=r)}else if(t.field.factoryUrl){let n=t.field.factoryUrl.replace("{id}",t.model.id);const r=yield t.nuviotClient.getFormResponse(n);if(r.model=e,r.parent=t.form,r.isEditing=!0,t.field.childFormEditing?.(r),t.field.childItemSelected){if(t.field.saveBeforeRaisingEvent&&!(yield t.host.saveForm(!1)))return;t.field.childItemSelected?.(r,e)}else t.field.inPlaceEditing&&console.log(`settting edit form for ${r.modelName}`),t.editForm=r}else t.field?.childItemSelected&&t.field.childItemSelected({resultId:"childitem",successful:!0,model:e,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,parent:t.form,isEditing:!0},e)})()}getDisplayValues(e,t){if(t.childItemName)return[e[t.childItemName]];if(t.childListDisplayMembers){let n=[],r=t.childListDisplayMembers;for(let o of r){let a=o.split(".");if(e){let s=e;for(let l of a)l=l.trim(),s&&("Text"==l&&(l="text"),s=s[l]);n.push(s)}}return n}if(t.childListDisplayMember){let n=t.childListDisplayMember.split(".");for(let r of n)if(!(e=e[r]))return["-"];return[e]}return[e.name??e.text]}static \u0275fac=function(t){return new(t||Fw)(H(hn),H(Pn))};static \u0275cmp=Oe({type:Fw,selectors:[["app-child-list-inline"]],features:[it],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(t,n){1&t&&(c(0,"div",0),b(1,vxe,5,3,"div",1),b(2,Mxe,3,1,"div",2),b(3,Dxe,2,4,"div",3),d(),B(4,"app-form-field-help",4)),2&t&&(p(1),h("ngIf",!n.editForm),p(1),h("ngIf",(null==n.field?null:n.field.value)&&!n.editForm&&n.expanded),p(1),h("ngIf",n.editForm),p(1),h("field",n.field))},dependencies:[Ot,rt,Nn,Ol],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 Txe(i,e){if(1&i){const t=re();c(0,"input",8),P("ngModelChange",function(r){return E(t),I(g().field.value=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d()}if(2&i){const t=g();cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.field.value)("type",t.inputType)("disabled",!t.field.isUserEditable)}}function Sxe(i,e){if(1&i){const t=re();c(0,"textarea",9),P("ngModelChange",function(r){return E(t),I(g().field.value=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),m(1," "),d()}if(2&i){const t=g();cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.field.value)("disabled",!t.field.isUserEditable)}}function Exe(i,e){if(1&i){const t=re();c(0,"span",10)(1,"i",11),P("click",function(r){return E(t),g().showSecret(),I(r.stopPropagation())}),d()()}}function Ixe(i,e){if(1&i){const t=re();c(0,"span",10)(1,"i",12),P("click",function(r){return E(t),g().copySecret(),I(r.stopPropagation())}),d()()}}function Axe(i,e){1&i&&(c(0,"span",13),B(1,"i",14),d()),2&i&&mt("data-target",g().popupId)}class Rw extends Gt{deploymentService;constructor(e){super(),this.deploymentService=e}copyToClipboard(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);const n=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}ngOnInit(){super.ngOnInit()}showSecret(){var e=this;return O(function*(){let t=yield e.deploymentService.GetSecret(e.model[e.field.secureIdFieldName]);t.successful&&(e.field.value=t.result)})()}copySecret(){var e=this;return O(function*(){let t=yield e.deploymentService.GetSecret(e.model[e.field.secureIdFieldName]);t.successful&&(e.copyToClipboard(t.result),alert("Copied to clipboard"))})()}static \u0275fac=function(t){return new(t||Rw)(H(_p))};static \u0275cmp=Oe({type:Rw,selectors:[["app-password-field"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1),b(2,Txe,1,8,"input",2),b(3,Sxe,2,7,"textarea",3),b(4,Exe,2,0,"span",4),b(5,Ixe,2,0,"span",4),b(6,Axe,2,1,"span",5),d(),B(7,"app-form-field-validation-section",6)(8,"app-form-field-help",7)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),h("ngIf","Secret"==n.field.fieldType||"Password"==n.field.fieldType),p(1),h("ngIf","SecureCertificate"==n.field.fieldType),p(1),h("ngIf",n.model[n.field.secureIdFieldName]),p(1),h("ngIf",n.field.value),p(1),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,rt,Nn,Bn,Vn]})}function Pxe(i,e){1&i&&B(0,"i",7),2&i&&mt("data-target",g().popupId)}function Fxe(i,e){if(1&i){const t=re();c(0,"i",8),P("click",function(){return E(t),I(g().expanded=!0)}),d()}}function Rxe(i,e){if(1&i){const t=re();c(0,"i",9),P("click",function(){return E(t),I(g().expanded=!1)}),d()}}function Oxe(i,e){1&i&&(c(0,"i",16),m(1,"\xa0\xa0\xa0\xa0"),d())}function Lxe(i,e){if(1&i){const t=re();c(0,"i",17),P("click",function(r){E(t);const o=g().$implicit;return g(2).moveDown(o),I(r.stopPropagation())}),d()}}function Nxe(i,e){if(1&i){const t=re();c(0,"i",18),P("click",function(r){E(t);const o=g().$implicit;return g(2).moveUp(o),I(r.stopPropagation())}),d()}}function Bxe(i,e){if(1&i){const t=re();c(0,"li",11),m(1),c(2,"i",12),P("click",function(r){const a=E(t).$implicit;return g(2).removeClick(a),I(r.stopPropagation())}),d(),b(3,Oxe,2,0,"i",13),b(4,Lxe,1,0,"i",14),b(5,Nxe,1,0,"i",15),d()}if(2&i){const t=e.$implicit,n=e.index,r=g(2);h("title",r.getItemKey(t,"key: ")),p(1),$e(" ",t.text," "),p(2),h("ngIf",r.field.value.length==n+1),p(1),h("ngIf",n0)}}function Vxe(i,e){if(1&i&&(c(0,"div")(1,"ol"),b(2,Bxe,6,5,"li",10),d()()),2&i){const t=g();p(2),h("ngForOf",t.field.value)}}class Ow extends Gt{modalService;modalComponent;expanded=!1;constructor(e,t){super(),this.modalService=e,this.modalComponent=t}ngOnInit(){null==this.field.value&&(this.field.value=[])}selected(){this.field?.childListMenuSelected&&this.field.childListMenuSelected(this.field)}addProduct(){const e=this.modalService.open(ct,{size:"lg"}).componentInstance;e.pickerType="product",e.entityHeaderPickerUrl=this.field.entityHeaderPickerUrl,e.factoryUrl=this.field.factoryUrl,e.title=`Select ${this.field.label}`,e.model=this.model,e.view=this.view,e.itemSelected.subscribe(t=>{null==this.field.value&&(this.field.value=[]),this.field.value.push(t)})}getItemKey(e,t){return t?`${t}${e.key}`:e.key}moveUp(e){if(this.field.value){let t=this.field.value.indexOf(e);t>0&&(this.field.value[t]=this.field.value[t-1],this.field.value[t-1]=e)}}moveDown(e){if(this.field.value){let t=this.field.value.indexOf(e);t${e.name??e.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=O(function*(o){if(o){let a=t.field.value.indexOf(e);a>=0&&(t.field.value.splice(a,1),t.field.propertyChanged&&t.field.propertyChanged(t.field))}});return function(o){return r.apply(this,arguments)}}())}static \u0275fac=function(t){return new(t||Ow)(H(Pn),H(Pn))};static \u0275cmp=Oe({type:Ow,selectors:[["app-product-picker-list"]],features:[it],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(t,n){1&t&&(c(0,"div")(1,"div",0)(2,"div",1)(3,"label"),m(4),d()(),c(5,"div")(6,"i",2),P("click",function(){return n.addProduct()}),d(),b(7,Pxe,1,1,"i",3),b(8,Fxe,1,0,"i",4),b(9,Rxe,1,0,"i",5),d()(),b(10,Vxe,3,1,"div",6),d()),2&t&&(p(4),dr(" ",n.field.label," (",n.field.value.length,")"),p(3),h("ngIf",n.field.help),p(1),h("ngIf",!n.expanded),p(1),h("ngIf",n.expanded),p(1),h("ngIf",(null==n.field?null:n.field.value)&&n.expanded))},dependencies:[Ot,rt],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 aI(i,e,t){for(let n in e)if(e.hasOwnProperty(n)){const r=e[n];r?i.setProperty(n,r,t?.has(n)?"important":""):i.removeProperty(n)}return i}function af(i,e){const t=e?"":"none";aI(i.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function A7(i,e,t){aI(i.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function Lw(i,e){return e&&"none"!=e?i+" "+e:i}function P7(i){const e=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*e}function sI(i,e){return i.getPropertyValue(e).split(",").map(n=>n.trim())}function lI(i){const e=i.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function cI(i,e,t){const{top:n,bottom:r,left:o,right:a}=i;return t>=n&&t<=r&&e>=o&&e<=a}function Zv(i,e,t){i.top+=e,i.bottom=i.top+i.height,i.left+=t,i.right=i.left+i.width}function F7(i,e,t,n){const{top:r,right:o,bottom:a,left:s,width:l,height:u}=i,f=l*e,v=u*e;return n>r-v&&ns-f&&t{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:lI(t)})})}handleScroll(e){const t=zs(e),n=this.positions.get(t);if(!n)return null;const r=n.scrollPosition;let o,a;if(t===this._document){const u=this.getViewportScrollPosition();o=u.top,a=u.left}else o=t.scrollTop,a=t.scrollLeft;const s=r.top-o,l=r.left-a;return this.positions.forEach((u,f)=>{u.clientRect&&t!==f&&t.contains(f)&&Zv(u.clientRect,s,l)}),r.top=o,r.left=a,{top:s,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function O7(i){const e=i.cloneNode(!0),t=e.querySelectorAll("[id]"),n=i.nodeName.toLowerCase();e.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 A=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),W=this._dropContainer;if(!A)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 u=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(u),this._dropContainer)this._updateActiveDropContainer(u,l);else{const f=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,v=this._activeTransform;v.x=u.x-f.x+this._passiveTransform.x,v.y=u.y-f.y+this._passiveTransform.y,this._applyRootElementTransform(v.x,v.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:u,event:s,distance:this._getDragDistance(u),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(e).withParent(t.parentDragRef||null),this._parentPositions=new R7(n),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=Mi(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(n=>af(n,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(n=>vr(n)),this._handles.forEach(n=>af(n,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&t.add(n)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=vr(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,Nw),t.addEventListener("touchstart",this._pointerDown,V7),t.addEventListener("dragstart",this._nativeDragStart,Nw)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?vr(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,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(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),af(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),af(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_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(e){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:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){Xv(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){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(),A7(n,!1,dI),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:e}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const n=this.isDragging(),r=Xv(t),o=!r&&0!==t.button,a=this._rootElement,s=zs(t),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),u=r?Kb(t):Gb(t);if(s&&s.draggable&&"mousedown"===t.type&&t.preventDefault(),n||o||l||u)return;if(this._handles.length){const D=a.style;this._rootElementTapHighlight=D.webkitTapHighlightColor||"",D.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(D=>this._updateOnScroll(D)),this._boundaryElement&&(this._boundaryRect=lI(this._boundaryElement));const f=this._previewTemplate;this._pickupPositionInElement=f&&f.template&&!f.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,t);const v=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:v.x,y:v.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){A7(this._rootElement,!0,dI),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 t=this._dropContainer,n=t.getItemIndex(this),r=this._getPointerPositionOnPage(e),o=this._getDragDistance(r),a=t._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:e}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:e}),t.drop(this,n,this._initialIndex,this._initialContainer,a,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(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,e,t,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,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,n=e?e.template:null;let r;if(n&&e){const o=e.matchSize?this._initialClientRect:null,a=e.viewContainer.createEmbeddedView(n,e.context);a.detectChanges(),r=H7(a,this._document),this._previewRef=a,e.matchSize?U7(r,o):r.style.transform=Bw(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=O7(this._rootElement),U7(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return aI(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},dI),af(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(o=>r.classList.add(o)):r.classList.add(t)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function Hxe(i){const e=getComputedStyle(i),t=sI(e,"transition-property"),n=t.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=t.indexOf(n),o=sI(e,"transition-duration"),a=sI(e,"transition-delay");return P7(o[r])+P7(a[r])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||zs(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*t);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=H7(this._placeholderRef,this._document)):n=O7(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t,n){const r=t===this._rootElement?null:t,o=r?r.getBoundingClientRect():e,a=Xv(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition();return{x:o.left-e.left+(a.pageX-o.left-s.left),y:o.top-e.top+(a.pageY-o.top-s.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),n=Xv(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,r=n.pageX-t.left,o=n.pageY-t.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(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,s=this._boundaryRect,{width:l,height:u}=this._getPreviewRect(),f=s.top+a,v=s.bottom-(u-a);n=$7(n,s.left+o,s.right-(l-o)),r=$7(r,f,v)}return{x:n,y:r}}_updatePointerDirectionDelta(e){const{x:t,y:n}=e,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-o.x),s=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=t>o.x?1:-1,o.x=t),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,af(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,Nw),e.removeEventListener("touchstart",this._pointerDown,V7),e.removeEventListener("dragstart",this._nativeDragStart,Nw)}_applyRootElementTransform(e,t){const n=Bw(e,t),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Lw(n,this._initialTransform)}_applyPreviewTransform(e,t){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=Bw(e,t);this._preview.style.transform=Lw(r,n)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||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&&(e+=o),a>0&&(e-=a)):e=0,r.height>n.height?(s>0&&(t+=s),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:Xv(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const n=zs(e);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&Zv(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.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=iE(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){const r=this._document;return t||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return vr(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}}function Bw(i,e){return`translate3d(${Math.round(i)}px, ${Math.round(e)}px, 0)`}function $7(i,e,t){return Math.max(e,Math.min(t,i))}function Xv(i){return"t"===i.type[0]}function H7(i,e){const t=i.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const n=e.createElement("div");return t.forEach(r=>n.appendChild(r)),n}function U7(i,e){i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.transform=Bw(e.left,e.top)}function uI(i,e,t){const n=Jv(e,i.length-1),r=Jv(t,i.length-1);if(n===r)return;const o=i[n],a=r0)return null;const s="horizontal"===this.orientation,l=o.findIndex(pe=>pe.drag===e),u=o[a],v=u.clientRect,D=l>a?1:-1,A=this._getItemOffsetPx(o[l].clientRect,v,D),W=this._getSiblingOffsetPx(l,o,D),J=o.slice();return uI(o,l,a),o.forEach((pe,fe)=>{if(J[fe]===pe)return;const ye=pe.drag===e,we=ye?A:W,Te=ye?e.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=we,s?(Te.style.transform=Lw(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),Zv(pe.clientRect,0,we)):(Te.style.transform=Lw(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),Zv(pe.clientRect,we,0))}),this._previousSwap.overlaps=cI(v,t,n),this._previousSwap.drag=u.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:l,currentIndex:a}}enter(e,t,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(e,t,n):r,a=this._activeDraggables,s=a.indexOf(e),l=e.getPlaceholderElement();let u=a[o];if(u===e&&(u=a[o+1]),!u&&(null==o||-1===o||o-1&&a.splice(s,1),u&&!this._dragDropRegistry.isDragging(u)){const f=u.getRootElement();f.parentElement.insertBefore(l,f),a.splice(o,0,e)}else vr(this._element).appendChild(l),a.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{const t=e.getRootElement();if(t){const n=this._itemPositions.find(r=>r.drag===e)?.initialTransform;t.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:n})=>{Zv(n,e,t)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(t=>{const n=t.getVisibleElement();return{drag:t,offset:0,initialTransform:n.style.transform||"",clientRect:lI(n)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_getItemOffsetPx(e,t,n){const r="horizontal"===this.orientation;let o=r?t.left-e.left:t.top-e.top;return-1===n&&(o+=r?t.width-e.width:t.height-e.height),o}_getSiblingOffsetPx(e,t,n){const r="horizontal"===this.orientation,o=t[e].clientRect,a=t[e+-1*n];let s=o[r?"width":"height"]*n;if(a){const l=r?"left":"top",u=r?"right":"bottom";-1===n?s-=a.clientRect[l]-o[u]:s+=o[l]-a.clientRect[u]}return s}_shouldEnterAsFirstChild(e,t){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?e>=a.right:t>=a.bottom}{const a=n[0].clientRect;return r?e<=a.left:t<=a.top}}_getItemIndexFromPointerPosition(e,t,n,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:s,clientRect:l})=>{if(s===e)return!1;if(r){const u=o?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&u===this._previousSwap.delta)return!1}return o?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.sorted=new Ce,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=x.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ce,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function $xe(i=0,e=b_){return i<0&&(i=0),Ku(i,i,e)}(0,S6).pipe(Lt(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=vr(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new R7(n),this._sortStrategy=new zxe(this.element,t),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(e,t,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,r,o,a,s,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:s,event:l})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(t.filter(r=>r.isDragging()).every(r=>-1===e.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){const t=vr(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,r){if(this.sortingDisabled||!this._clientRect||!F7(this._clientRect,.05,t,n))return;const o=this._sortStrategy.sort(e,t,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||F7(a.clientRect,.05,e,t)&&([r,o]=function qxe(i,e,t,n){const r=z7(e,n),o=W7(e,t);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,e,t),(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=z7(l,t),o=W7(l,e),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 e=vr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=vr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;const e=vr(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,t){return null!=this._clientRect&&cI(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(r=>r._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._clientRect||!cI(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;const r=this._getShadowRoot().elementFromPoint(t,n);if(!r)return!1;const o=vr(this.element);return r===o||o.contains(r)}_startReceiving(e,t){const n=this._activeSiblings;!n.has(e)&&t.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=iE(vr(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function z7(i,e){const{top:t,bottom:n,height:r}=i,o=.05*r;return e>=t-o&&e<=t+o?1:e>=n-o&&e<=n+o?2:0}function W7(i,e){const{left:t,right:n,width:r}=i,o=.05*r;return e>=t-o&&e<=t+o?1:e>=n-o&&e<=n+o?2:0}const Vw=Sc({passive:!1,capture:!0});let Gxe=(()=>{class i{constructor(t,n){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ce,this.pointerUp=new Ce,this.scroll=new Ce,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(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Vw)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Vw)}startDragging(t,n){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),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:Vw}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Vw}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(t){const n=this._activeDragInstances.indexOf(t);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const n=[this.scroll];return t&&t!==this._document&&n.push(new S(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return t.addEventListener("scroll",a,!0),()=>{t.removeEventListener("scroll",a,!0)}}))),Qr(...n)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,n)=>{this._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(t){return new(t||i)(Me($t),Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Kxe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let pI=(()=>{class i{constructor(t,n,r,o){this._document=t,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(t,n=Kxe){return new Yxe(t,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new Wxe(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt),Me($t),Me(Ig),Me(Gxe))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const hI=new Xe("CDK_DRAG_PARENT"),q7=new Xe("CdkDropListGroup"),G7=new Xe("CDK_DRAG_CONFIG");let Qxe=0;const K7=new Xe("CdkDropList");let Q7=(()=>{class i{constructor(t,n,r,o,a,s,l){this.element=t,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new Ce,this.connectedTo=[],this.id="cdk-drop-list-"+Qxe++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ie,this.entered=new Ie,this.exited=new Ie,this.sorted=new Ie,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(u,f)=>this.enterPredicate(u.data,f.data),this._dropListRef.sortPredicate=(u,f,v)=>this.sortPredicate(u,f.data,v.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(t){this._dropListRef.disabled=this._disabled=Mi(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,n)=>t._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=i._dropLists.indexOf(this);t>-1&&i._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(rr(this._dir.value),Lt(this._destroyed)).subscribe(n=>t.withDirection(n)),t.beforeStarted.subscribe(()=>{const n=H_(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}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=Mi(this.sortingDisabled),t.autoScrollDisabled=Mi(this.autoScrollDisabled),t.autoScrollStep=pp(this.autoScrollStep,2),t.connectedTo(n.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),t.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),t.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(t){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=t;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(t=>t._dragRef))}}return i._dropLists=[],i.\u0275fac=function(t){return new(t||i)(H(At),H(pI),H(oi),H(A6),H(Do,8),H(q7,12),H(G7,8))},i.\u0275dir=ot({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,n){2&t&&(mt("id",n.id),St("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:[On([{provide:q7,useValue:void 0},{provide:K7,useExisting:i}])]}),i})();const gI=new Xe("CdkDragHandle");let Zxe=(()=>{class i{constructor(t,n){this.element=t,this._stateChanges=new Ce,this._disabled=!1,this._parentDrag=n}get disabled(){return this._disabled}set disabled(t){this._disabled=Mi(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(hI,12))},i.\u0275dir=ot({type:i,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[On([{provide:gI,useExisting:i}])]}),i})();const Xxe=new Xe("CdkDragPlaceholder"),Jxe=new Xe("CdkDragPreview");let fI=(()=>{class i{constructor(t,n,r,o,a,s,l,u,f,v,D){this.element=t,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=f,this._selfHandle=v,this._parentDrag=D,this._destroyed=new Ce,this.started=new Ie,this.released=new Ie,this.ended=new Ie,this.entered=new Ie,this.exited=new Ie,this.dropped=new Ie,this.moved=new S(A=>{const W=this._dragRef.moved.pipe(Ve(J=>({source:this,pointerPosition:J.pointerPosition,event:J.event,delta:J.delta,distance:J.distance}))).subscribe(A);return()=>{W.unsubscribe()}}),this._dragRef=u.createDrag(t,{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(t){this._disabled=Mi(t),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(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xn(1),Lt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){const n=t.rootElementSelector,r=t.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=i._dragInstances.indexOf(this);t>-1&&i._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const t=this.element.nativeElement;let n=t;this.rootElementSelector&&(n=void 0!==t.closest?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):vr(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.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;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof r&&r?r:pp(r),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&t.withDirection(n.value)}}),t.beforeStarted.pipe(Xn(1)).subscribe(()=>{if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){t.withParent(i._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(t){t.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),t.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),t.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),t.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(t){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:l,rootElementSelector:u,previewContainer:f}=t;this.disabled=l??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),u&&(this.rootElementSelector=u),f&&(this.previewContainer=f)}_setupHandlesListener(){this._handles.changes.pipe(rr(this._handles),ir(t=>{const n=t.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),to(t=>Qr(...t.map(n=>n._stateChanges.pipe(rr(n))))),Lt(this._destroyed)).subscribe(t=>{const n=this._dragRef,r=t.element.nativeElement;t.disabled?n.disableHandle(r):n.enableHandle(r)})}}return i._dragInstances=[],i.\u0275fac=function(t){return new(t||i)(H(At),H(K7,12),H(Jt),H($t),H(Sr),H(G7,8),H(Do,8),H(pI),H(oi),H(gI,10),H(hI,12))},i.\u0275dir=ot({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(t,n,r){if(1&t&&(An(r,Jxe,5),An(r,Xxe,5),An(r,gI,5)),2&t){let o;ut(o=pt())&&(n._previewTemplate=o.first),ut(o=pt())&&(n._placeholderTemplate=o.first),ut(o=pt())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,n){2&t&&St("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:[On([{provide:hI,useExisting:i}]),li]}),i})(),Z7=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[pI],imports:[gp]}),i})();function tke(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(3).cancelClick())}),B(1,"i",12),m(2," Cancel "),d()}}function nke(i,e){if(1&i){const t=re();c(0,"span",13),P("click",function(){return E(t),I(g(3).addClick())}),B(1,"i",14),m(2," Add"),d()}}function ike(i,e){if(1&i&&(c(0,"div",6)(1,"label",7),m(2),d(),c(3,"div",8),b(4,tke,3,0,"span",9),b(5,nke,3,0,"span",10),d()()),2&i){const t=g(2);p(2),Ae(t.title),p(2),h("ngIf",t.showCancel),p(1),h("ngIf",t.showAdd)}}function rke(i,e){if(1&i){const t=re();c(0,"i",20),P("click",function(r){E(t);const o=g().$implicit;return g(2).removeClick(o),I(r.stopPropagation())}),d()}}function oke(i,e){if(1&i){const t=re();c(0,"li",15),P("click",function(){const o=E(t).$implicit;return I(g(2).editClick(o))}),c(1,"div",16),m(2),d(),c(3,"div",17),B(4,"i",18),b(5,rke,1,0,"i",19),d()()}if(2&i){const t=e.$implicit,n=g(2);p(2),$e(" ",n.getDisplayValue(t)," "),p(3),h("ngIf",n.showRemove)}}const ake=function(i){return{"height.px":i}};function ske(i,e){if(1&i){const t=re();c(0,"div",1),b(1,ike,6,3,"div",2),c(2,"div",3),P("cdkDropListDropped",function(r){return E(t),I(g().drop(r))}),c(3,"ol",4),b(4,oke,6,2,"li",5),d()()()}if(2&i){const t=g();p(1),h("ngIf",t.title||t.showAdd||t.showCancel),p(1),h("ngStyle",bt(3,ake,t.getHeight())),p(2),h("ngForOf",t.items)}}class ey{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(e){this.items=e.model}add=new Ie;cancel=new Ie;selected=new Ie;remove=new Ie;reordered=new Ie;getHeight(){return this.autoGrow?this.fixedHeight??window.innerHeight-(this.topMargin+200):void 0}ngOnInit(){this.resizeObservable$=_n(window,"resize"),this.resizeSubscription$=this.resizeObservable$.subscribe(e=>{e&&(this.listHeight=window.innerHeight-(this.topMargin+200))})}addClick(){this.add.emit()}editClick(e){this.selected.emit(e)}cancelClick(){this.cancel.emit()}getDisplayValue(e){var t="",n=this.displayMemberName.split(",");for(let r of n)r=r.trim(),e[r]&&(t+=e[r]+" ");return t.trim()}removeClick(e){this.remove&&this.remove.emit(e),this.items.splice(this.items.indexOf(e),1),console.log(this.items,e)}showAddTip(e){}moveUpClick(e){let t=this.items.indexOf(e);if(t>0){let n=this.items[t-1];this.items[t]=n,this.items[t-1]=e,this.reordered.emit({element1:e,element2:n,movedUp:!0})}}moveDownClick(e){let t=this.items.indexOf(e);if(t{this.field.value={id:t.id,text:t.name},this.field.display=t.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(t){return new(t||Hw)(H(Pn))};static \u0275cmp=Oe({type:Hw,selectors:[["app-user-picker-field"]],features:[it],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(t,n){1&t&&(b(0,gke,5,5,"div",0),B(1,"app-form-field-validation-section",1)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors))},dependencies:[Vi,rt,Bn,Vn],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 Uw extends Gt{constructor(){super()}ngOnInit(){super.ngOnInit()}showWebPage(){this.field.value&&window.open(this.field.value)}static \u0275fac=function(t){return new(t||Uw)};static \u0275cmp=Oe({type:Uw,selectors:[["app-web-link-field"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"input",2),P("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)}),d(),c(3,"span",3),P("click",function(o){return n.showWebPage(),o.stopPropagation()}),B(4,"i",4),d()(),B(5,"app-form-field-validation-section",5)(6,"app-form-field-help",6)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),_t("placeholder",n.field.watermark),h("ngModel",n.field.value)("type",n.inputType)("disabled",!n.field.isUserEditable),p(3),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,Nn,Bn,Vn]})}class jw extends Gt{constructor(){super()}selected(){this.field?.actionClick&&this.field.actionClick(this.field)}static \u0275fac=function(t){return new(t||jw)};static \u0275cmp=Oe({type:jw,selectors:[["app-action-field"]],features:[it],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(t,n){1&t&&(c(0,"div",0),P("click",function(){return n.selected()}),c(1,"div",1)(2,"label",2),m(3),d(),B(4,"hr"),d(),c(5,"div"),B(6,"i",3),d()()),2&t&&(p(3),Ae(n.field.label))}})}function fke(i,e){if(1&i){const t=re();c(0,"div")(1,"div",11)(2,"input",12),P("ngModelChange",function(r){return I(E(t).$implicit.name=r)}),d(),c(3,"label",13),m(4),d(),c(5,"div",4)(6,"span",14),P("click",function(){const o=E(t).$implicit;return I(g(2).updateCategory(o))}),B(7,"i",15),d()()()()}if(2&i){const t=e.$implicit;p(2),h("ngModel",t.name),p(2),Ae(t.key)}}function mke(i,e){if(1&i){const t=re();c(0,"div")(1,"div",4)(2,"span",5),P("click",function(){return E(t),I(g(2).saveNewCategory())}),B(3,"i",16),m(4," Save"),d(),c(5,"span",5),P("click",function(){return E(t),I(g(2).newCategory=void 0)}),B(6,"i",17),m(7," Cancel"),d()(),c(8,"div",18)(9,"label"),m(10,"Name "),c(11,"span",19),m(12,"*"),d()(),c(13,"input",20),P("ngModelChange",function(r){return E(t),I(g(2).newCategory.name=r)}),d()(),c(14,"div",18)(15,"label"),m(16,"Key "),c(17,"span",19),m(18,"*"),d()(),c(19,"input",20),P("ngModelChange",function(r){return E(t),I(g(2).newCategory.key=r)}),d()()()}if(2&i){const t=g(2);p(13),h("ngModel",t.newCategory.name),p(6),h("ngModel",t.newCategory.key)}}function _ke(i,e){if(1&i){const t=re();c(0,"div",1)(1,"h4"),m(2),c(3,"span",2),P("click",function(){return E(t),I(g().closeModal())}),B(4,"i",3),d()(),c(5,"div",4)(6,"span",5),P("click",function(){return E(t),I(g().addNewCategory())}),B(7,"i",6),m(8," Add New Category"),d()(),c(9,"div",7)(10,"label",8),m(11,"Name"),d(),c(12,"label"),m(13,"Key"),d()(),b(14,fke,8,2,"div",9),b(15,mke,20,2,"div",10),d()}if(2&i){const t=g();p(2),$e(" Categories For: ",t.categoryName," "),p(12),h("ngForOf",t.categories),p(1),h("ngIf",t.newCategory)}}class Yw{adminService;activeModal;newCategory;categories;categoryName;categoryType;updated=!1;itemAdded=new Ie;constructor(e,t){this.adminService=e,this.activeModal=t}ngOnInit(){var e=this;return O(function*(){let t=yield e.adminService.getCategories(e.categoryType);e.categories=t.model,console.log(e.categories)})()}addNewCategory(){var e=this;return O(function*(){e.newCategory=yield e.adminService.createCategory(e.categoryType),console.log(e.newCategory)})()}saveNewCategory(){var e=this;return O(function*(){(yield e.adminService.addCategory(e.newCategory)).successful&&(e.categories.push(e.newCategory),e.newCategory=null,e.updated=!0)})()}updateCategory(e){var t=this;return O(function*(){yield t.adminService.updateCategory(e),t.updated=!0})()}closeModal(){this.activeModal.close(),this.updated&&this.itemAdded?.emit()}static \u0275fac=function(t){return new(t||Yw)(H(ns),H(ar))};static \u0275cmp=Oe({type:Yw,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(t,n){1&t&&b(0,_ke,16,3,"div",0),2&t&&h("ngIf",n.categories)},dependencies:[Dn,en,qt,Ot,rt],styles:["label[_ngcontent-%COMP%]{font-weight:700}.required[_ngcontent-%COMP%]{color:red}"]})}function vke(i,e){if(1&i&&(c(0,"option",9),m(1),d()),2&i){const t=e.$implicit;_t("value",t.key),p(1),Ae(t.label)}}function yke(i,e){1&i&&B(0,"span",10),2&i&&mt("data-target",g().popupId)}class zw extends Gt{modalService;adminService;constructor(e,t){super(),this.modalService=e,this.adminService=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(e){this.field&&(this.showValidationErrors=!0,this.hasValue="-1"!==this.field.value),super.changed(e)}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t),t.loadCategories()})()}loadCategories(){var e=this;return O(function*(){let t=yield e.adminService.getCategories(e.field.customCategoryType??e.host.form.modelName.toLocaleLowerCase());t&&(e.field.options=t.model.map(n=>({key:n.key,label:n.name,text:n.name,id:n.key}))),e.field.options.find(n=>"-1"===n.id)||e.field.options.unshift({key:"-1",label:e.field.watermark,text:e.field.watermark,id:"-1"}),e.field.value||(e.field.value="-1")})()}editCategories(){const e=this.modalService.open(Yw,{size:"lg"}).componentInstance;e.categoryType=this.field.customCategoryType??this.host.form.modelName.toLocaleLowerCase(),e.itemAdded.subscribe(()=>{this.loadCategories()}),e.categoryName=this.field.customCategoryType?`${this.host.form.modelTitle} (${this.field.customCategoryType}}`:this.host.form.modelTitle}static \u0275fac=function(t){return new(t||zw)(H(Pn),H(ns))};static \u0275cmp=Oe({type:zw,selectors:[["app-category-field"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"select",2),P("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.onChanged(o)}),b(3,vke,2,2,"option",3),d(),c(4,"div",4),b(5,yke,1,1,"span",5),c(6,"span",6),P("click",function(){return n.editCategories()}),d()()(),B(7,"app-form-field-validation-section",7)(8,"app-form-field-help",8)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),h("ngModel",n.field.value)("disabled",!n.field.isUserEditable),p(1),h("ngForOf",n.field.options),p(2),h("ngIf",n.field.help),p(2),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,pr,en,qt,Ot,rt,Nn,Bn,Vn]})}class Ww{_dataSourceUpdated$=new Ut(0);_items;constructor(e){e&&e.model&&(this.items=e?.filteredItems??e.model,this.url=e.getListUrl,this.url||console.warn("PagedData created with no getListUrl - ",e.title),e.reload=t=>{t&&(this.items=t,console.log("items have updated",t)),this.updated()},e.refresh=()=>{this.items=e?.filteredItems??e.model,console.log("updated from refresh"),this.updated()})}static createFromArray(e){let t=new Ww;return t.items=e,t}onDataSourceUpdated(){return this._dataSourceUpdated$.asObservable()}set items(e){this._items=e,this._dataSourceUpdated$.next(!0)}get items(){return this._items}updated(){console.log("ds update"),this._dataSourceUpdated$.next(!0)}concat(e){this.items=this.items.concat(!1)}push(e){this.items.push(e),this._dataSourceUpdated$.next(!1)}unshift(...e){this.items.unshift(e),this._dataSourceUpdated$.next(!1)}splice(e,t){this.items.splice(e,t),this._dataSourceUpdated$.next(!1)}remove(e){let t=this.items.indexOf(e);t>-1&&this.splice(t,1)}filter;url}const bke=["*"];let qw;function ty(i){return function Cke(){if(void 0===qw&&(qw=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(qw=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return qw}()?.createHTML(i)||i}function X7(i){return Error(`Unable to find icon with the name "${i}"`)}function J7(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function e$(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class Sp{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let Gw=(()=>{class i{constructor(t,n,r,o){this._httpClient=t,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(t,n,r){return this.addSvgIconInNamespace("",t,n,r)}addSvgIconLiteral(t,n,r){return this.addSvgIconLiteralInNamespace("",t,n,r)}addSvgIconInNamespace(t,n,r,o){return this._addSvgIconConfig(t,n,new Sp(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,r,o){const a=this._sanitizer.sanitize(hi.HTML,r);if(!a)throw e$(r);const s=ty(a);return this._addSvgIconConfig(t,n,new Sp("",s,o))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,r){return this._addSvgIconSetConfig(t,new Sp(n,null,r))}addSvgIconSetLiteralInNamespace(t,n,r){const o=this._sanitizer.sanitize(hi.HTML,n);if(!o)throw e$(n);const a=ty(o);return this._addSvgIconSetConfig(t,new Sp("",a,r))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const n=this._sanitizer.sanitize(hi.RESOURCE_URL,t);if(!n)throw J7(t);const r=this._cachedIconsByUrl.get(n);return r?Pt(Kw(r)):this._loadSvgIconFromConfig(new Sp(t,null)).pipe(ir(o=>this._cachedIconsByUrl.set(n,o)),Ve(o=>Kw(o)))}getNamedSvgIcon(t,n=""){const r=t$(n,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(t,a):ng(X7(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Pt(Kw(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Ve(n=>Kw(n)))}_getSvgFromIconSetConfigs(t,n){const r=this._extractIconWithNameFromAnySet(t,n);return r?Pt(r):N4(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(yc(s=>{const u=`Loading icon set URL: ${this._sanitizer.sanitize(hi.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Pt(null)})))).pipe(Ve(()=>{const a=this._extractIconWithNameFromAnySet(t,n);if(!a)throw X7(t);return a}))}_extractIconWithNameFromAnySet(t,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,t,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(ir(n=>t.svgText=n),Ve(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Pt(null):this._fetchIcon(t).pipe(ir(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,r){const o=t.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(ty(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(t){const n=this._document.createElement("DIV");n.innerHTML=t;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const n=this._svgElementFromString(ty("")),r=t.attributes;for(let o=0;oty(u)),Y0(()=>this._inProgressUrlFetches.delete(a)),Vf());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(t,n,r){return this._svgIconConfigs.set(t$(t,n),r),this}_addSvgIconSetConfig(t,n){const r=this._iconSetConfigs.get(t);return r?r.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){const n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let r=0;re?e.pathname+e.search:""}}}),n$=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Eke=n$.map(i=>`[${i}]`).join(", "),Ike=/^url\(['"]?#(.*?)['"]?\)$/;let Ake=(()=>{class i extends Mke{constructor(t,n,r,o,a,s){super(t),this._iconRegistry=n,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=x.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Mi(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=t.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),n.forEach(r=>t.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${t}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(t){const n=t.querySelectorAll(Eke),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],l=s.getAttribute(a),u=l?l.match(Ike):null;if(u){let f=r.get(s);f||(f=[],r.set(s,f)),f.push({name:a,value:u[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[n,r]=this._splitIconName(t);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(t){return new(t||i)(H(At),H(Gw),fl("aria-hidden"),H(Tke),H(oc),H(Dke,8))},i.\u0275cmp=Oe({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,n){2&t&&(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),St("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:[it],ngContentSelectors:bke,decls:1,vars:0,template:function(t,n){1&t&&(ho(),ki(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})(),Pke=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[yr,yr]}),i})();const Fke=["mat-menu-item",""];function Rke(i,e){1&i&&(Du(),c(0,"svg",2),B(1,"polygon",3),d())}const i$=["*"];function Oke(i,e){if(1&i){const t=re();c(0,"div",0),P("keydown",function(r){return E(t),I(g()._handleKeydown(r))})("click",function(){return E(t),I(g().closed.emit("click"))})("@transformMenu.start",function(r){return E(t),I(g()._onAnimationStart(r))})("@transformMenu.done",function(r){return E(t),I(g()._onAnimationDone(r))}),c(1,"div",1),ki(2),d()()}if(2&i){const t=g();h("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),mt("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const Qw={transformMenu:Ld("transformMenu",[ts("void",$i({opacity:0,transform:"scale(0.8)"})),zo("void => enter",Yo("120ms cubic-bezier(0, 0, 0.2, 1)",$i({opacity:1,transform:"scale(1)"}))),zo("* => void",Yo("100ms 25ms linear",$i({opacity:0})))]),fadeInItems:Ld("fadeInItems",[ts("showing",$i({opacity:1})),zo("void => *",[$i({opacity:0}),Yo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Lke=new Xe("MatMenuContent"),mI=new Xe("MAT_MENU_PANEL"),Nke=Xb(Y_(class{}));let _I=(()=>{class i extends Nke{constructor(t,n,r,o,a){super(),this._elementRef=t,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ce,this._focused=new Ce,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class i{constructor(t,n,r,o){this._elementRef=t,this._ngZone=n,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new md,this._tabSubscription=x.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ce,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ie,this.close=this.closed,this.panelId="mat-menu-panel-"+Vke++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Mi(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Mi(t)}set panelClass(t){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new o6(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(rr(this._directDescendantItems),to(t=>Qr(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=t.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(rr(this._directDescendantItems),to(n=>Qr(...n.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const n=t.keyCode,r=this._keyManager;switch(n){case 27:Fd(t)||(t.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(t)}t.stopPropagation()}focusFirstItem(t="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(t).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const n=Math.min(this._baseElevation+t,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(t=this.xPosition,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===t,r["mat-menu-after"]="after"===t,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(rr(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(t){return new(t||i)(H(At),H($t),H(r$),H(oi))},i.\u0275dir=ot({type:i,contentQueries:function(t,n,r){if(1&t&&(An(r,Lke,5),An(r,_I,5),An(r,_I,4)),2&t){let o;ut(o=pt())&&(n.lazyContent=o.first),ut(o=pt())&&(n._allItems=o),ut(o=pt())&&(n.items=o)}},viewQuery:function(t,n){if(1&t&&Wt(Yi,5),2&t){let r;ut(r=pt())&&(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})(),$ke=(()=>{class i extends ny{constructor(t,n,r,o){super(t,n,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(t){return new(t||i)(H(At),H($t),H(r$),H(oi))},i.\u0275cmp=Oe({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,n){2&t&&mt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[On([{provide:mI,useExisting:i}]),it],ngContentSelectors:i$,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,n){1&t&&(ho(),b(0,Oke,3,6,"ng-template"))},dependencies:[Vi],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:[Qw.transformMenu,Qw.fadeInItems]},changeDetection:0}),i})();const o$=new Xe("mat-menu-scroll-strategy"),Uke={provide:o$,deps:[Rl],useFactory:function Hke(i){return()=>i.scrollStrategies.reposition()}},a$=Sc({passive:!0});let jke=(()=>{class i{constructor(t,n,r,o,a,s,l,u,f){this._overlay=t,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=x.EMPTY,this._hoverSubscription=x.EMPTY,this._menuCloseSubscription=x.EMPTY,this._handleTouchStart=v=>{Kb(v)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ie,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ie,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof ny?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,a$),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.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,a$),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 t=this.menu;if(this._menuOpen||!t)return;const n=this._createOverlay(t),r=n.getConfig(),o=r.positionStrategy;this._setPosition(t,o),r.hasBackdrop=t.hasBackdrop??!this.triggersSubmenu(),n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof ny&&(t._startAnimation(),t._directDescendantItems.changes.pipe(Lt(t.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof ny?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Li(r=>"void"===r.toState),Xn(1),Lt(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,r=t.parentMenu;for(;r;)n++,r=r.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_createOverlay(t){if(!this._overlayRef){const n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new iw({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.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(()=>t.setPositionClasses(o,a)):t.setPositionClasses(o,a)})}_setPosition(t,n){let[r,o]="before"===t.xPosition?["end","start"]:["start","end"],[a,s]="above"===t.yPosition?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[f,v]=[r,o],D=0;if(this.triggersSubmenu()){if(v=r="before"===t.xPosition?"start":"end",o=f="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const A=this._parentMaterialMenu.items.first;this._parentInnerPadding=A?A._getHostElement().offsetTop:0}D="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(l="top"===a?"bottom":"top",u="top"===s?"bottom":"top");n.withPositions([{originX:r,originY:l,overlayX:f,overlayY:a,offsetY:D},{originX:o,originY:l,overlayX:v,overlayY:a,offsetY:D},{originX:r,originY:u,overlayX:f,overlayY:s,offsetY:-D},{originX:o,originY:u,overlayX:v,overlayY:s,offsetY:-D}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Qr(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Pt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Li(a=>a!==this._menuItemInstance),Li(()=>this._menuOpen)):Pt(),n)}_handleMousedown(t){Gb(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const n=t.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(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Li(t=>t===this._menuItemInstance&&!t.disabled),IS(0,gE)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ny&&this.menu._isAnimating?this.menu._animationDone.pipe(Xn(1),IS(0,gE),Lt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new Zb(t.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(t){return new(t||i)(H(Rl),H(At),H(Sr),H(o$),H(mI,8),H(_I,10),H(Do,8),H(Rd),H($t))},i.\u0275dir=ot({type:i,hostVars:3,hostBindings:function(t,n){1&t&&P("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&t&&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})(),Yke=(()=>{class i extends jke{}return i.\u0275fac=function(){let e;return function(n){return(e||(e=Oi(i)))(n||i)}}(),i.\u0275dir=ot({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[it]}),i})(),zke=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[Uke],imports:[fi,yr,Jb,ow,gp,yr]}),i})();const Wke=[[["grid-column"]]],qke=["grid-column"],Gke=["fullWidth"];function Kke(i,e){if(1&i){const t=re();c(0,"i",21),P("click",function(){return E(t),I(g(2).donePressed())}),d()}}function Qke(i,e){if(1&i){const t=re();c(0,"i",22),P("click",function(){return E(t),I(g(2).addFavorite())}),d()}}function Zke(i,e){if(1&i){const t=re();c(0,"i",23),P("click",function(){return E(t),I(g(2).clearFavorite())}),d()}}function Xke(i,e){if(1&i&&(c(0,"h1",15),b(1,Kke,1,0,"i",16),B(2,"nuv-icon",17),c(3,"span",18),m(4),d(),b(5,Qke,1,0,"i",19),b(6,Zke,1,0,"i",20),d()),2&i){const t=g();p(1),h("ngIf",t.doneVisible),p(1),h("iconName",t.listResponse.icon),p(2),$e(" ",t.listResponse.title," "),p(1),h("ngIf",!t.favorite),p(1),h("ngIf",t.favorite)}}function Jke(i,e){if(1&i){const t=re();c(0,"i",21),P("click",function(){return E(t),I(g(2).donePressed())}),d()}}function eMe(i,e){1&i&&B(0,"nuv-icon",17),2&i&&h("iconName",g(2).tableIcon)}function tMe(i,e){if(1&i){const t=re();c(0,"i",22),P("click",function(){return E(t),I(g(2).addFavorite())}),d()}}function nMe(i,e){if(1&i){const t=re();c(0,"i",23),P("click",function(){return E(t),I(g(2).clearFavorite())}),d()}}function iMe(i,e){if(1&i&&(c(0,"h1",15),b(1,Jke,1,0,"i",16),b(2,eMe,1,1,"nuv-icon",24),c(3,"span",18),m(4),d(),b(5,tMe,1,0,"i",19),b(6,nMe,1,0,"i",20),d()),2&i){const t=g();let n;p(1),h("ngIf",t.doneVisible),p(1),h("ngIf",t.tableIcon),p(2),$e(" ",null!==(n=t.tableTitle)&&void 0!==n?n:"Table"," "),p(1),h("ngIf",!t.favorite),p(1),h("ngIf",t.favorite)}}function rMe(i,e){if(1&i){const t=re();c(0,"div",35)(1,"input",36),P("ngModelChange",function(r){return E(t),I(g(2).searchText=r)}),d(),c(2,"span",37),P("click",function(){return E(t),I(g(2).serverSearch())}),B(3,"i",38),d()()}if(2&i){const t=g(2);p(1),h("ngModel",t.searchText)}}function oMe(i,e){if(1&i){const t=re();c(0,"div")(1,"input",39),P("ngModelChange",function(r){return E(t),I(g(2).searchText=r)}),d()()}if(2&i){const t=g(2);p(1),K1("margin-left:10px;width: 200px; background-image: url('",t.root,"/app/ui-shared/assets/search.png'); background-repeat: no-repeat; background-position: 6px 50%; padding: 7px 8.75px 7px 42px;"),h("ngModel",t.searchText)}}function aMe(i,e){if(1&i&&(c(0,"option",43),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.name)}}function sMe(i,e){if(1&i){const t=re();c(0,"div",40)(1,"select",41),P("change",function(){return E(t),I(g(2).refreshData())})("ngModelChange",function(r){return E(t),I(g(2).selectedCategory=r)}),b(2,aMe,2,2,"option",42),d()()}if(2&i){const t=g(2);p(1),h("ngModel",t.selectedCategory),p(1),h("ngForOf",t.listResponse.categories)}}function lMe(i,e){if(1&i){const t=re();c(0,"span",44),P("click",function(){return E(t),I(g(2).add.emit())}),B(1,"i",45),c(2,"span",46),m(3,"Add"),d()()}}const cMe=function(i){return{"margin-top.px":i}},Qs=function(i){return{"width.px":i}};function dMe(i,e){if(1&i){const t=re();c(0,"div",25),b(1,rMe,4,1,"div",26),b(2,oMe,2,4,"div",27),b(3,sMe,3,2,"div",28),c(4,"div",29),ki(5,1,["style","display:inline"]),d(),c(6,"div",30),m(7," Show "),c(8,"select",31),P("ngModelChange",function(r){return E(t),I(g().pageSize=r)}),c(9,"option"),m(10,"10"),d(),c(11,"option"),m(12,"25"),d(),c(13,"option"),m(14,"50"),d(),c(15,"option"),m(16,"100"),d(),c(17,"option"),m(18,"500"),d(),c(19,"option"),m(20,"1000"),d(),c(21,"option"),m(22,"2500"),d(),c(23,"option"),m(24,"5000"),d()(),m(25," entries "),b(26,lMe,4,0,"span",32),c(27,"span",33)(28,"mat-icon",34),m(29,"more_horiz"),d()()()()}if(2&i){const t=g(),n=Vr(6);h("ngStyle",bt(8,cMe,t.topMargin))("ngStyle",bt(10,Qs,t.tableWidth+32)),p(1),h("ngIf",t.serverSideSearch),p(1),h("ngIf",!t.serverSideSearch),p(1),h("ngIf",(null==t.listResponse?null:t.listResponse.categories)&&(null==t.listResponse?null:t.listResponse.categories.length)>1),p(5),h("ngModel",t.pageSize),p(18),h("ngIf",t.addVisible),p(1),h("matMenuTriggerFor",n)}}function uMe(i,e){if(1&i&&(c(0,"span",57),m(1),d()),2&i){const t=g().$implicit;p(1),$e(" ",t.header,"")}}function pMe(i,e){1&i&&(c(0,"span"),m(1,"\xa0"),d())}function hMe(i,e){if(1&i){const t=re();c(0,"input",6),P("ngModelChange",function(r){return E(t),I(g(3).selectAll=r)}),d()}2&i&&h("ngModel",g(3).selectAll)}const s$=function(i,e){return{"sort-desc":i,"sort-asc":e}};function gMe(i,e){if(1&i){const t=re();c(0,"th",54),P("click",function(){const o=E(t).$implicit;return I(g(2).sort(o))}),b(1,uMe,2,1,"span",55),b(2,pMe,2,0,"span",27),b(3,hMe,1,1,"input",56),d()}if(2&i){const t=e.$implicit;h("ngClass",ci(5,s$,"desc"==t.sortDir,"asc"==t.sortDir))("ngStyle",bt(8,Qs,t.actualWidth)),p(1),h("ngIf",t.header),p(1),h("ngIf",!t.header),p(1),h("ngIf","select"==t.fieldType)}}function fMe(i,e){if(1&i&&(c(0,"div",75),m(1),Zt(2,"datePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function mMe(i,e){if(1&i&&(c(0,"div",75),m(1),Zt(2,"timePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function _Me(i,e){if(1&i&&(c(0,"div",76),m(1),Zt(2,"dateTimePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function vMe(i,e){if(1&i){const t=re();c(0,"div",77),P("click",function(r){E(t);const o=g(2).$implicit;return g(2).rowSelectedWithTag("remove",o),I(r.stopPropagation())}),B(1,"i",78),d()}}function yMe(i,e){if(1&i&&(c(0,"div",79),m(1),Zt(2,"moneyPrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",Xt(2,1,r.getContent(n,t))," ")}}function bMe(i,e){1&i&&B(0,"i",81)}function CMe(i,e){if(1&i&&(c(0,"div",79),m(1),b(2,bMe,1,0,"i",80),d()),2&i){const t=g(2).$implicit;p(1),dr(" (",t.discussionsOpen,"/",t.discussionsTotal,")"),p(1),h("ngIf",t.discussionsOpen>0)}}function wMe(i,e){if(1&i){const t=re();c(0,"div",82)(1,"a",37),P("click",function(r){E(t);const o=g().$implicit,a=g().$implicit;return g(2).sendEmail(a[o.fieldName]),I(r.stopPropagation())}),m(2),d()()}if(2&i){const t=g().$implicit,n=g().$implicit;h("ngStyle",bt(2,Qs,t.actualWidth)),p(2),Ae(n[t.fieldName])}}function xMe(i,e){if(1&i){const t=re();c(0,"div",83)(1,"a",37),P("click",function(r){E(t);const o=g().$implicit,a=g().$implicit;return g(2).makePhoneCall(a[o.fieldName]),I(r.stopPropagation())}),m(2),d()()}if(2&i){const t=g().$implicit,n=g().$implicit;p(2),Ae(n[t.fieldName])}}const kMe=function(i,e){return{"background-color":i,color:e}};function MMe(i,e){if(1&i&&(c(0,"span")(1,"span",85)(2,"span",86),m(3),d()()()),2&i){const t=e.$implicit;p(1),h("ngStyle",ci(2,kMe,t.backgroundColor,t.foregroundColor)),p(2),Ae(t.text)}}function DMe(i,e){if(1&i&&(c(0,"div",83),b(1,MMe,4,5,"span",84),d()),2&i){const t=g(2).$implicit;p(1),h("ngForOf",t.labels)}}function TMe(i,e){if(1&i&&(c(0,"div",83),m(1),Zt(2,"lastAccessPrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function SMe(i,e){if(1&i&&(c(0,"div",87),m(1),d()),2&i){const t=g().$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function EMe(i,e){if(1&i&&(c(0,"div",79),m(1),Zt(2,"trueFalsePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function IMe(i,e){if(1&i){const t=re();c(0,"div",88),P("click",function(r){E(t);const o=g().$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),I(r.stopPropagation())}),B(1,"i",89),d()}if(2&i){const t=g().$implicit;p(1),Cl("far ",t.iconName," action")}}function AMe(i,e){if(1&i&&(c(0,"div"),B(1,"div",90),d()),2&i){const t=g().$implicit,n=g().$implicit,r=g(2);p(1),h("innerHTML",r.getContent(n,t),Gn)}}function PMe(i,e){if(1&i){const t=re();c(0,"div",91)(1,"input",92),P("change",function(){E(t);const r=g(2).$implicit;return I(g(2).rowSelected(r))})("ngModelChange",function(r){return E(t),I(g(2).$implicit.selected=r)}),d()()}if(2&i){const t=g(2).$implicit;p(1),h("ngModel",t.selected)}}const Xd=function(i,e){return{"fa-star":i,"fa-star-o":e}};function FMe(i,e){if(1&i&&(c(0,"div"),B(1,"i",93)(2,"i",94)(3,"i",94)(4,"i",94)(5,"i",94),d()),2&i){const t=g(2).$implicit,n=g().$implicit;p(2),h("ngClass",ci(4,Xd,n[t.fieldName]>=2,n[t.fieldName]<2)),p(1),h("ngClass",ci(7,Xd,n[t.fieldName]>=3,n[t.fieldName]<3)),p(1),h("ngClass",ci(10,Xd,n[t.fieldName]>=4,n[t.fieldName]<4)),p(1),h("ngClass",ci(13,Xd,n[t.fieldName]>=5,n[t.fieldName]<5))}}function RMe(i,e){if(1&i&&(c(0,"div"),b(1,FMe,6,16,"div",27),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),h("ngIf",n[t.fieldName]>0)}}function OMe(i,e){1&i&&B(0,"i",97),2&i&&Cl("fas ",g(2).$implicit.iconName," action")}function LMe(i,e){if(1&i&&(c(0,"div",95),b(1,OMe,1,3,"i",96),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),h("ngIf",n[t.fieldName])}}function NMe(i,e){1&i&&B(0,"i",100)}function BMe(i,e){if(1&i&&B(0,"nuv-icon",101),2&i){const t=g(2).$implicit;h("iconName",g().$implicit[t.fieldName])}}function VMe(i,e){if(1&i&&(c(0,"div",79),b(1,NMe,1,0,"i",98),b(2,BMe,1,1,"nuv-icon",99),d()),2&i){const t=g().$implicit;p(1),h("ngIf",t.iconName),p(1),h("ngIf",t.fieldName)}}function $Me(i,e){if(1&i){const t=re();c(0,"span",37),P("click",function(r){E(t);const o=g(2).$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),I(r.stopPropagation())}),m(1),d()}if(2&i){const t=g(2).$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function HMe(i,e){if(1&i&&(c(0,"span",107),m(1),Zt(2,"lastAccessPrinter"),d()),2&i){const t=g(4).$implicit;p(1),$e("* Draft ",Xt(2,1,t.lastUpdatedDate),"")}}function UMe(i,e){if(1&i&&(c(0,"div",105),m(1),b(2,HMe,3,3,"span",106),d()),2&i){const t=g(2).$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," "),p(1),h("ngIf",n.isDraft&&"name"==t.fieldName)}}function jMe(i,e){if(1&i&&(c(0,"div",102),b(1,$Me,2,1,"span",103),b(2,UMe,3,2,"div",104),d()),2&i){const t=g().$implicit;h("ngStyle",bt(3,Qs,t.actualWidth)),p(1),h("ngIf",t.tag),p(1),h("ngIf",!t.tag)}}const l$=function(i){return{action:i}};function YMe(i,e){if(1&i&&(c(0,"td",61),b(1,fMe,3,3,"div",62),b(2,mMe,3,3,"div",62),b(3,_Me,3,3,"div",63),b(4,vMe,2,0,"div",64),b(5,yMe,3,3,"div",65),b(6,CMe,3,3,"div",65),b(7,wMe,3,4,"div",66),b(8,xMe,3,1,"div",67),b(9,DMe,2,1,"div",67),b(10,TMe,3,3,"div",67),b(11,SMe,2,1,"div",68),b(12,EMe,3,3,"div",65),b(13,IMe,2,3,"div",69),b(14,AMe,2,1,"div",70),b(15,PMe,2,1,"div",71),b(16,RMe,2,1,"div",70),b(17,LMe,2,1,"div",72),b(18,VMe,3,2,"div",73),b(19,jMe,3,5,"div",74),d()),2&i){const t=e.$implicit;h("ngSwitch",t.fieldType)("ngStyle",bt(21,Qs,t.actualWidth))("ngClass",bt(23,l$,t.isAction)),p(1),h("ngSwitchCase","date-only"),p(1),h("ngSwitchCase","time-only"),p(1),h("ngSwitchCase","date-time"),p(1),h("ngSwitchCase","remove"),p(1),h("ngSwitchCase","currency"),p(1),h("ngSwitchCase","discussion-counts"),p(1),h("ngSwitchCase","email"),p(1),h("ngSwitchCase","phone"),p(1),h("ngSwitchCase","labels"),p(1),h("ngSwitchCase","lastaccess"),p(1),h("ngSwitchCase","number"),p(1),h("ngSwitchCase","yes-no"),p(1),h("ngSwitchCase","icon-button"),p(1),h("ngSwitchCase","html"),p(1),h("ngSwitchCase","select"),p(1),h("ngSwitchCase","stars"),p(1),h("ngSwitchCase","icon-conditional"),p(1),h("ngSwitchCase","icon")}}const zMe=function(i){return{deleted:i}};function WMe(i,e){if(1&i){const t=re();c(0,"tr",58),P("click",function(){const o=E(t).$implicit;return I(g(2).rowTapped(o))}),b(1,YMe,20,25,"td",59),B(2,"td",60),d()}if(2&i){const t=e.$implicit,n=g(2);h("ngClass",bt(2,zMe,t.isDeleted)),p(1),h("ngForOf",null==n.columns?null:n.columns.visibleColumns)}}const c$=function(i){return{"height.px":i}};function qMe(i,e){if(1&i){const t=re();c(0,"table",47,48)(2,"thead",49)(3,"tr"),b(4,gMe,4,10,"th",50),c(5,"th",51)(6,"span"),m(7,"\xa0"),d()()()(),c(8,"tbody",52),P("scroll",function(r){return E(t),I(g().contentScroll(r))}),b(9,WMe,3,4,"tr",53),d()()}if(2&i){const t=g();p(4),h("ngForOf",null==t.columns?null:t.columns.visibleColumns),p(4),h("ngStyle",bt(3,c$,t.scrollableHeight)),p(1),h("ngForOf",t.currentPageDataSet)}}function GMe(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g(2);p(1),cc(" Showing ",t.recordStartCount+1," to ",t.recordEndCount," of ",t.recordCount," entries. ")}}function KMe(i,e){1&i&&(c(0,"span"),m(1," No Data "),d())}const d$=function(i,e){return{current:i,pageEnabled:e}};function QMe(i,e){if(1&i){const t=re();c(0,"a",113),P("click",function(){const o=E(t).$implicit;return I(g(3).showPage(o))}),m(1),d()}if(2&i){const t=e.$implicit;h("ngClass",ci(2,d$,t.current,t.enabled)),p(1),Ae(t.name)}}function ZMe(i,e){if(1&i){const t=re();c(0,"a",37),P("click",function(){return E(t),I(g(3).loadMore())}),m(1,"Load More"),d()}}function XMe(i,e){if(1&i&&(c(0,"div",110),b(1,QMe,2,5,"a",111),b(2,ZMe,2,0,"a",112),d()),2&i){const t=g(2);p(1),h("ngForOf",t.pages),p(1),h("ngIf",t.listResponse&&t.listResponse.hasMoreRecords)}}function JMe(i,e){if(1&i&&(c(0,"div",108),b(1,GMe,2,3,"span",27),b(2,KMe,2,0,"span",27),b(3,XMe,3,2,"div",109),d()),2&i){const t=g();h("ngStyle",bt(4,Qs,t.tableWidth+32)),p(1),h("ngIf",t.recordCount>0),p(1),h("ngIf",0==t.recordCount),p(1),h("ngIf",t.pages&&t.pages.length>1||t.listResponse&&t.listResponse.hasMoreRecords)}}function eDe(i,e){if(1&i&&(c(0,"span",57),m(1),d()),2&i){const t=g().$implicit;p(1),$e(" ",t.header,"")}}function tDe(i,e){1&i&&(c(0,"span"),m(1,"\xa0"),d())}function nDe(i,e){if(1&i){const t=re();c(0,"input",6),P("ngModelChange",function(r){return E(t),I(g(3).selectAll=r)}),d()}2&i&&h("ngModel",g(3).selectAll)}function iDe(i,e){if(1&i){const t=re();c(0,"th",54),P("click",function(){const o=E(t).$implicit;return I(g(2).sort(o))}),b(1,eDe,2,1,"span",55),b(2,tDe,2,0,"span",27),b(3,nDe,1,1,"input",56),d()}if(2&i){const t=e.$implicit;h("ngClass",ci(5,s$,"desc"==t.sortDir,"asc"==t.sortDir))("ngStyle",bt(8,Qs,t.actualWidth)),p(1),h("ngIf",t.header),p(1),h("ngIf",!t.header),p(1),h("ngIf","select"==t.fieldType)}}function rDe(i,e){if(1&i&&(c(0,"div",75),m(1),Zt(2,"datePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function oDe(i,e){if(1&i&&(c(0,"div",75),m(1),Zt(2,"timePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function aDe(i,e){if(1&i&&(c(0,"div",76),m(1),Zt(2,"dateTimePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function sDe(i,e){if(1&i){const t=re();c(0,"div",77),P("click",function(r){E(t);const o=g(2).$implicit;return g(2).rowSelectedWithTag("remove",o),I(r.stopPropagation())}),B(1,"i",78),d()}}function lDe(i,e){if(1&i&&(c(0,"div",79),m(1),Zt(2,"moneyPrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",Xt(2,1,r.getContent(n,t))," ")}}function cDe(i,e){if(1&i){const t=re();c(0,"div",82)(1,"a",37),P("click",function(r){E(t);const o=g().$implicit,a=g().$implicit;return g(2).sendEmail(a[o.fieldName]),I(r.stopPropagation())}),m(2),d()()}if(2&i){const t=g().$implicit,n=g().$implicit;h("ngStyle",bt(2,Qs,t.actualWidth)),p(2),Ae(n[t.fieldName])}}function dDe(i,e){if(1&i){const t=re();c(0,"div",83)(1,"a",37),P("click",function(r){E(t);const o=g().$implicit,a=g().$implicit;return g(2).makePhoneCall(a[o.fieldName]),I(r.stopPropagation())}),m(2),d()()}if(2&i){const t=g().$implicit,n=g().$implicit;p(2),Ae(n[t.fieldName])}}function uDe(i,e){if(1&i&&(c(0,"div",83),m(1),Zt(2,"lastAccessPrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function pDe(i,e){if(1&i&&(c(0,"div",87),m(1),d()),2&i){const t=g().$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function hDe(i,e){if(1&i&&(c(0,"div",79),m(1),Zt(2,"trueFalsePrinter"),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),$e(" ",Xt(2,1,n[t.fieldName])," ")}}function gDe(i,e){if(1&i){const t=re();c(0,"div",88),P("click",function(r){E(t);const o=g().$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),I(r.stopPropagation())}),B(1,"i",89),d()}if(2&i){const t=g().$implicit;p(1),Cl("far ",t.iconName," action")}}function fDe(i,e){if(1&i&&(c(0,"div"),B(1,"div",90),d()),2&i){const t=g().$implicit,n=g().$implicit,r=g(2);p(1),h("innerHTML",r.getContent(n,t),Gn)}}function mDe(i,e){if(1&i){const t=re();c(0,"div",91)(1,"input",92),P("change",function(){E(t);const r=g(2).$implicit;return I(g(2).rowSelected(r))})("ngModelChange",function(r){return E(t),I(g(2).$implicit.selected=r)}),d()()}if(2&i){const t=g(2).$implicit;p(1),h("ngModel",t.selected)}}function _De(i,e){if(1&i&&(c(0,"div"),B(1,"i",93)(2,"i",94)(3,"i",94)(4,"i",94)(5,"i",94),d()),2&i){const t=g(2).$implicit,n=g().$implicit;p(2),h("ngClass",ci(4,Xd,n[t.fieldName]>=2,n[t.fieldName]<2)),p(1),h("ngClass",ci(7,Xd,n[t.fieldName]>=3,n[t.fieldName]<3)),p(1),h("ngClass",ci(10,Xd,n[t.fieldName]>=4,n[t.fieldName]<4)),p(1),h("ngClass",ci(13,Xd,n[t.fieldName]>=5,n[t.fieldName]<5))}}function vDe(i,e){if(1&i&&(c(0,"div"),b(1,_De,6,16,"div",27),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),h("ngIf",n[t.fieldName]>0)}}function yDe(i,e){1&i&&B(0,"i",97),2&i&&Cl("fas ",g(2).$implicit.iconName," action")}function bDe(i,e){if(1&i&&(c(0,"div",95),b(1,yDe,1,3,"i",96),d()),2&i){const t=g().$implicit,n=g().$implicit;p(1),h("ngIf",n[t.fieldName])}}function CDe(i,e){1&i&&B(0,"i",100)}function wDe(i,e){if(1&i&&B(0,"nuv-icon",101),2&i){const t=g(2).$implicit;h("iconName",g().$implicit[t.fieldName])}}function xDe(i,e){if(1&i&&(c(0,"div",79),b(1,CDe,1,0,"i",98),b(2,wDe,1,1,"nuv-icon",99),d()),2&i){const t=g().$implicit;p(1),h("ngIf",t.iconName),p(1),h("ngIf",t.fieldName)}}function kDe(i,e){if(1&i){const t=re();c(0,"span",37),P("click",function(r){E(t);const o=g(2).$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),I(r.stopPropagation())}),m(1),d()}if(2&i){const t=g(2).$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function MDe(i,e){if(1&i&&(c(0,"div",105),m(1),d()),2&i){const t=g(2).$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function DDe(i,e){if(1&i&&(c(0,"div",102),b(1,kDe,2,1,"span",103),b(2,MDe,2,1,"div",104),d()),2&i){const t=g().$implicit;h("ngStyle",bt(3,Qs,t.actualWidth)),p(1),h("ngIf",t.tag),p(1),h("ngIf",!t.tag)}}function TDe(i,e){if(1&i&&(c(0,"td",61),b(1,rDe,3,3,"div",62),b(2,oDe,3,3,"div",62),b(3,aDe,3,3,"div",63),b(4,sDe,2,0,"div",64),b(5,lDe,3,3,"div",65),b(6,cDe,3,4,"div",66),b(7,dDe,3,1,"div",67),b(8,uDe,3,3,"div",67),b(9,pDe,2,1,"div",68),b(10,hDe,3,3,"div",65),b(11,gDe,2,3,"div",69),b(12,fDe,2,1,"div",70),b(13,mDe,2,1,"div",71),b(14,vDe,2,1,"div",70),b(15,bDe,2,1,"div",72),b(16,xDe,3,2,"div",73),b(17,DDe,3,5,"div",74),d()),2&i){const t=e.$implicit;h("ngSwitch",t.fieldType)("ngStyle",bt(19,Qs,t.actualWidth))("ngClass",bt(21,l$,t.isAction)),p(1),h("ngSwitchCase","date-only"),p(1),h("ngSwitchCase","time-only"),p(1),h("ngSwitchCase","date-time"),p(1),h("ngSwitchCase","remove"),p(1),h("ngSwitchCase","currency"),p(1),h("ngSwitchCase","email"),p(1),h("ngSwitchCase","phone"),p(1),h("ngSwitchCase","lastaccess"),p(1),h("ngSwitchCase","number"),p(1),h("ngSwitchCase","yes-no"),p(1),h("ngSwitchCase","icon-button"),p(1),h("ngSwitchCase","html"),p(1),h("ngSwitchCase","select"),p(1),h("ngSwitchCase","stars"),p(1),h("ngSwitchCase","icon-conditional"),p(1),h("ngSwitchCase","icon")}}function SDe(i,e){if(1&i){const t=re();c(0,"tr",115),P("click",function(){const o=E(t).$implicit;return I(g(2).rowTapped(o))}),b(1,TDe,18,23,"td",59),B(2,"td",60),d()}if(2&i){const t=g(2);p(1),h("ngForOf",null==t.columns?null:t.columns.visibleColumns)}}function EDe(i,e){if(1&i){const t=re();c(0,"table",47,48)(2,"thead",49)(3,"tr"),b(4,iDe,4,10,"th",50),c(5,"th",51)(6,"span"),m(7,"\xa0"),d()()()(),c(8,"tbody",52),P("scroll",function(r){return E(t),I(g().contentScroll(r))}),b(9,SDe,3,1,"tr",114),d()()}if(2&i){const t=g();p(4),h("ngForOf",null==t.columns?null:t.columns.visibleColumns),p(4),h("ngStyle",bt(3,c$,t.scrollableHeight)),p(1),h("ngForOf",t.currentPageDataSet)}}function IDe(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g(2);p(1),cc(" Showing ",t.recordStartCount+1," to ",t.recordEndCount," of ",t.recordCount," entries. ")}}function ADe(i,e){1&i&&(c(0,"span"),m(1," No Data "),d())}function PDe(i,e){if(1&i){const t=re();c(0,"a",113),P("click",function(){const o=E(t).$implicit;return I(g(3).showPage(o))}),m(1),d()}if(2&i){const t=e.$implicit;h("ngClass",ci(2,d$,t.current,t.enabled)),p(1),Ae(t.name)}}function FDe(i,e){if(1&i){const t=re();c(0,"a",37),P("click",function(){return E(t),I(g(3).loadMore())}),m(1,"Load More"),d()}}function RDe(i,e){if(1&i&&(c(0,"div",110),b(1,PDe,2,5,"a",111),b(2,FDe,2,0,"a",112),d()),2&i){const t=g(2);p(1),h("ngForOf",t.pages),p(1),h("ngIf",t.listResponse&&t.listResponse.hasMoreRecords)}}function ODe(i,e){if(1&i&&(c(0,"div",108),b(1,IDe,2,3,"span",27),b(2,ADe,2,0,"span",27),b(3,RDe,3,2,"div",109),d()),2&i){const t=g();h("ngStyle",bt(4,Qs,t.tableWidth+32)),p(1),h("ngIf",t.recordCount>0),p(1),h("ngIf",0==t.recordCount),p(1),h("ngIf",t.pages&&t.pages.length>1||t.listResponse&&t.listResponse.hasMoreRecords)}}function LDe(i,e){if(1&i){const t=re();c(0,"i",21),P("click",function(){return E(t),I(g(2).donePressed())}),d()}}function NDe(i,e){if(1&i){const t=re();c(0,"i",22),P("click",function(){return E(t),I(g(2).addFavorite())}),d()}}function BDe(i,e){if(1&i){const t=re();c(0,"i",23),P("click",function(){return E(t),I(g(2).clearFavorite())}),d()}}function VDe(i,e){if(1&i&&(c(0,"h1",116),b(1,LDe,1,0,"i",16),B(2,"nuv-icon",17),c(3,"span",18),m(4),d(),b(5,NDe,1,0,"i",19),b(6,BDe,1,0,"i",20),d()),2&i){const t=g();p(1),h("ngIf",t.doneVisible),p(1),h("iconName",t.listResponse.icon),p(2),$e(" ",t.listResponse.title," "),p(1),h("ngIf",!t.favorite),p(1),h("ngIf",t.favorite)}}function $De(i,e){if(1&i){const t=re();c(0,"span",37),P("click",function(){return E(t),I(g(2).add.emit())}),B(1,"i",45),c(2,"span",119),m(3,"Add"),d()()}}function HDe(i,e){if(1&i&&(c(0,"div",125),B(1,"nuv-icon",101),d()),2&i){const t=g().$implicit;p(1),h("iconName",t.icon)}}function UDe(i,e){if(1&i){const t=re();c(0,"span",37),P("click",function(r){E(t);const o=g(2).$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),I(r.stopPropagation())}),m(1),d()}if(2&i){const t=g(2).$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function jDe(i,e){if(1&i&&(c(0,"div",105),m(1),d()),2&i){const t=g(2).$implicit,n=g().$implicit,r=g(2);p(1),$e(" ",r.getContent(n,t)," ")}}function YDe(i,e){if(1&i&&(c(0,"div",128)(1,"div",129)(2,"div",130)(3,"label",131),m(4),d()(),c(5,"div",132),b(6,UDe,2,1,"span",103),c(7,"button",133),B(8,"i",134),d(),b(9,jDe,2,1,"div",135),d()()()),2&i){const t=g().$implicit;p(4),Ae(t.header),p(2),h("ngIf",t.tag),p(3),h("ngIf",!t.tag)}}function zDe(i,e){1&i&&(c(0,"div",126),b(1,YDe,10,3,"div",127),d()),2&i&&h("ngSwitch",e.$implicit.fieldType)}function WDe(i,e){if(1&i){const t=re();c(0,"div",120),P("click",function(){const o=E(t).$implicit;return I(g(2).rowTapped(o))})("cdkDragMoved",function(r){const a=E(t).$implicit;return I(g(2).onDragMoved(r,a))})("cdkDragEnded",function(r){const a=E(t).$implicit;return I(g(2).onDragEnd(r,a))}),c(1,"div",121),b(2,HDe,2,1,"div",122),c(3,"div",123),b(4,zDe,2,1,"div",124),d()()()}if(2&i){const t=e.$implicit,n=e.index,r=g(2);h("cdkDragData",n)("cdkDragStartDelay",25),p(2),h("ngIf",t.icon),p(2),h("ngForOf",null==r.columns?null:r.columns.visibleColumns)}}function qDe(i,e){if(1&i&&(c(0,"div",117),b(1,$De,4,0,"span",103),b(2,WDe,5,4,"div",118),d()),2&i){const t=g();p(1),h("ngIf",t.addVisible),p(1),h("ngForOf",t.currentPageDataSet)}}const GDe=[[["","id","columns"]],"*"],KDe=["#columns","*"];class iy{fieldName;visibleFieldName;content;isAction;header;fieldType;width;sortDir="none";sortable="false";iconName="";tag="";mobileColumn=!0;actualWidth="100";static \u0275fac=function(t){return new(t||iy)};static \u0275cmp=Oe({type:iy,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(t,n){},encapsulation:2})}class sf{_cols;widths=[];set columns(e){this._cols=e,this.resize()}get columns(){return this._cols}visibleColumns;isMobile=!1;resize(e,t){let n=t;if(!n){let u=$("#fullWidth").get()[0];if(null==u)return-1;n=u.getBoundingClientRect().width;var r=window.innerWidth;r<480?n=r:(e&&eu.mobileColumn):this.columns.toArray();for(let u of this.visibleColumns)u.width?(this.widths.push(u.width),u.width.indexOf("*")>-1?a.push({col:s,width:u.width}):o+=parseInt(u.width)):(this.widths.push("*"),a.push({col:s})),s++;if(n){let u=n-o;for(let f of a)this.widths[f.col]=(u/a.length).toString()}s=0;for(let u of this.visibleColumns)u.actualWidth=this.widths[s++];var l=0;for(let u of this.widths)l+=parseInt(u);return l}return 0}static \u0275fac=function(t){return new(t||sf)};static \u0275cmp=Oe({type:sf,selectors:[["grid-columns"]],contentQueries:function(t,n,r){if(1&t&&An(r,iy,4),2&t){let o;ut(o=pt())&&(n.columns=o)}},ngContentSelectors:qke,decls:1,vars:0,template:function(t,n){1&t&&(ho(Wke),ki(0))},encapsulation:2})}class Zw{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=!1;filterVisible=!1;currentPageDataSet;resizeObservable$;resizeSubscription$;favorite;constructor(e,t,n,r,o,a,s,l,u){this.nuviotClient=e,this.route=t,this.router=n,this.menuService=r,this.mruService=o,this.location=a,this.favoriteService=s,this.popupService=l,this.storage=u,ft.production&&(this.root=`/${ft.moduleRouteHome}`),this._onHeaderClickSubscription=r.onHeaderClick.subscribe(v=>{switch(v){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 Ie;add=new Ie;done=new Ie;selectedRowsChanged=new Ie;delete=new Ie;selectWithTag=new Ie;searchServer=new Ie;remove=new Ie;fullWidthElement;doneVisible=!1;_addVisible=!1;get addVisible(){return this._addVisible}set addVisible(e){this._addVisible=e}get selectedRecords(){return this._dataSet?this._dataSet?.filter(e=>e.selected):[]}onDragStart(e){this.dragStartX=e.pointerPosition.x}onDragMoved(e,t){const n=e.distance.x;this.draggingItem=t,n>0&&e.source._dragRef.reset()}draggingItem=null;onDragEnd(e,t){e.source.getFreeDragPosition().x-this.dragStartX{this._dataSet=this._pagedData.items,t?(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 e=this;return O(function*(){let n=(yield e.favoriteService.getUserFavorites()).modules.find(r=>r.moduleKey==ft.moduleRouteHome);n&&(e.favorite=n.items.find(r=>r.link==e.router.url))})()}serverSideSearch=!1;set listResponse(e){if(this._listResponse=e,e){this.data=new Ww(e);let t=window.location.pathname,n=t.substring(1).split("/");this.addMru&&this.mruService.addMRU({name:e.title,type:"List",moduleKey:ft.moduleRouteHome,icon:e.icon,summary:e.help,route:n,link:t}),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(e){e&&(this.columns=new sf,this.columns.columns=new md,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:"labels",header:"Labels",width:"150",fieldType:"labels",actualWidth:"150",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(e){this._topMargin=parseInt(e),this.setScrollableHeight()}get bottomMargin(){return this._bottomMargin.toString()}set bottomMargin(e){this._bottomMargin=parseInt(e),this.setScrollableHeight()}_selectAll=!1;get selectAll(){return this._selectAll}set selectAll(e){if(this._selectAll=e,this.currentPageDataSet)for(let t of this.currentPageDataSet)t.selected=e;this.selectedRowsChanged.emit(this.selectedRecords)}get scrollableHeight(){return this.fixedHeight?Number.parseInt(this.fixedHeight):this._scrollableHeight}set scrollableHeight(e){this._scrollableHeight=e}_fixedHeight;_fixedWidth;tableTitle="";tableIcon;addMru=!0;showTitleBlock=!0;set fixedWidth(e){this._fixedWidth=e?parseInt(e):void 0}get fixedWidth(){return this._fixedWidth?this._fixedWidth.toString():void 0}set fixedHeight(e){this._fixedHeight=e?parseInt(e):void 0}get fixedHeight(){return this._fixedHeight?this._fixedHeight.toString():void 0}_searchText;set searchText(e){this._searchText=e,this.searchNow()}get searchText(){return this._searchText}columnFilter(e,t,n){for(let r of n){const o=e[r.fieldName]?.toString().toLowerCase();if(o&&o.indexOf(t)>-1)return!0}return!1}sortColumn;refreshData(){let e;if(this.searchText){const t=this.searchText.toLowerCase();e=this.dataSet.filter(n=>this.columnFilter(n,t,this.columns.columns))}else e=this.dataSet;this.selectedCategory&&"-1"!=this.selectedCategory&&(e=e.filter(t=>t.categoryKey==this.selectedCategory)),console.log("Filtered",e,this.selectedCategory,this.searchText),this.filteredSet=e,this.sortColumn&&("asc"==this.sortColumn.sortDir?this.filteredSet.sort((t,n)=>t[this.sortColumn.fieldName]>n[this.sortColumn.fieldName]?1:-1):"desc"==this.sortColumn.sortDir&&this.filteredSet.sort((t,n)=>t[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 e=this.searchText.toLowerCase();this.filteredSet=this.dataSet.filter(t=>this.columnFilter(t,e,this.columns.columns))}else this.filteredSet=this.dataSet;this.currentPage=1,this.setPagedDataSet()}}filteredSet=[];pages=[];get dataSet(){return this._dataSet}set dataSet(e){e?(this._dataSet=e,this.filteredSet=this._dataSet,this.currentPage=1,this.setPagedDataSet(),this.resizeHeight()):(this._dataSet=null,this.currentPage=1,this.filteredSet=null)}setPagedDataSet(){var e=this;return O(function*(){if(e.filteredSet){yield e.restoreGridView(),e.recordCount=e.filteredSet.length,e.totalPages=Math.floor(e.recordCount/e.pageSize)+1,e.recordStartCount=(e.currentPage-1)*e.pageSize,e.recordEndCount=e.recordStartCount+e.pageSize,e.recordEndCount=Math.min(e.recordEndCount,e.filteredSet.length),e.currentPageDataSet=e.filteredSet.slice(e.recordStartCount,e.recordEndCount);let t=!0;for(let n of e.currentPageDataSet)t=n.selected&&t;if(e.selectAll=t,e.pages=[],e.totalPages>1){e.pages.push({enabled:e.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 e=this;return O(function*(){e.resizeObservable$=_n(window,"resize"),e.resizeSubscription$=e.resizeObservable$.subscribe(t=>{t&&e.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(e){"Previous"==e.name?this.currentPage>1&&(this.currentPage--,this.setPagedDataSet()):"Next"==e.name?this.currentPages[r]>l[r]?1:-1);let a=e.columns.columns.find(s=>s.fieldName==r);a?a.sortDir="asc":console.error("[SLTable__restoreGridView] - could not find column",r)}else if("desc"===o){e.filteredSet.sort((s,l)=>s[r]>l[r]?-1:1);let a=e.columns.columns.find(s=>s.fieldName==r);a?a.sortDir="desc":console.error("[SLTable__restoreGridView] - could not find column",r)}}e.resizeHeight()})()}getGridValue(e,t){if(e&&t)return t.split(".").reduce((n,r)=>n?.[r],e)}isEmptyGridValue(e){return null==e||"string"==typeof e&&0===e.trim().length}compareGridValues(e,t,n){const r=this.isEmptyGridValue(e),o=this.isEmptyGridValue(t);if(r&&o)return 0;if(r)return 1;if(o)return-1;let a=0;return"string"==typeof e&&"string"==typeof t?a=e.trim().localeCompare(t.trim(),void 0,{numeric:!0,sensitivity:"base"}):e>t?a=1:e{const s=t.getGridValue(o,n),l=t.getGridValue(a,n);return t.compareGridValues(s,l,r)}),yield t.storage.setItemAsync(t.getSortKey(),`${n}-${r}`),t.currentPage=1,t.setPagedDataSet()})()}getContent(e,t){if(t.fieldName){let n=t.fieldName.split(".");if(1==n.length)return e[t.fieldName];if(2==n.length)return e[n[0]]?e[n[0]][n[1]]:"";if(3==n.length)return e.field[0]&&e[n[0]][n[1]]?e[n[0]][n[1]][n[2]]:""}else if(t.content)return t.content}rowSelectedWithTag(e,t){var n=this;return O(function*(){if("remove"===e){if(yield n.popupService.showConfirmDelete("item"))if(n.remove.observed)n.remove.emit(t);else{let r=n._dataSet.indexOf(t);if(n.listResponse?.deleteUrl){let o=n.listResponse.deleteUrl.replace("{id}",t.id);(yield n.nuviotClient.delete(o)).successful&&(n.delete?.emit(t),n._dataSet.splice(r,1),n.setPagedDataSet())}else n.delete?.emit(t),n._dataSet.splice(r,1),n.setPagedDataSet()}}else n.selectWithTag.emit({tag:e,data:t})})()}contentScroll(e){let t=e.srcElement;t.scrollHeight-t.clientHeight-e.srcElement.scrollTop<10&&this.listResponse.hasMoreRecords&&this.loadMore()}showDrafts=!1;showDeleted=!1;showDraftsChanged(){var e=this;return O(function*(){let t={nextPartitionKey:e._listResponse.nextPartitionKey,nextRowKey:e._listResponse.nextRowKey,pageIndex:e._listResponse.pageIndex,pageSize:e._listResponse.pageSize,showDeleted:e.showDeleted,showDrafts:e.showDrafts},n=yield e.nuviotClient.getListResponse(e.data.url,t);e._listResponse=n,n.successful&&(e.dataSet=n.model,e.setPagedDataSet(),e.resizeHeight())})()}showDeletedChanged(){var e=this;return O(function*(){let t={nextPartitionKey:e._listResponse.nextPartitionKey,nextRowKey:e._listResponse.nextRowKey,pageIndex:e._listResponse.pageIndex,pageSize:e._listResponse.pageSize,showDeleted:e.showDeleted,showDrafts:e.showDrafts},n=yield e.nuviotClient.getListResponse(e.data.url,t);e._listResponse=n,n.successful&&(e.dataSet=n.model,e.setPagedDataSet(),e.resizeHeight())})()}rowTapped(e){console.log("Row tapped",e),this.select.emit(e)}rowSelected(e){this.selectedRowsChanged.emit(this.selectedRecords)}loading=!1;loadMore(){var e=this;return O(function*(){if(!e.loading){e.loading=!0;let t={nextPartitionKey:e._listResponse.nextPartitionKey,nextRowKey:e._listResponse.nextRowKey,pageIndex:e._listResponse.pageIndex+1,pageSize:e._listResponse.pageSize},n=yield e.nuviotClient.getListResponse(e.data.url,t);e._listResponse=n,n.successful&&(e.dataSet=e.dataSet?e.dataSet.concat(n.model):n.model,e.setPagedDataSet(),e.resizeHeight()),e.loading=!1}})()}addFavorite(){let e=this.router.url.split("/");console.log(e),console.log(this.route.snapshot.url),this.favorite={id:Yn.newGuid(),name:this.listResponse.title,type:"List",moduleKey:ft.moduleRouteHome,icon:this.listResponse.icon,summary:this.listResponse.help,route:e,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(e){window.location.href=`mailto:${e}`}makePhoneCall(e){document.querySelector("#rc-widget-adapter-frame").contentWindow.postMessage({type:"rc-adapter-new-call",phoneNumber:e,toCall:!0},"*")}donePressed(){this.done.observers.length>0?this.done.emit():this.location.back()}static \u0275fac=function(t){return new(t||Zw)(H(hn),H(mi),H(_i),H(zd),H(Ac),H(gc),H(Ic),H(yg),H(fo))};static \u0275cmp=Oe({type:Zw,selectors:[["app-sl-table"]],contentQueries:function(t,n,r){if(1&t&&An(r,sf,5),2&t){let o;ut(o=pt())&&(n.columns=o.first)}},viewQuery:function(t,n){if(1&t&&Wt(Gke,5),2&t){let r;ut(r=pt())&&(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:KDe,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"],[4,"ngFor","ngForOf"],[1,"entity-labels__pill",3,"ngStyle"],[1,"entity-labels__pill-text"],[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(t,n){1&t&&(ho(GDe),c(0,"div",0),ki(1,0,["#columns",""]),b(2,Xke,7,5,"h1",1),b(3,iMe,7,5,"h1",1),b(4,dMe,30,12,"div",2),c(5,"mat-menu",null,3)(7,"div",4)(8,"input",5),P("ngModelChange",function(o){return n.showDrafts=o})("ngModelChange",function(){return n.showDraftsChanged()}),d(),m(9," Show Drafts "),d(),c(10,"div",4)(11,"input",6),P("ngModelChange",function(o){return n.showDeleted=o})("ngModelChange",function(){return n.showDeletedChanged()}),d(),c(12,"span",7),m(13," Show Deleted"),d()()(),B(14,"div",8),c(15,"div",9),b(16,qMe,10,5,"table",10),b(17,JMe,4,6,"div",11),d(),c(18,"div",12),b(19,EDe,10,5,"table",10),b(20,ODe,4,6,"div",11),d(),b(21,VDe,7,5,"h1",13),b(22,qDe,3,2,"div",14),d()),2&t&&(p(2),h("ngIf",n.listResponse&&n.showTitleBlock),p(1),h("ngIf",!n.listResponse&&n.showTitleBlock&&n.tableIcon&&n.tableTitle),p(1),h("ngIf",n.filterVisible&&n.currentPageDataSet),p(4),h("ngModel",n.showDrafts),p(3),h("ngModel",n.showDeleted),p(5),h("ngIf",n.dataSet),p(1),h("ngIf",n.currentPageDataSet),p(2),h("ngIf",n.dataSet),p(1),h("ngIf",n.currentPageDataSet),p(1),h("ngIf",n.listResponse&&n.showTitleBlock),p(1),h("ngIf",n.currentPageDataSet))},dependencies:[es,Vi,Ot,rt,Rs,mc,Uu,x0,fI,Mr,Dr,Dn,Ml,pr,en,qt,Ake,$ke,Yke,vv,op,Cv,js,yv,fp],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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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(--color-accent);--color-fg-panel-link-active: 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}.form-command-bar[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:2rem;padding:.2rem .5rem;background:var(--color-bg-panel);border-bottom:1px solid var(--color-border-panel);box-shadow:0 1px 3px var(--color-shadow-panel)}.form-command-bar__labels[_ngcontent-%COMP%]{min-width:0}.form-command-bar__actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.25rem}.form-command-bar__action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--color-fg-panel-link);cursor:pointer;font:inherit;font-size:.875rem;line-height:1;padding:.3rem .55rem}.form-command-bar__action[_ngcontent-%COMP%]:hover{background:var(--color-bg-panel-active);border-color:var(--color-border-panel);color:var(--color-fg-panel-link-active)}.form-command-bar__action[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.875rem}.form-command-bar__action--primary[_ngcontent-%COMP%]{background:var(--color-primary-button);border-color:var(--color-primary-button);color:var(--color-filled-button-text)}.form-command-bar__action--primary[_ngcontent-%COMP%]:hover{background:var(--color-primary-button-hover);border-color:var(--color-primary-button-hover);color:var(--color-filled-button-text)}.form-command-bar__dirty[_ngcontent-%COMP%]{font-weight:800;margin-left:.125rem}.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}@media (max-width: 900px){.form-command-bar[_ngcontent-%COMP%]{grid-template-columns:1fr;align-items:stretch}.form-command-bar__actions[_ngcontent-%COMP%]{justify-content:flex-start}}.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%]{display:flex;justify-content:flex-end;gap:5px}.save-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-right:10px}.save-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child .btn[_ngcontent-%COMP%]{margin:0}.image-generation-modal[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{width:calc(100vw - 32px);max-width:1400px;height:calc(100vh - 32px);margin:16px auto}.image-generation-modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{height:100%;max-height:100%;overflow:hidden}.image-generation-modal[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{height:100%;padding:0;overflow:hidden}.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}}.entity-labels__pill[_ngcontent-%COMP%]{align-items:center;border-radius:999px;display:inline-flex;font-size:.75rem;font-weight:700;gap:.25rem;line-height:1;max-width:14rem;padding:.25rem .45rem}.entity-labels__pill-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-labels__pill-remove[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;font-size:.875rem;line-height:.75;margin:0 -.15rem 0 0;opacity:.75;padding:0 .15rem}.entity-labels__pill-remove[_ngcontent-%COMP%]:hover{opacity:1}']})}function QDe(i,e){if(1&i&&(c(0,"option",7),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),Ae(t.text)}}function ZDe(i,e){if(1&i){const t=re();c(0,"div")(1,"h4"),m(2,"Step 1. Select a Device Repository"),d(),B(3,"hr",4),c(4,"select",5),P("ngModelChange",function(r){return E(t),I(g().onDeviceRepoSelected(r))})("ngModelChange",function(r){return E(t),I(g().selectedRepoId=r)}),b(5,QDe,2,2,"option",6),d()()}if(2&i){const t=g();p(4),h("ngModel",t.selectedRepoId),p(1),h("ngForOf",t.repos)}}function XDe(i,e){if(1&i&&(c(0,"option",7),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.id),p(1),Ae(t.text)}}function JDe(i,e){if(1&i){const t=re();c(0,"div",12)(1,"label"),m(2,"Device Models"),d(),c(3,"select",5),P("ngModelChange",function(r){return E(t),I(g(2).deviceModelSelected(r))})("ngModelChange",function(r){return E(t),I(g(2).selectedDeviceModelId=r)}),b(4,XDe,2,2,"option",6),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.selectedDeviceModelId),p(1),h("ngForOf",t.deviceTypes)}}function eTe(i,e){if(1&i){const t=re();c(0,"app-sl-table",18),P("select",function(r){return E(t),I(g(2).onDeviceSelected(r))}),c(1,"grid-columns"),B(2,"grid-column",19)(3,"grid-column",20),d()()}2&i&&h("listResponse",g(2).devices)}function tTe(i,e){1&i&&(c(0,"div")(1,"h4"),m(2,"No devices found"),d()())}function nTe(i,e){if(1&i){const t=re();c(0,"div")(1,"h4"),m(2,"Step 2. Select a Device"),d(),B(3,"hr",4),c(4,"div",8)(5,"div",9)(6,"div",10),b(7,JDe,5,2,"div",11),d(),c(8,"div",10)(9,"div",12)(10,"label"),m(11,"Device Id"),d(),B(12,"input",13),d()(),c(13,"div",14)(14,"button",15),P("click",function(){return E(t),I(g().search())}),B(15,"i",16),d()()()(),b(16,eTe,4,1,"app-sl-table",17),b(17,tTe,3,0,"div",1),d()}if(2&i){const t=g();p(7),h("ngIf",t.deviceTypes),p(5),h("ngModel",t.searchDeviceId),p(4),h("ngIf",t.devices&&t.devices.model.length>0),p(1),h("ngIf",t.devices&&0==t.devices.model.length)}}class Xw{deviceService;activeModal;constructor(e,t){this.deviceService=e,this.activeModal=t,this.showLoadingIndicator=!1,this.showDeviceRepos=!1}selectedDeviceId;deviceSelected=new Ie;devicePickerCancelled=new Ie;deviceRepoSelected=new Ie;repos;deviceConfigs;deviceTypes;devices;hidden;showDeviceRepos;searchDeviceId;selectedRepoId="-1";selectedDeviceModelId="-1";showLoadingIndicator;ngOnInit(){var e=this;return O(function*(){e.repos=(yield e.deviceService.loadDeviceRepositories()).model.map(t=>({id:t.id,text:t.name,key:t.key})),e.deviceTypes=(yield e.deviceService.getDeviceTypes()).model.map(t=>({id:t.id,text:t.name,key:t.key})),e.repos.unshift({id:"-1",text:"-select repository-",key:"-1"}),console.log(e.selectedRepoId),"-1"!=e.selectedRepoId&&(e.devices=yield e.deviceService.getDevicesForRepo(e.selectedRepoId))})()}onDeviceRepoSelected(e){var t=this;return O(function*(){t.selectedRepoId=e,t.devices=yield t.deviceService.getDevicesForRepo(e)})()}search(){var e=this;return O(function*(){e.devices=null})()}deviceModelSelected(e){this.search()}onDeviceSelected(e){console.log(e),this.deviceSelected.emit({deviceSummary:e,deviceRepo:this.repos.find(t=>t.id===this.selectedRepoId)}),this.activeModal.dismiss()}cancel(){this.showDeviceRepos?this.activeModal.dismiss():(this.devices=null,this.devicePickerCancelled.emit(),this.showDeviceRepos=!0)}static \u0275fac=function(t){return new(t||Xw)(H(mp),H(ar))};static \u0275cmp=Oe({type:Xw,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(t,n){1&t&&(c(0,"div")(1,"div",0),b(2,ZDe,6,2,"div",1),b(3,nTe,18,4,"div",1),c(4,"div",2)(5,"button",3),P("click",function(){return n.cancel()}),m(6,"Cancel"),d()()()()),2&t&&(p(2),h("ngIf",n.repos),p(1),h("ngIf",n.devices))},dependencies:[Ot,rt,Mr,Dr,Dn,pr,en,qt,iy,sf,Zw]})}function iTe(i,e){if(1&i){const t=re();c(0,"span",14),P("click",function(r){return E(t),g(3).clearEntityHeaderValue(),I(r.stopPropagation())}),B(1,"i",15),d()}}const rTe=function(i){return{"picker-link":i}};function oTe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).pickEntityHeaderValue())}),c(1,"span",12),m(2),d(),b(3,iTe,2,0,"span",13),d()}if(2&i){const t=g(2);p(1),h("ngClass",bt(3,rTe,t.field.isUserEditable)),p(1),Ae(t.field.value?t.field.value.text:t.field.watermark),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable)}}function aTe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function sTe(i,e){1&i&&(c(0,"span",16),B(1,"span",17),d()),2&i&&mt("data-target",g(2).popupId)}function lTe(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,oTe,4,5,"span",8),b(6,aTe,2,1,"div",9),d()(),c(7,"div"),b(8,sTe,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class Jw extends Gt{modalService;constructor(e){super(),this.modalService=e}ngOnInit(){super.ngOnInit()}pickEntityHeaderValue(){this.modalService.open(Xw,{size:"lg"}).componentInstance.deviceSelected.subscribe(t=>{this.field.value={id:t.deviceSummary.id,text:t.deviceSummary.deviceName},this.field.display=t.deviceSummary.deviceName,this.changed(this.field)})}clearEntityHeaderValue(){this.field.value=void 0,this.field.display=void 0,this.changed(this.field)}static \u0275fac=function(t){return new(t||Jw)(H(Pn))};static \u0275cmp=Oe({type:Jw,selectors:[["app-device-picker-field"]],features:[it],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(t,n){1&t&&(b(0,lTe,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn],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 cTe(i,e){1&i&&(c(0,"span",7),B(1,"i",8),d()),2&i&&mt("data-target",g().popupId)}class e2 extends Gt{constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(t){return new(t||e2)};static \u0275cmp=Oe({type:e2,selectors:[["app-money-editor"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"span",2),m(3,"$"),d(),c(4,"input",3),P("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)}),d(),b(5,cTe,2,1,"span",4),d(),B(6,"app-form-field-validation-section",5)(7,"app-form-field-help",6)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(4),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),_t("placeholder",n.field.watermark),h("ngModel",n.field.value)("disabled",!n.field.isUserEditable),p(1),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,Ea,en,qt,rt,Nn,Bn,Vn]})}function dTe(i,e){1&i&&(c(0,"span",9),B(1,"i",10),d()),2&i&&mt("data-target",g().popupId)}class t2 extends Gt{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(t){return new(t||t2)};static \u0275cmp=Oe({type:t2,selectors:[["app-phone-field"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"input",2),P("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)}),d(),c(3,"span",3),B(4,"a",4),c(5,"i",5),P("click",function(o){return n.callContact(),o.stopPropagation()}),d()(),b(6,dTe,2,1,"span",6),d(),B(7,"app-form-field-validation-section",7)(8,"app-form-field-help",8)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),_t("placeholder",n.field.watermark),h("ngModel",n.field.value)("type",n.inputType)("disabled",!n.field.isUserEditable),p(2),_t("href",n.field.value,gi),p(2),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,en,qt,rt,Nn,Bn,Vn]})}function uTe(i,e){if(1&i){const t=re();c(0,"div")(1,"span",9),P("click",function(){return E(t),I(g().canEditCard=!0)}),m(2,"Change Credit Card"),d()()}}class n2 extends Gt{_stripe;_card;canEditCard=!0;constructor(){super()}ngOnInit(){super.ngOnInit(),console.log(this.model),this._stripe=ft.production?new Stripe("pk_live_Hrvuo6OffaphWzWyUj8LtyHr"):new Stripe("pk_test_xdymRJmdqaM1PYpkV4Q87jDi");const t=this._stripe.elements();this._card=t.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 e=this;return O(function*(){let t=yield e._stripe.createSource(e._card);t.error?e.field.requiredMessage=t.error.message:(e.view.paymentToken.value=t.source.id,e.model.paymentToken=t.source.id,e.model.paymentTokenStatus="ok",e.view.status.value="ok",e.view.paymentTokenStatus="ok",e.canEditCard=!1)})()}static \u0275fac=function(t){return new(t||n2)};static \u0275cmp=Oe({type:n2,selectors:[["app-payment-method"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div")(2,"div",1)(3,"div",2),B(4,"div",3),c(5,"div")(6,"i",4),P("click",function(){return n.submitCC()}),d()()(),B(7,"div",5),d(),b(8,uTe,3,0,"div",6),d(),B(9,"app-form-field-validation-section",7)(10,"app-form-field-help",8)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(8),h("ngIf",!n.canEditCard),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[rt,Nn,Bn,Vn]})}function pTe(i,e){if(1&i){const t=re();c(0,"span",14),P("click",function(r){return E(t),g(3).clearEntityHeaderValue(),I(r.stopPropagation())}),B(1,"i",15),d()}}const hTe=function(i){return{"picker-link":i}};function gTe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).pickEntityHeaderValue())}),c(1,"span",12),m(2),d(),b(3,pTe,2,0,"span",13),d()}if(2&i){const t=g(2);p(1),h("ngClass",bt(3,hTe,t.field.isUserEditable)),p(1),Ae(t.field.value?t.field.value.text:t.field.watermark),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable)}}function fTe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function mTe(i,e){1&i&&(c(0,"span",16),B(1,"span",17),d()),2&i&&mt("data-target",g(2).popupId)}function _Te(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,gTe,4,5,"span",8),b(6,fTe,2,1,"div",9),d()(),c(7,"div"),b(8,mTe,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class r2 extends Gt{constructor(){super()}ngOnInit(){super.ngOnInit()}pickEntityHeaderValue(){}clearEntityHeaderValue(){}static \u0275fac=function(t){return new(t||r2)};static \u0275cmp=Oe({type:r2,selectors:[["app-org-location-picker"]],features:[it],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(t,n){1&t&&(b(0,_Te,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn]})}const Ep={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},u$=class yTe{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Ep[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}},ry=6378137,lf=Math.PI*ry,bTe=[-lf,-lf,lf,lf],CTe=[-180,-85,180,85],o2=ry*Math.log(Math.tan(Math.PI/2));class cf extends u${constructor(e){super({code:e,units:"m",extent:bTe,global:!0,worldExtent:CTe,getPointResolution:function(t,n){return t/Math.cosh(n[1]/ry)}})}}const p$=[new cf("EPSG:3857"),new cf("EPSG:102100"),new cf("EPSG:102113"),new cf("EPSG:900913"),new cf("http://www.opengis.net/def/crs/EPSG/0/3857"),new cf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function wTe(i,e,t){const n=i.length;t=t>1?t:2,void 0===e&&(e=t>2?i.slice():new Array(n));for(let r=0;ro2?o=o2:o<-o2&&(o=-o2),e[r+1]=o}return e}function xTe(i,e,t){const n=i.length;t=t>1?t:2,void 0===e&&(e=t>2?i.slice():new Array(n));for(let r=0;ri[2]&&(l|=4),si[3]&&(l|=2),0===l&&(l=1),l}function Bc(i,e,t,n,r){return r?(r[0]=i,r[1]=e,r[2]=t,r[3]=n,r):[i,e,t,n]}function Ap(i){return Bc(1/0,1/0,-1/0,-1/0,i)}function oy(i,e){return i[0]==e[0]&&i[2]==e[2]&&i[1]==e[1]&&i[3]==e[3]}function uf(i,e){e[0]i[2]&&(i[2]=e[0]),e[1]i[3]&&(i[3]=e[1])}function C$(i,e,t,n,r){for(;te[0]?i[0]:e[0],n[1]=i[1]>e[1]?i[1]:e[1],n[2]=i[2]=e[0]&&i[1]<=e[3]&&i[3]>=e[1]}function ay(i){return i[2]=t[2])){const r=Wi(t),a=Math.floor((n[0]-t[0])/r)*r;i[0]-=a,i[2]-=a}return i}function Or(i,e,t){return Math.min(Math.max(i,e),t)}function UTe(i,e,t,n,r,o){const a=r-t,s=o-n;if(0!==a||0!==s){const l=((i-t)*a+(e-n)*s)/(a*a+s*s);l>1?(t=r,n=o):l>0&&(t+=a*l,n+=s*l)}return gf(i,e,t,n)}function gf(i,e,t,n){const r=t-i,o=n-e;return r*r+o*o}function h2(i){return i*Math.PI/180}function Fp(i,e){const t=i%e;return t*e<0?t+e:t}function el(i,e,t){return i+t*(e-i)}function g2(i,e){const t=Math.pow(10,e);return Math.round(i*t)/t}function f2(i,e){return Math.floor(g2(i,e))}function m2(i,e){return Math.ceil(g2(i,e))}function _2(i,e){let t=!0;for(let n=i.length-1;n>=0;--n)if(i[n]!=e[n]){t=!1;break}return t}function wI(i,e){const t=Math.cos(e),n=Math.sin(e),o=i[1]*t+i[0]*n;return i[0]=i[0]*t-i[1]*n,i[1]=o,i}function D$(i,e){if(e.canWrapX()){const t=Wi(e.getExtent()),n=function KTe(i,e,t){const n=e.getExtent();let r=0;return e.canWrapX()&&(i[0]n[2])&&(t=t||Wi(n),r=Math.floor((i[0]-n[0])/t)),r}(i,e,t);n&&(i[0]-=n*t)}return i}function xI(i,e,t){t=t||6371008.8;const n=h2(i[1]),r=h2(e[1]),o=(r-n)/2,a=h2(e[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*t*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}const sy_warn=2;let b2=1;function T$(...i){b2>sy_warn||console.warn(...i)}let MI=!0;function S$(i){MI=!(void 0===i||i)}function DI(i,e){if(void 0!==e)for(let t=0,n=i.length;t=-180&&i[0]<=180&&i[1]>=-90&&i[1]<=90&&(MI=!1,T$("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),i}function EI(i,e){return i}function Rp(i,e){return i}!function oSe(){A$(p$),A$(g$),function eSe(i,e,t,n){i.forEach(function(r){e.forEach(function(o){s2(r,o,t),s2(o,r,n)})})}(g$,p$,wTe,xTe)}();const $c=class aSe{constructor(e){this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},II=class sSe{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function Op(i,e){return i>e?1:i0?r-1:r}return n-1}if(t>0){for(let r=1;r0)}removeEventListener(e,t){const n=this.listeners_&&this.listeners_[e];if(n){const r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=_f,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}};function Ti(i,e,t,n,r){if(n&&n!==i&&(t=t.bind(n)),r){const a=t;t=function(){i.removeEventListener(e,t),a.apply(this,arguments)}}const o={target:i,type:e,listener:t};return i.addEventListener(e,t),o}function x2(i,e,t,n){return Ti(i,e,t,n,!0)}function gr(i){i&&i.target&&(i.target.removeEventListener(i.type,i.listener),py(i))}const L$=class k2 extends w2{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(e,t){if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let o=0;oA&&(D=(A+D)/2,A=D),W>J&&(W=(J+W)/2,J=W);let pe=Or(n[0],D,A),fe=Or(n[1],W,J);if(a&&t&&r){const ye=30*r;pe+=-ye*Math.log(1+Math.max(0,D-n[0])/ye)+ye*Math.log(1+Math.max(0,n[0]-A)/ye),fe+=-ye*Math.log(1+Math.max(0,W-n[1])/ye)+ye*Math.log(1+Math.max(0,n[1]-J)/ye)}return[pe,fe]}}function mSe(i){return i}function FI(i,e,t,n){const r=Wi(e)/t[0],o=Js(e)/t[1];return n?Math.min(i,Math.max(r,o)):Math.min(i,Math.min(r,o))}function RI(i,e,t){let n=Math.min(i,e);return n*=Math.log(1+50*Math.max(0,i/e-1))/50+1,t&&(n=Math.max(n,t),n/=Math.log(1+50*Math.max(0,t/i-1))/50+1),Or(n,t/2,2*e)}function V$(i,e,t,n,r){return t=void 0===t||t,function(o,a,s,l){if(void 0!==o){const u=n?FI(i,n,s,r):i;return t&&l?RI(o,u,e):Or(o,e,u)}}}function OI(i){if(void 0!==i)return 0}function $$(i){if(void 0!==i)return i}function H$(i){return Math.pow(i,3)}function vf(i){return 1-H$(1-i)}function LI(i){return 3*i*i-2*i*i*i}function CSe(i){return i}const eu=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",wSe=eu.includes("firefox"),xSe=(eu.includes("safari")&&!eu.includes("chrom")&&(eu.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(eu)),eu.includes("webkit")&&!eu.includes("edge")),U$=eu.includes("macintosh"),j$=typeof devicePixelRatio<"u"?devicePixelRatio:1,NI=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,kSe=typeof Image<"u"&&Image.prototype.decode,Y$=function(){let i=!1;try{const e=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return i}();function ro(i,e){const t=e[0],n=e[1];return e[0]=i[0]*t+i[2]*n+i[4],e[1]=i[1]*t+i[3]*n+i[5],e}function Uc(i,e,t,n,r,o,a,s){const l=Math.sin(o),u=Math.cos(o);return i[0]=n*u,i[1]=r*l,i[2]=-n*l,i[3]=r*u,i[4]=a*n*u-s*n*l+e,i[5]=a*r*l+s*r*u+t,i}function M2(i,e){const t=function TSe(i){return i[0]*i[3]-i[1]*i[2]}(e);Jn(0!==t,32);const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5];return i[0]=a/t,i[1]=-r/t,i[2]=-o/t,i[3]=n/t,i[4]=(o*l-a*s)/t,i[5]=-(n*l-r*s)/t,i}let z$;function $I(i){const e="matrix("+i.join(", ")+")";if(NI)return e;const t=z$||(z$=document.createElement("div"));return t.style.transform=e,t.style.transform}function Lp(i,e,t,n,r,o){o=o||[];let a=0;for(let s=e;s1)v=t;else{if(D>0){for(let A=0;Ar&&(r=u),o=s,a=l}return r}function X$(i,e,t,n,r,o,a,s,l,u,f){if(e==t)return u;let v,D;if(0===r){if(D=gf(a,s,i[e],i[e+1]),D0&&J>A)&&(W<0&&pe0&&pe>W)?(u=v,f=D):(o[a++]=u,o[a++]=f,s=u,l=f,u=v,f=D)}return o[a++]=u,o[a++]=f,a}function yf(i,e,t,n,r){r=void 0!==r?r:[];let o=0;for(let a=e;a0;){const v=u.pop(),D=u.pop();let A=0;const W=i[D],J=i[D+1],pe=i[v],fe=i[v+1];for(let ye=D+n;yeA&&(f=ye,A=Re)}A>r&&(l[(f-e)/n]=1,D+no&&(u-s)*(o-l)-(r-s)*(f-l)>0&&a++:f<=o&&(u-s)*(o-l)-(r-s)*(f-l)<0&&a--,s=u,l=f}return 0!==a}function YI(i,e,t,n,r,o){if(0===t.length||!Bp(i,e,t[0],n,r,o))return!1;for(let a=1,s=t.length;a=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3])||function HSe(i,e,t,n,r){let o;for(e+=n;e=a&&J<=l),!n&&!!(4&o)&&!(4&r)&&(pe=A-(D-l)*W,n=pe>=s&&pe<=u),!n&&!!(8&o)&&!(8&r)&&(J=D-(A-s)/W,n=J>=a&&J<=l),!n&&16&o&&!(16&r)&&(pe=A-(D-a)*W,n=pe>=s&&pe<=u)}return n}(r,a,s)}))}function lH(i,e,t,n,r){return!!(zI(i,e,t,n,r)||Bp(i,e,t,n,r[0],r[1])||Bp(i,e,t,n,r[0],r[3])||Bp(i,e,t,n,r[2],r[1])||Bp(i,e,t,n,r[2],r[3]))}function USe(i,e,t,n){for(;e0}function qI(i,e,t,n,r){r=void 0!==r&&r;for(let o=0,a=t.length;ofe&&(u=(f+v)/2,YI(i,e,t,n,u,W)&&(pe=u,fe=ye)),f=v}return isNaN(pe)&&(pe=r[o]),a?(a.push(pe,W,fe),a):[pe,W,fe]}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new VSe(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new aH(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[];let o=0;for(let a=0,s=n.length;af&&D1&&"function"==typeof arguments[t-1]&&(n=arguments[t-1],--t);let r=0;for(;r0}getInteracting(){return this.hints_[1]>0}cancelAnimations(){let e;this.setHint(0,-this.hints_[0]);for(let t=0,n=this.animations_.length;t=0;--n){const r=this.animations_[n];let o=!0;for(let a=0,s=r.length;a0?u/l.duration:1;f>=1?(l.complete=!0,f=1):o=!1;const v=l.easing(f);if(l.sourceCenter){const D=l.sourceCenter[0],A=l.sourceCenter[1],W=l.targetCenter[0],J=l.targetCenter[1];this.nextCenter_=l.targetCenter,this.targetCenter_=[D+v*(W-D),A+v*(J-A)]}if(l.sourceResolution&&l.targetResolution){const D=1===v?l.targetResolution:l.sourceResolution+v*(l.targetResolution-l.sourceResolution);if(l.anchor){const A=this.getViewportSize_(this.getRotation()),W=this.constraints_.resolution(D,0,A,!0);this.targetCenter_=this.calculateCenterZoom(W,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=D,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){const D=1===v?Fp(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+v*(l.targetRotation-l.sourceRotation);if(l.anchor){const A=this.constraints_.rotation(D,!0);this.targetCenter_=this.calculateCenterRotate(A,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=D}if(this.applyTargetState_(!0),t=!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&&S2(a,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let n;const r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],wI(n,e-this.getRotation()),function YTe(i,e){i[0]+=+e[0],i[1]+=+e[1]}(n,t)),n}calculateCenterZoom(e,t){let n;const r=this.getCenterInternal(),o=this.getResolution();return void 0!==r&&void 0!==o&&(n=[t[0]-e*(t[0]-r[0])/o,t[1]-e*(t[1]-r[1])/o]),n}getViewportSize_(e){const t=this.viewportSize_;if(e){const n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e&&SI(e,this.getProjection())}getCenterInternal(){return this.get(tl.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){return EI(this.calculateExtentInternal(e),this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const t=this.getCenterInternal();Jn(t,1);const n=this.getResolution();Jn(void 0!==n,2);const r=this.getRotation();return Jn(void 0!==r,3),bI(t,n,r,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(tl.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal(Rp(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t=t||this.getViewportSizeMinusPadding_();const n=Wi(e)/t[0],r=Js(e)/t[1];return Math.max(n,r)}getResolutionForValueFunction(e){e=e||2;const t=this.getConstrainedResolution(this.maxResolution_),r=Math.log(t/this.minResolution_)/Math.log(e);return function(o){return t/Math.pow(e,o*r)}}getRotation(){return this.get(tl.ROTATION)}getValueForResolutionFunction(e){const t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),o=Math.log(n/this.minResolution_)/t;return function(a){return Math.log(n/a)/t/o}}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e);const n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t}getState(){const e=this.getProjection(),t=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const o=this.padding_;if(o){const a=this.getViewportSizeMinusPadding_();r=KI(r,this.getViewportSize_(),[a[0]/2+o[3],a[1]/2+o[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let n,r,t=this.minZoom_||0;if(this.resolutions_){const o=AI(this.resolutions_,e,1);t=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 t+Math.log(n/e)/Math.log(r)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const t=Or(Math.floor(e),0,this.resolutions_.length-2);return this.resolutions_[t]/Math.pow(this.resolutions_[t]/this.resolutions_[t+1],Or(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,t){let n;if(Jn(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e))Jn(!ay(e),25),n=uH(Rp(e,this.getProjection()));else if("Circle"===e.getType()){const r=Rp(e.getExtent(),this.getProjection());n=uH(r),n.rotate(this.getRotation(),pf(r))}else{const r=R$();n=r?e.clone().transform(r,this.getProjection()):e}this.fitInternal(n,t)}rotatedExtentForGeometry(e){const t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),o=e.getFlatCoordinates(),a=e.getStride();let s=1/0,l=1/0,u=-1/0,f=-1/0;for(let v=0,D=o.length;v0;)this.pop()}extend(e){for(let t=0,n=e.length;tthis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new E2("add",t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){const t=this.array_;for(let n=0,r=t.length;n=this.getLength())return;const t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new E2("remove",t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);const r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new E2("remove",r,e)),this.dispatchEvent(new E2("add",t,e))}updateLength_(){this.set("length",this.array_.length)}assertUnique_(e,t){for(let n=0,r=this.array_.length;n=1024){let o=0;for(const a in e)0==(3&o++)&&(delete e[a],--t)}r=function XSe(i){let e,t,n,r,o;if(gH.exec(i)&&(i=function mH(i){const e=document.createElement("div");if(e.style.color=i,""!==e.style.color){document.body.appendChild(e);const t=getComputedStyle(e).color;return document.body.removeChild(e),t}return""}(i)),hH.exec(i)){const a=i.length-1;let s;s=a<=4?1:2;const l=4===a||8===a;e=parseInt(i.substr(1+0*s,s),16),t=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&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,l&&(r=(r<<4)+r)),o=[e,t,n,r/255]}else i.startsWith("rgba(")?(o=i.slice(5,-1).split(",").map(Number),_H(o)):i.startsWith("rgb(")?(o=i.slice(4,-1).split(",").map(Number),o.push(1),_H(o)):Jn(!1,14);return o}(n),e[n]=r,++t}return r}}();function I2(i){return Array.isArray(i)?i:ZSe(i)}function _H(i){return i[0]=Or(i[0]+.5|0,0,255),i[1]=Or(i[1]+.5|0,0,255),i[2]=Or(i[2]+.5|0,0,255),i[3]=Or(i[3],0,1),i}function vH(i){let e=i[0];e!=(0|e)&&(e=e+.5|0);let t=i[1];t!=(0|t)&&(t=t+.5|0);let n=i[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+t+","+n+","+(void 0===i[3]?1:Math.round(100*i[3])/100)+")"}function yH(i,e,t){return e+":"+i+":"+(t?fH(t):"null")}const A2=new class JSe{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 e=0;for(const t in this.cache_){const n=this.cache_[t];0==(3&e++)&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}}get(e,t,n){const r=yH(e,t,n);return r in this.cache_?this.cache_[r]:null}set(e,t,n,r){const o=yH(e,t,n);this.cache_[o]=r,++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}},bH=class eEe extends Hc{constructor(e){super(),this.background_=e.background;const t=Object.assign({},e);"object"==typeof e.properties&&(delete t.properties,Object.assign(t,e.properties)),t.opacity=void 0!==e.opacity?e.opacity:1,Jn("number"==typeof t.opacity,64),t.visible=void 0===e.visible||e.visible,t.zIndex=e.zIndex,t.maxResolution=void 0!==e.maxResolution?e.maxResolution:1/0,t.minResolution=void 0!==e.minResolution?e.minResolution:0,t.minZoom=void 0!==e.minZoom?e.minZoom:-1/0,t.maxZoom=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==t.className?t.className:"ol-layer",delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=Or(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}getLayersArray(e){return vi()}getLayerStatesArray(e){return vi()}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 vi()}getVisible(){return this.get("visible")}getZIndex(){return this.get("zIndex")}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set("extent",e)}setMaxResolution(e){this.set("maxResolution",e)}setMinResolution(e){this.set("minResolution",e)}setMaxZoom(e){this.set("maxZoom",e)}setMinZoom(e){this.set("minZoom",e)}setOpacity(e){Jn("number"==typeof e,64),this.set("opacity",e)}setVisible(e){this.set("visible",e)}setZIndex(e){this.set("zIndex",e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}};function QI(i,e){if(!i.visible)return!1;const t=e.resolution;if(t=i.maxResolution)return!1;const n=e.zoom;return n>i.minZoom&&n<=i.maxZoom}const P2=class tEe extends bH{constructor(e){const t=Object.assign({},e);delete t.source,super(t),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener("source",this.handleSourcePropertyChange_),this.setSource(e.source?e.source:null)}getLayersArray(e){return(e=e||[]).push(this),e}getLayerStatesArray(e){return(e=e||[]).push(this.getLayerState()),e}getSource(){return this.get("source")||null}getRenderSource(){return this.getSource()}getSourceState(){const e=this.getSource();return e?e.getState():"undefined"}handleSourceChange_(){this.changed(),!this.sourceReady_&&"ready"===this.getSource().getState()&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(gr(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const e=this.getSource();e&&(this.sourceChangeKey_=Ti(e,"change",this.handleSourceChange_,this),"ready"===e.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null}isVisible(e){let t;const n=this.getMapInternal();let r;!e&&n&&(e=n.getView()),t=e instanceof Ll?{viewState:e.getState(),extent:e.calculateExtent()}:e,!t.layerStatesArray&&n&&(t.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),r=t.layerStatesArray?t.layerStatesArray.find(a=>a.layer===this):this.getLayerState();const o=this.getExtent();return QI(r,t.viewState)&&(!o||ua(o,t.extent))}getAttributions(e){if(!this.isVisible(e))return[];let t;const n=this.getSource();if(n&&(t=n.getAttributions()),!t)return[];let o=t(e instanceof Ll?e.getViewStateAndExtent():e);return Array.isArray(o)||(o=[o]),o}render(e,t){const n=this.getRenderer();return n.prepareFrame(e)?(this.rendered=!0,n.renderFrame(e,t)):null}unrender(){this.rendered=!1}setMapInternal(e){e||this.unrender(),this.set("map",e)}getMapInternal(){return this.get("map")}setMap(e){this.mapPrecomposeKey_&&(gr(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(gr(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Ti(e,"precompose",function(t){const r=t.frameState.layerStatesArray,o=this.getLayerState(!1);Jn(!r.some(function(a){return a.layer===o.layer}),67),r.push(o)},this),this.mapRenderKey_=Ti(this,"change",e.render,e),this.changed())}setSource(e){this.set("source",e)}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 iEe(i,e){A2.expire()}const rEe=class nEe extends II{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,t){vi()}calculateMatrices2D(e){const t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Uc(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),M2(r,n)}forEachFeatureAtCoordinate(e,t,n,r,o,a,s,l){let u;const f=t.viewState;function v(Te,Re,Ye,We){return o.call(a,Re,Te?Ye:null,We)}const D=f.projection,A=D$(e.slice(),D),W=[[0,0]];if(D.canWrapX()&&r){const Re=Wi(D.getExtent());W.push([-Re,0],[Re,0])}const J=t.layerStatesArray,pe=J.length,fe=[],ye=[];for(let Te=0;Te=0;--Re){const Ye=J[Re],We=Ye.layer;if(We.hasRenderer()&&QI(Ye,f)&&s.call(l,We)){const Ze=We.getRenderer(),ht=We.getSource();if(Ze&&ht){const vt=ht.getWrapX()?A:e,Ht=v.bind(null,Ye.managed);ye[0]=vt[0]+W[Te][0],ye[1]=vt[1]+W[Te][1],u=Ze.forEachFeatureAtCoordinate(ye,t,n,Ht,fe)}if(u)return u}}if(0===fe.length)return;const we=1/fe.length;return fe.forEach((Te,Re)=>Te.distanceSq+=Re*we),fe.sort((Te,Re)=>Te.distanceSq-Re.distanceSq),fe.some(Te=>u=Te.callback(Te.feature,Te.layer,Te.geometry)),u}hasFeatureAtCoordinate(e,t,n,r,o,a){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,uy,this,o,a)}getMap(){return this.map_}renderFrame(e){vi()}flushDeclutterItems(e){}scheduleExpireIconCache(e){A2.canExpireCache()&&e.postRenderFunctions.push(iEe)}},CH=class oEe extends $c{constructor(e,t,n,r){super(e),this.inversePixelTransform=t,this.frameState=n,this.context=r}},F2="ol-hidden",R2="ol-unselectable",ZI="ol-control",wH="ol-collapsed",aEe=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"),xH=["style","variant","weight","size","lineHeight","family"],kH=function(i){const e=i.match(aEe);if(!e)return null;const t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let n=0,r=xH.length;nMath.max(r,B2(i,o)),0);return t[e]=n,n}const fEe=class gEe extends rEe{constructor(e){super(e),this.fontChangeListenerKey_=Ti(zc,"propertychange",e.redrawText.bind(e)),this.element_=document.createElement("div");const t=this.element_.style;t.position="absolute",t.width="100%",t.height="100%",t.zIndex="0",this.element_.className=R2+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(e,t){const n=this.getMap();if(n.hasListener(e)){const r=new CH(e,void 0,t);n.dispatchEvent(r)}}disposeInternal(){gr(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(e){if(!e)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(e),this.dispatchRenderEvent("precompose",e);const t=e.layerStatesArray.sort(function(a,s){return a.zIndex-s.zIndex}),n=e.viewState;this.children_.length=0;const r=this.declutterLayers_;r.length=0;let o=null;for(let a=0,s=t.length;a=0;--n)t[n].renderDeclutter(e);t.length=0}};class tu extends $c{constructor(e,t){super(e),this.layer=t}}class nA extends bH{constructor(e){e=e||{};const t=Object.assign({},e);delete t.layers;let n=e.layers;super(t),this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener("layers",this.handleLayersChanged_),n?Array.isArray(n)?n=new Nl(n.slice(),{unique:!0}):Jn("function"==typeof n.getArray,43):n=new Nl(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(gr),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(Ti(e,"add",this.handleLayersAdd_,this),Ti(e,"remove",this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(gr);py(this.listenerKeys_);const t=e.getArray();for(let n=0,r=t.length;n{this.clickTimeoutId_=void 0;const n=new nu(Cr.SINGLECLICK,this.map_,e);this.dispatchEvent(n)},250)}updateActivePointers_(e){const t=e,n=t.pointerId;if(t.type==Cr.POINTERUP||t.type==Cr.POINTERCANCEL){delete this.trackedTouches_[n];for(const r in this.trackedTouches_)if(this.trackedTouches_[r].target!==t.target){delete this.trackedTouches_[r];break}}else(t.type==Cr.POINTERDOWN||t.type==Cr.POINTERMOVE)&&(this.trackedTouches_[n]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const t=new nu(Cr.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(gr),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return 0===e.button}handlePointerDown_(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);const t=new nu(Cr.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(t),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),0===this.dragListenerKeys_.length){const n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Ti(n,Cr.POINTERMOVE,this.handlePointerMove_,this),Ti(n,Cr.POINTERUP,this.handlePointerUp_,this),Ti(this.element_,Cr.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(Ti(this.element_.getRootNode(),Cr.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const t=new nu(Cr.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new nu(Cr.POINTERMOVE,this.map_,e,t))}handleTouchMove_(e){const t=this.originalPointerMoveEvent_;(!t||t.defaultPrevented)&&("boolean"!=typeof e.cancelable||!0===e.cancelable)&&e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(gr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener("touchmove",this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(gr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(gr),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},$2=1/0,rA=class MEe extends Hc{constructor(e){super();const t=e.element;t&&!e.target&&!t.style.pointerEvents&&(t.style.pointerEvents="auto"),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){XI(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&XI(this.element);for(let t=0,n=this.listenerKeys.length;tr.getAttributions(e)))),n=!this.getMap().getAllLayers().some(r=>r.getSource()&&!1===r.getSource().getAttributionsCollapsible());return this.overrideCollapsible_||this.setCollapsible(n),t}updateElement_(e){if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Jd(t,this.renderedAttributions_)){!function sEe(i){for(;i.lastChild;)i.removeChild(i.lastChild)}(this.ulElement_);for(let r=0,o=t.length;r0&&n%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:vf}):t.setRotation(0))}render(e){const t=e.frameState;if(!t)return;const n=t.viewState.rotation;if(n!=this.rotation_){const r="rotate("+n+"rad)";if(this.autoHide_){const o=this.element.classList.contains(F2);o||0!==n?o&&0!==n&&this.element.classList.remove(F2):this.element.classList.add(F2)}this.label_.style.transform=r}this.rotation_=n}},AEe=class IEe extends rA{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const t=void 0!==e.className?e.className:"ol-zoom",n=void 0!==e.delta?e.delta:1,r=void 0!==e.zoomInClassName?e.zoomInClassName:t+"-in",o=void 0!==e.zoomOutClassName?e.zoomOutClassName:t+"-out",a=void 0!==e.zoomInLabel?e.zoomInLabel:"+",s=void 0!==e.zoomOutLabel?e.zoomOutLabel:"\u2013",l=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",u=void 0!==e.zoomOutTipLabel?e.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 v=document.createElement("button");v.className=o,v.setAttribute("type","button"),v.title=u,v.appendChild("string"==typeof s?document.createTextNode(s):s),v.addEventListener("click",this.handleClick_.bind(this,-n),!1);const A=this.element;A.className=t+" "+R2+" "+ZI,A.appendChild(f),A.appendChild(v),this.duration_=void 0!==e.duration?e.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const n=this.getMap().getView();if(!n)return;const r=n.getZoom();if(void 0!==r){const o=n.getConstrainedZoom(r+e);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:o,duration:this.duration_,easing:vf})):n.setZoom(o)}}};function oA(i,e,t,n){const r=i.getZoom();if(void 0===r)return;const o=i.getConstrainedZoom(r+e),a=i.getResolutionForZoom(o);i.getAnimating()&&i.cancelAnimations(),i.animate({resolution:a,anchor:t,duration:void 0!==n?n:250,easing:vf})}const yy=class FEe extends Hc{constructor(e){super(),e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get("active")}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set("active",e)}setMap(e){this.map_=e}},LEe=class OEe extends yy{constructor(e){super(),this.delta_=(e=e||{}).delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}handleEvent(e){let t=!1;if(e.type==Cr.DBLCLICK){const n=e.originalEvent,o=e.coordinate,a=n.shiftKey?-this.delta_:this.delta_;oA(e.map.getView(),a,o,this.duration_),n.preventDefault(),t=!0}return!t}};function aA(i){const e=i.length;let t=0,n=0;for(let r=0;r0}}else if(e.type==Cr.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,t=this.stopDown(n)}else e.type==Cr.POINTERMOVE&&this.handleMoveEvent(e);return!t}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}};function sA(i){const e=arguments;return function(t){let n=!0;for(let r=0,o=e.length;r0&&this.condition_(e)){const n=e.map.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},qEe=class WEe extends by{constructor(e){e=e||{},super({stopDown:C2}),this.condition_=e.condition?e.condition:BEe,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){if(!lA(e))return;const t=e.map,n=t.getView();if(n.getConstraints().rotation===OI)return;const r=t.getSize(),o=e.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(e){return!lA(e)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){return!!(lA(e)&&AH(e)&&this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}},KEe=class GEe extends II{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const e=this.startPixel_,t=this.endPixel_,r=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new jSe([r])}getGeometry(){return this.geometry_}};class cA extends $c{constructor(e,t,n){super(e),this.coordinate=t,this.mapBrowserEvent=n}}const ZEe=class QEe extends by{constructor(e){super(),this.box_=new KEe((e=e||{}).className||"ol-dragbox"),this.minArea_=void 0!==e.minArea?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:AH,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(e,t,n){const r=n[0]-t[0],o=n[1]-t[1];return r*r+o*o>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new cA("boxdrag",e.coordinate,e))}handleUpEvent(e){this.box_.setMap(null);const t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new cA(t?"boxend":"boxcancel",e.coordinate,e)),!1}handleDownEvent(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new cA("boxstart",e.coordinate,e)),!0)}onBoxEnd(e){}},JEe=class XEe extends ZEe{constructor(e){super({condition:(e=e||{}).condition?e.condition:UEe,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}onBoxEnd(e){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:vf})}},tIe=class eIe extends yy{constructor(e){super(),e=e||{},this.defaultCondition_=function(t){return PH(t)&&FH(t)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}handleEvent(e){let t=!1;if("keydown"==e.type){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&("ArrowDown"==r||"ArrowLeft"==r||"ArrowRight"==r||"ArrowUp"==r)){const a=e.map.getView(),s=a.getResolution()*this.pixelDelta_;let l=0,u=0;"ArrowDown"==r?u=-s:"ArrowLeft"==r?l=-s:"ArrowRight"==r?l=s:u=s;const f=[l,u];wI(f,a.getRotation()),function REe(i,e,t){const n=i.getCenterInternal();n&&i.animateInternal({duration:void 0!==t?t:250,easing:CSe,center:i.getConstrainedCenter([n[0]+e[0],n[1]+e[1]])})}(a,f,this.duration_),n.preventDefault(),t=!0}}return!t}},iIe=class nIe extends yy{constructor(e){super(),this.condition_=(e=e||{}).condition?e.condition:function(t){return!function(i){const e=i.originalEvent;return U$?e.metaKey:e.ctrlKey}(t)&&FH(t)},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}handleEvent(e){let t=!1;if("keydown"==e.type||"keypress"==e.type){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&("+"===r||"-"===r)){const a="+"===r?this.delta_:-this.delta_;oA(e.map.getView(),a,void 0,this.duration_),n.preventDefault(),t=!0}}return!t}},sIe=class aIe extends yy{constructor(e){super(e=e||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;const t=e.condition?e.condition:$Ee;this.condition_=e.onFocusOnly?sA(IH,t):t,this.lastAnchor_=null,this.startTime_=void 0,this.mode_=void 0,this.trackpadEventGap_=400,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e)||"wheel"!==e.type)return!0;const n=e.map,r=e.originalEvent;let o;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),"wheel"==e.type&&(o=r.deltaY,wSe&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=j$),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_(e){const t=e.getView();t.getAnimating()&&t.cancelAnimations();let n=-Or(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),oA(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}},cIe=class lIe extends by{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=C2),super(t),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){let t=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),t=l}this.lastAngle_=o;const a=e.map,s=a.getView();s.getConstraints().rotation!==OI&&(this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(aA(this.targetPointers))),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_)))}handleUpEvent(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_),1))}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}},uIe=class dIe extends by{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=C2),super(t),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let t=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_&&(t=this.lastDistance_/s),this.lastDistance_=s;const l=e.map,u=l.getView();1!=t&&(this.lastScaleDelta_=t),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(aA(this.targetPointers))),l.render(),u.adjustResolutionInternal(t,this.anchor_)}handleUpEvent(e){return!(this.targetPointers.length<2)||(e.map.getView().endInteraction(this.duration_,this.lastScaleDelta_>1?1:-1),!1)}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};function RH(i){i=i||{};const e=new Nl,t=new class rIe{constructor(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;const r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;const o=this.points_[t]-this.points_[n],a=this.points_[t+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)&&e.push(new qEe),(void 0===i.doubleClickZoom||i.doubleClickZoom)&&e.push(new LEe({delta:i.zoomDelta,duration:i.zoomDuration})),(void 0===i.dragPan||i.dragPan)&&e.push(new zEe({onFocusOnly:i.onFocusOnly,kinetic:t})),(void 0===i.pinchRotate||i.pinchRotate)&&e.push(new cIe),(void 0===i.pinchZoom||i.pinchZoom)&&e.push(new uIe({duration:i.zoomDuration})),(void 0===i.keyboard||i.keyboard)&&(e.push(new tIe),e.push(new iIe({delta:i.zoomDelta,duration:i.zoomDuration}))),(void 0===i.mouseWheelZoom||i.mouseWheelZoom)&&e.push(new sIe({onFocusOnly:i.onFocusOnly,duration:i.zoomDuration})),(void 0===i.shiftDragZoom||i.shiftDragZoom)&&e.push(new JEe({duration:i.zoomDuration})),e}function OH(i){return i[0]>0&&i[1]>0}function ss(i,e){return Array.isArray(i)?i:(void 0===e?e=[i,i]:(e[0]=i,e[1]=i),e)}function LH(i){i instanceof P2?i.setMapInternal(null):i instanceof V2&&i.getLayers().forEach(LH)}function NH(i,e){if(i instanceof P2)i.setMapInternal(e);else if(i instanceof V2){const t=i.getLayers().getArray();for(let n=0,r=t.length;nthis.updateSize()),this.controls=t.controls||function PEe(i){i=i||{};const e=new Nl;return(void 0===i.zoom||i.zoom)&&e.push(new AEe(i.zoomOptions)),(void 0===i.rotate||i.rotate)&&e.push(new EEe(i.rotateOptions)),(void 0===i.attribution||i.attribution)&&e.push(new TEe(i.attributionOptions)),e}(),this.interactions=t.interactions||RH({onFocusOnly:!0}),this.overlays_=t.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new class wEe extends class bEe{constructor(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,py(this.queuedElements_)}dequeue(){const e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(e){Jn(!(this.keyFunction_(e)in this.queuedElements_),31);const t=this.priorityFunction_(e);return t!=$2&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(e){return 2*e+1}getRightChildIndex_(e){return 2*e+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return 0===this.elements_.length}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const t=this.elements_,n=this.priorities_,r=t.length,o=t[e],a=n[e],s=e;for(;e>1;){const l=this.getLeftChildIndex_(e),u=this.getRightChildIndex_(e),f=ue;){const s=this.getParentIndex_(t);if(!(r[s]>a))break;n[t]=n[s],r[t]=r[s],t=s}n[t]=o,r[t]=a}reprioritize(){const e=this.priorityFunction_,t=this.elements_,n=this.priorities_;let r=0;const o=t.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(t.values);const n=this;e.view&&!(e.view instanceof Ll)&&e.view.then(function(r){n.setView(new Ll(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(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){NH(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,t,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(e);return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,!1!==n.checkWrapped,t,null,void 0!==n.layerFilter?n.layerFilter:uy,null)}getFeaturesAtPixel(e,t){const n=[];return this.forEachFeatureAtPixel(e,function(r){n.push(r)},t),n}getAllLayers(){const e=[];return function t(n){n.forEach(function(r){r instanceof V2?t(r.getLayers()):e.push(r)})}(this.getLayers()),e}hasFeatureAtPixel(e,t){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e);return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,void 0!==(t=void 0!==t?t:{}).hitTolerance?t.hitTolerance:0,!1!==t.checkWrapped,void 0!==t.layerFilter?t.layerFilter:uy,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const n=this.viewport_.getBoundingClientRect(),r=this.getSize(),s="changedTouches"in e?e.changedTouches[0]:e;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(e){return SI(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const t=this.frameState_;return t?ro(t.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get("layergroup")}setLayers(e){const t=this.getLayerGroup();if(e instanceof Nl)return void t.setLayers(e);const n=t.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t=0;o--){const a=r[o];if(a.getMap()===this&&a.getActive()&&this.getTargetElement()&&(!a.handleEvent(e)||e.propagationStopped))break}}}handlePostRender(){const e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){let r=this.maxTilesLoading_,o=r;if(e){const a=e.viewHints;if(a[0]||a[1]){const s=Date.now()-e.time>8;r=s?0:8,o=s?0:2}}t.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(e){const t=this.getLayerGroup();t&&this.handleLayerRemove_(new tu("removelayer",t)),this.set("layergroup",e)}setSize(e){this.set("size",e)}setTarget(e){this.set("target",e)}setView(e){if(!e||e instanceof Ll)return void this.set("view",e);this.set("view",new Ll);const t=this;e.then(function(n){t.setView(new Ll(n))})}updateSize(){const e=this.getTargetElement();let t;if(e){const r=getComputedStyle(e),o=e.offsetWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderRightWidth),a=e.offsetHeight-parseFloat(r.borderTopWidth)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderBottomWidth);!isNaN(o)&&!isNaN(a)&&(t=[o,a],!OH(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&T$("No map visible because the map container's width or height are 0."))}const n=this.getSize();t&&(!n||!Jd(t,n))&&(this.setSize(t),this.updateViewportSize_())}updateViewportSize_(){const e=this.getView();if(e){let t;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}}},_Ie=class mIe extends P2{constructor(e){e=e||{};const t=Object.assign({},e);delete t.preload,delete t.useInterimTilesOnError,super(t),this.setPreload(void 0!==e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError)}getPreload(){return this.get("preload")}setPreload(e){this.set("preload",e)}getUseInterimTilesOnError(){return this.get("useInterimTilesOnError")}setUseInterimTilesOnError(e){this.set("useInterimTilesOnError",e)}getData(e){return super.getData(e)}},yIe=class vIe extends L${constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.declutterExecutorGroup=null}getFeatures(e){return vi()}getData(e){return null}prepareFrame(e){return vi()}renderFrame(e,t){return vi()}loadedTileCallback(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n}createLoadedTileFinder(e,t,n){return(r,o)=>{const a=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,o,a)}}forEachFeatureAtCoordinate(e,t,n,r,o){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const t=e.target;(2===t.getState()||3===t.getState())&&this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return 2!=t&&3!=t&&e.addEventListener("change",this.boundHandleImageChange_),0==t&&(e.load(),t=e.getState()),2==t}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},BH=[];let xf=null;const VH=class CIe extends yIe{constructor(e){super(e),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(e,t,n){let r;xf||function bIe(){xf=Ko(1,1,void 0,{willReadFrequently:!0})}(),xf.clearRect(0,0,1,1);try{xf.drawImage(e,t,n,1,1,0,0,1,1),r=xf.getImageData(0,0,1,1).data}catch{return xf=null,null}return r}getBackground(e){let n=this.getLayer().getBackground();return"function"==typeof n&&(n=n(e.viewState.resolution)),n||void 0}useContainer(e,t,n){const r=this.getLayer().getClassName();let o,a;if(e&&e.className===r&&(!n||e&&e.style.backgroundColor&&Jd(I2(e.style.backgroundColor),I2(n)))){const s=e.firstElementChild;s instanceof HTMLCanvasElement&&(a=s.getContext("2d"))}if(a&&a.canvas.style.transform===t?(this.container=e,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=Ko();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(e,t,n){const r=Pp(n),o=p2(n),a=u2(n),s=d2(n);ro(t.coordinateToPixelTransform,r),ro(t.coordinateToPixelTransform,o),ro(t.coordinateToPixelTransform,a),ro(t.coordinateToPixelTransform,s);const l=this.inversePixelTransform;ro(l,r),ro(l,o),ro(l,a),ro(l,s),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.clip()}dispatchRenderEvent_(e,t,n){const r=this.getLayer();if(r.hasListener(e)){const o=new CH(e,this.inversePixelTransform,n,t);r.dispatchEvent(o)}}preRender(e,t){this.frameState=t,this.dispatchRenderEvent_("prerender",e,t)}postRender(e,t){this.dispatchRenderEvent_("postrender",e,t)}getRenderTransform(e,t,n,r,o,a,s){const f=r/t;return Uc(this.tempTransform,o/2,a/2,f,-f,-n,-e[0]+s,-e[1])}disposeInternal(){delete this.frameState,super.disposeInternal()}},$H=class wIe extends w2{constructor(e,t,n){super(),n=n||{},this.tileCoord=e,this.state=t,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 e=this.interimTile;do{if(2==e.getState())return this.transition_=0,e;e=e.interimTile}while(e);return this}refreshInterimChain(){if(!this.interimTile)return;let e=this.interimTile,t=this;do{if(2==e.getState()){e.interimTile=null;break}1==e.getState()?t=e:0==e.getState()?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(3!==this.state&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){vi()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;const r=t-n+1e3/60;return r>=this.transition_?1:H$(r/this.transition_)}inTransition(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}};function dA(i,e,t){const n=i;let r=!0,o=!1,a=!1;const s=[x2(n,"load",function(){a=!0,o||e()})];return n.src&&kSe?(o=!0,n.decode().then(function(){r&&e()}).catch(function(l){r&&(a?e():t())})):s.push(x2(n,"error",t)),function(){r=!1,s.forEach(gr)}}const HH=class xIe extends $H{constructor(e,t,n,r,o,a){super(e,t,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(e){this.image_=e,this.state=2,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=3,this.unlistenImage_(),this.image_=function kIe(){const i=Ko(1,1);return i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1),i.canvas}(),this.changed()}handleImageLoad_(){const e=this.image_;this.state=e.naturalWidth&&e.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 kf=[];function jH(i,e,t,n,r){i.beginPath(),i.moveTo(0,0),i.lineTo(e,t),i.lineTo(n,r),i.closePath(),i.save(),i.clip(),i.fillRect(0,0,Math.max(e,n)+1,Math.max(t,r)),i.restore()}function pA(i,e){return Math.abs(i[4*e]-210)>2||Math.abs(i[4*e+3]-191.25)>2}function YH(i,e,t,n){const r=dy(t,e,i);let o=I$(e,n,t);const a=e.getMetersPerUnit();void 0!==a&&(o*=a);const s=i.getMetersPerUnit();void 0!==s&&(o/=s);const l=i.getExtent();if(!l||l2(l,r)){const u=I$(i,o,r)/o;isFinite(u)&&u>0&&(o/=u)}return o}const hA=class PIe extends $H{constructor(e,t,n,r,o,a,s,l,u,f,v,D){super(o,0,{interpolate:!!D}),this.renderEdges_=void 0!==v&&v,this.pixelRatio_=s,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=r,this.wrappedTileCoord_=a||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const A=r.getTileCoordExtent(this.wrappedTileCoord_),W=this.targetTileGrid_.getExtent();let J=this.sourceTileGrid_.getExtent();const pe=W?hf(A,W):A;if(0===c2(pe))return void(this.state=4);const fe=e.getExtent();fe&&(J=J?hf(J,fe):fe);const ye=r.getResolution(this.wrappedTileCoord_[0]),we=function IIe(i,e,t,n){const r=pf(t);let o=YH(i,e,r,n);return(!isFinite(o)||o<=0)&&w$(t,function(a){return o=YH(i,e,a,n),isFinite(o)&&o>0}),o}(e,n,pe,ye);if(!isFinite(we)||we<=0)return void(this.state=4);if(this.triangulation_=new class TIe{constructor(e,t,n,r,o,a){this.sourceProj_=e,this.targetProj_=t;let s={};const l=cy(this.targetProj_,this.sourceProj_);this.transformInv_=function(ye){const we=ye[0]+"/"+ye[1];return s[we]||(s[we]=l(ye)),s[we]},this.maxSourceExtent_=r,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Wi(r)>=Wi(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Wi(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Wi(this.targetProj_.getExtent()):null;const u=Pp(n),f=p2(n),v=u2(n),D=d2(n),A=this.transformInv_(u),W=this.transformInv_(f),J=this.transformInv_(v),pe=this.transformInv_(D),fe=10+(a?Math.max(0,Math.ceil(Math.log2(c2(n)/(a*a*256*256)))):0);if(this.addQuad_(u,f,v,D,A,W,J,pe,fe),this.wrapsXInSource_){let ye=1/0;this.triangles_.forEach(function(we,Te,Re){ye=Math.min(ye,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])-ye>this.sourceWorldWidth_/2){const Te=[[we.source[0][0],we.source[0][1]],[we.source[1][0],we.source[1][1]],[we.source[2][0],we.source[2][1]]];Te[0][0]-ye>this.sourceWorldWidth_/2&&(Te[0][0]-=this.sourceWorldWidth_),Te[1][0]-ye>this.sourceWorldWidth_/2&&(Te[1][0]-=this.sourceWorldWidth_),Te[2][0]-ye>this.sourceWorldWidth_/2&&(Te[2][0]-=this.sourceWorldWidth_);const Re=Math.min(Te[0][0],Te[1][0],Te[2][0]);Math.max(Te[0][0],Te[1][0],Te[2][0])-Re.5&&v<1;let W=!1;if(u>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(W=Wi(m$([e,t,n,r]))/this.targetWorldWidth_>.25||W),!A&&this.sourceProj_.isGlobal()&&v&&(W=v>.25||W)),!W&&this.maxSourceExtent_&&isFinite(f[0])&&isFinite(f[1])&&isFinite(f[2])&&isFinite(f[3])&&!ua(f,this.maxSourceExtent_))return;let J=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(u>0)W=!0;else if(J=(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!=J&&2!=J&&4!=J&&8!=J)return;if(u>0){if(!W){const fe=this.transformInv_([(e[0]+n[0])/2,(e[1]+n[1])/2]);let ye;ye=A?(Fp(o[0],D)+Fp(s[0],D))/2-Fp(fe[0],D):(o[0]+s[0])/2-fe[0];const we=(o[1]+s[1])/2-fe[1];W=ye*ye+we*we>this.errorThresholdSquared_}if(W){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const pe=[(t[0]+n[0])/2,(t[1]+n[1])/2],fe=this.transformInv_(pe),ye=[(r[0]+e[0])/2,(r[1]+e[1])/2],we=this.transformInv_(ye);this.addQuad_(e,t,pe,ye,o,a,fe,we,u-1),this.addQuad_(ye,pe,n,r,we,fe,s,l,u-1)}else{const pe=[(e[0]+t[0])/2,(e[1]+t[1])/2],fe=this.transformInv_(pe),ye=[(n[0]+r[0])/2,(n[1]+r[1])/2],we=this.transformInv_(ye);this.addQuad_(e,pe,ye,r,o,fe,we,l,u-1),this.addQuad_(pe,t,n,ye,fe,a,s,we,u-1)}return}}if(A){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&J)&&this.addTriangle_(e,n,r,o,s,l),0==(14&J)&&this.addTriangle_(e,n,t,o,s,a),J&&(0==(13&J)&&this.addTriangle_(t,r,e,a,l,o),0==(7&J)&&this.addTriangle_(t,r,n,a,l,s))}calculateSourceExtent(){const e=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(t,n,r){const o=t.source;uf(e,o[0]),uf(e,o[1]),uf(e,o[2])}),e}getTriangles(){return this.triangles_}}(e,n,pe,J,we*(void 0!==f?f:.5),ye),0===this.triangulation_.getTriangles().length)return void(this.state=4);this.sourceZ_=t.getZForResolution(we);let Re=this.triangulation_.calculateSourceExtent();if(J&&(e.canWrapX()?(Re[1]=Or(Re[1],J[1],J[3]),Re[3]=Or(Re[3],J[1],J[3])):Re=hf(Re,J)),c2(Re)){const Ye=t.getTileRangeForExtentAndZ(Re,this.sourceZ_);for(let We=Ye.minX;We<=Ye.maxX;We++)for(let Ze=Ye.minY;Ze<=Ye.maxY;Ze++){const ht=u(this.sourceZ_,We,Ze,s);ht&&this.sourceTiles_.push(ht)}0===this.sourceTiles_.length&&(this.state=4)}else this.state=4}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach(t=>{t&&2==t.getState()&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}),this.sourceTiles_.length=0,0===e.length)this.state=3;else{const t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],o="number"==typeof n?n:n[1],a=this.targetTileGrid_.getResolution(t),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function AIe(i,e,t,n,r,o,a,s,l,u,f,v){const D=Ko(Math.round(t*i),Math.round(t*e),kf);if(v||(D.imageSmoothingEnabled=!1),0===l.length)return D.canvas;function A(Te){return Math.round(Te*t)/t}D.scale(t,t),D.globalCompositeOperation="lighter";const W=[1/0,1/0,-1/0,-1/0];l.forEach(function(Te,Re,Ye){!function RTe(i,e){e[0]i[2]&&(i[2]=e[2]),e[1]i[3]&&(i[3]=e[3])}(W,Te.extent)});const J=Wi(W),pe=Js(W),fe=Ko(Math.round(t*J/n),Math.round(t*pe/n),kf);v||(fe.imageSmoothingEnabled=!1);const ye=t/n;l.forEach(function(Te,Re,Ye){const We=Te.extent[0]-W[0],Ze=-(Te.extent[3]-W[3]),ht=Wi(Te.extent),vt=Js(Te.extent);Te.image.width>0&&Te.image.height>0&&fe.drawImage(Te.image,u,u,Te.image.width-2*u,Te.image.height-2*u,We*ye,Ze*ye,ht*ye,vt*ye)});const we=Pp(a);return s.getTriangles().forEach(function(Te,Re,Ye){const We=Te.source,Ze=Te.target;let ht=We[0][0],vt=We[0][1],Ht=We[1][0],tn=We[1][1],Rt=We[2][0],ei=We[2][1];const nn=A((Ze[0][0]-we[0])/o),qe=A(-(Ze[0][1]-we[1])/o),Qe=A((Ze[1][0]-we[0])/o),nt=A(-(Ze[1][1]-we[1])/o),kt=A((Ze[2][0]-we[0])/o),rn=A(-(Ze[2][1]-we[1])/o),ri=ht,st=vt;ht=0,vt=0,Ht-=ri,tn-=st,Rt-=ri,ei-=st;const jt=function jTe(i){const e=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--){t[n]=i[n][e]/i[n][n];for(let r=n-1;r>=0;r--)i[r][e]-=i[r][n]*t[n]}return t}([[Ht,tn,0,0,Qe-nn],[Rt,ei,0,0,kt-nn],[0,0,Ht,tn,nt-qe],[0,0,Rt,ei,rn-qe]]);if(jt){if(D.save(),D.beginPath(),function EIe(){if(void 0===uA){const i=Ko(6,6,kf);i.globalCompositeOperation="lighter",i.fillStyle="rgba(210, 0, 0, 0.75)",jH(i,4,5,4,0),jH(i,4,5,0,5);const e=i.getImageData(0,0,3,3).data;uA=pA(e,0)||pA(e,4)||pA(e,8),O2(i),kf.push(i.canvas)}return uA}()||!v){D.moveTo(Qe,nt);const jn=4,Io=nn-Qe,yi=qe-nt;for(let ui=0;ui{const n=t.getState();if(0==n||1==n){e++;const r=Ti(t,"change",function(o){const a=t.getState();(2==a||3==a||4==a)&&(gr(r),e--,0===e&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(r)}}),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(t,n,r){0==t.getState()&&t.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(gr),this.sourcesListenerKeys_=null}release(){this.canvas_&&(O2(this.canvas_.getContext("2d")),kf.push(this.canvas_),this.canvas_=null),super.release()}};class zH{constructor(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function Mf(i,e,t,n,r){return void 0!==r?(r.minX=i,r.maxX=e,r.minY=t,r.maxY=n,r):new zH(i,e,t,n)}const WH=zH,RIe=class FIe extends VH{constructor(e){super(e),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 WH(0,0,0,0)}isDrawableTile(e){const t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!r}getTile(e,t,n,r){const o=r.pixelRatio,a=r.viewState.projection,s=this.getLayer();let u=s.getSource().getTile(e,t,n,o,a);return 3==u.getState()&&s.getUseInterimTilesOnError()&&s.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(u)||(u=u.getInterimTile()),u}getData(e){const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=ro(t.pixelToCoordinateTransform,e.slice()),o=n.getExtent();if(o&&!l2(o,r))return null;const a=t.pixelRatio,s=t.viewState.projection,l=t.viewState,u=n.getRenderSource(),f=u.getTileGridForProjection(l.projection),v=u.getTilePixelRatio(t.pixelRatio);for(let D=f.getZForResolution(l.resolution);D>=f.getMinZoom();--D){const A=f.getTileCoordForCoordAndZ(r,D),W=u.getTile(D,A[1],A[2],a,s);if(!(W instanceof HH||W instanceof hA)||W instanceof hA&&4===W.getState())return null;if(2!==W.getState())continue;const J=f.getOrigin(D),pe=ss(f.getTileSize(D)),fe=f.getResolution(D),ye=Math.floor(v*((r[0]-J[0])/fe-A[1]*pe[0])),we=Math.floor(v*((J[1]-r[1])/fe-A[2]*pe[1])),Te=Math.round(v*u.getGutterForProjection(l.projection));return this.getImageData(W.getImage(),ye+Te,we+Te)}return null}loadedTileCallback(e,t,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(e,t,n)}prepareFrame(e){return!!this.getLayer().getSource()}renderFrame(e,t){const n=e.layerStatesArray[e.layerIndex],r=e.viewState,o=r.projection,a=r.resolution,s=r.center,l=r.rotation,u=e.pixelRatio,f=this.getLayer(),v=f.getSource(),D=v.getRevision(),A=v.getTileGridForProjection(o),W=A.getZForResolution(a,v.zDirection),J=A.getResolution(W);let pe=e.extent;const fe=e.viewState.resolution,ye=v.getTilePixelRatio(u),we=Math.round(Wi(pe)/fe*u),Te=Math.round(Js(pe)/fe*u),Re=n.extent&&Rp(n.extent);Re&&(pe=hf(pe,Rp(n.extent)));const Ye=J*we/2/ye,We=J*Te/2/ye,Ze=[s[0]-Ye,s[1]-We,s[0]+Ye,s[1]+We],ht=A.getTileRangeForExtentAndZ(pe,W),vt={};vt[W]={};const Ht=this.createLoadedTileFinder(v,o,vt),tn=this.tmpExtent,Rt=this.tmpTileRange_;this.newTiles_=!1;const ei=l?CI(r.center,fe,l,e.size):void 0;for(let Fi=ht.minX;Fi<=ht.maxX;++Fi)for(let jt=ht.minY;jt<=ht.maxY;++jt){if(l&&!A.tileCoordIntersectsViewport([W,Fi,jt],ei))continue;const jn=this.getTile(W,Fi,jt,e);if(this.isDrawableTile(jn)){const ui=Si(this);if(2==jn.getState()){vt[W][jn.tileCoord.toString()]=jn;let qi=jn.inTransition(ui);qi&&1!==n.opacity&&(jn.endTransition(ui),qi=!1),!this.newTiles_&&(qi||!this.renderedTiles.includes(jn))&&(this.newTiles_=!0)}if(1===jn.getAlpha(ui,e.time))continue}const Io=A.getTileCoordChildTileRange(jn.tileCoord,Rt,tn);let yi=!1;Io&&(yi=Ht(W+1,Io)),yi||A.forEachTileCoordParentTileRange(jn.tileCoord,Ht,Rt,tn)}const nn=J/a*u/ye;Uc(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/u,1/u,l,-we/2,-Te/2);const qe=$I(this.pixelTransform);this.useContainer(t,qe,this.getBackground(e));const Qe=this.context,nt=Qe.canvas;M2(this.inversePixelTransform,this.pixelTransform),Uc(this.tempTransform,we/2,Te/2,nn,nn,0,-we/2,-Te/2),nt.width!=we||nt.height!=Te?(nt.width=we,nt.height=Te):this.containerReused||Qe.clearRect(0,0,we,Te),Re&&this.clipUnrotated(Qe,e,Re),v.getInterpolate()||(Qe.imageSmoothingEnabled=!1),this.preRender(Qe,e),this.renderedTiles.length=0;let rn,ri,st,kt=Object.keys(vt).map(Number);kt.sort(Op),1!==n.opacity||this.containerReused&&!v.getOpaque(e.viewState.projection)?(rn=[],ri=[]):kt=kt.reverse();for(let Fi=kt.length-1;Fi>=0;--Fi){const jt=kt[Fi],jn=v.getTilePixelSize(jt,u,o),yi=A.getResolution(jt)/J,ui=jn[0]*yi*nn,qi=jn[1]*yi*nn,Na=A.getTileCoordForCoordAndZ(Pp(Ze),jt),ds=A.getTileCoordExtent(Na),gu=ro(this.tempTransform,[ye*(ds[0]-Ze[0])/J,ye*(Ze[3]-ds[3])/J]),Kp=ye*v.getGutterForProjection(o),jl=vt[jt];for(const Qp in jl){const al=jl[Qp],Zp=al.tileCoord,Rf=Na[1]-Zp[1],Of=Math.round(gu[0]-(Rf-1)*ui),fa=Na[2]-Zp[2],fu=Math.round(gu[1]-(fa-1)*qi),yo=Math.round(gu[0]-Rf*ui),Qo=Math.round(gu[1]-fa*qi),Zo=Of-yo,us=fu-Qo,Qc=W===jt,Yl=Qc&&1!==al.getAlpha(Si(this),e.time);let sl=!1;if(!Yl)if(rn){st=[yo,Qo,yo+Zo,Qo,yo+Zo,Qo+us,yo,Qo+us];for(let Lf=0,zx=rn.length;Lf0,6),Jn(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),69);const l=void 0!==e.src?0:2;if(this.color_=void 0!==e.color?I2(e.color):null,this.iconImage_=function $Ie(i,e,t,n,r,o){let a=A2.get(e,n,o);return a||(a=new VIe(i,e,t,n,r,o),A2.set(e,n,o,a)),a}(a,s,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,l,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,void 0!==e.width||void 0!==e.height){let u,f;if(e.size)[u,f]=e.size;else{const v=this.getImage(1);if(!(v instanceof HTMLCanvasElement||v.src&&v.complete)){this.initialOptions_=e;const D=()=>{if(this.unlistenImageChange(D),!this.initialOptions_)return;const A=this.iconImage_.getSize();this.setScale(JH(A[0],A[1],e.width,e.height))};return void this.listenImageChange(D)}u=v.width,f=v.height}void 0!==u&&this.setScale(JH(u,f,e.width,e.height))}}clone(){let e,t,n;return this.initialOptions_?(t=this.initialOptions_.width,n=this.initialOptions_.height):(e=this.getScale(),e=Array.isArray(e)?e.slice():e),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:e,width:t,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const r=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!r)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=r[0]),"fraction"==this.anchorYUnits_&&(e[1]*=r[1])}if("top-left"!=this.anchorOrigin_){if(!r)return null;e===this.anchor_&&(e=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[0]=-e[0]+r[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[1]=-e[1]+r[1])}this.normalizedAnchor_=e}const t=this.getDisplacement(),n=this.getScaleArray();return[e[0]-t[0]/n[0],e[1]+t[1]/n[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[0]=n[0]-t[0]-e[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const e=this.getScaleArray();return this.size_?this.size_[0]*e[0]:2==this.iconImage_.getImageState()?this.iconImage_.getSize()[0]*e[0]:void 0}getHeight(){const e=this.getScaleArray();return this.size_?this.size_[1]*e[1]:2==this.iconImage_.getImageState()?this.iconImage_.getSize()[1]*e[1]:void 0}setScale(e){delete this.initialOptions_,super.setScale(e)}listenImageChange(e){this.iconImage_.addEventListener("change",e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener("change",e)}}const e9=wA;class xA{constructor(e){this.font_=(e=e||{}).font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=ss(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new vA({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}clone(){const e=this.getScale();return new xA({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,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(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=ss(void 0!==e?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}const UIe=xA;function t9(i){return new CA({fill:wy(i,""),stroke:xy(i,""),text:jIe(i),image:YIe(i)})}function wy(i,e){const t=i[e+"fill-color"];if(t)return"none"===t?null:new vA({color:t})}function xy(i,e){const t=i[e+"stroke-width"],n=i[e+"stroke-color"];if(t||n)return new ZH({width:t,color:n,lineCap:i[e+"stroke-line-cap"],lineJoin:i[e+"stroke-line-join"],lineDash:i[e+"stroke-line-dash"],lineDashOffset:i[e+"stroke-line-dash-offset"],miterLimit:i[e+"stroke-miter-limit"]})}function jIe(i){const e=i["text-value"];return e?new UIe({text:e,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:wy(i,"text-"),backgroundFill:wy(i,"text-background-"),stroke:xy(i,"text-"),backgroundStroke:xy(i,"text-background-")}):void 0}function YIe(i){const e=i["icon-src"],t=i["icon-img"];if(e||t)return new e9({src:e,img:t,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 KH({points:n,fill:wy(i,o),stroke:xy(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 QH({radius:r,fill:wy(i,o),stroke:xy(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 WIe=class zIe extends P2{constructor(e){e=e||{};const t=Object.assign({},e);delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,super(t),this.declutter_=void 0!==e.declutter&&e.declutter,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}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(e){e.declutterTree||(e.declutterTree=new qH(9)),this.getRenderer().renderDeclutter(e)}setRenderOrder(e){this.set("renderOrder",e)}setStyle(e){let t;if(void 0===e)t=BIe;else if(null===e)t=null;else if("function"==typeof e)t=e;else if(e instanceof CA)t=e;else if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let o=0;os&&(this.instructions.push([yn.CUSTOM,s,u,e,n,yf]),this.hitDetectionInstructions.push([yn.CUSTOM,s,u,e,r||n,yf]));break;case"Point":l=e.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([yn.CUSTOM,s,u,e,n]),this.hitDetectionInstructions.push([yn.CUSTOM,s,u,e,r||n])}this.endGeometry(t)}beginGeometry(e,t){this.beginGeometryInstruction1_=[yn.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[yn.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;let t;e.reverse();const n=e.length;let r,o,a=-1;for(t=0;tthis.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(e){const t=e.fillStyle,n=[yn.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[yn.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,t){const n=e.fillStyle;("string"!=typeof n||e.currentFillStyle!=n)&&(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)}updateStrokeStyle(e,t){const n=e.strokeStyle,r=e.lineCap,o=e.lineDash,a=e.lineDashOffset,s=e.lineJoin,l=e.lineWidth,u=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||o!=e.currentLineDash&&!Jd(e.currentLineDash,o)||e.currentLineDashOffset!=a||e.currentLineJoin!=s||e.currentLineWidth!=l||e.currentMiterLimit!=u)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=o,e.currentLineDashOffset=a,e.currentLineJoin=s,e.currentLineWidth=l,e.currentMiterLimit=u)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const t=[yn.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}getBufferedMaxExtent(){return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=_$(this.maxExtent),this.maxLineWidth>0)&&vI(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_),this.bufferedMaxExtent_}},o9=class JIe extends My{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinatess_(e,t,n,r){const o=this.state,a=void 0!==o.fillStyle,s=void 0!==o.strokeStyle,l=n.length;this.instructions.push(Up),this.hitDetectionInstructions.push(Up);for(let u=0;u=i){const W=(i-s+A)/A,J=el(u,v,W),pe=el(f,D,W);l.push(J,pe),o.push(l),l=[J,pe],s==i&&(a+=r),s=0}else if(s0&&o.push(l),o}function tAe(i,e,t,n,r){let f,v,D,A,W,J,pe,fe,ye,we,o=t,a=t,s=0,l=0,u=t;for(v=t;vi&&(l>s&&(s=l,o=u,a=v),l=0,u=v-r)),D=A,pe=ye,fe=we),W=Te,J=Re}return l+=A,l>s?[u,v]:[o,a]}const Y2={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},iAe={Circle:o9,Default:My,Image:class KIe extends My{constructor(e,t,n,r){super(e,t,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(e,t){if(!this.image_)return;this.beginGeometry(e,t);const n=e.getFlatCoordinates(),r=e.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([yn.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([yn.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(t)}drawMultiPoint(e,t){if(!this.image_)return;this.beginGeometry(e,t);const n=e.getFlatCoordinates(),r=e.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([yn.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([yn.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(t)}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(e,t){const n=e.getAnchor(),r=e.getSize(),o=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=o[0],this.originY_=o[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}},LineString:class ZIe extends My{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinates_(e,t,n,r){const o=this.coordinates.length,a=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),s=[yn.MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n}drawLineString(e,t){const n=this.state;if(void 0===n.strokeStyle||void 0===n.lineWidth)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([yn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,jc,0],Up);const a=e.getFlatCoordinates(),s=e.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(ou),this.endGeometry(t)}drawMultiLineString(e,t){const n=this.state;if(void 0===n.strokeStyle||void 0===n.lineWidth)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([yn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,jc,0],Up);const a=e.getEnds(),s=e.getFlatCoordinates(),l=e.getStride();let u=0;for(let f=0,v=a.length;f{const Te=a[2*(fe+we)]===u[we*f]&&a[2*(fe+we)+1]===u[we*f+1];return Te||--fe,Te})}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(e,t);let A=o.padding;if(A!=$p&&(o.scale[0]<0||o.scale[1]<0)){let fe=o.padding[0],ye=o.padding[1],we=o.padding[2],Te=o.padding[3];o.scale[0]<0&&(ye=-ye,Te=-Te),o.scale[1]<0&&(fe=-fe,we=-we),A=[fe,ye,we,Te]}const W=this.pixelRatio;this.instructions.push([yn.DRAW_IMAGE,s,D,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,A==$p?$p:A.map(function(fe){return fe*W}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,v]);const J=1/W,pe=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=ha,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([yn.DRAW_IMAGE,s,D,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[J,J],NaN,void 0,this.declutterImageWithText_,A,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?ha:this.fillKey_,this.textOffsetX_,this.textOffsetY_,v]),o.backgroundFill&&(this.state.fillStyle=pe,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(t)}else{if(!ua(this.getBufferedMaxExtent(),e.getExtent()))return;let v;if(u=e.getFlatCoordinates(),"LineString"==l)v=[u.length];else if("MultiLineString"==l)v=e.getEnds();else if("Polygon"==l)v=e.getEnds().slice(0,1);else if("MultiPolygon"==l){const J=e.getEndss();v=[];for(let pe=0,fe=J.length;peqe[2]}else Ht=Te>ht;const tn=Math.PI,Rt=[],ei=Ye+n===e;let nn;if(pe=0,fe=We,D=i[e=Ye],A=i[e+1],ei)return ye(),nn=Math.atan2(A-J,D-W),Ht&&(nn+=nn>0?-tn:tn),Rt[0]=[(ht+Te)/2,(vt+Re)/2,(Ze-o)/2,nn,r],Rt;for(let qe=0,Qe=(r=r.replace(/\n/g," ")).length;qe0?-tn:tn),void 0!==nn){let jt=nt-nn;if(jt+=jt>tn?-2*tn:jt<-tn?2*tn:0,Math.abs(jt)>a)return null}nn=nt;const kt=qe;let rn=0;for(;qe0&&i.push("\n",""),i.push(e,""),i}const lAe=class sAe{constructor(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,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(e,t,n,r){const o=e+t+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[t],u=this.pixelRatio,f=[l.scale[0]*u,l.scale[1]*u],v=Array.isArray(e),D=l.justify?Y2[l.justify]:kA(Array.isArray(e)?e[0]:e,l.textAlign||_y),A=r&&a.lineWidth?a.lineWidth:0,W=v?e:e.split("\n").reduce(aAe,[]),{width:J,height:pe,widths:fe,heights:ye,lineWidths:we}=function uEe(i,e){const t=[],n=[],r=[];let o=0,a=0,s=0,l=0;for(let u=0,f=e.length;u<=f;u+=2){const v=e[u];if("\n"===v||u===f){o=Math.max(o,a),r.push(a),a=0,s+=l;continue}const D=e[u+1]||i.font,A=B2(D,v);t.push(A),a+=A;const W=dEe(D);n.push(W),l=Math.max(l,W)}return{width:o,height:s,widths:t,heights:n,lineWidths:r}}(l,W),Te=J+A,Re=[],Ye=(Te+2)*f[0],We=(pe+A)*f[1],Ze={width:Ye<0?Math.floor(Ye):Math.ceil(Ye),height:We<0?Math.floor(We):Math.ceil(We),contextInstructions:Re};(1!=f[0]||1!=f[1])&&Re.push("scale",f),r&&(Re.push("strokeStyle",a.strokeStyle),Re.push("lineWidth",A),Re.push("lineCap",a.lineCap),Re.push("lineJoin",a.lineJoin),Re.push("miterLimit",a.miterLimit),Re.push("setLineDash",[a.lineDash]),Re.push("lineDashOffset",a.lineDashOffset)),n&&Re.push("fillStyle",s.fillStyle),Re.push("textBaseline","middle"),Re.push("textAlign","center");const ht=.5-D;let vt=D*Te+ht*A;const Ht=[],tn=[];let Qe,Rt=0,ei=0,nn=0,qe=0;for(let nt=0,kt=W.length;nte?e-u:o,Te=a+f>t?t-f:a,Re=W[3]+we*D[0]+W[1],Ye=W[0]+Te*D[1]+W[2],We=fe-W[3],Ze=ye-W[0];let ht;return(J||0!==v)&&(au[0]=We,su[0]=We,au[1]=Ze,Wc[1]=Ze,Wc[0]=We+Re,qc[0]=Wc[0],qc[1]=Ze+Ye,su[1]=qc[1]),0!==v?(ht=Uc([1,0,0,1,0,0],n,r,1,1,v,-n,-r),ro(ht,au),ro(ht,Wc),ro(ht,qc),ro(ht,su),Bc(Math.min(au[0],Wc[0],qc[0],su[0]),Math.min(au[1],Wc[1],qc[1],su[1]),Math.max(au[0],Wc[0],qc[0],su[0]),Math.max(au[1],Wc[1],qc[1],su[1]),Df)):Bc(Math.min(We,We+Re),Math.min(Ze,Ze+Ye),Math.max(We,We+Re),Math.max(Ze,Ze+Ye),Df),A&&(fe=Math.round(fe),ye=Math.round(ye)),{drawImageX:fe,drawImageY:ye,drawImageW:we,drawImageH:Te,originX:u,originY:f,declutterBox:{minX:Df[0],minY:Df[1],maxX:Df[2],maxY:Df[3],value:pe},canvasTransform:ht,scale:D}}replayImageOrLabel_(e,t,n,r,o,a,s){const u=r.declutterBox,f=e.canvas,v=s?s[2]*r.scale[0]/2:0;return u.minX-v<=f.width/t&&u.maxX+v>=0&&u.minY-v<=f.height/t&&u.maxY+v>=0&&(!(!a&&!s)&&this.replayTextBackground_(e,au,Wc,qc,su,a,s),function pEe(i,e,t,n,r,o,a,s,l,u,f){i.save(),1!==t&&(i.globalAlpha*=t),e&&i.setTransform.apply(i,e),n.contextInstructions?(i.translate(l,u),i.scale(f[0],f[1]),function hEe(i,e){const t=i.contextInstructions;for(let n=0,r=t.length;nQe&&(this.fill_(e),ht=0),vt>Qe&&(e.stroke(),vt=0),!ht&&!vt&&(e.beginPath(),pe=NaN,fe=NaN),++f;break;case yn.CIRCLE:D=st[1];const jt=u[D],jn=u[D+1],ui=u[D+2]-jt,qi=u[D+3]-jn,Na=Math.sqrt(ui*ui+qi*qi);e.moveTo(jt+Na,jn),e.arc(jt,jn,Na,0,2*Math.PI,!0),++f;break;case yn.CLOSE_PATH:e.closePath(),++f;break;case yn.CUSTOM:D=st[1],A=st[2];const gu=st[4],Kp=6==st.length?st[5]:void 0;qe.geometry=st[3],qe.feature=nt,f in Rt||(Rt[f]=[]);const jl=Rt[f];Kp?Kp(u,D,A,2,jl):(jl[0]=u[D],jl[1]=u[D+1],jl.length=2),gu(jl,qe),++f;break;case yn.DRAW_IMAGE:D=st[1],A=st[2],Te=st[3],W=st[4],J=st[5];let Qp=st[6];const al=st[7],Zp=st[8],Rf=st[9],Of=st[10];let fa=st[11];const fu=st[12];let yo=st[13];const Qo=st[14],Zo=st[15];if(!Te&&st.length>=20){Re=st[19],Ye=st[20],We=st[21],Ze=st[22];const Ba=this.drawLabelWithPointPlacement_(Re,Ye,We,Ze);Te=Ba.label,st[3]=Te,W=(Ba.anchorX-st[23])*this.pixelRatio,st[4]=W,J=(Ba.anchorY-st[24])*this.pixelRatio,st[5]=J,Qp=Te.height,st[6]=Qp,yo=Te.width,st[13]=yo}let us,Qc,Yl,sl;st.length>25&&(us=st[25]),st.length>17?(Qc=st[16],Yl=st[17],sl=st[18]):(Qc=$p,Yl=!1,sl=!1),Of&&nn?fa+=ei:!Of&&!nn&&(fa-=ei);let Lf=0;for(;Dt)break;let l=n[s];l||(l=[],n[s]=l),l.push(4*((i+o)*e+(i+a))+3),o>0&&l.push(4*((i-o)*e+(i+a))+3),a>0&&(l.push(4*((i+o)*e+(i-a))+3),o>0&&l.push(4*((i-o)*e+(i-a))+3))}const r=[];for(let o=0,a=n.length;o0){if(!a||"Image"!==A&&"Text"!==A||a.includes(Re)){const vt=(D[Ze]-3)/4,Ht=r-vt%s,tn=r-(vt/s|0),Rt=o(Re,Ye,Ht*Ht+tn*tn);if(Rt)return Rt}f.clearRect(0,0,s,s);break}}const J=Object.keys(this.executorsByZIndex_).map(Number);let pe,fe,ye,we,Te;for(J.sort(Op),pe=J.length-1;pe>=0;--pe){const Re=J[pe].toString();for(ye=this.executorsByZIndex_[Re],fe=MA.length-1;fe>=0;--fe)if(A=MA[fe],we=ye[A],void 0!==we&&(Te=we.executeHitDetection(f,l,n,W,v),Te))return Te}}getClipCoords(e){const t=this.maxExtent_;if(!t)return null;const n=t[0],r=t[1],o=t[2],a=t[3],s=[n,r,n,a,o,a,o,r];return Lp(s,0,8,2,e,s),s}isEmpty(){return hy(this.executorsByZIndex_)}execute(e,t,n,r,o,a,s){const l=Object.keys(this.executorsByZIndex_).map(Number);let u,f,v,D,A,W;for(l.sort(Op),this.maxExtent_&&(e.save(),this.clip(e,n)),a=a||MA,s&&l.reverse(),u=0,f=l.length;uv*this.pixelRatio_),lineDashOffset:(a||0)*this.pixelRatio_,lineJoin:void 0!==s?s:bf,lineWidth:(void 0!==l?l:1)*this.pixelRatio_,miterLimit:void 0!==u?u:10,strokeStyle:Vl(n||my)}}else this.strokeState_=null}setImageStyle(e){let t;if(!e||!(t=e.getSize()))return void(this.image_=null);const n=e.getPixelRatio(this.pixelRatio_),r=e.getAnchor(),o=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=t[1]*n,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=o[0],this.imageOriginY_=o[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const a=e.getScaleArray();this.imageScale_=[a[0]*this.pixelRatio_/n,a[1]*this.pixelRatio_/n],this.imageWidth_=t[0]*n}setTextStyle(e){if(e){const t=e.getFill();if(t){const A=t.getColor();this.textFillState_={fillStyle:Vl(A||ha)}}else this.textFillState_=null;const n=e.getStroke();if(n){const A=n.getColor(),W=n.getLineCap(),J=n.getLineDash(),pe=n.getLineDashOffset(),fe=n.getLineJoin(),ye=n.getWidth(),we=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==W?W:L2,lineDash:J||jc,lineDashOffset:pe||0,lineJoin:void 0!==fe?fe:bf,lineWidth:void 0!==ye?ye:1,miterLimit:void 0!==we?we:10,strokeStyle:Vl(A||my)}}else this.textStrokeState_=null;const r=e.getFont(),o=e.getOffsetX(),a=e.getOffsetY(),s=e.getRotateWithView(),l=e.getRotation(),u=e.getScaleArray(),f=e.getText(),v=e.getTextAlign(),D=e.getTextBaseline();this.textState_={font:void 0!==r?r:DH,textAlign:void 0!==v?v:_y,textBaseline:void 0!==D?D:N2},this.text_=void 0!==f?Array.isArray(f)?f.reduce((A,W,J)=>A+(J%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_*u[0],this.pixelRatio_*u[1]]}else this.text_=""}},$l=.5,u9={Point:function kAe(i,e,t,n,r){const o=t.getImage(),a=t.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 v=i.getBuilder(t.getZIndex(),"Image");v.setImageStyle(o,s),v.drawPoint(e,n)}else a&&a.getText()&&(s={})}const u=l.getBuilder(t.getZIndex(),"Image");u.setImageStyle(o,s),u.drawPoint(e,n)}if(a&&a.getText()){let l=i;r&&(l=r);const u=l.getBuilder(t.getZIndex(),"Text");u.setTextStyle(a,s),u.drawText(e,n)}},LineString:function CAe(i,e,t,n,r){const o=t.getStroke();if(o){const s=i.getBuilder(t.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(e,n)}const a=t.getText();if(a&&a.getText()){const s=(r||i).getBuilder(t.getZIndex(),"Text");s.setTextStyle(a),s.drawText(e,n)}},Polygon:function DAe(i,e,t,n,r){const o=t.getFill(),a=t.getStroke();if(o||a){const l=i.getBuilder(t.getZIndex(),"Polygon");l.setFillStrokeStyle(o,a),l.drawPolygon(e,n)}const s=t.getText();if(s&&s.getText()){const l=(r||i).getBuilder(t.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}},MultiPoint:function MAe(i,e,t,n,r){const o=t.getImage(),a=t.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 v=i.getBuilder(t.getZIndex(),"Image");v.setImageStyle(o,s),v.drawMultiPoint(e,n)}else a&&a.getText()&&(s={})}const u=l.getBuilder(t.getZIndex(),"Image");u.setImageStyle(o,s),u.drawMultiPoint(e,n)}if(a&&a.getText()){let l=i;r&&(l=r);const u=l.getBuilder(t.getZIndex(),"Text");u.setTextStyle(a,s),u.drawText(e,n)}},MultiLineString:function wAe(i,e,t,n,r){const o=t.getStroke();if(o){const s=i.getBuilder(t.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(e,n)}const a=t.getText();if(a&&a.getText()){const s=(r||i).getBuilder(t.getZIndex(),"Text");s.setTextStyle(a),s.drawText(e,n)}},MultiPolygon:function xAe(i,e,t,n,r){const o=t.getFill(),a=t.getStroke();if(a||o){const l=i.getBuilder(t.getZIndex(),"Polygon");l.setFillStrokeStyle(o,a),l.drawMultiPolygon(e,n)}const s=t.getText();if(s&&s.getText()){const l=(r||i).getBuilder(t.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}},GeometryCollection:function bAe(i,e,t,n,r){const o=e.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];ro(this.pixelTransform,n);const r=this.renderedCenter_,o=this.renderedResolution_,a=this.renderedRotation_,s=this.renderedProjection_,l=this.wrappedRenderedExtent_,u=this.getLayer(),f=[],v=n[0]*$l,D=n[1]*$l;f.push(this.getRenderTransform(r,o,a,$l,v,D,0).slice());const A=u.getSource(),W=s.getExtent();if(A.getWrapX()&&s.canWrapX()&&!df(W,l)){let J=l[0];const pe=Wi(W);let ye,fe=0;for(;JW[2];)++fe,ye=pe*fe,f.push(this.getRenderTransform(r,o,a,$l,v,D,ye).slice()),J-=pe}this.hitDetectionImageData_=function hAe(i,e,t,n,r,o,a){const u=Ko(i[0]*$l,i[1]*$l);u.imageSmoothingEnabled=!1;const f=u.canvas,v=new pAe(u,$l,r,null,a),D=t.length,A=Math.floor(16777215/D),W={};for(let pe=1;pe<=D;++pe){const fe=t[pe-1],ye=fe.getStyleFunction()||n;if(!ye)continue;let we=ye(fe,o);if(!we)continue;Array.isArray(we)||(we=[we]);const Re=(pe*A).toString(16).padStart(7,"#00000");for(let Ye=0,We=we.length;Yev=A.forEachFeatureAtCoordinate(e,a,s,n,f,A===this.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map(W=>W.value):null)),v}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const t=this.getLayer(),n=t.getSource();if(!n)return!1;const r=e.viewHints[0],o=e.viewHints[1],a=t.getUpdateWhileAnimating(),s=t.getUpdateWhileInteracting();if(this.ready&&!a&&r||!s&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=e.extent,u=e.viewState,f=u.projection,v=u.resolution,D=e.pixelRatio,A=t.getRevision(),W=t.getRenderBuffer();let J=t.getRenderOrder();void 0===J&&(J=mAe);const pe=u.center.slice(),fe=vI(l,W*v),ye=fe.slice(),we=[fe.slice()],Te=f.getExtent();if(n.getWrapX()&&f.canWrapX()&&!df(Te,e.extent)){const qe=Wi(Te),Qe=Math.max(Wi(fe)/2,qe);fe[0]=Te[0]-Qe,fe[2]=Te[2]+Qe,D$(pe,f);const nt=x$(we[0],f);nt[0]Te[0]&&nt[2]>Te[2]&&we.push([nt[0]-qe,nt[1],nt[2]-qe,nt[3]])}if(this.ready&&this.renderedResolution_==v&&this.renderedRevision_==A&&this.renderedRenderOrder_==J&&df(this.wrappedRenderedExtent_,fe))return Jd(this.renderedExtent_,ye)||(this.hitDetectionImageData_=null,this.renderedExtent_=ye),this.renderedCenter_=pe,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const Re=new a9(TA(v,D),fe,v,D);let Ye;this.getLayer().getDeclutter()&&(Ye=new a9(TA(v,D),fe,v,D));const We=R$();let Ze;if(We){for(let qe=0,Qe=we.length;qe{let Qe;const nt=qe.getStyleFunction()||t.getStyleFunction();if(nt&&(Qe=nt(qe,v)),Qe){const kt=this.renderFeature(qe,ht,Qe,Re,Ze,Ye);vt=vt&&!kt}},tn=EI(fe),Rt=n.getFeaturesInExtent(tn);J&&Rt.sort(J);for(let qe=0,Qe=Rt.length;qe0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){const n=this.entries_[e];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(e){const t=this.entries_[e];return Jn(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let n,t=0;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e}getValues(){const e=new Array(this.count_);let n,t=0;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){if(this.containsKey(e))return this.entries_[e].value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){Jn(!(e in this.entries_),16);const n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}}{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const n=function FAe(i){return i.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(r=>{r.tileCoord[0]!==n&&(this.remove(f9(r.tileCoord)),r.release())})}};function _9(i){return i?Array.isArray(i)?function(e){return i}:"function"==typeof i?i:function(e){return[i]}:null}const v9=class NAe extends Hc{constructor(e){super(),this.projection=To(e.projection),this.attributions_=_9(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:"ready",this.wrapX_=void 0!==e.wrapX&&e.wrapX,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const t=this;this.viewPromise_=new Promise(function(n,r){t.viewResolver=n,t.viewRejector=r})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=_9(e),this.changed()}setState(e){this.state_=e,this.changed()}},Tf=[0,0,0],y9=class BAe{constructor(e){let t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,Jn(function cSe(i,e,t){const n=e||Op;return i.every(function(r,o){if(0===o)return!0;const a=n(i[o-1],r);return!(a>0||t&&0===a)})}(this.resolutions_,function(r,o){return o-r},!0),17),!e.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=Mf(a,a,s,s,n)):o=this.getTileRangeForExtentAndZ(l,u,n),t(u,o))return!0;--u}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]this.maxZoom||t0?n:Math.max(o/t[0],r/t[1]);const a=e+1,s=new Array(a);for(let l=0;lt||t>e.getMaxZoom())return!1;const o=e.getFullTileRange(t);return!o||o.containsXY(n,r)}(e,n)?e:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(e,t){const n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)}useTile(e,t,n,r){}};function WAe(i,e){const t=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return i.replace(t,a[0].toString()).replace(n,a[1].toString()).replace(r,a[2].toString()).replace(o,function(){const f=e.getFullTileRange(a[0]);return Jn(f,55),(f.getHeight()-a[2]-1).toString()})}}class IA extends zAe{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===IA.prototype.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(this.tileUrlFunction=e.tileUrlFunction),this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.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(e){const t=e.target,n=Si(t),r=t.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 YAe(o,t))}setTileLoadFunction(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),typeof t<"u"?this.setKey(t):this.changed()}setUrl(e){const t=function KAe(i){const e=[];let t=/\{([a-z])-([a-z])\}/.exec(i);if(t){const n=t[1].charCodeAt(0),r=t[2].charCodeAt(0);let o;for(o=n;o<=r;++o)e.push(i.replace(t[0],String.fromCharCode(o)));return e}if(t=/\{(\d+)-(\d+)\}/.exec(i),t){const n=parseInt(t[2],10);for(let r=parseInt(t[1],10);r<=n;r++)e.push(i.replace(t[0],r.toString()));return e}return e.push(i),e}(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;const t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function qAe(i,e){const t=i.length,n=new Array(t);for(let r=0;rthis.getTileInternal(pe,fe,ye,we,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return J.key=v,u?(J.interimTile=u,J.refreshInterimChain(),s.replace(f,J)):s.set(f,J),J}getTileInternal(e,t,n,r,o){let a=null;const s=Dy(e,t,n),l=this.getKey();if(this.tileCache.containsKey(s)){if(a=this.tileCache.get(s),a.key!=l){const u=a;a=this.createTile_(e,t,n,r,o,l),a.interimTile=0==u.getState()?u.interimTile:u,a.refreshInterimChain(),this.tileCache.replace(s,a)}}else a=this.createTile_(e,t,n,r,o,l),this.tileCache.set(s,a);return a}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(e,t){const n=To(e);if(n){const r=Si(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}},tPe=class ePe extends JAe{constructor(e){const t=void 0!==(e=e||{}).projection?e.projection:"EPSG:3857",n=void 0!==e.tileGrid?e.tileGrid:function HAe(i){const e=i||{},t=e.extent||To("EPSG:3857").getExtent(),n={extent:t,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:C9(t,e.maxZoom,e.tileSize,e.maxResolution)};return new y9(n)}({extent:EA(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,opaque:e.opaque,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=void 0!==e.gutter?e.gutter:0}getGutter(){return this.gutter_}},rPe=class iPe extends tPe{constructor(e){let t;t=void 0!==(e=e||{}).attributions?e.attributions:['© OpenStreetMap contributors.'],super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:void 0!==e.crossOrigin?e.crossOrigin:"anonymous",interpolate:e.interpolate,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:void 0!==e.url?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:e.wrapX,zDirection:e.zDirection})}},w9=class oPe{constructor(e){this.rbush_=new qH(e),this.items_={}}insert(e,t){const n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Si(t)]=n}load(e,t){const n=new Array(t.length);for(let r=0,o=t.length;r=200&&s.status<300){const u=e.getType();let f;"json"==u||"text"==u?f=s.responseText:"xml"==u?(f=s.responseXML,f||(f=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==u&&(f=s.response),f?o(e.readFeatures(f,{extent:t,featureProjection:r}),e.readProjection(f)):a()}else a()},s.onerror=a,s.send()}(i,e,t,n,r,function(l,u){s.addFeatures(l),void 0!==o&&o(l)},a||_f)}}class cu extends $c{constructor(e,t,n){super(e),this.feature=t,this.features=n}}const cPe=class lPe extends v9{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===e.wrapX||e.wrapX}),this.loader_=_f,this.format_=e.format,this.overlaps_=void 0===e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&(Jn(this.format_,7),this.loader_=k9(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:aPe;const t=void 0===e.useSpatialIndex||e.useSpatialIndex;let n,r;this.featuresRtree_=t?new w9:null,this.loadedExtentsRtree_=new w9,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(e.features)?r=e.features:e.features&&(n=e.features,r=n.getArray()),!t&&void 0===n&&(n=new Nl(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const t=Si(e);if(!this.addToIndex_(t,e))return void(this.featuresCollection_&&this.featuresCollection_.remove(e));this.setupChangeEvents_(t,e);const n=e.getGeometry();if(n){const r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new cu("addfeature",e))}setupChangeEvents_(e,t){this.featureChangeKeys_[e]=[Ti(t,"change",this.handleFeatureChange_,this),Ti(t,"propertychange",this.handleFeatureChange_,this)]}addToIndex_(e,t){let n=!0;const r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(Jn(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const t=[],n=[],r=[];for(let o=0,a=e.length;o{t||(t=!0,this.addFeature(n.element),t=!1)}),e.addEventListener("remove",n=>{t||(t=!0,this.removeFeature(n.element),t=!1)}),this.featuresCollection_=e}clear(e){if(e){for(const n in this.featureChangeKeys_)this.featureChangeKeys_[n].forEach(gr);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 t=new cu("clear");this.dispatchEvent(t),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,t){return this.forEachFeatureInExtent([e[0],e[1],e[0],e[1]],function(r){if(r.getGeometry().intersectsCoordinate(e))return t(r)})}forEachFeatureInExtent(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureIntersectingExtent(e,t){return this.forEachFeatureInExtent(e,function(n){if(n.getGeometry().intersectsExtent(e)){const o=t(n);if(o)return o}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),hy(this.nullGeometryFeatures_)||O$(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const t=[];return this.forEachFeatureAtCoordinateDirect(e,function(n){t.push(n)}),t}getFeaturesInExtent(e,t){if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const r=function HTe(i,e){if(e.canWrapX()){const t=e.getExtent();if(!isFinite(i[0])||!isFinite(i[2]))return[[t[0],i[1],t[2],i[3]]];x$(i,e);const n=Wi(t);if(Wi(i)>n)return[[t[0],i[1],t[2],i[3]]];if(i[0]t[2])return[[i[0],i[1],t[2],i[3]],[t[0],i[1],i[2]-n,i[3]]]}return[i]}(e,t);return[].concat(...r.map(o=>this.featuresRtree_.getInExtent(o)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,t){const n=e[0],r=e[1];let o=null;const a=[NaN,NaN];let s=1/0;const l=[-1/0,-1/0,1/0,1/0];return t=t||uy,this.featuresRtree_.forEachInExtent(l,function(u){if(t(u)){const f=u.getGeometry(),v=s;if(s=f.closestPointXY(n,r,a,s),s{--this.loadingExtentsCount_,this.dispatchEvent(new cu("featuresloadend",void 0,f))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new cu("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(e){const t=this.loadedExtentsRtree_;let n;t.forEachInExtent(e,function(r){if(oy(r.extent,e))return n=r,!0}),n&&t.remove(n)}removeFeature(e){if(!e)return;const t=Si(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}removeFeatureInternal(e){const t=Si(e),n=this.featureChangeKeys_[t];if(!n)return;n.forEach(gr),delete this.featureChangeKeys_[t];const r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new cu("removefeature",e)),e}removeFromIdIndex_(e){let t=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t}setLoader(e){this.loader_=e}setUrl(e){Jn(this.format_,7),this.url_=e,this.setLoader(k9(e,this.format_))}};function dPe(i,e){if(1&i&&(c(0,"span",11)(1,"span",12),m(2,"Center"),d(),m(3),d()),2&i){const t=g(2);p(3),$e("Lat: ",t.getCoordinateDisplay(t.latitude),"")}}function uPe(i,e){if(1&i&&(c(0,"span",13),m(1),d()),2&i){const t=g(2);p(1),$e("Lon: ",t.getCoordinateDisplay(t.longitude),"")}}function pPe(i,e){if(1&i&&(c(0,"div",8),b(1,dPe,4,1,"span",9),b(2,uPe,2,1,"span",10),d()),2&i){const t=g();p(1),h("ngIf",!t.isSettingLocation),p(1),h("ngIf",!t.isSettingLocation)}}function hPe(i,e){1&i&&(c(0,"div",8),m(1," Tap map to set location. "),d())}function gPe(i,e){1&i&&(c(0,"span",14),B(1,"i",15),m(2,"Clear"),d())}function fPe(i,e){if(1&i){const t=re();c(0,"span",5),P("click",function(){return E(t),I(g().toggleLocationMode())}),B(1,"i",16),m(2,"Edit"),d()}}class z2{activeModal;hasPosition=!1;isSettingLocation=!0;latitude=void 0;longitude=void 0;zoom=16;map=void 0;geoLocationSelected=new Ie;geoLocationCleared=new Ie;constructor(e){this.activeModal=e}set location(e){this.latitude=e.latitude,this.longitude=e.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(e=>{this.latitude=e.coords.latitude,this.longitude=e.coords.longitude,this.configureMap(),this.hasPosition=!0}):alert("Geolocation is not available on this device")}configureMap(){const t=RH({mouseWheelZoom:!1}),n=new LIe({source:new rPe}),r=new IAe({source:new cPe({features:[]}),style:{"circle-radius":9,"circle-fill-color":"lime","circle-stroke-color":"black","circle-stroke-width":1}});let o=function tSe(i,e){return S$(),dy(i,"EPSG:4326",void 0!==e?e:"EPSG:3857")}([this.longitude,this.latitude]);console.log(o);const a=[n,r];let s=new Ll({center:o,zoom:this.zoom});console.log(s),this.map=new fIe({interactions:t,layers:a,view:s,target:"map"})}mapClick(e){if(this.isSettingLocation&&e){this.isSettingLocation=!1;let t=this.map.getCoordinateFromPixel([e.clientX,e.clientY]);const n=function nSe(i,e){const t=dy(i,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=t[0];return(n<-180||n>180)&&(t[0]=Fp(n+180,360)-180),t}(this.map.getEventCoordinate(e));this.location={latitude:parseFloat(n[1].toFixed(7)),longitude:parseFloat(n[0].toFixed(7)),altitude:0},console.log(this.location,t)}}toggleLocationMode(){this.isSettingLocation=!this.isSettingLocation}getCoordinateDisplay(e){return e?e.toFixed(6):"N/A"}clearLocation(){"geolocation"in navigator?navigator.geolocation.getCurrentPosition(e=>{this.latitude=e.coords.latitude,this.longitude=e.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(t){return new(t||z2)(H(ar))};static \u0275cmp=Oe({type:z2,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(t,n){1&t&&(c(0,"div",0)(1,"i",1),P("click",function(){return n.cancel()}),d(),b(2,pPe,3,2,"div",2),b(3,hPe,2,0,"div",2),c(4,"div"),b(5,gPe,3,0,"span",3),b(6,fPe,3,0,"span",4),c(7,"span",5),P("click",function(){return n.save()}),B(8,"i",6),m(9,"Save"),d()()(),c(10,"div",7),P("click",function(o){return n.mapClick(o)}),d()),2&t&&(p(2),h("ngIf",n.hasPosition&&!n.isSettingLocation),p(1),h("ngIf",n.isSettingLocation),p(2),h("ngIf",n.hasPosition),p(1),h("ngIf",!n.isSettingLocation))},dependencies:[rt]})}function mPe(i,e){if(1&i){const t=re();c(0,"span",15),P("click",function(r){return E(t),g(3).clearGeoLocation(),I(r.stopPropagation())}),B(1,"i",16),d()}}function _Pe(i,e){if(1&i){const t=re();c(0,"i",17),P("click",function(){return E(t),I(g(3).showMap())}),d()}}const vPe=function(i){return{"picker-link":i}};function yPe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).setGeoLocation())}),c(1,"span",12),m(2),d(),b(3,mPe,2,0,"span",13),b(4,_Pe,1,0,"i",14),d()}if(2&i){const t=g(2);p(1),h("ngClass",bt(4,vPe,t.field.isUserEditable)),p(1),Ae(t.getDisplay()),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable),p(1),h("ngIf",t.field.value)}}function bPe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function CPe(i,e){1&i&&(c(0,"span",18),B(1,"span",19),d()),2&i&&mt("data-target",g(2).popupId)}function wPe(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,yPe,5,6,"span",8),b(6,bPe,2,1,"div",9),d()(),c(7,"div"),b(8,CPe,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class W2 extends Gt{modalService;constructor(e){super(),this.modalService=e}ngOnInit(){super.ngOnInit()}setGeoLocation(){const e=this.modalService.open(z2,{size:"lg"}).componentInstance;this.field.value&&(e.latitude=this.field.value?.latitude,e.longitude=this.field.value?.longitude),e.geoLocationSelected.subscribe(t=>{this.field.value=t}),e.geoLocationCleared.subscribe(t=>{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(t){return new(t||W2)(H(Pn))};static \u0275cmp=Oe({type:W2,selectors:[["app-geo-location-field"]],features:[it],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(t,n){1&t&&(b(0,wPe,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn],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 xPe(i,e){if(1&i){const t=re();c(0,"div",1)(1,"h3",2),m(2),d(),B(3,"app-form",3),c(4,"table",4)(5,"thead")(6,"tr")(7,"th"),m(8,"Sunday"),d(),c(9,"th"),m(10,"Monday"),d(),c(11,"th"),m(12,"Tuesday"),d(),c(13,"th"),m(14,"Wednesday"),d(),c(15,"th"),m(16,"Thursday"),d(),c(17,"th"),m(18,"Friday"),d(),c(19,"th"),m(20,"Saturday"),d()()(),c(21,"tbody")(22,"td")(23,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.sunday=r)}),d()(),c(24,"td")(25,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.monday=r)}),d()(),c(26,"td")(27,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.tuesday=r)}),d()(),c(28,"td")(29,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.wednesday=r)}),d()(),c(30,"td")(31,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.thursday=r)}),d()(),c(32,"td")(33,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.friday=r)}),d()(),c(34,"td")(35,"input",5),P("ngModelChange",function(r){return E(t),I(g().form.model.saturday=r)}),d()()()(),c(36,"div",6)(37,"button",7),P("click",function(){return E(t),I(g().done())}),m(38,"Done"),d(),c(39,"button",8),P("click",function(){return E(t),I(g().cancel())}),m(40,"Cancel"),d()()()}if(2&i){const t=g();p(2),Ae(t.title),p(1),h("form",t.form),p(20),h("ngModel",t.form.model.sunday),p(2),h("ngModel",t.form.model.monday),p(2),h("ngModel",t.form.model.tuesday),p(2),h("ngModel",t.form.model.wednesday),p(2),h("ngModel",t.form.model.thursday),p(2),h("ngModel",t.form.model.friday),p(2),h("ngModel",t.form.model.saturday)}}class q2{activeModal;coreService;scheduleModel;form;title="Schedule Editor";itemSelected=new Ie;constructor(e,t){this.activeModal=e,this.coreService=t}ngOnInit(){var e=this;return O(function*(){e.form=yield e.coreService.createSchedule()})()}done(){this.activeModal.close()}cancel(){this.activeModal.close()}static \u0275fac=function(t){return new(t||q2)(H(ar),H(Gg))};static \u0275cmp=Oe({type:q2,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(t,n){1&t&&b(0,xPe,41,9,"div",0),2&t&&h("ngIf",n.form)},dependencies:[Ol,rt,Ml,en,qt]})}function kPe(i,e){if(1&i){const t=re();c(0,"span")(1,"i",13),P("click",function(){return E(t),I(g(3).editSchedule())}),d()()}}const MPe=function(i){return{"picker-link":i}};function DPe(i,e){if(1&i){const t=re();c(0,"span",11),P("click",function(){return E(t),I(g(2).editSchedule())}),c(1,"span",12),m(2,"Edit Schedule"),d(),b(3,kPe,2,0,"span",9),d()}if(2&i){const t=g(2);p(1),h("ngClass",bt(2,MPe,t.field.isUserEditable)),p(2),h("ngIf",t.field.editorPath&&t.field.value)}}function TPe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function SPe(i,e){1&i&&(c(0,"span",14),B(1,"span",15),d()),2&i&&mt("data-target",g(2).popupId)}function EPe(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,DPe,4,4,"span",8),b(6,TPe,2,1,"div",9),d()(),c(7,"div"),b(8,SPe,2,1,"span",10),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class G2 extends Gt{modalService;constructor(e){super(),this.modalService=e}editSchedule(){this.modalService.open(q2,{size:"lg"}).componentInstance.scheduleModel=this.field.value}static \u0275fac=function(t){return new(t||G2)(H(Pn))};static \u0275cmp=Oe({type:G2,selectors:[["app-schedule"]],features:[it],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(t,n){1&t&&(b(0,EPe,9,6,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn],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 IPe=["canvasElement"],APe=["videoElement"],PPe=["photoElement"],FPe=["formElement"];function RPe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g(3).add())}),B(1,"i",11),m(2,"Add"),d()}}function OPe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g(3).takePhoto())}),B(1,"i",11),m(2,"Take Photo"),d()}}function LPe(i,e){1&i&&B(0,"i",12),2&i&&mt("data-target",g(3).popupId)}function NPe(i,e){if(1&i){const t=re();c(0,"i",13),P("click",function(){return E(t),I(g(3).expanded=!0)}),d()}}function BPe(i,e){if(1&i){const t=re();c(0,"i",14),P("click",function(){return E(t),I(g(3).expanded=!1)}),d()}}function VPe(i,e){if(1&i&&(c(0,"div"),b(1,RPe,3,0,"span",6),b(2,OPe,3,0,"span",6),b(3,LPe,1,1,"i",7),b(4,NPe,1,0,"i",8),b(5,BPe,1,0,"i",9),d()),2&i){const t=g(2);p(1),h("ngIf",t.field),p(1),h("ngIf",t.field),p(1),h("ngIf",t.field.help),p(1),h("ngIf",!t.expanded),p(1),h("ngIf",t.expanded)}}function $Pe(i,e){1&i&&(c(0,"i",21),m(1,"\xa0\xa0\xa0\xa0"),d())}function HPe(i,e){if(1&i){const t=re();c(0,"li",16),P("click",function(){const o=E(t).$implicit;return I(g(3).itemSelected(o))}),c(1,"span"),m(2),c(3,"a",17),B(4,"i",18),d()(),c(5,"i",19),P("click",function(r){const a=E(t).$implicit;return g(3).removeClick(a),I(r.stopPropagation())}),d(),b(6,$Pe,2,0,"i",20),d()}if(2&i){const t=e.$implicit,n=e.index,r=g(3);h("title",r.getItemKey(t,"key: ")),p(2),$e(" ",t.name," "),p(1),uD("href","",r.baseUri,"/api/media/resource/",r.orgId,"/",t.id,"/download",gi),p(3),h("ngIf",r.field.value.length==n+1)}}function UPe(i,e){if(1&i&&(c(0,"div")(1,"ol"),b(2,HPe,7,6,"li",15),d()()),2&i){const t=g(2);p(2),h("ngForOf",t.field.value)}}function jPe(i,e){if(1&i){const t=re();c(0,"app-form",22,23),P("saved",function(r){return E(t),I(g(2).saved(r))})("cancel",function(){return E(t),I(g(2).mediaForm=void 0)}),d()}if(2&i){const t=g(2);h("inPlaceEditing",!0)("form",t.mediaForm)("autoSave",!0)}}function YPe(i,e){if(1&i){const t=re();c(0,"button",29),P("click",function(){return E(t),I(g(3).capturePhoto())}),m(1,"Capture"),d()}}function zPe(i,e){if(1&i){const t=re();c(0,"button",29),P("click",function(){return E(t),I(g(3).uploadPhoto())}),m(1,"Accept"),d()}}function WPe(i,e){1&i&&(c(0,"div")(1,"h4"),m(2,"Capture"),d(),B(3,"video",30,31),d())}function qPe(i,e){1&i&&(c(0,"div"),B(1,"canvas",null,32),d())}function GPe(i,e){1&i&&(c(0,"h4"),m(1,"Output"),d())}function KPe(i,e){if(1&i){const t=re();c(0,"div")(1,"div",24),b(2,YPe,2,0,"button",25),b(3,zPe,2,0,"button",25),c(4,"button",26),P("click",function(){return E(t),I(g(2).takingPhoto=!1)}),m(5,"Cancel"),d()(),c(6,"div",27),b(7,WPe,5,0,"div",4),b(8,qPe,3,0,"div",4),c(9,"div"),b(10,GPe,2,0,"h4",4),B(11,"img",null,28),d()()()}if(2&i){const t=g(2);p(2),h("ngIf",!t.captured),p(1),h("ngIf",t.captured),p(4),h("ngIf",t.previewingPhoto),p(1),h("ngIf",!t.captured),p(2),h("ngIf",t.captured)}}function QPe(i,e){if(1&i&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"label"),m(4),d()(),b(5,VPe,6,5,"div",4),d(),b(6,UPe,3,1,"div",4),b(7,jPe,2,3,"app-form",5),b(8,KPe,13,5,"div",4),d()),2&i){const t=g();p(4),dr(" ",t.field.label," (",null==t.field.value?null:t.field.value.length,")"),p(1),h("ngIf",!t.mediaForm),p(1),h("ngIf",(null==t.field?null:t.field.value)&&!t.mediaForm&&!t.takingPhoto&&t.expanded),p(1),h("ngIf",t.mediaForm),p(1),h("ngIf",t.takingPhoto)}}class K2 extends Gt{mediaService;http;networkCallService;userService;modalComponent;takingPhoto=!1;isEditing=!1;captured=!1;expanded=!1;stream;previewingPhoto=!1;canvasElement;videoElement;photoElement;formElement;baseUri=ft.siteUri;orgId;mediaForm;constructor(e,t,n,r,o){super(),this.mediaService=e,this.http=t,this.networkCallService=n,this.userService=r,this.modalComponent=o}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t),t.orgId=(yield t.userService.getCurrentOrg()).id,console.log(t.field),t.field.value||(t.field.value=[])})()}add(){var e=this;return O(function*(){e.isEditing=!1;let t=yield e.mediaService.newMediaResource();e.mediaForm=t,e.mediaForm.view.fileName.isVisible=!0,e.mediaForm.view.contentSize.isVisible=!0,e.mediaForm.view.mimeType.isVisible=!0,e.mediaForm.view.link.isVisible=!1,t.view.isFileUpload.propertyChanged=n=>{e.mediaForm.view.fileName.isVisible=n.value,e.mediaForm.view.contentSize.isVisible=n.value,e.mediaForm.view.mimeType.isVisible=n.value,e.mediaForm.view.link.isVisible=!n.value},t.view.fileName.uploadUrl=`${ft.siteUri}/api/media/resources/${t.model.id}`,t.view.fileName.fileUploaded=(n,r)=>{e.isEditing=!0,e.mediaForm.view.contentSize.value=n.contentSize.toString(),e.mediaForm.view.mimeType.value=n.mimeType,e.mediaForm.view.fileName.value=n.fileName,e.mediaForm.model.mimeType=n.mimeType,e.mediaForm.model.fileName=n.fileName,e.mediaForm.model.contentSize=n.contentSize,e.mediaForm.model.resourceType=n.resourceType,e.mediaForm.model.storageReferenceName=n.storageReferenceName}})()}getItemKey(e,t){return t?`${t}${e.key}`:e.key}itemSelected(e){var t=this;return O(function*(){t.isEditing=!0,t.mediaForm=yield t.mediaService.loadMediaResource(e.id)})()}saved(e){var t=this;return O(function*(){t.field.value.push(e.result),t.field.isDirty=!0,t.field.propertyChanged?.(t.field),t.mediaForm=void 0})()}takePhoto(){this.captured=!1,this.takingPhoto=!0,this.previewingPhoto=!0,this.startWebCam()}convertDataURIToBinary(e){var t=e.indexOf(";base64,")+8,n=e.substring(t),r=window.atob(n),o=r.length,a=new Uint8Array(new ArrayBuffer(o));for(let s=0;s{e.networkCallService.endCall();let a=o;a.successful&&(console.log(a),e.field.value.push({id:a.result.id,key:a.result.key,name:n,text:n}),e.field.isDirty=!0,e.field.propertyChanged?.(e.field),e.takingPhoto=!1,e.expanded=!0)})})()}removeClick(e){var t=this;const n=this.modalComponent.open(Us,{size:"lg"}).componentInstance;n.title=`Remove item from ${this.field.label}`,n.content=`${e.name??e.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=O(function*(o){if(o){let a=t.field.value.indexOf(e);a>=0&&(t.field.value.splice(a,1),t.field.isDirty=!0,t.field.propertyChanged?.(t.field))}});return function(o){return r.apply(this,arguments)}}())}static \u0275fac=function(t){return new(t||K2)(H(Ys),H(kl),H(xc),H(Hn),H(Pn))};static \u0275cmp=Oe({type:K2,selectors:[["app-media-resources-field"]],viewQuery:function(t,n){if(1&t&&(Wt(IPe,5),Wt(APe,5),Wt(PPe,5),Wt(FPe,5)),2&t){let r;ut(r=pt())&&(n.canvasElement=r.first),ut(r=pt())&&(n.videoElement=r.first),ut(r=pt())&&(n.photoElement=r.first),ut(r=pt())&&(n.formElement=r.first)}},features:[it],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(t,n){1&t&&b(0,QPe,9,6,"div",0),2&t&&h("ngIf",n.field)},dependencies:[Ot,rt,Ol],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 ZPe(i,e){if(1&i&&(c(0,"span"),m(1),d()),2&i){const t=g();p(1),$e(" for ",t.parentCompany.name,"")}}function XPe(i,e){if(1&i&&(c(0,"option",14),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.name)}}function JPe(i,e){if(1&i&&(c(0,"option",14),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.text)}}function eFe(i,e){if(1&i){const t=re();c(0,"div",9)(1,"label",10),m(2,"Niche:"),d(),c(3,"select",11),P("ngModelChange",function(r){return E(t),I(g(2).selectedNiche=r)})("change",function(r){return E(t),I(g(2).filterChanged(r))}),b(4,JPe,2,2,"option",12),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.selectedNiche),p(1),h("ngForOf",t.niches)}}function tFe(i,e){if(1&i&&(c(0,"option",14),m(1),d()),2&i){const t=e.$implicit;h("ngValue",t.key),p(1),Ae(t.label)}}function nFe(i,e){if(1&i){const t=re();c(0,"div",8)(1,"div",9)(2,"label",10),m(3,"Industry:"),d(),c(4,"select",11),P("ngModelChange",function(r){return E(t),I(g().selectedIndustry=r)})("change",function(r){return E(t),I(g().filterChanged(r))}),b(5,XPe,2,2,"option",12),d()(),b(6,eFe,5,2,"div",13),c(7,"div",9)(8,"label",10),m(9,"Customer Status:"),d(),c(10,"select",11),P("ngModelChange",function(r){return E(t),I(g().selectedStage=r)})("change",function(r){return E(t),I(g().filterChanged(r))}),b(11,tFe,2,2,"option",12),d()()()}if(2&i){const t=g();p(4),h("ngModel",t.selectedIndustry),p(1),h("ngForOf",t.industries),p(1),h("ngIf",null!=t.selectedStage),p(4),h("ngModel",t.selectedStage),p(1),h("ngForOf",t.stageOptions)}}function iFe(i,e){if(1&i){const t=re();c(0,"app-simple-list",18),P("selected",function(r){return E(t),I(g(2).customerSelectedEvent(r))}),d()}if(2&i){const t=g(2);h("fixedHeight",500)("items",t.customers.model)("showReorder",!1)("showAdd",!1)}}function rFe(i,e){if(1&i){const t=re();c(0,"app-simple-list",19),P("selected",function(r){return E(t),I(g(2).contactSelectedEvent(r))}),d()}if(2&i){const t=g(2);h("fixedHeight",500)("items",t.contacts)("displayMemberName","firstName,lastName")("showReorder",!1)("showAdd",!1)}}function oFe(i,e){if(1&i&&(c(0,"div",15),b(1,iFe,1,4,"app-simple-list",16),b(2,rFe,1,5,"app-simple-list",17),d()),2&i){const t=g();p(1),h("ngIf",t.customers&&!t.contacts),p(1),h("ngIf",t.contacts)}}function aFe(i,e){1&i&&(c(0,"div",20)(1,"h4"),m(2,"Please Wait"),d(),B(3,"i",21),d())}class Q2{businessService;storage;activeModal;busy;contactPicker=!1;industries;stageOptions;customers;contacts;parentCompany;selectedCompany;selectedCompanyEntityHeader;niches=[];selectedIndustry="-1";selectedNiche="-1";selectedStage="-1";customerSelected=new Ie;contactSelected=new Ie;constructor(e,t,n){this.businessService=e,this.storage=t,this.activeModal=n}ngOnInit(){var e=this;return O(function*(){if(e.busy=!0,e.parentCompany)e.contacts=e.parentCompany.contacts;else{if(e.industries=(yield e.businessService.getIndustries()).model,e.stageOptions=yield e.businessService.getCustomerStageOptions(),e.selectedStage=yield e.storage.getItemAsync("customer-filter-status","-1"),e.selectedIndustry=yield e.storage.getItemAsync("customer-filter-industry","-1"),e.setIndustry(e.selectedIndustry),e.stageOptions.unshift(Yn.getAllOption()),e.industries.unshift(Yn.getAllOption()),e.customers=yield e.businessService.getCustomers(e.selectedStage,e.selectedIndustry),console.log(e.customers,e.selectedCompany),e.selectedCompany){let t=yield e.businessService.getCustomer(e.selectedCompany.id);e.contacts=t.model.contacts}if(e.selectedCompanyEntityHeader){let t=yield e.businessService.getCustomer(e.selectedCompanyEntityHeader.id);e.contacts=t.model.contacts}}e.busy=!1})()}filterChanged(e){var t=this;return O(function*(){t.storage.setItemAsync("customer-filter-status",t.selectedStage),t.storage.setItemAsync("customer-filter-industry",t.selectedIndustry),t.customers=yield t.businessService.getCustomers(t.selectedStage,t.selectedIndustry),t.setIndustry(t.selectedIndustry)})()}setIndustry(e){var t=this;return O(function*(){if(e&&"-1"!=e){let n=t.industries.find(o=>o.key===e).id,r=yield t.businessService.getIndustry(n);t.niches=r.model.niches.map(o=>({id:o.id,key:o.key,text:o.name})),t.niches.unshift(Yn.getSelectOption())}})()}contactSelectedEvent(e){var t=this;return O(function*(){t.contactSelected.emit({contact:e,company:t.selectedCompany,companyEntityHeader:t.selectedCompanyEntityHeader}),t.activeModal.close()})()}customerSelectedEvent(e){var t=this;return O(function*(){if(t.selectedCompany=e,t.selectedCompanyEntityHeader={id:e.id,key:e.key,text:e.name},console.log("customer selected",e),t.contactPicker){let n=yield t.businessService.getCustomer(e.id);t.contacts=n.model.contacts}else t.customerSelected.emit(t.selectedCompany),t.activeModal.close()})()}closeModal(){this.activeModal.close()}static \u0275fac=function(t){return new(t||Q2)(H(ca),H(fo),H(ar))};static \u0275cmp=Oe({type:Q2,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(t,n){1&t&&(c(0,"div")(1,"div",0)(2,"h3"),m(3,"Customer Picker "),b(4,ZPe,2,1,"span",1),d()(),b(5,nFe,12,5,"div",2),c(6,"div",3),b(7,oFe,3,2,"div",4),b(8,aFe,4,0,"div",5),d(),c(9,"div",6)(10,"button",7),P("click",function(){return n.closeModal()}),m(11,"Close"),d()()()),2&t&&(p(4),h("ngIf",n.parentCompany),p(1),h("ngIf",!n.parentCompany),p(2),h("ngIf",!n.busy),p(1),h("ngIf",n.busy))},dependencies:[Ot,rt,Mr,Dr,pr,en,qt,ey]})}class Ty{nuviotClient;storage;constructor(e,t){this.nuviotClient=e,this.storage=t}getCurrentCustomer(){return this.nuviotClient.request("/api/customer/current")}getCurrentCustomerForEditing(){return this.nuviotClient.getFormResponse("/api/customer/current/form")}getDistributionLists(){var e=this;return O(function*(){return yield e.nuviotClient.getListResponse("/api/customer/distros")})()}createDistributionList(){var e=this;return O(function*(){return yield e.nuviotClient.getFormResponse("/api/customer/distro/factory")})()}updateDistributionList(e){var t=this;return O(function*(){return yield t.nuviotClient.update("/api/customer/distro",e)})()}addDistributionList(e){var t=this;return O(function*(){return yield t.nuviotClient.post("/api/customer/distro",e)})()}deleteDistributionList(e){var t=this;return O(function*(){return yield t.nuviotClient.delete(`/api/customer/distro/${e}`)})()}getDistributionList(e){var t=this;return O(function*(){return yield t.nuviotClient.getFormResponse(`/api/customer/distro/${e}`)})()}getDevicesForCustomer(){return this.nuviotClient.getListResponse("/api/customer/devices")}getDeviceDetail(e){return this.nuviotClient.request(`/api/customer/device/${e}`)}getOrgLocation(){return this.nuviotClient.request("/api/customer/orglocation")}getLocations(){return this.nuviotClient.getListResponse("/api/customer/locations")}getCustomerLocation(e){return this.nuviotClient.getFormResponse(`/api/customer/location/${e}`)}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(e){return this.nuviotClient.getFormResponse(`/api/customer/notification/${e}`)}addNotification(e){return this.nuviotClient.post("/api/customer/notification",e)}updateNotification(e){return this.nuviotClient.update("/api/customer/notification",e)}addDevice(e){return this.nuviotClient.request(`/api/customer/device/${e}/add`)}getDevicesForLocation(e){var t=this;return O(function*(){return t.nuviotClient.getListResponse(`/api/customer/location/${e}/devices`)})()}createDevice(){var e=this;return O(function*(){return e.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(e){var t=this;return O(function*(){let n=yield t.nuviotClient.getFormResponse("/api/customer/wifiprofile/factory");return n.model=e,n.isEditing=!0,n})()}saveWiFiConnectionProfile(e){return console.log("calling save profile"),e.isEditing?this.nuviotClient.updateWithResponse("/api/customer/wifiprofile",e.model):this.nuviotClient.postWithResponse("/api/customer/wifiprofile",e.model)}static \u0275fac=function(t){return new(t||Ty)(Me(hn),Me(fo))};static \u0275prov=Ue({token:Ty,factory:Ty.\u0275fac,providedIn:"root"})}const sFe=function(i){return{"picker-link":i}};function lFe(i,e){if(1&i){const t=re();c(0,"span",12),P("click",function(){return E(t),I(g(2).selectCustomer())}),c(1,"span",13),m(2),d()()}if(2&i){const t=g(2);let n;p(1),h("ngClass",bt(2,sFe,t.field.isUserEditable)),p(1),Ae(t.field.value?t.field.value.text:null!==(n=t.field.watermark)&&void 0!==n?n:"-select-")}}function cFe(i,e){if(1&i){const t=re();c(0,"span",14),P("click",function(r){return E(t),g(2).clearEntityHeaderValue(),I(r.stopPropagation())}),B(1,"i",15),d()}}function dFe(i,e){if(1&i&&(c(0,"div"),m(1),d()),2&i){const t=g(2);p(1),Ae(t.field.value.text)}}function uFe(i,e){1&i&&(c(0,"span",16),B(1,"span",17),d()),2&i&&mt("data-target",g(2).popupId)}function pFe(i,e){if(1&i&&(c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7),b(5,lFe,3,4,"span",8),b(6,cFe,2,0,"span",9),b(7,dFe,2,1,"div",10),d()(),c(8,"div"),b(9,uFe,2,1,"span",11),d()()()),2&i){const t=g();p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngIf",t.isEnabled),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable),p(1),h("ngIf",!t.isEnabled),p(2),h("ngIf",t.field.help)}}class Z2 extends Gt{modalService;customerService;modalComponent;constructor(e,t,n){super(),this.modalService=e,this.customerService=t,this.modalComponent=n}ngOnInit(){super.ngOnInit(),console.log(this.field)}selected(){}selectCustomer(){var e=this;return O(function*(){let t;if("CustomerLocation"===e.form.modelName){let r=yield e.customerService.getCurrentCustomer();r.successful&&(t=r.result)}const n=e.modalService.open(Q2,{size:"lg"}).componentInstance;n.parentCompany="CustomerEntity"===e.form.modelName?e.model:t,n.contactPicker="ContactPicker"==e.field.fieldType,e.view.company?.value&&(n.selectedCompanyEntityHeader=e.view.company.value),n.customerSelected.subscribe(r=>{e.field.value={id:r.id,text:r.name},e.view.industry&&r.industryTypeId&&(e.view.industry.value={id:r.industryTypeId,key:r.industryTypeKey,text:r.industryType}),e.view.industryNiche&&r.industryNicheId&&(e.view.industryNiche.value={id:r.industryNicheId,key:r.industryNicheKey,text:r.industryNiche}),e.field.propertyChanged&&e.field.propertyChanged(e.field)}),n.contactSelected.subscribe(r=>{console.log(r),e.view.company&&r.companyEntityHeader&&(e.view.company.value=r.companyEntityHeader),e.field.value={id:r.contact.id,text:`${r.contact.firstName} ${r.contact.lastName}`},e.view.firstName&&(e.view.firstName.value=r.contact.firstName),e.view.lastName&&(e.view.lastName.value=r.contact.lastName),e.view.email&&(e.view.email.value=r.contact.email),e.view.emailAddress&&(e.view.emailAddress.value=r.contact.email),e.view.industry&&r.company?.industryTypeId&&(e.view.industry.value={id:r.company.industryTypeId,key:r.company.industryTypeKey,text:r.company.industryType}),e.view.industryNiche&&r.company?.industryNicheId&&(e.view.industryNiche.value={id:r.company.industryNicheId,key:r.company.industryNicheKey,text:r.company.industryNiche}),e.view.persona&&(e.view.persona.value=r.contact.persona),e.field.propertyChanged&&e.field.propertyChanged(e.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(t){return new(t||Z2)(H(Pn),H(Ty),H(Pn))};static \u0275cmp=Oe({type:Z2,selectors:[["app-customer-picker-field"]],features:[it],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(t,n){1&t&&(b(0,pFe,10,7,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn],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 hFe=["nameField"];function gFe(i,e){1&i&&(c(0,"span",10),m(1,"X ="),d())}function fFe(i,e){1&i&&(c(0,"span",10),m(1,"Width ="),d())}function mFe(i,e){1&i&&(c(0,"span",10),m(1,"Y ="),d())}function _Fe(i,e){1&i&&(c(0,"span",10),m(1,"Length ="),d())}function vFe(i,e){1&i&&(c(0,"span",11),B(1,"i",12),d()),2&i&&mt("data-target",g(2).popupId)}function yFe(i,e){if(1&i){const t=re();c(0,"div",6),b(1,gFe,2,0,"span",7),b(2,fFe,2,0,"span",7),c(3,"input",8),P("ngModelChange",function(r){return E(t),I(g().value1=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(4,mFe,2,0,"span",7),b(5,_Fe,2,0,"span",7),c(6,"input",8),P("ngModelChange",function(r){return E(t),I(g().value2=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(7,vFe,2,1,"span",9),d()}if(2&i){const t=g();p(1),h("ngIf","Point2D"==t.field.fieldType),p(1),h("ngIf","Point2DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value1)("disabled",!t.field.isUserEditable),p(1),h("ngIf","Point2D"==t.field.fieldType),p(1),h("ngIf","Point2DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value2)("disabled",!t.field.isUserEditable),p(1),h("ngIf",t.field.help)}}class X2 extends Gt{isEditing=!1;constructor(){super()}nameInput;get value1(){return this.field.value?.x}set value1(e){this.field.value||(this.field.value={x:0,y:0}),this.field.value.x=e}get value2(){return this.field.value?.y}set value2(e){this.field.value||(this.field.value={x:0,y:0}),this.field.value.y=e}static \u0275fac=function(t){return new(t||X2)};static \u0275cmp=Oe({type:X2,selectors:[["app-point2d"]],viewQuery:function(t,n){if(1&t&&Wt(hFe,5),2&t){let r;ut(r=pt())&&(n.nameInput=r.first)}},features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"app-form-field-label",2),d()(),b(3,yFe,8,19,"div",3),B(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(1),h("ngIf",!0),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,Ea,en,qt,rt,Nn,Bn,Vn]})}function bFe(i,e){1&i&&(c(0,"span",10),m(1,"X ="),d())}function CFe(i,e){1&i&&(c(0,"span",10),m(1,"Width ="),d())}function wFe(i,e){1&i&&(c(0,"span",10),m(1,"Y ="),d())}function xFe(i,e){1&i&&(c(0,"span",10),m(1,"Length ="),d())}function kFe(i,e){1&i&&(c(0,"span",10),m(1,"Z ="),d())}function MFe(i,e){1&i&&(c(0,"span",10),m(1,"Height ="),d())}function DFe(i,e){1&i&&(c(0,"span",11),B(1,"i",12),d()),2&i&&mt("data-target",g(2).popupId)}function TFe(i,e){if(1&i){const t=re();c(0,"div",6),b(1,bFe,2,0,"span",7),b(2,CFe,2,0,"span",7),c(3,"input",8),P("ngModelChange",function(r){return E(t),I(g().value1=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(4,wFe,2,0,"span",7),b(5,xFe,2,0,"span",7),c(6,"input",8),P("ngModelChange",function(r){return E(t),I(g().value2=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(7,kFe,2,0,"span",7),b(8,MFe,2,0,"span",7),c(9,"input",8),P("ngModelChange",function(r){return E(t),I(g().value3=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(10,DFe,2,1,"span",9),d()}if(2&i){const t=g();p(1),h("ngIf","Point3D"==t.field.fieldType),p(1),h("ngIf","Point3DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value1)("disabled",!t.field.isUserEditable),p(1),h("ngIf","Point3D"==t.field.fieldType),p(1),h("ngIf","Point3DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value2)("disabled",!t.field.isUserEditable),p(1),h("ngIf","Point3D"==t.field.fieldType),p(1),h("ngIf","Point3DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value3)("disabled",!t.field.isUserEditable),p(1),h("ngIf",t.field.help)}}class J2 extends Gt{isEditing=!1;constructor(){super()}get value1(){return this.field.value?.x}set value1(e){this.field.value||(this.field.value={x:0,y:0,z:0}),this.field.value.x=e}get value2(){return this.field.value?.y}set value2(e){this.field.value||(this.field.value={x:0,y:0,z:0}),this.field.value.y=e}get value3(){return this.field.value?.z}set value3(e){this.field.value||(this.field.value={x:0,y:0,z:0}),this.field.value.z=e}static \u0275fac=function(t){return new(t||J2)};static \u0275cmp=Oe({type:J2,selectors:[["app-point3d"]],features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"app-form-field-label",2),d()(),b(3,TFe,11,28,"div",3),B(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(1),h("ngIf",!0),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,Ea,en,qt,rt,Nn,Bn,Vn]})}function SFe(i,e){1&i&&(c(0,"span",10),m(1,"X ="),d())}function EFe(i,e){1&i&&(c(0,"span",10),m(1,"Width ="),d())}function IFe(i,e){1&i&&(c(0,"span",10),m(1,"Y ="),d())}function AFe(i,e){1&i&&(c(0,"span",10),m(1,"Height ="),d())}function PFe(i,e){1&i&&(c(0,"span",10),m(1,"Z ="),d())}function FFe(i,e){1&i&&(c(0,"span",10),m(1,"Depth ="),d())}function RFe(i,e){1&i&&(c(0,"span",11),B(1,"i",12),d()),2&i&&mt("data-target",g(2).popupId)}function OFe(i,e){if(1&i){const t=re();c(0,"div",6),b(1,SFe,2,0,"span",7),b(2,EFe,2,0,"span",7),c(3,"input",8),P("ngModelChange",function(r){return E(t),I(g().value1=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(4,IFe,2,0,"span",7),b(5,AFe,2,0,"span",7),c(6,"input",8),P("ngModelChange",function(r){return E(t),I(g().value2=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(7,PFe,2,0,"span",7),b(8,FFe,2,0,"span",7),c(9,"input",8),P("ngModelChange",function(r){return E(t),I(g().value3=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(10,RFe,2,1,"span",9),d()}if(2&i){const t=g();p(1),h("ngIf","Point3D"==t.field.fieldType),p(1),h("ngIf","Point3DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value1)("disabled",!t.field.isUserEditable),p(1),h("ngIf","Point3D"==t.field.fieldType),p(1),h("ngIf","Point3DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value2)("disabled",!t.field.isUserEditable),p(1),h("ngIf","Point3D"==t.field.fieldType),p(1),h("ngIf","Point3DSize"==t.field.fieldType),p(1),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value3)("disabled",!t.field.isUserEditable),p(1),h("ngIf",t.field.help)}}class ex extends Gt{isEditing=!1;constructor(){super()}get value1(){return this.field.value?.width}set value1(e){this.field.value||(this.field.value={width:0,height:0,depth:0}),this.field.value.width=e}get value2(){return this.field.value?.height}set value2(e){this.field.value||(this.field.value={width:0,height:0,depth:0}),this.field.value.height=e}get value3(){return this.field.value?.depth}set value3(e){this.field.value||(this.field.value={width:0,height:0,depth:0}),this.field.value.depth=e}static \u0275fac=function(t){return new(t||ex)};static \u0275cmp=Oe({type:ex,selectors:[["app-size3d"]],features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"app-form-field-label",2),d()(),b(3,OFe,11,28,"div",3),B(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(1),h("ngIf",!0),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,Ea,en,qt,rt,Nn,Bn,Vn]})}const LFe=["nameField"];function NFe(i,e){1&i&&(c(0,"span",10),B(1,"i",11),d()),2&i&&mt("data-target",g(2).popupId)}function BFe(i,e){if(1&i){const t=re();c(0,"div",6)(1,"span",7),m(2,"Width ="),d(),c(3,"input",8),P("ngModelChange",function(r){return E(t),I(g().value1=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),c(4,"span",7),m(5,"Length ="),d(),c(6,"input",8),P("ngModelChange",function(r){return E(t),I(g().value2=r)})("change",function(r){return E(t),I(g().changed(r))})("input",function(r){return E(t),I(g().textChanged(r))})("focus",function(r){return E(t),I(g().onFocus(r))})("blur",function(r){return E(t),I(g().onBlur(r))}),d(),b(7,NFe,2,1,"span",9),d()}if(2&i){const t=g();p(3),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value1)("disabled",!t.field.isUserEditable),p(3),cn("background-color",t.field.isUserEditable?"white":"#EEEEEE"),_t("name",t.field.name),_t("id",t.field.name),_t("placeholder",t.field.watermark),h("ngModel",t.value2)("disabled",!t.field.isUserEditable),p(1),h("ngIf",t.field.help)}}class tx extends Gt{isEditing=!1;constructor(){super()}nameInput;get value1(){return this.field.value?.x}set value1(e){this.field.value||(this.field.value={x:0,y:0}),this.field.value.x=e}get value2(){return this.field.value?.y}set value2(e){this.field.value||(this.field.value={x:0,y:0}),this.field.value.y=e}static \u0275fac=function(t){return new(t||tx)};static \u0275cmp=Oe({type:tx,selectors:[["app-size2d"]],viewQuery:function(t,n){if(1&t&&Wt(LFe,5),2&t){let r;ut(r=pt())&&(n.nameInput=r.first)}},features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"app-form-field-label",2),d()(),b(3,BFe,8,15,"div",3),B(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(1),h("ngIf",!0),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,Ea,en,qt,rt,Nn,Bn,Vn]})}const VFe=["pickerTemplate"];function $Fe(i,e){if(1&i){const t=re();c(0,"i",8),P("click",function(){return E(t),I(g().pickIcon())}),d()}}function HFe(i,e){if(1&i){const t=re();c(0,"i",9),P("click",function(){return E(t),I(g().pickIcon())}),d()}2&i&&Cl("",g().field.value," action")}function UFe(i,e){if(1&i){const t=re();c(0,"i",10),P("click",function(){return E(t),I(g().clearIcon())}),d()}}function jFe(i,e){1&i&&B(0,"i",22)}function YFe(i,e){if(1&i){const t=re();c(0,"div",19),P("click",function(){const o=E(t).$implicit;return I(g(4).visibleSection=o)}),b(1,jFe,1,0,"i",20),c(2,"span",21),m(3),d()()}if(2&i){const t=e.$implicit,n=g(4);p(1),h("ngIf",n.visibleSection!=t),p(2),Ae(n.camelCase(t))}}function zFe(i,e){if(1&i){const t=re();c(0,"div",15)(1,"h4")(2,"i",16),P("click",function(){return E(t),I(g(3).visibleSection=void 0)}),d(),m(3,"Icon Categories"),d(),B(4,"hr"),c(5,"div",17),b(6,YFe,4,2,"div",18),d()()}if(2&i){const t=g(3);p(6),h("ngForOf",t.categories)}}function WFe(i,e){if(1&i){const t=re();c(0,"div",25),P("click",function(){const o=E(t).$implicit;return I(g(5).selectIcon(o))}),c(1,"div",26),B(2,"i",27),d(),c(3,"div",28),m(4),d()()}if(2&i){const t=e.$implicit;p(2),Cl("fa fa-",t,""),p(2),$e("fa fa-",t,"")}}function qFe(i,e){if(1&i){const t=re();c(0,"div")(1,"h4")(2,"i",16),P("click",function(){return E(t),I(g(4).visibleSection=void 0)}),d(),m(3),d(),B(4,"hr"),c(5,"div",15),b(6,WFe,5,4,"div",24),d()()}if(2&i){const t=g().$implicit,n=g(3);p(3),Ae(n.camelCase(t)),p(3),h("ngForOf",n.icons[t].icons)}}function GFe(i,e){if(1&i&&(c(0,"div"),b(1,qFe,7,2,"div",23),d()),2&i){const t=e.$implicit,n=g(3);p(1),h("ngIf",n.visibleSection==t)}}function KFe(i,e){if(1&i&&(c(0,"div",12),b(1,zFe,7,1,"div",13),b(2,GFe,2,1,"div",14),d()),2&i){const t=g(2);p(1),h("ngIf",!t.visibleSection),p(1),h("ngForOf",t.categories)}}function QFe(i,e){1&i&&b(0,KFe,3,2,"div",11),2&i&&h("ngIf",g().icons)}class nx extends Gt{modalService;uiService;pickerModal;currentModal;categories;icons;visibleSection;constructor(e,t){super(),this.modalService=e,this.uiService=t}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){yield e().call(t),$.getJSON("https://nuviot.blob.core.windows.net/cdn/faicons.json",n=>{t.icons=n,t.categories=[];for(let r in t.icons)t.categories.push(r)})})()}camelCase(e){return e.substring(0,1).toUpperCase()+e.substring(1)}pickIcon(){this.currentModal=this.modalService.open(this.pickerModal,{size:"lg"})}selectIcon(e){this.field.value=`fa fa-${e}`,this.currentModal.close()}clearIcon(){this.field.value=void 0}static \u0275fac=function(t){return new(t||nx)(H(Pn),H(Zd))};static \u0275cmp=Oe({type:nx,selectors:[["app-font-awesome-icon-picker"]],viewQuery:function(t,n){if(1&t&&Wt(VFe,5),2&t){let r;ut(r=pt())&&(n.pickerModal=r.first)}},features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0)(1,"app-form-field-validation-section",1),b(2,$Fe,1,0,"i",2),b(3,HFe,1,3,"i",3),b(4,UFe,1,0,"i",4),B(5,"app-form-field-help",5),b(6,QFe,1,1,"ng-template",6,7,jr)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("ngIf",!n.field.value),p(1),h("ngIf",n.field.value),p(1),h("ngIf",n.field.value&&!n.field.isRequired),p(1),h("field",n.field))},dependencies:[Ot,rt,Nn,Bn,Vn],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 ZFe(i,e){if(1&i&&(c(0,"div",2),B(1,"app-form-field",3),d()),2&i){const t=e.$implicit,n=g();p(1),h("host",n.host)("form",n.form)("field",t)("model",n.model)("view",n.view)}}class Sy extends Gt{modalService;fields;constructor(e){super(),this.modalService=e}ngOnInit(){super.ngOnInit()}static \u0275fac=function(t){return new(t||Sy)(H(Pn))};static \u0275cmp=Oe({type:Sy,selectors:[["app-component-row-field"]],inputs:{fields:"fields"},features:[it],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(t,n){1&t&&(c(0,"div",0),b(1,ZFe,2,5,"div",1),d()),2&t&&(p(1),h("ngForOf",n.fields))}})}function XFe(i,e){if(1&i){const t=re();c(0,"div",0)(1,"label",6),m(2),d(),c(3,"input",10),P("ngModelChange",function(r){return I(E(t).$implicit.x=r)}),d(),c(4,"input",11),P("ngModelChange",function(r){return I(E(t).$implicit.y=r)}),d(),c(5,"i",12),P("click",function(){const o=E(t).$implicit;return I(g().insertAfter(o))}),d(),c(6,"i",13),P("click",function(){const o=E(t).$implicit;return I(g().insertBefore(o))}),d(),c(7,"i",14),P("click",function(){const o=E(t).$implicit;return I(g().moveUp(o))}),d(),c(8,"i",15),P("click",function(){const o=E(t).$implicit;return I(g().moveDown(o))}),d(),c(9,"i",16),P("click",function(){const o=E(t).$implicit;return I(g().remove(o))}),d()()}if(2&i){const t=e.$implicit,n=e.index;p(2),$e("",n+1,"."),p(1),h("ngModel",t.x),p(1),h("ngModel",t.y)}}class ix extends Gt{isEditing=!1;constructor(){super()}ngOnInit(){super.ngOnInit(),this.points=this.field.value}points=[];addPoint(){this.points.push({x:0,y:0})}insertBefore(e){}insertAfter(e){}moveUp(e){}moveDown(e){}remove(e){const t=this.points.indexOf(e);t>=0&&this.points.splice(t,1)}static \u0275fac=function(t){return new(t||ix)};static \u0275cmp=Oe({type:ix,selectors:[["app-point2d-array"]],features:[it],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(t,n){1&t&&(c(0,"div",0)(1,"div",1),B(2,"app-form-field-label",2),d()(),c(3,"div")(4,"div",3)(5,"span",4),P("click",function(){return n.addPoint()}),B(6,"i",5),m(7,"Add"),d()(),c(8,"div",0),B(9,"label",6),c(10,"label",7),m(11,"X"),d(),B(12,"label",8),c(13,"label",7),m(14,"Y"),d()(),b(15,XFe,10,3,"div",9),d()),2&t&&(p(2),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(13),h("ngForOf",n.points))},dependencies:[Dn,en,qt,Ot,Bn]})}function JFe(i,e){1&i&&(c(0,"span",7),B(1,"i",8),d()),2&i&&mt("data-target",g().popupId)}class rx extends Gt{constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(t){return new(t||rx)};static \u0275cmp=Oe({type:rx,selectors:[["app-percent"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"input",2),P("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)}),d(),c(3,"span",3),m(4,"%"),d(),b(5,JFe,2,1,"span",4),d(),B(6,"app-form-field-validation-section",5)(7,"app-form-field-help",6)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),_t("placeholder",n.field.watermark),h("ngModel",n.field.value)("disabled",!n.field.isUserEditable),p(3),h("ngIf",n.field.help),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Dn,Ea,en,qt,rt,Nn,Bn,Vn]})}function eRe(i,e){if(1&i){const t=re();c(0,"span",13),P("click",function(){return E(t),I(g().addChildItem())}),B(1,"i",14),m(2,"Add "),d()}}function tRe(i,e){1&i&&B(0,"i",15),2&i&&mt("data-target",g().popupId)}function nRe(i,e){if(1&i){const t=re();c(0,"i",16),P("click",function(){return E(t),I(g().expanded=!0)}),d()}}function iRe(i,e){if(1&i){const t=re();c(0,"i",17),P("click",function(){return E(t),I(g().expanded=!1)}),d()}}function rRe(i,e){1&i&&(c(0,"div")(1,"div",18),m(2," [NULL ARRAY] "),d()())}function oRe(i,e){if(1&i){const t=re();c(0,"div",26)(1,"div")(2,"h4"),m(3),d(),c(4,"div",27),m(5),d()(),c(6,"span",28),P("click",function(){return E(t),I(g(3).normalViewMode())}),B(7,"i",29),m(8,"Done "),d()()}if(2&i){const t=g().index,n=g(2);p(3),Ae(n.field.label),p(2),dr("Item ",t+1," of ",null==n.field.value?null:n.field.value.length,"")}}function aRe(i,e){1&i&&B(0,"button",39)}function sRe(i,e){if(1&i){const t=re();c(0,"button",40),P("click",function(r){E(t);const o=g(2).index;return g(2).moveDown(o),I(r.stopPropagation())}),B(1,"i",41),d()}}function lRe(i,e){if(1&i){const t=re();c(0,"button",42),P("click",function(r){E(t);const o=g(2).index;return g(2).moveUp(o),I(r.stopPropagation())}),B(1,"i",43),d()}}function cRe(i,e){if(1&i){const t=re();c(0,"div",30)(1,"span",31)(2,"button",32),P("click",function(){E(t);const r=g().index;return I(g(2).fullScreen(r))}),B(3,"i",33),d(),c(4,"button",34),P("click",function(r){E(t);const o=g().index;return g(2).removeClick(o),I(r.stopPropagation())}),B(5,"i",35),d(),b(6,aRe,1,0,"button",36),b(7,sRe,2,0,"button",37),b(8,lRe,2,0,"button",38),d()()}if(2&i){const t=g().index,n=g(2);p(6),h("ngIf",n.field.value.length==t+1),p(1),h("ngIf",t0)}}function dRe(i,e){if(1&i){const t=re();c(0,"div",21),b(1,oRe,9,3,"div",22),c(2,"div",23)(3,"textarea",24),P("ngModelChange",function(r){const a=E(t).index;return I(g(2).field.value[a]=r)}),d()(),b(4,cRe,9,3,"div",25),d()}if(2&i){const t=e.index,n=g(2);St("fullScreen",n.isRowFullScreen(t)),p(1),h("ngIf",n.isRowFullScreen(t)),p(2),h("id",n.field.name+"-"+t)("name",n.field.name+"-"+t)("ngModel",n.field.value[t])("minRows",1)("maxRows",n.isRowFullScreen(t)?999:n.field.rows||8)("resizeTick",n.field.value+":"+n.fullScreenMode+":"+n.fullScreenIndex),p(1),h("ngIf",!n.isRowFullScreen(t))}}function uRe(i,e){if(1&i&&(c(0,"div",19),b(1,dRe,5,10,"div",20),d()),2&i){const t=g();p(1),h("ngForOf",t.field.value)("ngForTrackBy",t.trackByIndex)}}function pRe(i,e){if(1&i){const t=re();c(0,"div",18)(1,"span",44),P("click",function(){return E(t),I(g().addChildItem())}),B(2,"i",14),m(3,"Add "),d()()}}class ox extends Gt{modalComponent;expanded;fullScreenMode=!1;fullScreenIndex=null;fullScreen(e){this.fullScreenMode=!0,this.fullScreenIndex=e}normalViewMode(){this.fullScreenMode=!1,this.fullScreenIndex=null}isRowFullScreen(e){return this.fullScreenMode&&this.fullScreenIndex===e}constructor(e){super(),this.modalComponent=e}ngOnInit(){super.ngOnInit(),null==this.field.value&&(this.field.value=[])}moveUp(e){}moveDown(e){}removeClick(e){this.field.value.splice(e,1)}trackByIndex(e){return e}addChildItem(){this.expanded=!0,this.field.value.push("")}static \u0275fac=function(t){return new(t||ox)(H(Pn))};static \u0275cmp=Oe({type:ox,selectors:[["app-string-list-field"]],features:[it],decls:15,vars:10,consts:[[1,"asset-picker","multiline-list-picker","stack"],[1,"group","stack"],[1,"group-header","label-bar"],[1,"title"],[1,"header-actions"],["class","action header-action",3,"click",4,"ngIf"],["data-toggle","modal","class","fas fa-question action header-action",4,"ngIf"],["class","fa-regular fa-square-chevron-down action header-action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-up action header-action",3,"click",4,"ngIf"],[4,"ngIf"],["class","list stack",4,"ngIf"],["class","empty",4,"ngIf"],[3,"field"],[1,"action","header-action",3,"click"],[1,"fas","fa-plus"],["data-toggle","modal",1,"fas","fa-question","action","header-action"],[1,"fa-regular","fa-square-chevron-down","action","header-action",3,"click"],[1,"fa-regular","fa-square-chevron-up","action","header-action",3,"click"],[1,"empty"],[1,"list","stack"],["class","row multiline-row",3,"fullScreen",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row","multiline-row"],["class","fullscreen-header",4,"ngIf"],[1,"textarea-shell"],["placeholder","-empty-","nuvosAutoResizeTextarea","",1,"form-control","multiline-textarea",3,"id","name","ngModel","minRows","maxRows","resizeTick","ngModelChange"],["class","row-actions",4,"ngIf"],[1,"fullscreen-header"],[1,"fullscreen-subtitle"],[1,"action","done-action",3,"click"],[1,"fa","fa-arrows-minimize"],[1,"row-actions"],[1,"row-action-icons"],["type","button","aria-label","Full screen",1,"icon-btn",3,"click"],[1,"fa","fa-expand-arrows","action"],["type","button","aria-label","Remove",1,"icon-btn","danger",3,"click"],[1,"fa","fa-trash","action-danger"],["type","button","class","icon-btn spacer","disabled","","aria-hidden","true",4,"ngIf"],["type","button","class","icon-btn","aria-label","Move down",3,"click",4,"ngIf"],["type","button","class","icon-btn","aria-label","Move up",3,"click",4,"ngIf"],["type","button","disabled","","aria-hidden","true",1,"icon-btn","spacer"],["type","button","aria-label","Move down",1,"icon-btn",3,"click"],[1,"far","fa-chevron-down","action"],["type","button","aria-label","Move up",1,"icon-btn",3,"click"],[1,"far","fa-chevron-up","action"],[1,"action",3,"click"]],template:function(t,n){1&t&&(c(0,"section",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"label"),m(5),d()(),c(6,"div",4),b(7,eRe,3,0,"span",5),b(8,tRe,1,1,"i",6),b(9,nRe,1,0,"i",7),b(10,iRe,1,0,"i",8),d()(),b(11,rRe,3,0,"div",9),b(12,uRe,2,2,"div",10),b(13,pRe,4,0,"div",11),d()(),B(14,"app-form-field-help",12)),2&t&&(p(5),dr("",n.field.label," (",null==n.field.value?null:n.field.value.length,")"),p(2),h("ngIf",!n.fullScreenMode),p(1),h("ngIf",n.field.help),p(1),h("ngIf",!n.expanded),p(1),h("ngIf",n.expanded),p(1),h("ngIf",!(null!=n.field&&n.field.value)),p(1),h("ngIf",(null==n.field?null:n.field.value)&&n.expanded),p(1),h("ngIf",0==(null==n.field.value?null:n.field.value.length)&&n.expanded),p(1),h("field",n.field))},dependencies:[Dn,en,qt,Ot,rt,Nn,Kv],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(--color-accent);--color-fg-panel-link-active: 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)}.asset-picker[_ngcontent-%COMP%]{--ap-border: var(--color-border-panel);--ap-border-soft: color-mix(in srgb, var(--color-border-panel) 10%, transparent);--ap-surface: rgba(0, 0, 0, .18);--ap-input: white;--ap-text: var(--color-fg);--ap-muted: color-mix(in srgb, var(--color-fg) 70%, transparent);--ap-radius: 12px;--ap-row-radius: 10px;--ap-gap: 10px;--ap-list-gap: 8px;color:var(--ap-text)}.asset-picker[_ngcontent-%COMP%] .stack[_ngcontent-%COMP%]{display:flex;flex-direction:column}.asset-picker[_ngcontent-%COMP%] .group[_ngcontent-%COMP%]{border:1px solid var(--ap-border);border-radius:var(--ap-radius);padding:12px;gap:var(--ap-gap)}.asset-picker[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.asset-picker[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:600}.asset-picker[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.asset-picker[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{gap:var(--ap-list-gap)}.asset-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:start;gap:10px;margin-left:0;margin-right:0;padding:8px 10px;border-radius:var(--ap-row-radius);border:1px solid var(--ap-border-soft)}.asset-picker[_ngcontent-%COMP%] .textarea-shell[_ngcontent-%COMP%]{min-width:0}.asset-picker[_ngcontent-%COMP%] .row-actions[_ngcontent-%COMP%]{width:150px;display:flex;justify-content:flex-end;align-items:flex-start}.asset-picker[_ngcontent-%COMP%] .row-action-icons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:4px}.asset-picker[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{width:28px;height:28px;border:0;background:transparent;cursor:pointer;font-size:14px;opacity:.75;color:inherit;display:grid;place-items:center;border-radius:999px;padding:0}.asset-picker[_ngcontent-%COMP%] .icon-btn[disabled][_ngcontent-%COMP%]{opacity:.2;cursor:default}.asset-picker[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:hover:not([disabled]){background:rgba(128,128,128,.2);opacity:.95}.asset-picker[_ngcontent-%COMP%] .icon-btn.danger[_ngcontent-%COMP%]{color:inherit}.asset-picker[_ngcontent-%COMP%] .icon-btn.danger[_ngcontent-%COMP%]:hover:not([disabled]){color:#b00020;background:rgba(176,0,32,.08)}.asset-picker[_ngcontent-%COMP%] .icon-btn.spacer[_ngcontent-%COMP%]{visibility:hidden}.asset-picker[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{opacity:.7;padding:8px 10px;color:var(--ap-muted)}.asset-picker[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{cursor:pointer;color:inherit;opacity:.8}.asset-picker[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}.asset-picker[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover{opacity:1}.asset-picker[_ngcontent-%COMP%] .multiline-textarea[_ngcontent-%COMP%]{width:100%;min-height:2.25rem;line-height:1.35;overflow-y:hidden;resize:none;transition:height 80ms ease,box-shadow .12s ease,background-color .12s ease;background:var(--ap-input);border:1px solid rgba(255,255,255,.18);border-radius:10px;color:inherit;padding:8px 10px}.asset-picker[_ngcontent-%COMP%] .multiline-textarea.compact-empty[_ngcontent-%COMP%]{height:2.25rem;overflow:hidden;resize:none}.asset-picker.variant-pill[_ngcontent-%COMP%]{--ap-border: rgba(0, 0, 0, .08);--ap-border-soft: rgba(0, 0, 0, .08);--ap-surface: rgba(0, 0, 0, .1);--ap-input: rgba(0, 0, 0, .1);--ap-text: rgba(0, 0, 0, .78);--ap-muted: rgba(0, 0, 0, .5);--ap-radius: 12px;--ap-row-radius: 14px}.asset-picker.variant-pill[_ngcontent-%COMP%] .group[_ngcontent-%COMP%]{border:1px solid var(--ap-border);padding:12px;border-radius:var(--ap-radius)}.asset-picker.variant-pill[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{padding:0 2px 6px}.asset-picker.variant-pill[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px}.asset-picker.variant-pill[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding:10px 14px;background:var(--ap-surface);border-color:var(--ap-border-soft)}.asset-picker.variant-pill[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.14)}.asset-picker.variant-pill[_ngcontent-%COMP%] .multiline-textarea[_ngcontent-%COMP%]{border-radius:14px;padding:10px 14px;font-size:17px;background:var(--ap-input);border-color:#00000014}.asset-picker.variant-pill[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{width:30px;height:30px;font-size:15px;opacity:.65}.asset-picker.variant-pill[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:hover:not([disabled]){background:rgba(0,0,0,.06);opacity:.85}.asset-picker.variant-pill[_ngcontent-%COMP%] .action.header-action[_ngcontent-%COMP%], .asset-picker.variant-pill[_ngcontent-%COMP%] .done-action[_ngcontent-%COMP%]{border:0;padding:6px 8px;border-radius:10px;color:#00000073}.asset-picker.variant-pill[_ngcontent-%COMP%] .action.header-action[_ngcontent-%COMP%]:hover, .asset-picker.variant-pill[_ngcontent-%COMP%] .done-action[_ngcontent-%COMP%]:hover{color:#000000b3;background:rgba(0,0,0,.04)}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;background-color:#fff;display:flex;flex-direction:column;gap:12px;padding:20px 20px 40px;border-radius:0;border:0}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] .fullscreen-header[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:12px}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] .fullscreen-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:600;color:#000000c7}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] .fullscreen-header[_ngcontent-%COMP%] .fullscreen-subtitle[_ngcontent-%COMP%]{margin-top:4px;font-size:13px;color:#00000080}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] .fullscreen-header[_ngcontent-%COMP%] .done-action[_ngcontent-%COMP%]{flex:0 0 auto;border:0;padding:6px 10px;border-radius:10px;color:#0000008c}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] .fullscreen-header[_ngcontent-%COMP%] .done-action[_ngcontent-%COMP%]:hover{color:#000c;background:rgba(0,0,0,.05)}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] .textarea-shell[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0}.asset-picker[_ngcontent-%COMP%] .row.fullScreen[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1 1 auto;height:auto!important;min-height:0!important;max-height:none!important;background-color:#fff;border:1px solid #ccc;font-size:16px;resize:none;overflow-y:auto!important}"]})}const hRe=["addInput"],gRe=["matchItem"];function fRe(i,e){if(1&i){const t=re();c(0,"span",9),P("click",function(){return E(t),I(g().openAdd())}),B(1,"i",10),m(2,"Add"),d()}}function mRe(i,e){1&i&&B(0,"i",11),2&i&&mt("data-target",g().popupId)}function _Re(i,e){if(1&i){const t=re();c(0,"i",12),P("click",function(){return E(t),I(g().expanded=!0)}),d()}}function vRe(i,e){if(1&i){const t=re();c(0,"i",13),P("click",function(){return E(t),I(g().expanded=!1)}),d()}}function yRe(i,e){if(1&i){const t=re();c(0,"div",18)(1,"span",19),m(2,"\u22ee\u22ee"),d(),c(3,"span",20),m(4),d(),c(5,"button",21),P("click",function(){const o=E(t).$implicit;return I(g(2).remove(o.id))}),m(6," \u2715 "),d()()}if(2&i){const t=e.$implicit,n=g(2);p(1),St("disabled",n.disabled),p(2),h("title",t.id),p(1),$e("",t.text," "),p(1),h("disabled",n.disabled)}}function bRe(i,e){if(1&i&&(c(0,"div",22),m(1),d()),2&i){const t=g(2);p(1),Ae(t.emptyText)}}function CRe(i,e){if(1&i){const t=re();c(0,"input",31,32),P("ngModelChange",function(r){return E(t),I(g(3).query=r)})("ngModelChange",function(){return E(t),I(g(3).onQueryChange())})("keydown",function(r){return E(t),I(g(3).onQueryKeyDown(r))}),d()}if(2&i){const t=g(3);h("ngModel",t.query)("placeholder",t.placeholder)("disabled",t.disabled)}}function wRe(i,e){1&i&&(c(0,"div",22),m(1," All available items have been selected. "),d())}function xRe(i,e){if(1&i&&(c(0,"div",33)(1,"div",34),m(2),d(),c(3,"div",35)(4,"div",36),m(5),d()()()),2&i){const t=e.ngIf,n=g(3);p(2),Ae(n.previewTitle),p(3),Ae(t.text)}}function kRe(i,e){if(1&i){const t=re();c(0,"button",37,38),P("mouseenter",function(){const o=E(t).index;return I(g(3).highlightedIndex=o)})("click",function(){const o=E(t).$implicit;return I(g(3).clickOption(o))}),c(2,"span",39),m(3),d(),c(4,"span",40),m(5),d()()}if(2&i){const t=e.$implicit,n=e.index,r=g(3);St("highlight",r.highlightedIndex===n),h("disabled",r.disabled),p(3),Ae(t.text),p(2),Ae(t.id)}}function MRe(i,e){1&i&&(c(0,"div",41),m(1,"No matches."),d())}function DRe(i,e){if(1&i){const t=re();c(0,"div",23),b(1,CRe,2,3,"input",24),b(2,wRe,2,0,"div",16),b(3,xRe,6,2,"div",25),c(4,"div",26),b(5,kRe,6,5,"button",27),b(6,MRe,2,0,"div",28),d(),c(7,"div",29)(8,"button",30),P("click",function(){return E(t),I(g(2).closeAdd())}),m(9,"Done"),d()()()}if(2&i){const t=g(2);p(1),h("ngIf",t.hasAdditionalOptions),p(1),h("ngIf",!t.hasAdditionalOptions),p(1),h("ngIf",t.showPreview&&t.getPreview()),p(2),h("ngForOf",t.filteredOptions())("ngForTrackBy",t.trackById),p(1),h("ngIf",t.query.trim()&&0===t.filteredOptions().length),p(2),h("disabled",t.disabled)}}function TRe(i,e){if(1&i){const t=re();c(0,"div")(1,"div",14),P("cdkDropListDropped",function(r){return E(t),I(g().drop(r))}),b(2,yRe,7,5,"div",15),b(3,bRe,2,1,"div",16),d(),b(4,DRe,10,7,"div",17),d()}if(2&i){const t=g();p(2),h("ngForOf",t.selectedList)("ngForTrackBy",t.trackById),p(1),h("ngIf",!t.addOpen&&0===t.selectedList.length),p(1),h("ngIf",t.addOpen)}}class ax extends Gt{nuviotClient;constructor(e){super(),this.nuviotClient=e}expanded=!1;ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){let r=(yield t.nuviotClient.getListResponse(t.field.entityHeaderPickerUrl,{pageSize:1e3})).model.map(o=>({id:o.id,text:o.name||o.summary||o.title||o.id}));t.options=r,t.selected=t.field.value,t.title=t.field.label||"Items",e().call(t)})()}title="Assets";emptyText="No items.";placeholder="Type to search, press Enter to add\u2026";previewTitle="Selected";showPreview=!1;disabled=!1;variant="toolbox";options=[];selected=[];selectedChange=new Ie;matchItems;addInput;hasAdditionalOptions=!1;addOpen=!1;query="";highlightedIndex=0;pendingFocus=!1;get selectedList(){return this.selected||(this.selected=[])}openAdd(){if(this.disabled)return;this.expanded=!0,this.addOpen=!0,this.query="",this.highlightedIndex=0;const e=new Set(this.selectedList.map(n=>n.id)),t=(this.options||[]).filter(n=>!e.has(n.id));this.hasAdditionalOptions=t.length>0,setTimeout(()=>this.addInput?.nativeElement.focus()),this.pendingFocus=!0}closeAdd(){this.addOpen=!1,this.query="",this.highlightedIndex=0}ngAfterViewChecked(){if(!this.pendingFocus)return;const e=this.addInput?.nativeElement;!e||(this.pendingFocus=!1,e.focus(),e.select())}drop(e){this.disabled||(uI(this.selectedList,e.previousIndex,e.currentIndex),this.emit())}remove(e){if(this.disabled)return;const t=this.selectedList.findIndex(n=>n.id===e);t>=0&&(this.selectedList.splice(t,1),this.emit())}onQueryChange(){this.highlightedIndex=0}onQueryKeyDown(e){if(this.disabled)return;const t=this.filteredOptions();if("Escape"===e.key)return e.preventDefault(),void this.closeAdd();if("ArrowDown"===e.key){if(0===t.length)return;return e.preventDefault(),this.highlightedIndex=(this.highlightedIndex+1)%t.length,void this.scrollHighlightedIntoView()}if("ArrowUp"===e.key){if(0===t.length)return;return e.preventDefault(),this.highlightedIndex=(this.highlightedIndex-1+t.length)%t.length,void this.scrollHighlightedIntoView()}if("Enter"===e.key){e.preventDefault();const r=t[Math.min(Math.max(this.highlightedIndex,0),t.length-1)];if(!r)return;return this.addOption(r),void this.resetAdd()}}clickOption(e){this.disabled||(this.addOption(e),this.resetAdd())}filteredOptions(){const e=(this.query||"").trim().toLowerCase();if(!e)return[];const t=new Set(this.selectedList.map(r=>r.id));return(this.options||[]).filter(r=>!t.has(r.id)).filter(r=>(r.text||"").toLowerCase().includes(e)).slice(0,25)}getPreview(){const e=this.filteredOptions();return 0===e.length?null:e[Math.min(Math.max(this.highlightedIndex,0),e.length-1)]}trackById(e,t){return t.id}addOption(e){if(this.selectedList.some(r=>r.id===e.id))return;this.selectedList.push({id:e.id,text:e.text}),this.emit();const t=new Set(this.selectedList.map(r=>r.id)),n=(this.options||[]).filter(r=>!t.has(r.id));this.hasAdditionalOptions=n.length>0,console.log("hasAdditionalOptions",this.hasAdditionalOptions,n)}resetAdd(){this.query="",this.highlightedIndex=0,this.pendingFocus=!0}emit(){this.selectedChange.emit(this.selectedList)}scrollHighlightedIntoView(){if(!this.matchItems||0===this.matchItems.length)return;const e=this.matchItems.get(this.highlightedIndex)?.nativeElement;!e||e.scrollIntoView({block:"nearest",inline:"nearest",behavior:"auto"})}static \u0275fac=function(t){return new(t||ax)(H(hn))};static \u0275cmp=Oe({type:ax,selectors:[["app-child-list-inline-picker"]],viewQuery:function(t,n){if(1&t&&(Wt(hRe,5),Wt(gRe,5)),2&t){let r;ut(r=pt())&&(n.addInput=r.first),ut(r=pt())&&(n.matchItems=r)}},inputs:{title:"title",emptyText:"emptyText",placeholder:"placeholder",previewTitle:"previewTitle",showPreview:"showPreview",disabled:"disabled",variant:"variant",options:"options",selected:"selected"},outputs:{selectedChange:"selectedChange"},features:[it],decls:12,vars:9,consts:[[1,"asset-picker","stack"],[1,"group","stack"],[2,"display","flex"],[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"],[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"],["cdkDropList","",1,"list","stack",3,"cdkDropListDropped"],["class","row","cdkDrag","",4,"ngFor","ngForOf","ngForTrackBy"],["class","empty",4,"ngIf"],["class","add stack",4,"ngIf"],["cdkDrag","",1,"row"],["title","Drag to reorder",1,"handle"],[1,"text",3,"title"],["type","button","aria-label","Remove",1,"icon-btn",3,"disabled","click"],[1,"empty"],[1,"add","stack"],["class","form-control","type","text","autofocus","",3,"ngModel","placeholder","disabled","ngModelChange","keydown",4,"ngIf"],["class","preview",4,"ngIf"],[1,"matches"],["type","button","class","match",3,"highlight","disabled","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","no-matches",4,"ngIf"],[1,"add-actions"],["type","button",1,"btn","subtle","footer-action",3,"disabled","click"],["type","text","autofocus","",1,"form-control",3,"ngModel","placeholder","disabled","ngModelChange","keydown"],["addInput",""],[1,"preview"],[1,"preview-title"],[1,"preview-body"],[1,"preview-text"],["type","button",1,"match",3,"disabled","mouseenter","click"],["matchItem",""],[1,"match-text"],[1,"match-id"],[1,"no-matches"]],template:function(t,n){1&t&&(c(0,"section",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"label"),m(5),d()(),c(6,"div"),b(7,fRe,3,0,"span",4),b(8,mRe,1,1,"i",5),b(9,_Re,1,0,"i",6),b(10,vRe,1,0,"i",7),d()(),b(11,TRe,5,4,"div",8),d()()),2&t&&(St("variant-pill","pill"===n.variant),p(5),dr(" ",n.field.label," (",n.field.value.length,")"),p(2),h("ngIf",n.field.allowAddChild&&n.field.canAddRows),p(1),h("ngIf",n.field.help),p(1),h("ngIf",!n.expanded),p(1),h("ngIf",n.expanded),p(1),h("ngIf",n.expanded))},dependencies:[Dn,en,qt,Ot,rt,Q7,fI],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(--color-accent);--color-fg-panel-link-active: 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)}.asset-picker[_ngcontent-%COMP%]{--ap-border: var(--color-border-panel);--ap-border-soft: color-mix( in srgb, var(--color-border-panel) 10%, transparent );--ap-surface: rgba(0, 0, 0, .18);--ap-input: rgba(0, 0, 0, .14);--ap-text: var(--color-fg);--ap-muted: color-mix(in srgb, var(--color-fg) 70%, transparent);--ap-radius: 12px;--ap-row-radius: 10px;--ap-gap: 10px;--ap-list-gap: 8px;color:var(--ap-text)}.asset-picker[_ngcontent-%COMP%] .stack[_ngcontent-%COMP%]{display:flex;flex-direction:column}.asset-picker[_ngcontent-%COMP%] .group[_ngcontent-%COMP%]{border:1px solid var(--ap-border);border-radius:var(--ap-radius);padding:12px;gap:var(--ap-gap)}.asset-picker[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.asset-picker[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:600}.asset-picker[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{gap:var(--ap-list-gap)}.asset-picker[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:grid;grid-template-columns:24px 1fr 28px;align-items:center;gap:10px;margin-left:0;margin-right:0;padding:8px 10px;border-radius:var(--ap-row-radius);border:1px solid var(--ap-border-soft);background:var(--ap-surface)}.asset-picker[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{cursor:grab;-webkit-user-select:none;user-select:none;opacity:.7}.asset-picker[_ngcontent-%COMP%] .handle.disabled[_ngcontent-%COMP%]{cursor:default;opacity:.4}.asset-picker[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:0}.asset-picker[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{opacity:.7;padding:8px 10px;color:var(--ap-muted)}.asset-picker[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.18);background:transparent;border-radius:10px;padding:6px 10px;cursor:pointer;color:inherit}.asset-picker[_ngcontent-%COMP%] .btn[disabled][_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.asset-picker[_ngcontent-%COMP%] .btn.subtle[_ngcontent-%COMP%]{opacity:.85}.asset-picker[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{border:0;background:transparent;cursor:pointer;font-size:14px;opacity:.75;color:inherit}.asset-picker[_ngcontent-%COMP%] .icon-btn[disabled][_ngcontent-%COMP%]{opacity:.45;cursor:not-allowed}.asset-picker[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{gap:8px}.asset-picker[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.18);background:var(--ap-input);border-radius:10px;padding:8px 10px;outline:none;color:inherit}.asset-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{border:1px solid var(--ap-border);border-radius:10px;padding:8px 10px;background:rgba(0,0,0,.12)}.asset-picker[_ngcontent-%COMP%] .preview-title[_ngcontent-%COMP%]{font-weight:600;margin-bottom:6px}.asset-picker[_ngcontent-%COMP%] .preview-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-picker[_ngcontent-%COMP%] .preview-id[_ngcontent-%COMP%]{opacity:.65;font-size:12px}.asset-picker[_ngcontent-%COMP%] .matches[_ngcontent-%COMP%]{border:1px solid var(--ap-border);border-radius:10px;overflow:hidden;max-height:220px;overflow-y:auto}.asset-picker[_ngcontent-%COMP%] .match[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:1fr auto;gap:10px;text-align:left;padding:8px 10px;border:0;background:transparent;cursor:pointer;color:inherit}.asset-picker[_ngcontent-%COMP%] .match[disabled][_ngcontent-%COMP%]{opacity:.6;cursor:not-allowed}.asset-picker[_ngcontent-%COMP%] .match[_ngcontent-%COMP%]:hover, .asset-picker[_ngcontent-%COMP%] .match.highlight[_ngcontent-%COMP%]{background:rgba(128,128,128,.6);color:#fff}.asset-picker[_ngcontent-%COMP%] .match-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-picker[_ngcontent-%COMP%] .match-id[_ngcontent-%COMP%]{opacity:.65;font-size:12px}.asset-picker[_ngcontent-%COMP%] .no-matches[_ngcontent-%COMP%]{padding:8px 10px;opacity:.7;color:var(--ap-muted)}.asset-picker[_ngcontent-%COMP%] .add-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.asset-picker.variant-pill[_ngcontent-%COMP%]{--ap-border: rgba(0, 0, 0, .2);--ap-border-soft: rgba(0, 0, 0, .08);--ap-surface: rgba(0, 0, 0, .1);--ap-input: rgba(0, 0, 0, .1);--ap-text: rgba(0, 0, 0, .78);--ap-muted: rgba(0, 0, 0, .5);--ap-radius: 12px;--ap-row-radius: 14px}.asset-picker.variant-pill[_ngcontent-%COMP%] .group[_ngcontent-%COMP%]{border:1px solid var(--ap-border);padding:24px 28px;border-radius:var(--ap-radius);background:transparent}.asset-picker.variant-pill[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{padding:0}.asset-picker.variant-pill[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px}.asset-picker.variant-pill[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding:10px 14px;background:var(--ap-surface);border-color:var(--ap-border-soft)}.asset-picker.variant-pill[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.14)}.asset-picker.variant-pill[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:17px;line-height:1.1}.asset-picker.variant-pill[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{border-radius:14px;padding:10px 14px;font-size:17px}.asset-picker.variant-pill[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;font-size:18px;opacity:.65}.asset-picker.variant-pill[_ngcontent-%COMP%] .icon-btn[_ngcontent-%COMP%]:hover:not([disabled]){background:rgba(0,0,0,.06);opacity:.85}.asset-picker.variant-pill[_ngcontent-%COMP%] .btn.header-action[_ngcontent-%COMP%], .asset-picker.variant-pill[_ngcontent-%COMP%] .btn.footer-action[_ngcontent-%COMP%]{border:0;padding:6px 8px;border-radius:10px;color:#00000073}.asset-picker.variant-pill[_ngcontent-%COMP%] .btn.header-action[_ngcontent-%COMP%]:hover:not([disabled]), .asset-picker.variant-pill[_ngcontent-%COMP%] .btn.footer-action[_ngcontent-%COMP%]:hover:not([disabled]){color:#000000b3;background:rgba(0,0,0,.04)}.asset-picker.variant-pill[_ngcontent-%COMP%] .matches[_ngcontent-%COMP%]{border-radius:12px;background:rgba(255,255,255,.75);border-color:#00000014}.asset-picker.variant-pill[_ngcontent-%COMP%] .match[_ngcontent-%COMP%]:hover, .asset-picker.variant-pill[_ngcontent-%COMP%] .match.highlight[_ngcontent-%COMP%]{background:rgba(0,0,0,.06);color:#000000d9}.asset-picker.variant-pill[_ngcontent-%COMP%] .match-id[_ngcontent-%COMP%]{opacity:.45}"]})}function SRe(i,e){if(1&i&&(c(0,"option",8),m(1),d()),2&i){const t=e.$implicit;_t("value",t.id),p(1),Ae(t.text)}}function ERe(i,e){1&i&&(c(0,"div",9),B(1,"span",10),d()),2&i&&mt("data-target",g().popupId)}function IRe(i,e){if(1&i){const t=re();c(0,"div",11),P("click",function(){return E(t),I(g().add())}),B(1,"span",12),d()}}class sx extends Gt{modalService;nuviotClient;constructor(e,t){super(),this.modalService=e,this.nuviotClient=t}options=[];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(e){console.log(e),this.field&&(this.showValidationErrors=!0,this.hasValue="-1"!==this.field.value),super.changed(e),console.log(this.field.value)}add(){const e=this.modalService.open(Yv,{size:"lg"}).componentInstance;e.factoryUrl=this.field.factoryUrl,e.itemAdded.subscribe(t=>{this.field.value=t.key,this.field.display=t.text,this.changed(this.field),this.field.options.push(t)})}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){let n=yield t.nuviotClient.getListResponse(t.field.entityHeaderPickerUrl);t.options=n.model.map(r=>({id:r.id,text:r.summary||r.name||r.title||r.id})),t.options.unshift({id:"-1",text:t.field.watermark??"-select-"}),t.field.options=t.options.map(r=>({id:r.id,key:r.id,label:r.text,text:r.text})),t.field.value||(t.field.value="-1"),e().call(t)})()}static \u0275fac=function(t){return new(t||sx)(H(Pn),H(hn))};static \u0275cmp=Oe({type:sx,selectors:[["app-entity-header-picker-dropdown"]],features:[it],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(t,n){1&t&&(B(0,"app-form-field-label",0),c(1,"div",1)(2,"select",2),P("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.onChanged(o)}),b(3,SRe,2,2,"option",3),d(),b(4,ERe,2,1,"div",4),b(5,IRe,2,0,"div",5),d(),B(6,"app-form-field-validation-section",6)(7,"app-form-field-help",7)),2&t&&(h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),cn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),_t("name",n.field.name),_t("id",n.field.name),h("ngModel",n.field.value)("disabled",!n.field.isUserEditable),p(1),h("ngForOf",n.options),p(1),h("ngIf",n.field.help),p(1),h("ngIf",n.field.factoryUrl),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,pr,en,qt,Ot,rt,Nn,Bn,Vn]})}class lx extends Gt{constructor(){super()}ngOnInit(){}static \u0275fac=function(t){return new(t||lx)};static \u0275cmp=Oe({type:lx,selectors:[["app-child-item"]],features:[it],decls:2,vars:0,template:function(t,n){1&t&&(c(0,"p"),m(1," child-item works!\n"),d())}})}function ARe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit;h("value",t.value),p(1),Ae(t.text)}}function PRe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit;h("value",t),p(1),$e("Every ",t," Minutes")}}function FRe(i,e){if(1&i){const t=re();c(0,"div",3)(1,"label",18),m(2,"Interval"),d(),c(3,"select",19),P("ngModelChange",function(r){return E(t),I(g().selectedInterval=r)})("change",function(){return E(t),I(g().onIntervalChanged())}),b(4,PRe,2,2,"option",6),d()()}if(2&i){const t=g();p(3),h("ngModel",t.selectedInterval),p(1),h("ngForOf",t.intervalOptions)}}function RRe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit;h("value",t),p(1),Ae(t)}}function ORe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit,n=g(2);h("value",t),p(1),Ae(n.formatMinute(t))}}function LRe(i,e){if(1&i){const t=re();c(0,"div",1)(1,"div")(2,"div",20)(3,"div",21),m(4,"Time"),d(),c(5,"div",22)(6,"div",23)(7,"label",24),m(8,"Hour"),d(),c(9,"select",25),P("ngModelChange",function(r){return E(t),I(g().selectedDisplayHour=r)})("change",function(){return E(t),I(g().onTimeChanged())}),b(10,RRe,2,2,"option",6),d()(),c(11,"div",26),m(12,":"),d(),c(13,"div",23)(14,"label",27),m(15,"Minute"),d(),c(16,"select",28),P("ngModelChange",function(r){return E(t),I(g().selectedMinute=r)})("change",function(){return E(t),I(g().onTimeChanged())}),b(17,ORe,2,2,"option",6),d()(),c(18,"div",29)(19,"label",30),m(20,"AM / PM"),d(),c(21,"select",31),P("ngModelChange",function(r){return E(t),I(g().selectedAmPm=r)})("change",function(){return E(t),I(g().onTimeChanged())}),c(22,"option",32),m(23,"AM"),d(),c(24,"option",33),m(25,"PM"),d()()()()()()()}if(2&i){const t=g();p(9),h("ngModel",t.selectedDisplayHour),p(1),h("ngForOf",t.displayHours),p(6),h("ngModel",t.selectedMinute),p(1),h("ngForOf",t.minutes),p(4),h("ngModel",t.selectedAmPm)}}function NRe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit;h("value",t),p(1),$e(" ","*"===t?"Every Day of Month":t," ")}}function BRe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit;h("value",t.value),p(1),Ae(t.text)}}function VRe(i,e){if(1&i&&(c(0,"option",17),m(1),d()),2&i){const t=e.$implicit;h("value",t.value),p(1),Ae(t.text)}}function $Re(i,e){if(1&i){const t=re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"label",34),m(4,"Day of Month"),d(),c(5,"select",35),P("ngModelChange",function(r){return E(t),I(g().selectedDayOfMonth=r)})("change",function(){return E(t),I(g().onCustomPartChanged())}),b(6,NRe,2,2,"option",6),d()(),c(7,"div",3)(8,"label",36),m(9,"Month"),d(),c(10,"select",37),P("ngModelChange",function(r){return E(t),I(g().selectedMonth=r)})("change",function(){return E(t),I(g().onCustomPartChanged())}),b(11,BRe,2,2,"option",6),d()(),c(12,"div",3)(13,"label",38),m(14,"Day of Week"),d(),c(15,"select",39),P("ngModelChange",function(r){return E(t),I(g().selectedDayOfWeek=r)})("change",function(){return E(t),I(g().onCustomPartChanged())}),b(16,VRe,2,2,"option",6),d()()()()}if(2&i){const t=g();p(5),h("ngModel",t.selectedDayOfMonth),p(1),h("ngForOf",t.daysOfMonth),p(4),h("ngModel",t.selectedMonth),p(1),h("ngForOf",t.months),p(4),h("ngModel",t.selectedDayOfWeek),p(1),h("ngForOf",t.daysOfWeek)}}class cx{activeModal;value;saved=new Ie;constructor(e){this.activeModal=e}minutes=[];hours=[];daysOfMonth=[];intervalOptions=["1","5","10","15","30"];displayHours=[];selectedDisplayHour="8";selectedAmPm="AM";months=[{value:"*",text:"Every Month"},{value:"1",text:"January"},{value:"2",text:"February"},{value:"3",text:"March"},{value:"4",text:"April"},{value:"5",text:"May"},{value:"6",text:"June"},{value:"7",text:"July"},{value:"8",text:"August"},{value:"9",text:"September"},{value:"10",text:"October"},{value:"11",text:"November"},{value:"12",text:"December"}];daysOfWeek=[{value:"*",text:"Every Day"},{value:"1-5",text:"Weekdays (Mon-Fri)"},{value:"0",text:"Sunday"},{value:"1",text:"Monday"},{value:"2",text:"Tuesday"},{value:"3",text:"Wednesday"},{value:"4",text:"Thursday"},{value:"5",text:"Friday"},{value:"6",text:"Saturday"}];presets=[{value:"custom",text:"Custom"},{value:"every-x-minutes",text:"Every X Minutes"},{value:"hourly",text:"Hourly"},{value:"daily",text:"Daily"},{value:"weekdays",text:"Weekdays"},{value:"weekly",text:"Weekly"},{value:"monthly",text:"Monthly"}];selectedMode="daily";selectedInterval="15";selectedMinute="0";selectedHour="0";selectedDayOfMonth="*";selectedMonth="*";selectedDayOfWeek="*";cronExpression="* * * * *";mappedText="";ngOnInit(){this.buildOptions(),this.initializeFromInput(),this.updateCron(!1)}buildOptions(){for(let e=0;e<60;e++)this.minutes.push(e.toString());for(let e=1;e<=12;e++)this.displayHours.push(e.toString());this.daysOfMonth.push("*");for(let e=1;e<=31;e++)this.daysOfMonth.push(e.toString())}initializeFromInput(){if(this.value){var e=this.value.trim().split(/\s+/);5===e.length?(this.selectedMinute=e[0],this.selectedHour=e[1],this.selectedDayOfMonth=e[2],this.selectedMonth=e[3],this.selectedDayOfWeek=e[4],"*"!==this.selectedHour&&this.setDisplayTimeFromCronHour(this.selectedHour),this.detectModeFromCron()):this.applyPreset()}else this.applyPreset()}onModeChanged(){this.applyPreset(),this.updateCron()}applyPreset(){switch(this.selectedMode){case"every-x-minutes":this.selectedMinute="*/"+this.selectedInterval,this.selectedHour="*",this.selectedDayOfMonth="*",this.selectedMonth="*",this.selectedDayOfWeek="*";break;case"hourly":this.selectedMinute="0",this.selectedHour="*",this.selectedDayOfMonth="*",this.selectedMonth="*",this.selectedDayOfWeek="*",this.selectedDisplayHour="12",this.selectedAmPm="AM";break;case"daily":this.selectedMinute="0",this.selectedDisplayHour="8",this.selectedAmPm="AM",this.selectedHour=this.getCronHourFromDisplay(),this.selectedDayOfMonth="*",this.selectedMonth="*",this.selectedDayOfWeek="*";break;case"weekdays":this.selectedMinute="0",this.selectedDisplayHour="8",this.selectedAmPm="AM",this.selectedHour=this.getCronHourFromDisplay(),this.selectedDayOfMonth="*",this.selectedMonth="*",this.selectedDayOfWeek="1-5";break;case"weekly":this.selectedMinute="0",this.selectedDisplayHour="8",this.selectedAmPm="AM",this.selectedHour=this.getCronHourFromDisplay(),this.selectedDayOfMonth="*",this.selectedMonth="*",this.selectedDayOfWeek="1";break;case"monthly":this.selectedMinute="0",this.selectedDisplayHour="8",this.selectedAmPm="AM",this.selectedHour=this.getCronHourFromDisplay(),this.selectedDayOfMonth="1",this.selectedMonth="*",this.selectedDayOfWeek="*"}}onTimeChanged(){this.selectedHour=this.getCronHourFromDisplay(),"custom"!==this.selectedMode&&"daily"!==this.selectedMode&&"weekdays"!==this.selectedMode&&"weekly"!==this.selectedMode&&"monthly"!==this.selectedMode&&(this.selectedMode="custom"),this.updateCron()}onCustomPartChanged(){"custom"!==this.selectedMode&&(this.selectedMode="custom"),this.updateCron()}onIntervalChanged(){"every-x-minutes"===this.selectedMode&&(this.applyPreset(),this.updateCron())}updateCron(e=!0){"*"!==this.selectedHour&&(this.selectedHour=this.getCronHourFromDisplay()),this.cronExpression=[this.selectedMinute,this.selectedHour,this.selectedDayOfMonth,this.selectedMonth,this.selectedDayOfWeek].join(" "),this.mappedText=this.buildDescription()}buildDescription(){if(this.selectedMinute.startsWith("*/"))return"Every "+this.selectedMinute.replace("*/","")+" minutes";var t=this.buildTimeText(),n=this.getMonthText(this.selectedMonth),r=this.getDayOfWeekText(this.selectedDayOfWeek);return"*"===this.selectedHour&&"*"!==this.selectedMinute?"Every hour at minute "+this.padMinute(this.selectedMinute):"*"===this.selectedDayOfMonth&&"*"===this.selectedMonth&&"*"===this.selectedDayOfWeek?"Every day at "+t:"1-5"===this.selectedDayOfWeek&&"*"===this.selectedDayOfMonth&&"*"===this.selectedMonth?"Every weekday at "+t:"*"===this.selectedDayOfMonth&&"*"===this.selectedMonth&&"*"!==this.selectedDayOfWeek?"Every "+r+" at "+t:"*"!==this.selectedDayOfMonth&&"*"===this.selectedMonth&&"*"===this.selectedDayOfWeek?"On day "+this.selectedDayOfMonth+" of every month at "+t:"*"!==this.selectedDayOfMonth&&"*"!==this.selectedMonth&&"*"===this.selectedDayOfWeek?"On "+n+" "+this.selectedDayOfMonth+" at "+t:"CRON: "+this.cronExpression}detectModeFromCron(){if(this.selectedMinute.startsWith("*/")&&"*"===this.selectedHour&&"*"===this.selectedDayOfMonth&&"*"===this.selectedMonth&&"*"===this.selectedDayOfWeek)return this.selectedMode="every-x-minutes",void(this.selectedInterval=this.selectedMinute.replace("*/",""));this.selectedMode="0"!==this.selectedMinute||"*"!==this.selectedHour||"*"!==this.selectedDayOfMonth||"*"!==this.selectedMonth||"*"!==this.selectedDayOfWeek?"*"!==this.selectedDayOfMonth||"*"!==this.selectedMonth||"1-5"!==this.selectedDayOfWeek?"*"===this.selectedDayOfMonth&&"*"===this.selectedMonth&&["0","1","2","3","4","5","6"].indexOf(this.selectedDayOfWeek)>=0?"weekly":"*"===this.selectedDayOfMonth||"*"!==this.selectedMonth||"*"!==this.selectedDayOfWeek?"*"!==this.selectedDayOfMonth||"*"!==this.selectedMonth||"*"!==this.selectedDayOfWeek?"custom":"daily":"monthly":"weekdays":"hourly"}buildTimeText(){return"*"===this.selectedHour||"*"===this.selectedMinute?"various times":this.selectedDisplayHour+":"+this.padMinute(this.selectedMinute)+" "+this.selectedAmPm}getMonthText(e){var t=this.months.find(n=>n.value===e);return t?t.text:e}getDayOfWeekText(e){if("1-5"===e)return"weekday";var t=this.daysOfWeek.find(n=>n.value===e);return t?t.text:e}padHour(e){return e.toString().padStart(2,"0")}padMinute(e){return e.toString().padStart(2,"0")}apply(){this.saved.emit({cron:this.cronExpression,description:this.mappedText})}formatMinute(e){return e.toString().padStart(2,"0")}clearExpression(){this.selectedMode="daily",this.selectedInterval="15",this.selectedMinute="0",this.selectedDisplayHour="8",this.selectedAmPm="AM",this.selectedHour=this.getCronHourFromDisplay(),this.selectedDayOfMonth="*",this.selectedMonth="*",this.selectedDayOfWeek="*",this.updateCron()}close(){this.activeModal.close()}getCronHourFromDisplay(){var e=parseInt(this.selectedDisplayHour,10);return"AM"===this.selectedAmPm?12===e?"0":e.toString():12===e?"12":(e+12).toString()}setDisplayTimeFromCronHour(e){var t=parseInt(e,10);return isNaN(t)?(this.selectedDisplayHour="8",void(this.selectedAmPm="AM")):0===t?(this.selectedDisplayHour="12",void(this.selectedAmPm="AM")):12===t?(this.selectedDisplayHour="12",void(this.selectedAmPm="PM")):t>12?(this.selectedDisplayHour=(t-12).toString(),void(this.selectedAmPm="PM")):(this.selectedDisplayHour=t.toString(),void(this.selectedAmPm="AM"))}static \u0275fac=function(t){return new(t||cx)(H(ar))};static \u0275cmp=Oe({type:cx,selectors:[["app-cron-builder"]],inputs:{value:"value"},outputs:{saved:"saved"},decls:29,vars:7,consts:[[1,"cron-builder"],[1,"row"],[2,"display","flex","gap","15px","width","100%"],[1,"field",2,"flex-grow","1"],["for","mode"],["id","mode",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],["class","field","style","flex-grow:1",4,"ngIf"],["class","row",4,"ngIf"],[1,"result"],[1,"label"],[1,"value","code"],[1,"value"],[1,"save-bar"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-secondary",3,"click"],[3,"value"],["for","interval"],["id","interval",3,"ngModel","ngModelChange","change"],[1,"time-card-header"],[1,"time-card-title"],[1,"time-row"],[1,"field","time-field"],["for","displayHour"],["id","displayHour",1,"time-select",3,"ngModel","ngModelChange","change"],[1,"time-separator"],["for","minute"],["id","minute",1,"time-select",3,"ngModel","ngModelChange","change"],[1,"field","ampm-field"],["for","ampm"],["id","ampm",1,"time-select",3,"ngModel","ngModelChange","change"],["value","AM"],["value","PM"],["for","dayOfMonth"],["id","dayOfMonth",3,"ngModel","ngModelChange","change"],["for","month"],["id","month",3,"ngModel","ngModelChange","change"],["for","dayOfWeek"],["id","dayOfWeek",3,"ngModel","ngModelChange","change"]],template:function(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4),m(5,"Schedule Type"),d(),c(6,"select",5),P("ngModelChange",function(o){return n.selectedMode=o})("change",function(){return n.onModeChanged()}),b(7,ARe,2,2,"option",6),d()(),b(8,FRe,5,2,"div",7),d()(),b(9,LRe,26,5,"div",8),b(10,$Re,17,6,"div",8),c(11,"div",9)(12,"div",10),m(13,"CRON Expression"),d(),c(14,"div",11),m(15),d()(),c(16,"div",9)(17,"div",10),m(18,"Mapped String"),d(),c(19,"div",12),m(20),d()(),B(21,"hr"),c(22,"div",13)(23,"button",14),P("click",function(){return n.apply()}),m(24,"Apply"),d(),c(25,"button",15),P("click",function(){return n.clearExpression()}),m(26,"Clear"),d(),c(27,"button",16),P("click",function(){return n.close()}),m(28,"Close"),d()()()),2&t&&(p(6),h("ngModel",n.selectedMode),p(1),h("ngForOf",n.presets),p(1),h("ngIf","every-x-minutes"===n.selectedMode),p(1),h("ngIf","every-x-minutes"!==n.selectedMode),p(1),h("ngIf","custom"===n.selectedMode||"weekly"===n.selectedMode||"monthly"===n.selectedMode),p(5),Ae(n.cronExpression),p(5),Ae(n.mappedText))},dependencies:[Ot,rt,Mr,Dr,pr,en,qt],styles:[".cron-builder[_ngcontent-%COMP%]{padding:12px}.row[_ngcontent-%COMP%]{margin-bottom:12px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column}.field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600;margin-bottom:4px}.field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{min-height:36px}.value.code[_ngcontent-%COMP%]{font-family:Consolas,Courier New,monospace}.time-card[_ngcontent-%COMP%]{width:100%;margin-top:10px;padding:10px 12px;background:#f7f7f7;border-radius:4px;border:none}.time-card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.time-card-title[_ngcontent-%COMP%]{font-size:12px;font-weight:700;text-transform:uppercase;color:#666;margin-bottom:8px}.time-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:flex-start;gap:12px;flex-wrap:wrap}.time-field[_ngcontent-%COMP%], .ampm-field[_ngcontent-%COMP%]{min-width:100px}.time-field[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .ampm-field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{text-align:center}.time-separator[_ngcontent-%COMP%]{font-size:24px;font-weight:700;line-height:36px;padding-bottom:2px;color:#6b7280}.result[_ngcontent-%COMP%]{margin-top:10px;padding:10px 12px;background:#f7f7f7;border-radius:4px}.label[_ngcontent-%COMP%]{font-size:12px;font-weight:700;text-transform:uppercase;color:#666;margin-bottom:4px}"]})}function AA(i){return i.toString().padStart(2,"0")}function qRe(i,e){if(1&i){const t=re();c(0,"span",12),P("click",function(r){return E(t),g(2).clearExpression(),I(r.stopPropagation())}),B(1,"i",13),d()}}function GRe(i,e){if(1&i){const t=re();c(0,"span")(1,"i",14),P("click",function(){return E(t),I(g(2).showBuilder())}),d()()}}function KRe(i,e){1&i&&(c(0,"span",15),B(1,"span",16),d()),2&i&&mt("data-target",g(2).popupId)}const QRe=function(i){return{"picker-link":i}};function ZRe(i,e){if(1&i){const t=re();c(0,"div",3)(1,"div",4)(2,"div",5),B(3,"app-form-field-label",6),c(4,"div",7)(5,"span",8),P("click",function(){return E(t),I(g().showBuilder())}),m(6),d(),b(7,qRe,2,0,"span",9),b(8,GRe,2,0,"span",10),d()(),c(9,"div"),b(10,KRe,2,1,"span",11),d()()()}if(2&i){const t=g();let n;p(3),h("name",t.field.name)("label",t.field.label)("isRequired",t.field.isRequired),p(2),h("ngClass",bt(8,QRe,t.field.isUserEditable)),p(1),Ae(null!==(n=null!==(n=t.field.display)&&void 0!==n?n:t.field.watermark)&&void 0!==n?n:"-select-"),p(1),h("ngIf",t.field.value&&!t.field.isRequired&&t.field.isUserEditable),p(1),h("ngIf",t.field.editorPath&&t.field.value),p(2),h("ngIf",t.field.help)}}class dx extends Gt{modalService;adminService;constructor(e,t){super(),this.modalService=e,this.adminService=t}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){e().call(t),t.field.value?(console.log(t.field.value),t.field.display=function HRe(i){if(!i||!i.trim())return{cron:i,mode:"custom",description:"CRON: "+i,minute:"",hour:"",dayOfMonth:"",month:"",dayOfWeek:""};var e=i.trim().split(/\s+/);if(5!==e.length)return{cron:i,mode:"custom",description:"CRON: "+i,minute:"",hour:"",dayOfMonth:"",month:"",dayOfWeek:""};var t=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=function jRe(i,e,t,n,r){return i.startsWith("*/")&&"*"===e&&"*"===t&&"*"===n&&"*"===r?"every-x-minutes":"0"===i&&"*"===e&&"*"===t&&"*"===n&&"*"===r?"hourly":"*"===t&&"*"===n&&"1-5"===r?"weekdays":"*"===t&&"*"===n&&["0","1","2","3","4","5","6"].indexOf(r)>=0?"weekly":"*"!==t&&"*"===n&&"*"===r?"monthly":"*"===t&&"*"===n&&"*"===r?"daily":"custom"}(t,n,r,o,a),l=function URe(i,e,t,n,r){if(i.startsWith("*/"))return"Every "+i.replace("*/","")+" minutes";var a=function YRe(i,e){if("*"===i||"*"===e)return"various times";var t=parseInt(i,10);if(isNaN(t))return i+":"+AA(e);var n=t>=12?"PM":"AM",r=t%12;return 0===r&&(r=12),r.toString()+":"+AA(e)+" "+n}(e,i),s=function zRe(i){switch(i){case"*":return"Every Month";case"1":return"January";case"2":return"February";case"3":return"March";case"4":return"April";case"5":return"May";case"6":return"June";case"7":return"July";case"8":return"August";case"9":return"September";case"10":return"October";case"11":return"November";case"12":return"December";default:return i}}(n),l=function WRe(i){switch(i){case"*":return"day";case"0":return"Sunday";case"1":return"Monday";case"2":return"Tuesday";case"3":return"Wednesday";case"4":return"Thursday";case"5":return"Friday";case"6":return"Saturday";case"1-5":return"weekday";default:return i}}(r);return"*"===e&&"*"!==i?"Every hour at minute "+AA(i):"*"===t&&"*"===n&&"*"===r?"Every day at "+a:"1-5"===r&&"*"===t&&"*"===n?"Every weekday at "+a:"*"===t&&"*"===n&&"*"!==r?"Every "+l+" at "+a:"*"!==t&&"*"===n&&"*"===r?"On day "+t+" of every month at "+a:"*"!==t&&"*"!==n&&"*"===r?"On "+s+" "+t+" at "+a:"CRON: "+[i,e,t,n,r].join(" ")}(t,n,r,o,a),u={cron:i,mode:s,description:l,minute:t,hour:n,dayOfMonth:r,month:o,dayOfWeek:a};return"every-x-minutes"===s&&t.startsWith("*/")&&(u.interval=t.replace("*/","")),u}(t.field.value)):t.field.display=void 0})()}clearExpression(){this.field.value=null,this.field.display=null}showBuilder(){const e=this.modalService.open(cx,{size:"lg"}).componentInstance;e.cronExpression=this.field.value,e.saved.subscribe(t=>{this.field.value=t.cron,this.field.display=t.description,console.log(t),e.close()})}static \u0275fac=function(t){return new(t||dx)(H(Pn),H(ns))};static \u0275cmp=Oe({type:dx,selectors:[["app-cron-builder-field"]],features:[it],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,"ngClass","click"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",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(t,n){1&t&&(b(0,ZRe,11,10,"div",0),B(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&t&&(h("ngIf",n.field),p(1),h("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Vi,rt,Nn,Bn,Vn],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 XRe=["fileInput"],JRe=["mediaLibraryModal"],eOe=["advancedView"];function tOe(i,e){if(1&i){const t=re();c(0,"span",7),P("click",function(){return E(t),I(g().generateImage())}),B(1,"i",21)(2,"span",22),m(3,"Add with AI"),d()}}function nOe(i,e){if(1&i){const t=re();c(0,"i",23),P("click",function(){return E(t),I(g().expanded=!0)}),d()}}function iOe(i,e){if(1&i){const t=re();c(0,"i",24),P("click",function(){return E(t),I(g().expanded=!1)}),d()}}const rOe=function(i){return{width:i}};function oOe(i,e){if(1&i&&(c(0,"div",31),m(1),c(2,"div",32),B(3,"div",33),d()()),2&i){const t=g(2);p(1),$e(" ",t.fileNameOrStatus," "),p(2),h("ngStyle",bt(2,rOe,t.uploader.progress+"%"))}}function aOe(i,e){if(1&i&&(c(0,"div",34),m(1),d()),2&i){const t=g(2);p(1),Ae(t.error)}}function sOe(i,e){1&i&&(c(0,"div",35),B(1,"i",36),c(2,"span"),m(3,"No files have been added."),d()())}function lOe(i,e){if(1&i&&B(0,"img",52),2&i){const t=g().$implicit;h("src",g(3).getDownloadUrl(t),gi)("alt",t.text)}}function cOe(i,e){1&i&&(c(0,"div",53),B(1,"i",54),d())}function dOe(i,e){if(1&i){const t=re();c(0,"i",55),P("click",function(){E(t);const r=g().$implicit;return I(g(3).showAdvanced(r))}),d()}}function uOe(i,e){if(1&i){const t=re();c(0,"i",56),P("click",function(){E(t);const r=g().index;return I(g(3).moveLeft(r))}),d()}}function pOe(i,e){if(1&i){const t=re();c(0,"i",57),P("click",function(){E(t);const r=g().index;return I(g(3).moveRight(r))}),d()}}function hOe(i,e){if(1&i){const t=re();c(0,"article",39)(1,"div",40),b(2,lOe,1,2,"img",41),b(3,cOe,2,0,"div",42),d(),c(4,"div",43)(5,"div",44),m(6),d(),c(7,"div",45)(8,"i",46),P("click",function(){const o=E(t).$implicit;return I(g(3).generateImage(o))}),d(),c(9,"i",47),P("click",function(){const o=E(t).$implicit;return I(g(3).download(o))}),d(),b(10,dOe,1,0,"i",48),b(11,uOe,1,0,"i",49),b(12,pOe,1,0,"i",50),c(13,"i",51),P("click",function(){const o=E(t).index;return I(g(3).remove(o))}),d()()()()}if(2&i){const t=e.$implicit,n=e.index,r=g(3);p(2),h("ngIf",r.field.isFileUploadImage),p(1),h("ngIf",!r.field.isFileUploadImage),p(2),h("title",t.text),p(1),Ae(t.text),p(4),h("ngIf",r.field.imageUpload),p(1),h("ngIf",n>0),p(1),h("ngIf",n0)}}function _Oe(i,e){if(1&i&&(c(0,"option",69),m(1),d()),2&i){const t=e.$implicit;h("value",t.key),p(1),Ae(t.name)}}function vOe(i,e){if(1&i&&B(0,"img",52),2&i){const t=g().$implicit;h("src",t.link,gi)("alt",t.name)}}function yOe(i,e){if(1&i){const t=re();c(0,"tr")(1,"td",73),b(2,vOe,1,2,"img",41),d(),c(3,"td"),m(4),d(),c(5,"td"),m(6),d(),c(7,"td")(8,"span",74),P("click",function(){const o=E(t).$implicit;return I(g(3).selectResource(o))}),m(9,"Use as a Share"),d()(),c(10,"td")(11,"span",75),P("click",function(){const o=E(t).$implicit;return I(g(3).makeACopy(o))}),m(12,"Make a Copy"),d()()()}if(2&i){const t=e.$implicit;p(2),h("ngIf",t.link),p(2),Ae(t.name),p(2),Ae(t.category)}}function bOe(i,e){if(1&i&&(c(0,"table",70)(1,"thead")(2,"tr")(3,"th"),m(4,"Preview"),d(),c(5,"th"),m(6,"Name"),d(),c(7,"th"),m(8,"Category"),d(),B(9,"th")(10,"th"),d()(),c(11,"tbody",71),b(12,yOe,13,3,"tr",72),d()()),2&i){const t=g(2);p(12),h("ngForOf",t.mediaResources.model)}}function COe(i,e){if(1&i){const t=re();c(0,"div",76)(1,"span",7),P("click",function(){return E(t),I(g(2).showNextPage())}),m(2,"Next Page"),B(3,"i",77),d()()}}function wOe(i,e){if(1&i){const t=re();c(0,"div",58)(1,"h4",59),m(2,"Media Library"),d(),c(3,"div",60)(4,"label"),m(5,"Category:"),d(),c(6,"select",61),P("ngModelChange",function(r){return E(t),I(g().categoryFilter=r)})("change",function(){return E(t),I(g().mediaFilterByCategory())}),c(7,"option",62),m(8,"-all-"),d(),b(9,_Oe,2,2,"option",63),d()(),c(10,"button",64),P("click",function(){return I(E(t).$implicit.dismiss())}),c(11,"span",65),m(12,"\xd7"),d()()(),c(13,"div",66),b(14,bOe,13,1,"table",67),b(15,COe,4,0,"div",68),d()}if(2&i){const t=g();p(6),h("ngModel",t.categoryFilter),p(3),h("ngForOf",null==t.categories?null:t.categories.model),p(5),h("ngIf",t.mediaResources),p(1),h("ngIf",null==t.mediaResources?null:t.mediaResources.hasMoreRecords)}}function xOe(i,e){if(1&i){const t=re();c(0,"div",60)(1,"label"),m(2,"File Name:"),d(),c(3,"input",80),P("ngModelChange",function(r){return E(t),I(g(2).resource.name=r)}),d()()}if(2&i){const t=g(2);p(3),h("ngModel",t.resource.name)}}function kOe(i,e){if(1&i&&(c(0,"div",100)(1,"div",91)(2,"label"),m(3,"Content Type:"),d(),m(4),d(),c(5,"div",91)(6,"label"),m(7,"File Size:"),d(),m(8),Zt(9,"fileSize"),d(),c(10,"div",91)(11,"label"),m(12,"Actual Size:"),d(),m(13),d()()),2&i){const t=g(3);p(4),$e(" ",t.resource.mimeType," "),p(4),$e(" ",Xt(9,4,t.resource.contentSize)," "),p(5),dr(" ",t.resource.width,"x",t.resource.height," ")}}function MOe(i,e){if(1&i&&(c(0,"option",69),m(1),d()),2&i){const t=e.$implicit;h("value",t.key),p(1),Ae(t.name)}}function DOe(i,e){if(1&i){const t=re();c(0,"div",81)(1,"div",82)(2,"div",83)(3,"img",84,85),P("click",function(r){E(t);const o=Vr(4);return I(g(2).setFocalPoint(r,o))}),d(),B(5,"span",86),d(),c(6,"div",87)(7,"span"),m(8,"Click the image to set its focal point."),d(),c(9,"button",88),P("click",function(){return E(t),I(g(2).resetFocalPoint())}),m(10," Center "),d()()(),b(11,kOe,14,6,"div",89),c(12,"div",90)(13,"div",91)(14,"label"),m(15,"Content Type:"),d(),m(16),d(),c(17,"div",91)(18,"label"),m(19,"File Size:"),d(),m(20),Zt(21,"fileSize"),d(),c(22,"div",91)(23,"label"),m(24,"Actual Size:"),d(),m(25),d(),c(26,"div",60)(27,"label"),m(28,"Category:"),d(),c(29,"select",61),P("ngModelChange",function(r){return E(t),I(g(2).mediaCategoryId=r)})("change",function(){return E(t),I(g(2).categoryChanged())}),c(30,"option",62),m(31,"-select category-"),d(),b(32,MOe,2,2,"option",63),d()(),c(33,"app-rating",92),P("set",function(r){return E(t),I(g(2).setRating(r))})("clear",function(){return E(t),I(g(2).clearRating())}),d()(),c(34,"fieldset",93)(35,"legend"),m(36,"Resize Image"),d(),c(37,"label"),m(38,"Recommended:"),d(),m(39),c(40,"label"),m(41,"New Size"),d(),c(42,"div")(43,"input",94),P("ngModelChange",function(r){return E(t),I(g(2).resizeWidth=r)}),d(),m(44,"x "),c(45,"input",94),P("ngModelChange",function(r){return E(t),I(g(2).resizeHeight=r)}),d()(),c(46,"div")(47,"label"),m(48,"File Type:"),d(),c(49,"select",95),P("ngModelChange",function(r){return E(t),I(g(2).resizeFileType=r)}),c(50,"option",96),m(51,"JPEG"),d(),c(52,"option",97),m(53,"PNG"),d(),c(54,"option",98),m(55,"WEBP"),d()()(),c(56,"div",76)(57,"button",99),P("click",function(){return E(t),I(g(2).resize())}),m(58,"Resize"),d()()()()}if(2&i){const t=g(2);p(3),h("src",t.getDownloadUrl(t.selectedReference,!0),gi),p(2),cn("left",100*t.focalPointX,"%")("top",100*t.focalPointY,"%"),p(6),h("ngIf",t.resource),p(5),$e(" ",t.resource.mimeType,""),p(4),$e(" ",Xt(21,17,t.resource.contentSize),""),p(5),dr(" ",t.resource.width,"x",t.resource.height,""),p(4),h("ngModel",t.mediaCategoryId),p(3),h("ngForOf",null==t.categories?null:t.categories.model),p(1),h("rating",t.userRating),p(6),$e(" ",t.field.displayImageSize," "),p(4),h("ngModel",t.resizeWidth),p(2),h("ngModel",t.resizeHeight),p(4),h("ngModel",t.resizeFileType)}}function TOe(i,e){if(1&i){const t=re();c(0,"div",58)(1,"h4",59),m(2,"Advanced Image Options"),d(),c(3,"button",64),P("click",function(){return E(t),I(g().advancedModal.dismiss())}),c(4,"span",65),m(5,"\xd7"),d()()(),c(6,"div",66),b(7,xOe,4,1,"div",78),b(8,DOe,59,19,"div",79),d()}if(2&i){const t=g();p(7),h("ngIf",t.resource),p(1),h("ngIf",t.resource)}}class ux extends Gt{modalService;mediaService;adminService;userService;expanded=!1;hasBaseDropZoneOver=!1;uploader;error;fileNameOrStatus;orgId;resource;selectedReference;mediaResources;categories;categoryFilter="-1";mediaCategoryId="-1";resizeWidth;resizeHeight;resizeFileType="webp";userRating;currentUser;focalPointX=.5;focalPointY=.5;fileInput;mediaLibraryModal;advancedView;currentModal;advancedModal;constructor(e,t,n,r){super(),this.modalService=e,this.mediaService=t,this.adminService=n,this.userService=r}ngOnInit(){var e=()=>super.ngOnInit,t=this;return O(function*(){if(t.orgId=(yield t.userService.getCurrentOrg()).id,t.currentUser=yield t.userService.getUser(),t.categories=yield t.adminService.getCategories("mediaresource"),Array.isArray(t.field.value)||(t.field.value=[]),(!t.field.uploadUrl||!t.field.uploadUrl.startsWith("http"))&&(t.field.uploadUrl=`${ft.siteUri}${t.field.uploadUrl}`),t.configureUploader(),t.field.displayImageSize){const n=t.field.displayImageSize.split("x");t.resizeWidth=parseInt(n[0]),t.resizeHeight=parseInt(n[1])}t.field.refresh=O(function*(){t.field.value=[...t.items]}),e().call(t)})()}get listHasValue(){return this.items&&this.items.length>0}get items(){return Array.isArray(this.field.value)?this.field.value:[]}getDownloadUrl(e,t=!1){return as.getDownloadUrl(this.orgId,e?.id,t)}selectFile(){this.fileInput?.nativeElement.click()}addReference(e){!e?.id||as.contains(this.items,e)||this.setValue([...this.items,e])}remove(e){this.setValue(this.items.filter((t,n)=>n!==e))}moveLeft(e){this.move(e,e-1)}moveRight(e){this.move(e,e+1)}download(e){const t=this.getDownloadUrl(e);t&&window.open(t)}fileOverBase(e){this.hasBaseDropZoneOver=e}generateImage(e){var t=this;return O(function*(){const n=t.modalService.open(Hv,{size:"xl",beforeDismiss:()=>!0}).componentInstance;n.entityFieldName=t.field.name,n.entityTypeName=t.form.modelName,n.entityId=t.model.id,n.formField=t.field,n.entity=t.model,n.resourceName=t.field.label||t.field.name,n.mediaResourceId=e?.id,t.field.aiReferenceImageField&&t.form.view[t.field.aiReferenceImageField]?.value&&(n.referenceMediaResourceId=t.form.view[t.field.aiReferenceImageField].value.id),console.log(t.field.aiReferenceImageField,t.form.view[t.field.aiReferenceImageField],n.referenceMediaResourceId),n.onApplyContent.subscribe(r=>{t.upsertReference(r)})})()}upsertReference(e){if(!e?.id)return;const t=this.items.findIndex(r=>r.id===e.id);if(t<0)return void this.setValue([...this.items,e]);const n=[...this.items];n[t]={...n[t],...e},this.setValue(n)}showMediaPicker(){var e=this;return O(function*(){e.currentModal=e.modalService.open(e.mediaLibraryModal,{size:"xl"}),e.categoryFilter=e.form.modelName.toLocaleLowerCase()+e.field.name.toLocaleLowerCase(),e.mediaResources=yield e.mediaService.getMediaByCategory(e.categoryFilter)})()}selectResource(e){this.addReference({id:e.id,key:e.key,text:e.name}),this.currentModal.close()}makeACopy(e){var t=this;return O(function*(){const n=yield t.mediaService.cloneMediaResource(e.id,t.form.modelName,t.field.name,e.name);if(n.successful){const r=n.result;t.addReference({id:r.id,key:r.key,text:r.name})}t.currentModal.close()})()}mediaFilterByCategory(){var e=this;return O(function*(){e.mediaResources=e.categoryFilter&&"-1"!==e.categoryFilter?yield e.mediaService.getMediaByCategory(e.categoryFilter):yield e.mediaService.getAllMedia()})()}showNextPage(){var e=this;return O(function*(){e.mediaResources=yield e.mediaService.getAllMedia(e.mediaResources.pageIndex+1,e.mediaResources.pageSize)})()}showAdvanced(e){var t=this;return O(function*(){t.selectedReference=e,t.focalPointX=e.focalPointX??.5,t.focalPointY=e.focalPointY??.5;const n=yield t.mediaService.loadMediaResource(e.id);if(n.successful){if(t.resource=n.model,t.mediaCategoryId=t.resource.category?.id??"-1",t.userRating=t.resource.ratings?.find(r=>r.user.id===t.currentUser.id),t.field.displayImageSize){const r=t.field.displayImageSize.split("x");t.resizeWidth=parseInt(r[0],10),t.resizeHeight=parseInt(r[1],10)}t.resource.width&&t.resource.height&&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"})}})()}resize(){var e=this;return O(function*(){const t=yield e.mediaService.resizeMediaResource(e.resource.id,{fileType:e.resizeFileType,width:e.resizeWidth,height:e.resizeHeight});t.successful&&(e.resource=t.result)})()}categoryChanged(){var e=this;return O(function*(){if(!e.mediaCategoryId||"-1"===e.mediaCategoryId||e.mediaCategoryId===e.resource?.category?.id)return;const t=e.categories.model.find(o=>o.key===e.mediaCategoryId);if(!t)return;const n={id:t.key,key:t.key,text:t.name};(yield e.mediaService.assignCategory(e.resource.id,n)).successful&&(e.resource.category=n)})()}setRating(e){var t=this;return O(function*(){const n=yield t.mediaService.setRating(t.resource.id,e);n.successful&&(t.resource.stars=n.result.stars,t.resource.ratings=n.result.ratings,t.resource.ratingsCount=n.result.ratingsCount,t.userRating=n.result.ratings.find(r=>r.user.id===t.currentUser.id))})()}clearRating(){var e=this;return O(function*(){const t=yield e.mediaService.clearRating(e.resource.id);t.successful&&(e.resource.stars=t.result.stars,e.resource.ratings=t.result.ratings,e.resource.ratingsCount=t.result.ratingsCount,e.userRating=void 0)})()}configureUploader(){this.uploader=new N_({url:this.field.uploadUrl}),this.uploader.onAfterAddingFile=e=>{this.error=void 0,this.fileNameOrStatus=`Uploading: ${e.some.name}`,this.uploader.uploadItem(e)},this.uploader.onErrorItem=(e,t,n,r)=>{this.error=`Upload error: ${n}`},this.uploader.onCancelItem=(e,t,n,r)=>{this.error=`Upload canceled: ${n}`},this.uploader.onCompleteItem=(e,t,n,r)=>{const o=JSON.parse(t);if(!o.successful)return void(this.error=o.errors[0].message);const a=as.createEntityHeader(o.result);a&&(this.addReference(a),this.fileNameOrStatus=`Success uploading: ${e.some.name}`)}}move(e,t){if(e<0||e>=this.items.length||t<0||t>=this.items.length)return;const n=[...this.items],r=n.splice(e,1)[0];n.splice(t,0,r),this.setValue(n)}setValue(e){this.field.value=e,this.model[this.field.name]=e,this.field.propertyChanged&&this.field.propertyChanged(this.field)}resolveReferenceMediaResourceId(e){return e?this.model[e]?.id??null:null}setFocalPoint(e,t){if(!this.selectedReference?.id)return;const n=t.getBoundingClientRect();n.width<=0||n.height<=0||(this.focalPointX=this.clamp((e.clientX-n.left)/n.width),this.focalPointY=this.clamp((e.clientY-n.top)/n.height),this.updateSelectedReference({focalPointX:this.focalPointX,focalPointY:this.focalPointY}))}resetFocalPoint(){this.focalPointX=.5,this.focalPointY=.5,this.updateSelectedReference({focalPointX:this.focalPointX,focalPointY:this.focalPointY})}updateSelectedReference(e){const t=this.items.findIndex(o=>o.id===this.selectedReference?.id);if(t<0)return;const n={...this.items[t],...e},r=[...this.items];r[t]=n,this.selectedReference=n,this.setValue(r)}clamp(e){return Math.max(0,Math.min(1,e))}static \u0275fac=function(t){return new(t||ux)(H(Pn),H(Ys),H(ns),H(Hn))};static \u0275cmp=Oe({type:ux,selectors:[["app-file-uploads"]],viewQuery:function(t,n){if(1&t&&(Wt(XRe,5),Wt(JRe,5),Wt(eOe,5)),2&t){let r;ut(r=pt())&&(n.fileInput=r.first),ut(r=pt())&&(n.mediaLibraryModal=r.first),ut(r=pt())&&(n.advancedView=r.first)}},features:[it],decls:25,vars:15,consts:[[1,"panel","media-gallery"],[1,"media-gallery__header"],[1,"media-gallery__title"],[3,"name","label","isRequired"],[1,"media-gallery__count"],[1,"media-gallery__header-actions"],["class","action",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"fa","fa-images"],[1,"fa","fa-file-upload"],["class","fa-regular fa-square-chevron-down action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-up action",3,"click",4,"ngIf"],["type","file","ng2FileSelect","","multiple","",1,"media-gallery__file-input",3,"uploader"],["fileInput",""],["class","media-gallery__body",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","showValidationErrors"],[3,"field"],["id","mediaLibraryModal"],["mediaLibraryModal",""],["id","advancedView"],["advancedView",""],[1,"fa","fas","fa-sparkles"],[1,"media-gallery__ai-label"],[1,"fa-regular","fa-square-chevron-down","action",3,"click"],[1,"fa-regular","fa-square-chevron-up","action",3,"click"],[1,"media-gallery__body"],["ng2FileDrop","",1,"media-gallery__drop-zone",3,"ngClass","uploader","fileOver"],["class","media-gallery__status",4,"ngIf"],["class","media-gallery__error",4,"ngIf"],["class","media-gallery__empty",4,"ngIf"],["class","media-gallery__grid",4,"ngIf"],[1,"media-gallery__status"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[1,"media-gallery__error"],[1,"media-gallery__empty"],[1,"fa-regular","fa-images"],[1,"media-gallery__grid"],["class","media-card",4,"ngFor","ngForOf"],[1,"media-card"],[1,"media-card__preview"],[3,"src","alt",4,"ngIf"],["class","media-card__file",4,"ngIf"],[1,"media-card__details"],[1,"media-card__name",3,"title"],[1,"media-card__actions"],[1,"fa","fas","fa-sparkles","action",3,"click"],["title","Download",1,"fa","fa-download","action",3,"click"],["class","fa fa-gear action","title","Advanced",3,"click",4,"ngIf"],["class","far fa-chevron-left action","title","Move left",3,"click",4,"ngIf"],["class","far fa-chevron-right action","title","Move right",3,"click",4,"ngIf"],["title","Remove",1,"fa","fa-trash","action-danger",3,"click"],[3,"src","alt"],[1,"media-card__file"],[1,"fa","fa-file"],["title","Advanced",1,"fa","fa-gear","action",3,"click"],["title","Move left",1,"far","fa-chevron-left","action",3,"click"],["title","Move right",1,"far","fa-chevron-right","action",3,"click"],[1,"modal-header"],[1,"modal-title"],[1,"form-group"],[1,"form-select",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"],["class","table",4,"ngIf"],["class","save-bar",4,"ngIf"],[3,"value"],[1,"table"],[1,"resource-list"],[4,"ngFor","ngForOf"],[1,"media-library__preview"],["title","Use the same resource. Changes remain shared.",1,"action",3,"click"],["title","Create an independent copy of this resource.",1,"action",3,"click"],[1,"save-bar"],[1,"fa","fa-chevron-right"],["class","form-group",4,"ngIf"],["class","advanced-layout",4,"ngIf"],[1,"form-control",3,"ngModel","ngModelChange"],[1,"advanced-layout"],[1,"focal-point-editor"],[1,"focal-point-editor__image"],["alt","Select image focal point",3,"src","click"],["advancedImage",""],[1,"focal-point-editor__marker"],[1,"focal-point-editor__footer"],["type","button",1,"btn","btn-link","btn-sm",3,"click"],["style","width: 300px; padding-left:20px; padding-right: 20px",4,"ngIf"],[1,"advanced-details"],[1,"img-attr"],[3,"rating","set","clear"],[1,"advanced-resize"],["type","number",1,"form-control","size-input",3,"ngModel","ngModelChange"],[1,"form-select",3,"ngModel","ngModelChange"],["value","jpeg"],["value","png"],["value","webp"],[1,"btn","btn-primary",3,"click"],[2,"width","300px","padding-left","20px","padding-right","20px"]],template:function(t,n){1&t&&(c(0,"div",0)(1,"div",1)(2,"div",2),B(3,"app-form-field-label",3),c(4,"span",4),m(5),d()(),c(6,"div",5),b(7,tOe,4,0,"span",6),c(8,"span",7),P("click",function(){return n.showMediaPicker()}),B(9,"i",8),m(10,"Media Library"),d(),c(11,"span",7),P("click",function(){return n.selectFile()}),B(12,"i",9),m(13,"Upload"),d(),b(14,nOe,1,0,"i",10),b(15,iOe,1,0,"i",11),d()(),B(16,"input",12,13),b(18,mOe,9,8,"div",14),d(),B(19,"app-form-field-validation-section",15)(20,"app-form-field-help",16),b(21,wOe,16,4,"ng-template",17,18,jr),b(23,TOe,9,2,"ng-template",19,20,jr)),2&t&&(p(3),h("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),p(2),Ae(n.items.length),p(2),h("ngIf",n.field.imageUpload),p(7),h("ngIf",!n.expanded),p(1),h("ngIf",n.expanded),p(1),h("uploader",n.uploader),p(2),h("ngIf",n.expanded),p(1),h("isRequired",n.field.isRequired)("hasValue",n.listHasValue)("isRegexInvalid",!1)("requiredMessage",n.field.requiredMessage)("showValidationErrors",n.showValidationErrors),p(1),h("field",n.field))},dependencies:[Mr,Dr,Dn,Ea,pr,en,qt,Vi,Ot,rt,Rs,Bd,Vd,Nn,Bn,Vn,jv,Hg],styles:['.media-gallery[_ngcontent-%COMP%]{background-color:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:8px;box-shadow:0 4px 8px #80808033,0 6px 20px #80808030;overflow:hidden}.media-gallery__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:12px 14px}.media-gallery__title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-grow:1}.media-gallery__count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 6px;border:1px solid var(--color-border-panel);border-radius:999px;background-color:var(--color-bg);color:var(--color-fg);font-size:9pt;font-weight:600;line-height:1;position:relative;top:-2px}.media-gallery__header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.media-gallery__header-actions[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px}.media-gallery__ai-label[_ngcontent-%COMP%]{font-family:serif}.media-gallery__file-input[_ngcontent-%COMP%]{display:none}.media-gallery__body[_ngcontent-%COMP%]{padding:14px;border-top:1px solid var(--color-border-panel)}.media-gallery__drop-zone[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;margin-bottom:14px;border:1px dashed var(--color-border-panel);border-radius:6px;color:var(--color-fg)}.media-gallery__drop-zone.nv-file-over[_ngcontent-%COMP%]{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active)}.media-gallery__status[_ngcontent-%COMP%]{margin-bottom:14px}.media-gallery__error[_ngcontent-%COMP%]{margin-bottom:14px;color:red}.media-gallery__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;gap:10px;color:var(--color-gray-50)}.media-gallery__empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.media-gallery__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.media-card[_ngcontent-%COMP%]{min-width:0;background-color:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:6px;overflow:hidden}.media-card[_ngcontent-%COMP%]:hover{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active)}.media-card__preview[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:160px;padding:8px;background-color:var(--color-bg)}.media-card__preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.media-card__file[_ngcontent-%COMP%]{font-size:44px}.media-card__details[_ngcontent-%COMP%]{padding:10px}.media-card__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:10px}.media-card__actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px}.media-library__preview[_ngcontent-%COMP%]{width:250px;text-align:center}.media-library__preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:250px;max-height:128px}.advanced-layout[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px}.advanced-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px;width:auto;height:auto;max-height:300px}.advanced-details[_ngcontent-%COMP%]{width:300px}.advanced-resize[_ngcontent-%COMP%]{min-width:300px}.size-input[_ngcontent-%COMP%]{display:inline-block;width:120px;text-align:right}.focal-point-editor[_ngcontent-%COMP%]{width:min(420px,100%)}.focal-point-editor__image[_ngcontent-%COMP%]{position:relative;display:inline-block;max-width:100%;overflow:hidden;border:1px solid var(--color-border, #d8dde3);border-radius:8px;cursor:crosshair;line-height:0}.focal-point-editor__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:auto;height:auto;max-width:100%;max-height:420px}.focal-point-editor__marker[_ngcontent-%COMP%]{position:absolute;width:22px;height:22px;border:2px solid white;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 2px #000000a6,0 2px 8px #00000059}.focal-point-editor__marker[_ngcontent-%COMP%]:before, .focal-point-editor__marker[_ngcontent-%COMP%]:after{position:absolute;content:"";background:white}.focal-point-editor__marker[_ngcontent-%COMP%]:before{top:9px;left:-5px;width:28px;height:2px}.focal-point-editor__marker[_ngcontent-%COMP%]:after{top:-5px;left:9px;width:2px;height:28px}.focal-point-editor__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;color:var(--color-body-secondary);font-size:13px}']})}function SOe(i,e){if(1&i&&B(0,"app-text-area",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function EOe(i,e){if(1&i&&B(0,"app-text-area",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function IOe(i,e){if(1&i&&B(0,"app-picker",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function AOe(i,e){if(1&i&&B(0,"app-picker",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function POe(i,e){if(1&i&&B(0,"app-date-picker",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function FOe(i,e){if(1&i&&B(0,"app-time-picker",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function ROe(i,e){if(1&i&&B(0,"app-date-picker",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function OOe(i,e){if(1&i&&B(0,"app-form-icon-picker",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function LOe(i,e){if(1&i&&B(0,"app-checkbox",11),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("view",t.view)("form",t.form)}}function NOe(i,e){if(1&i&&B(0,"app-file-upload",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function BOe(i,e){if(1&i&&B(0,"app-file-uploads",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function VOe(i,e){if(1&i&&B(0,"app-file-upload",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function $Oe(i,e){if(1&i&&B(0,"app-color-picker",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function HOe(i,e){if(1&i&&B(0,"app-entity-header-picker",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function UOe(i,e){if(1&i&&B(0,"app-entity-header-picker",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function jOe(i,e){if(1&i&&B(0,"app-product-picker-list",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function YOe(i,e){if(1&i&&B(0,"app-customer-picker-field",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function zOe(i,e){if(1&i&&B(0,"app-customer-picker-field",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function WOe(i,e){if(1&i&&B(0,"app-discussion-list",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function qOe(i,e){if(1&i&&B(0,"app-child-list",13),2&i){const t=g(2);h("field",t.field)("host",t.host)("model",t.model)("form",t.form)("view",t.view)}}function GOe(i,e){if(1&i&&B(0,"app-child-list-inline",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function KOe(i,e){if(1&i&&B(0,"app-child-list-inline-picker",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function QOe(i,e){if(1&i&&B(0,"app-child-list-inline",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function ZOe(i,e){if(1&i&&B(0,"app-script",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function XOe(i,e){if(1&i&&B(0,"app-script",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function JOe(i,e){if(1&i&&B(0,"app-password-field",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function eLe(i,e){if(1&i&&B(0,"app-password-field",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function tLe(i,e){if(1&i&&B(0,"app-password-field",12),2&i){const t=g(2);h("host",t.host)("field",t.field)("model",t.model)("form",t.form)("view",t.view)}}function nLe(i,e){if(1&i&&B(0,"app-user-picker-field",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function iLe(i,e){if(1&i&&B(0,"app-web-link-field",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function rLe(i,e){if(1&i&&B(0,"app-action-field",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("form",t.form)("model",t.model)("view",t.view)}}function oLe(i,e){if(1&i&&B(0,"app-html-editor",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function aLe(i,e){if(1&i&&B(0,"app-category-field",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function sLe(i,e){if(1&i&&B(0,"app-money-editor",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function lLe(i,e){if(1&i&&B(0,"app-phone-field",14),2&i){const t=g(2);h("host",t.host)("field",t.field)("form",t.form)("model",t.model)("view",t.view)}}function cLe(i,e){if(1&i&&B(0,"app-payment-method",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function dLe(i,e){if(1&i&&B(0,"app-device-picker-field",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function uLe(i,e){if(1&i&&B(0,"app-geo-location-field",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function pLe(i,e){if(1&i&&B(0,"app-org-location-picker",16),2&i){const t=g(2);h("form",t.form)("host",t.host)("field",t.field)("model",t.model)("view",t.view)}}function hLe(i,e){if(1&i&&B(0,"app-schedule",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function gLe(i,e){if(1&i&&B(0,"app-media-resources-field",16),2&i){const t=g(2);h("form",t.form)("host",t.host)("field",t.field)("model",t.model)("view",t.view)}}function fLe(i,e){if(1&i&&B(0,"app-custom-field",17),2&i){const t=g(2);h("form",t.form)("field",t.field)("customFieldType",t.field.customFieldType)("host",t.host)("field",t.field)("model",t.model)("view",t.view)}}function mLe(i,e){if(1&i&&B(0,"app-percent",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function _Le(i,e){if(1&i&&B(0,"app-text-box",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function vLe(i,e){if(1&i&&B(0,"app-point2d",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function yLe(i,e){if(1&i&&B(0,"app-size2d",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function bLe(i,e){if(1&i&&B(0,"app-point3d",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function CLe(i,e){if(1&i&&B(0,"app-size3d",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function wLe(i,e){if(1&i&&B(0,"app-font-awesome-icon-picker",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function xLe(i,e){if(1&i&&B(0,"app-component-row-field",18),2&i){const t=g(2);h("host",t.host)("form",t.form)("fields",t.field.childFields)("field",t.field)("model",t.model)("view",t.view)}}function kLe(i,e){if(1&i&&B(0,"app-point2d-array",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function MLe(i,e){if(1&i&&B(0,"app-string-list-field",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function DLe(i,e){if(1&i&&B(0,"app-child-item",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function TLe(i,e){if(1&i&&B(0,"app-cron-builder-field",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function SLe(i,e){if(1&i&&B(0,"app-entity-header-picker-dropdown",15),2&i){const t=g(2);h("host",t.host)("form",t.form)("field",t.field)("model",t.model)("view",t.view)}}function ELe(i,e){if(1&i&&(c(0,"div",1),b(1,SOe,1,5,"app-text-area",2),b(2,EOe,1,5,"app-text-area",2),b(3,IOe,1,5,"app-picker",2),b(4,AOe,1,5,"app-picker",2),b(5,POe,1,5,"app-date-picker",2),b(6,FOe,1,5,"app-time-picker",2),b(7,ROe,1,5,"app-date-picker",2),b(8,OOe,1,5,"app-form-icon-picker",2),b(9,LOe,1,5,"app-checkbox",2),b(10,NOe,1,5,"app-file-upload",3),b(11,BOe,1,5,"app-file-uploads",3),b(12,VOe,1,5,"app-file-upload",3),b(13,$Oe,1,5,"app-color-picker",3),b(14,HOe,1,5,"app-entity-header-picker",3),b(15,UOe,1,5,"app-entity-header-picker",3),b(16,jOe,1,5,"app-product-picker-list",3),b(17,YOe,1,5,"app-customer-picker-field",3),b(18,zOe,1,5,"app-customer-picker-field",3),b(19,WOe,1,5,"app-discussion-list",3),b(20,qOe,1,5,"app-child-list",4),b(21,GOe,1,5,"app-child-list-inline",3),b(22,KOe,1,5,"app-child-list-inline-picker",3),b(23,QOe,1,5,"app-child-list-inline",5),b(24,ZOe,1,5,"app-script",3),b(25,XOe,1,5,"app-script",3),b(26,JOe,1,5,"app-password-field",3),b(27,eLe,1,5,"app-password-field",3),b(28,tLe,1,5,"app-password-field",3),b(29,nLe,1,5,"app-user-picker-field",5),b(30,iLe,1,5,"app-web-link-field",5),b(31,rLe,1,6,"app-action-field",5),b(32,oLe,1,5,"app-html-editor",5),b(33,aLe,1,5,"app-category-field",5),b(34,sLe,1,5,"app-money-editor",5),b(35,lLe,1,5,"app-phone-field",5),b(36,cLe,1,5,"app-payment-method",6),b(37,dLe,1,5,"app-device-picker-field",6),b(38,uLe,1,5,"app-geo-location-field",6),b(39,pLe,1,5,"app-org-location-picker",7),b(40,hLe,1,5,"app-schedule",6),b(41,gLe,1,5,"app-media-resources-field",7),b(42,fLe,1,7,"app-custom-field",8),b(43,mLe,1,5,"app-percent",6),b(44,_Le,1,5,"app-text-box",9),b(45,vLe,1,5,"app-point2d",6),b(46,yLe,1,5,"app-size2d",6),b(47,bLe,1,5,"app-point3d",6),b(48,CLe,1,5,"app-size3d",6),b(49,wLe,1,5,"app-font-awesome-icon-picker",6),b(50,xLe,1,6,"app-component-row-field",10),b(51,kLe,1,5,"app-point2d-array",6),b(52,MLe,1,5,"app-string-list-field",6),b(53,DLe,1,5,"app-child-item",6),b(54,TLe,1,5,"app-cron-builder-field",6),b(55,SLe,1,5,"app-entity-header-picker-dropdown",6),d()),2&i){const t=g();h("ngSwitch",null==t.field?null:t.field.fieldType),p(1),h("ngSwitchCase","MultiLineText"),p(1),h("ngSwitchCase","MultiLineTextAreaFixedFont"),p(1),h("ngSwitchCase","Picker"),p(1),h("ngSwitchCase","OptionsList"),p(1),h("ngSwitchCase","Date"),p(1),h("ngSwitchCase","Time"),p(1),h("ngSwitchCase","DateTime"),p(1),h("ngSwitchCase","Icon"),p(1),h("ngSwitchCase","CheckBox"),p(1),h("ngSwitchCase","FileUpload"),p(1),h("ngSwitchCase","FileUploads"),p(1),h("ngSwitchCase","MediaResourceUpload"),p(1),h("ngSwitchCase","Color"),p(1),h("ngSwitchCase","EntityHeaderPicker"),p(1),h("ngSwitchCase","ProductPicker"),p(1),h("ngSwitchCase","ProductPickerList"),p(1),h("ngSwitchCase","CustomerPicker"),p(1),h("ngSwitchCase","ContactPicker"),p(1),h("ngSwitchCase","Discussion"),p(1),h("ngSwitchCase","ChildList"),p(1),h("ngSwitchCase","ChildListInline"),p(1),h("ngSwitchCase","ChildListInlinePicker"),p(1),h("ngSwitchCase","ChildListSiteContentPicker"),p(1),h("ngSwitchCase","NodeScript"),p(1),h("ngSwitchCase","RawHtml"),p(1),h("ngSwitchCase","Password"),p(1),h("ngSwitchCase","Secret"),p(1),h("ngSwitchCase","SecureCertificate"),p(1),h("ngSwitchCase","UserPicker"),p(1),h("ngSwitchCase","WebLink"),p(1),h("ngSwitchCase","Action"),p(1),h("ngSwitchCase","HtmlEditor"),p(1),h("ngSwitchCase","Category"),p(1),h("ngSwitchCase","Money"),p(1),h("ngSwitchCase","Phone"),p(1),h("ngSwitchCase","PaymentMethod"),p(1),h("ngSwitchCase","DevicePicker"),p(1),h("ngSwitchCase","GeoLocation"),p(1),h("ngSwitchCase","OrgLocationPicker"),p(1),h("ngSwitchCase","Schedule"),p(1),h("ngSwitchCase","MediaResources"),p(1),h("ngSwitchCase","Custom"),p(1),h("ngSwitchCase","Percent"),p(2),h("ngSwitchCase","Point2D"),p(1),h("ngSwitchCase","Point2DSize"),p(1),h("ngSwitchCase","Point3D"),p(1),h("ngSwitchCase","Point3DSize"),p(1),h("ngSwitchCase","FontAwesomeIconPicker"),p(1),h("ngSwitchCase","ComponentRow"),p(1),h("ngSwitchCase","Point2DArray"),p(1),h("ngSwitchCase","StringList"),p(1),h("ngSwitchCase","ChildItem"),p(1),h("ngSwitchCase","CronBuilder"),p(1),h("ngSwitchCase","EntithHeaderPickerDropDown")}}class Sf{form;field;model;view;host;constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||Sf)};static \u0275cmp=Oe({type:Sf,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(t,n){1&t&&b(0,ELe,56,55,"div",0),2&t&&h("ngIf",null==n.field?null:n.field.isVisible)},dependencies:[rt,mc,Uu,x0,tw,nw,cw,pw,vw,yw,bw,xw,kw,Mw,Tw,Sw,Iw,Aw,Pw,Fw,Rw,Ow,Hw,Uw,jw,zw,Jw,e2,t2,n2,r2,W2,G2,K2,Z2,X2,J2,ex,tx,nx,Sy,ix,rx,ox,ax,sx,lx,dx,ux]})}class px{static \u0275fac=function(t){return new(t||px)};static \u0275mod=xt({type:px});static \u0275inj=wt({imports:[fi,Dl]})}class Ey{ctx;constructor(e){this.ctx=e}getAvailableLabelsAsync(){var e=this;return O(function*(){return(yield e.ctx.clients.labels.getLabelset()).result?.labels??[]})()}createLabelAsync(e){var t=this;return O(function*(){const n=e.text?.trim();if(!n)throw new Error("Label text is required.");return(yield t.ctx.clients.labels.createLabel({...e,text:n,description:e.description?.trim()||void 0})).result?.labels??[]})()}hasLabel(e,t){return!!t&&e.labels.some(n=>n.id===t)}attachLabel(e,t){if(!t.id)throw new Error("Cannot attach a label without an id.");return this.hasLabel(e,t.id)||(e.labels=[...e.labels,t]),e.labels}detachLabel(e,t){return t&&(e.labels=e.labels.filter(n=>n.id!==t)),e.labels}findLabelByText(e,t){const n=t.trim().toLowerCase();return e.find(r=>(r.text||"").trim().toLowerCase()===n)}findLabelById(e,t){if(t)return e.find(n=>n.id===t)}static \u0275fac=function(t){return new(t||Ey)(Me(Dp))};static \u0275prov=Ue({token:Ey,factory:Ey.\u0275fac,providedIn:"root"})}function ILe(i,e){if(1&i){const t=re();c(0,"button",12),P("click",function(){E(t);const r=g().$implicit;return I(g().removeLabel(r))}),m(1," \xd7 "),d()}}function ALe(i,e){if(1&i&&(c(0,"span",9)(1,"span",10),m(2),d(),b(3,ILe,2,0,"button",11),d()),2&i){const t=e.$implicit,n=g();cn("color",n.getLabelForegroundColor(t))("background-color",n.getLabelBackgroundColor(t)),p(2),Ae(t.text),p(1),h("ngIf",!n.isReadonly)}}function PLe(i,e){if(1&i){const t=re();c(0,"input",13),P("ngModelChange",function(r){return E(t),I(g().inputText=r)})("focus",function(){return E(t),I(g().onInputFocus())})("ngModelChange",function(){return E(t),I(g().onInputChanged())})("keydown",function(r){return E(t),I(g().onInputKeyDown(r))}),d()}if(2&i){const t=g();h("placeholder",t.hasAttachedLabels?t.placeholder:t.emptyText)("ngModel",t.inputText)}}function FLe(i,e){if(1&i&&(c(0,"span",14),m(1),d()),2&i){const t=g();p(1),Ae(t.emptyText)}}function RLe(i,e){1&i&&(c(0,"span",15),m(1,"Loading..."),d())}function OLe(i,e){if(1&i&&(c(0,"div",16),m(1),d()),2&i){const t=g();p(1),$e(" ",t.errorMessage," ")}}function LLe(i,e){if(1&i){const t=re();c(0,"button",20),P("mousedown",function(r){return r.preventDefault()})("click",function(){const o=E(t).$implicit;return I(g(2).attachLabel(o))}),c(1,"span",21),m(2),d(),c(3,"span",22),m(4),d()()}if(2&i){const t=e.$implicit,n=e.index,r=g(2);St("entity-labels__option--highlighted",n===r.highlightedIndex),p(1),cn("color",r.getLabelForegroundColor(t))("background-color",r.getLabelBackgroundColor(t)),p(1),$e(" ",t.text," "),p(2),Ae(t.description)}}function NLe(i,e){if(1&i){const t=re();c(0,"button",23),P("mousedown",function(r){return r.preventDefault()})("click",function(){return E(t),I(g(2).openCreatePopupFromInput())}),m(1),d()}if(2&i){const t=g(2);p(1),$e(" Create \u201c",t.inputText.trim(),"\u201d ")}}function BLe(i,e){1&i&&(c(0,"div",16),m(1," Some labels are missing ids and cannot be attached. "),d())}function VLe(i,e){if(1&i&&(c(0,"div",17),b(1,LLe,5,8,"button",18),b(2,NLe,2,1,"button",19),b(3,BLe,2,0,"div",6),d()),2&i){const t=g();p(1),h("ngForOf",t.matchingLabels)("ngForTrackBy",t.trackByLabelId),p(1),h("ngIf",t.canCreateFromInput),p(1),h("ngIf",t.hasLabelsMissingIds)}}function $Le(i,e){if(1&i){const t=re();c(0,"div",24)(1,"div",25)(2,"strong"),m(3,"Create Label"),d(),c(4,"button",26),P("click",function(){return E(t),I(g().closeCreatePopup())}),m(5,"\xd7"),d()(),c(6,"div",27)(7,"span",9),m(8),d()(),c(9,"input",28),P("ngModelChange",function(r){return E(t),I(g().createText=r)}),d(),c(10,"input",29),P("ngModelChange",function(r){return E(t),I(g().createDescription=r)}),d(),c(11,"div",30)(12,"label",31)(13,"span"),m(14,"Text"),d(),c(15,"input",32),P("ngModelChange",function(r){return E(t),I(g().createForegroundColor=r)}),d()(),c(16,"label",31)(17,"span"),m(18,"Background"),d(),c(19,"input",32),P("ngModelChange",function(r){return E(t),I(g().createBackgroundColor=r)}),d()()(),c(20,"div",33)(21,"button",34),P("click",function(){return E(t),I(g().closeCreatePopup())}),m(22," Cancel "),d(),c(23,"button",35),P("click",function(){return E(t),I(g().createAndAttachLabelAsync())}),m(24),d()()()}if(2&i){const t=g();p(7),cn("color",t.createForegroundColor)("background-color",t.createBackgroundColor),p(1),$e(" ",t.createText||"New Label"," "),p(1),h("ngModel",t.createText)("disabled",t.isCreatingLabel),p(1),h("ngModel",t.createDescription)("disabled",t.isCreatingLabel),p(5),h("ngModel",t.createForegroundColor)("disabled",t.isCreatingLabel),p(4),h("ngModel",t.createBackgroundColor)("disabled",t.isCreatingLabel),p(2),h("disabled",t.isCreatingLabel),p(2),h("disabled",t.isCreatingLabel||!t.createText.trim()),p(1),$e(" ",t.isCreatingLabel?"Creating...":"Create"," ")}}class hx{labelsService;host;model;isReadonly=!1;title="Labels";placeholder="Add label...";emptyText="no labels attached, click to attach.";allowCreateLabel=!0;defaultForegroundColor="#ffffff";defaultBackgroundColor="#0ac4c7";labelsChange=new Ie;modelChange=new Ie;labelAdded=new Ie;labelRemoved=new Ie;labelCreated=new Ie;availableLabels=[];inputText="";isLoading=!1;isDropdownOpen=!1;isCreateOpen=!1;isCreatingLabel=!1;highlightedIndex=0;errorMessage="";createText="";createDescription="";createForegroundColor="";createBackgroundColor="";constructor(e,t){this.labelsService=e,this.host=t}ngOnInit(){var e=this;return O(function*(){e.ensureLabelsArray(),e.resetCreateDraft(""),yield e.loadLabelsAsync()})()}ngOnChanges(e){e.model&&this.model&&this.ensureLabelsArray()}get attachedLabels(){return this.model?.labels??[]}get normalizedInputText(){return this.inputText.trim().toLowerCase()}get matchingLabels(){const e=this.normalizedInputText;return this.availableLabels.filter(t=>!!t.id).filter(t=>!this.labelsService.hasLabel(this.model,t.id)).filter(t=>!e||(t.text||"").toLowerCase().includes(e))}get labelsMissingIds(){return this.availableLabels.filter(e=>!e.id)}get hasLabelsMissingIds(){return this.labelsMissingIds.length>0}get hasAttachedLabels(){return this.attachedLabels.length>0}get hasExactAvailableMatch(){const e=this.normalizedInputText;return!!e&&this.availableLabels.some(t=>(t.text||"").trim().toLowerCase()===e)}get canCreateFromInput(){return this.allowCreateLabel&&!!this.inputText.trim()&&!this.hasExactAvailableMatch}get shouldShowDropdown(){return this.isDropdownOpen&&!this.isReadonly&&(this.matchingLabels.length>0||this.canCreateFromInput||this.hasLabelsMissingIds)}refreshAsync(){var e=this;return O(function*(){yield e.loadLabelsAsync()})()}onInputFocus(){this.isReadonly||this.openDropdown()}onInputChanged(){this.isReadonly||(this.highlightedIndex=0,this.openDropdown())}onInputKeyDown(e){if(!this.isReadonly){if("ArrowDown"===e.key)return e.preventDefault(),void this.moveHighlight(1);if("ArrowUp"===e.key)return e.preventDefault(),void this.moveHighlight(-1);if("Enter"===e.key)return e.preventDefault(),void this.commitInput();"Escape"===e.key&&(e.preventDefault(),this.closeDropdown(),this.closeCreatePopup())}}attachLabel(e){this.isReadonly||(this.labelsService.attachLabel(this.model,e),this.inputText="",this.highlightedIndex=0,this.closeDropdown(),this.emitChanges(),this.labelAdded.emit(e))}removeLabel(e){this.isReadonly||!e.id||(this.labelsService.detachLabel(this.model,e.id),this.emitChanges(),this.labelRemoved.emit(e))}openCreatePopupFromInput(){!this.canCreateFromInput||(this.resetCreateDraft(this.inputText),this.isCreateOpen=!0,this.closeDropdown())}closeCreatePopup(){this.isCreateOpen=!1}createAndAttachLabelAsync(){var e=this;return O(function*(){if(e.isReadonly||!e.allowCreateLabel)return;const t=e.createText.trim();if(t){e.isCreatingLabel=!0,e.errorMessage="";try{const n={text:t,description:e.createDescription.trim()||void 0,foregroundColor:e.createForegroundColor||void 0,backgroundColor:e.createBackgroundColor||void 0};e.availableLabels=yield e.labelsService.createLabelAsync(n);const r=e.labelsService.findLabelByText(e.availableLabels,t);if(!r?.id)throw new Error("The label was created, but no saved label with an id was returned.");e.labelsService.attachLabel(e.model,r),e.inputText="",e.emitChanges(),e.labelCreated.emit(r),e.labelAdded.emit(r),e.resetCreateDraft(""),e.closeCreatePopup()}catch{e.errorMessage="Unable to create label."}finally{e.isCreatingLabel=!1}}else e.errorMessage="Label text is required."})()}getLabelForegroundColor(e){return e.foregroundColor||"var(--color-fg)"}getLabelBackgroundColor(e){return e.backgroundColor||"var(--color-bg-panel-active)"}trackByLabelId(e,t){return t.id||""}onDocumentMouseDown(e){this.host.nativeElement.contains(e.target)||(this.closeDropdown(),this.closeCreatePopup())}loadLabelsAsync(){var e=this;return O(function*(){e.isLoading=!0,e.errorMessage="";try{e.availableLabels=yield e.labelsService.getAvailableLabelsAsync()}catch{e.errorMessage="Unable to load labels.",e.availableLabels=[]}finally{e.isLoading=!1}})()}commitInput(){const e=this.matchingLabels[this.highlightedIndex]||this.matchingLabels[0];e?this.attachLabel(e):this.canCreateFromInput&&this.openCreatePopupFromInput()}moveHighlight(e){const t=this.matchingLabels.length;this.highlightedIndex=0!==t?(this.highlightedIndex+e+t)%t:0}openDropdown(){this.isDropdownOpen=!0}closeDropdown(){this.isDropdownOpen=!1}resetCreateDraft(e){this.createText=e.trim(),this.createDescription="",this.createForegroundColor=this.defaultForegroundColor,this.createBackgroundColor=this.defaultBackgroundColor}ensureLabelsArray(){this.model.labels||(this.model.labels=[])}emitChanges(){this.labelsChange.emit(this.model.labels),this.modelChange.emit(this.model)}static \u0275fac=function(t){return new(t||hx)(H(Ey),H(At))};static \u0275cmp=Oe({type:hx,selectors:[["nuvos-entity-labels"]],hostBindings:function(t,n){1&t&&P("mousedown",function(o){return n.onDocumentMouseDown(o)},0,A1)},inputs:{model:"model",isReadonly:["readonly","isReadonly"],title:"title",placeholder:"placeholder",emptyText:"emptyText",allowCreateLabel:"allowCreateLabel",defaultForegroundColor:"defaultForegroundColor",defaultBackgroundColor:"defaultBackgroundColor"},outputs:{labelsChange:"labelsChange",modelChange:"modelChange",labelAdded:"labelAdded",labelRemoved:"labelRemoved",labelCreated:"labelCreated"},features:[li],decls:9,vars:10,consts:[[1,"entity-labels"],[1,"entity-labels__control"],["class","entity-labels__pill",3,"color","backgroundColor",4,"ngFor","ngForOf","ngForTrackBy"],["class","entity-labels__input","type","text","autocomplete","off",3,"placeholder","ngModel","ngModelChange","focus","keydown",4,"ngIf"],["class","entity-labels__empty",4,"ngIf"],["class","entity-labels__loading",4,"ngIf"],["class","entity-labels__message entity-labels__message--error",4,"ngIf"],["class","entity-labels__dropdown",4,"ngIf"],["class","entity-labels__create-popover","role","dialog","aria-label","Create label",4,"ngIf"],[1,"entity-labels__pill"],[1,"entity-labels__pill-text"],["class","entity-labels__pill-remove","type","button","title","Remove label",3,"click",4,"ngIf"],["type","button","title","Remove label",1,"entity-labels__pill-remove",3,"click"],["type","text","autocomplete","off",1,"entity-labels__input",3,"placeholder","ngModel","ngModelChange","focus","keydown"],[1,"entity-labels__empty"],[1,"entity-labels__loading"],[1,"entity-labels__message","entity-labels__message--error"],[1,"entity-labels__dropdown"],["class","entity-labels__option","type","button",3,"entity-labels__option--highlighted","mousedown","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","entity-labels__option entity-labels__option--create","type","button",3,"mousedown","click",4,"ngIf"],["type","button",1,"entity-labels__option",3,"mousedown","click"],[1,"entity-labels__option-pill"],[1,"entity-labels__option-description"],["type","button",1,"entity-labels__option","entity-labels__option--create",3,"mousedown","click"],["role","dialog","aria-label","Create label",1,"entity-labels__create-popover"],[1,"entity-labels__create-header"],["type","button","title","Close",1,"entity-labels__create-close",3,"click"],[1,"entity-labels__create-preview"],["type","text","placeholder","Label text",1,"entity-labels__create-input",3,"ngModel","disabled","ngModelChange"],["type","text","placeholder","Description",1,"entity-labels__create-input",3,"ngModel","disabled","ngModelChange"],[1,"entity-labels__color-row"],[1,"entity-labels__color-field"],["type","color",3,"ngModel","disabled","ngModelChange"],[1,"entity-labels__create-actions"],["type","button",1,"entity-labels__button","entity-labels__button--secondary",3,"disabled","click"],["type","button",1,"entity-labels__button",3,"disabled","click"]],template:function(t,n){1&t&&(c(0,"section",0)(1,"div",1),b(2,ALe,4,6,"span",2),b(3,PLe,1,2,"input",3),b(4,FLe,2,1,"span",4),b(5,RLe,2,0,"span",5),d(),b(6,OLe,2,1,"div",6),b(7,VLe,4,4,"div",7),b(8,$Le,25,16,"div",8),d()),2&t&&(p(1),St("entity-labels__control--readonly",n.isReadonly),p(1),h("ngForOf",n.attachedLabels)("ngForTrackBy",n.trackByLabelId),p(1),h("ngIf",!n.isReadonly),p(1),h("ngIf",n.isReadonly&&!n.hasAttachedLabels),p(1),h("ngIf",n.isLoading),p(1),h("ngIf",n.errorMessage),p(1),h("ngIf",n.shouldShowDropdown),p(1),h("ngIf",n.isCreateOpen))},dependencies:[Ot,rt,Dn,en,qt],styles:[".entity-labels[_ngcontent-%COMP%]{align-items:center;color:var(--color-fg);display:grid;gap:.125rem;position:relative}.entity-labels__label[_ngcontent-%COMP%]{color:var(--color-primary-heading);font-size:.75rem;font-weight:700;line-height:1;margin-left:.125rem}.entity-labels__control[_ngcontent-%COMP%]{align-items:center;background:transparent;border:0;border-radius:0;display:flex;flex-wrap:wrap;gap:.25rem;min-height:1.75rem;padding:.125rem 0}.entity-labels__control[_ngcontent-%COMP%]:focus-within{box-shadow:none}.entity-labels__control--readonly[_ngcontent-%COMP%]{border-radius:0}.entity-labels__pill[_ngcontent-%COMP%]{align-items:center;border-radius:999px;display:inline-flex;font-size:.75rem;font-weight:700;gap:.25rem;line-height:1;max-width:14rem;padding:.25rem .45rem}.entity-labels__pill-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-labels__pill-remove[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;font-size:.875rem;line-height:.75;margin:0 -.15rem 0 0;opacity:.75;padding:0 .15rem}.entity-labels__pill-remove[_ngcontent-%COMP%]:hover{opacity:1}.entity-labels__input[_ngcontent-%COMP%]{background:transparent;border:0;color:var(--color-fg);flex:1 1 10rem;font:inherit;font-size:.875rem;min-width:8rem;outline:none;padding:.2rem .25rem}.entity-labels__input[_ngcontent-%COMP%]::placeholder{color:var(--color-placeholder-text)}.entity-labels__empty[_ngcontent-%COMP%], .entity-labels__loading[_ngcontent-%COMP%]{color:var(--color-gray-65);font-size:.8125rem;padding:.125rem .25rem}.entity-labels__message[_ngcontent-%COMP%]{color:var(--color-gray-65);font-size:.75rem}.entity-labels__message--error[_ngcontent-%COMP%]{color:var(--color-danger)}.entity-labels__dropdown[_ngcontent-%COMP%]{background:var(--color-bg-panel);border:1px solid var(--color-primary-border);border-radius:.375rem;box-shadow:0 .25rem .875rem var(--color-shadow-panel);display:grid;gap:.125rem;left:0;margin-top:.125rem;max-height:14rem;overflow:auto;padding:.25rem;position:absolute;right:auto;top:100%;width:min(30rem,100vw);z-index:120}.entity-labels__option[_ngcontent-%COMP%]{align-items:center;background:var(--color-bg-panel);border:1px solid transparent;border-radius:.25rem;color:var(--color-fg);cursor:pointer;display:grid;gap:.375rem;grid-template-columns:auto 1fr;padding:.25rem;text-align:left}.entity-labels__option[_ngcontent-%COMP%]:hover, .entity-labels__option--highlighted[_ngcontent-%COMP%]{background:var(--color-bg-list-row-hover);border-color:var(--color-primary-border);color:var(--color-fg-list-row-hover)}.entity-labels__option-pill[_ngcontent-%COMP%]{border-radius:999px;font-size:.75rem;font-weight:700;line-height:1;padding:.25rem .45rem;white-space:nowrap}.entity-labels__option-description[_ngcontent-%COMP%]{color:var(--color-gray-65);font-size:.75rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-labels__option--create[_ngcontent-%COMP%]{color:var(--color-fg-panel-link);display:block;font-size:.8125rem;font-weight:700}.entity-labels__create-popover[_ngcontent-%COMP%]{background:var(--color-bg-panel);border:1px solid var(--color-primary-border);border-radius:.375rem;box-shadow:0 .25rem .875rem var(--color-shadow-panel);display:grid;gap:.5rem;left:0;min-width:18rem;padding:.625rem;position:absolute;right:auto;top:calc(100% + .125rem);width:min(26rem,100vw);z-index:130}.entity-labels__create-header[_ngcontent-%COMP%]{align-items:center;color:var(--color-primary-heading);display:flex;font-size:.875rem;justify-content:space-between}.entity-labels__create-close[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;background:transparent;border:0;color:var(--color-gray-65);cursor:pointer;font:inherit;font-size:1.125rem;line-height:1}.entity-labels__create-preview[_ngcontent-%COMP%]{display:flex}.entity-labels__create-input[_ngcontent-%COMP%]{background:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:.25rem;color:var(--color-fg);font:inherit;font-size:.875rem;padding:.35rem .45rem}.entity-labels__create-input[_ngcontent-%COMP%]::placeholder{color:var(--color-placeholder-text)}.entity-labels__color-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.625rem}.entity-labels__color-field[_ngcontent-%COMP%]{align-items:center;color:var(--color-gray-65);display:inline-flex;font-size:.75rem;gap:.25rem}.entity-labels__create-actions[_ngcontent-%COMP%]{display:flex;gap:.375rem;justify-content:flex-end}.entity-labels__button[_ngcontent-%COMP%]{background:var(--color-primary-button);border:1px solid var(--color-primary-button);border-radius:.25rem;color:var(--color-filled-button-text);cursor:pointer;font:inherit;font-size:.8125rem;padding:.35rem .625rem}.entity-labels__button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-button-hover);border-color:var(--color-primary-button-hover)}.entity-labels__button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.65}.entity-labels__button--secondary[_ngcontent-%COMP%]{background:var(--color-bg-panel);border-color:var(--color-border-panel);color:var(--color-fg)}"]})}class Iy{static \u0275fac=function(t){return new(t||Iy)};static \u0275mod=xt({type:Iy});static \u0275inj=wt({imports:[Dl,fi,VE,jg,px,Z6,Z7,e7,aw,jV,I7,UC,wv,Ug]})}function HLe(i,e){}bu(Ol,[Dn,en,qt,Vi,Ot,rt,Rs,Bd,Vd,hx,Sf,YC,jC],[fp]),bu(Sy,[Ot,Sf],[]);class gx{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 M9=(()=>{class i extends dE{constructor(t,n,r,o,a,s,l,u){super(),this._elementRef=t,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=l,this._focusMonitor=u,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=f=>{this._portalOutlet.hasAttached();const v=this._portalOutlet.attachDomPortal(f);return this._contentAttached(),v},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(n)}_focusByCssSelector(t,n){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,n)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.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 t=this._config.restoreFocus;let n=null;if("string"==typeof t?n=this._document.querySelector(t):"boolean"==typeof t?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=V_(),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 t=this._elementRef.nativeElement,n=V_();return t===n||t.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=V_())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(qb),H(Jt,8),H(gx),H(Wb),H($t),H(kv),H(Rd))},i.\u0275cmp=Oe({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(1&t&&Wt(Od,7),2&t){let r;ut(r=pt())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){2&t&&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:[it],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&b(0,HLe,0,0,"ng-template",0)},dependencies:[Od],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class PA{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new Ce,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!Fd(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(e,t){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const D9=new Xe("DialogScrollStrategy"),ULe=new Xe("DialogData"),jLe=new Xe("DefaultDialogConfig"),zLe={provide:D9,deps:[Rl],useFactory:function YLe(i){return()=>i.scrollStrategies.block()}};let WLe=0,T9=(()=>{class i{constructor(t,n,r,o,a,s){this._overlay=t,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ce,this._afterOpenedAtThisLevel=new Ce,this._ariaHiddenElements=new Map,this.afterAllClosed=o_(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(rr(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(t,n){(n={...this._defaultOptions||new gx,...n}).id=n.id||"cdk-dialog-"+WLe++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new PA(a,n),l=this._attachContainer(a,s,n);return s.containerInstance=l,this._attachDialogContent(t,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,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){FA(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),FA(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const n=new iw({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:gx,useValue:r},{provide:PA,useValue:n},{provide:kv,useValue:t}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=M9;const l=new U_(s,r.viewContainerRef,Bi.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,n,r,o){if(t instanceof Yi){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 Zb(t,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new U_(t,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(t,n,r,o){const a=t.injector||t.viewContainerRef?.injector,s=[{provide:ULe,useValue:t.data},{provide:PA,useValue:n}];return t.providers&&("function"==typeof t.providers?s.push(...t.providers(n,t,r)):s.push(...t.providers)),t.direction&&(!a||!a.get(Do,null,ln.Optional))&&s.push({provide:Do,useValue:{value:t.direction,change:Pt()}}),Bi.create({parent:a||o,providers:s})}_removeOpenDialog(t,n){const r=this.openDialogs.indexOf(t);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 t=this._overlayContainer.getContainerElement();if(t.parentElement){const n=t.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[r];o!==t&&"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 t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(t){return new(t||i)(Me(Rl),Me(Bi),Me(jLe,8),Me(i,12),Me(rw),Me(D9))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();function FA(i,e){let t=i.length;for(;t--;)e(i[t])}let qLe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[T9,zLe],imports:[ow,Tg,lE,Tg]}),i})();function GLe(i,e){}const Ef={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},KLe={dialogContainer:Ld("dialogContainer",[ts("void, exit",$i({opacity:0,transform:"scale(0.7)"})),ts("enter",$i({transform:"none"})),zo("* => enter",C6([Yo("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",$i({transform:"none",opacity:1})),M6("@*",k6(),{optional:!0})]),Ef),zo("* => void, * => exit",C6([Yo("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",$i({opacity:0})),M6("@*",k6(),{optional:!0})]),Ef)])};class fx{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=Ef.params.enterAnimationDuration,this.exitAnimationDuration=Ef.params.exitAnimationDuration}}let QLe=(()=>{class i extends M9{constructor(t,n,r,o,a,s,l,u){super(t,n,r,o,a,s,l,u),this._animationStateChanged=new Ie}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(qb),H(Jt,8),H(fx),H(Wb),H($t),H(kv),H(Rd))},i.\u0275cmp=Oe({type:i,selectors:[["ng-component"]],features:[it],decls:0,vars:0,template:function(t,n){},encapsulation:2}),i})(),ZLe=(()=>{class i extends QLe{constructor(t,n,r,o,a,s,l,u,f){super(t,n,r,o,a,s,l,f),this._changeDetectorRef=u,this._state="enter"}_onAnimationDone({toState:t,totalTime:n}){"enter"===t?this._openAnimationDone(n):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:n})}_onAnimationStart({toState:t,totalTime:n}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ef.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ef.params.exitAnimationDuration}}}}return i.\u0275fac=function(t){return new(t||i)(H(At),H(qb),H(Jt,8),H(fx),H(Wb),H($t),H(kv),H(oi),H(Rd))},i.\u0275cmp=Oe({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,n){1&t&&q1("@dialogContainer.start",function(o){return n._onAnimationStart(o)})("@dialogContainer.done",function(o){return n._onAnimationDone(o)}),2&t&&(wl("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),Q1("@dialogContainer",n._getAnimationState()))},features:[it],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&b(0,GLe,0,0,"ng-template",0)},dependencies:[Od],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:[KLe.dialogContainer]}}),i})();class XLe{constructor(e,t,n){this._ref=e,this._containerInstance=n,this._afterOpened=new Ce,this._beforeClosed=new Ce,this._state=0,this.disableClose=t.disableClose,this.id=e.id,n._animationStateChanged.pipe(Li(r=>"opened"===r.state),Xn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Li(r=>"closed"===r.state),Xn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Qr(this.backdropClick(),this.keydownEvents().pipe(Li(r=>27===r.keyCode&&!this.disableClose&&!Fd(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function JLe(i,e,t){i._closeInteractionType=e,i.close(t)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Li(t=>"closing"===t.state),Xn(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.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(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const e3e=new Xe("MatDialogData"),t3e=new Xe("mat-dialog-default-options"),S9=new Xe("mat-dialog-scroll-strategy"),i3e={provide:S9,deps:[Rl],useFactory:function n3e(i){return()=>i.scrollStrategies.block()}};let r3e=0,o3e=(()=>{class i{constructor(t,n,r,o,a,s,l,u,f,v){this._overlay=t,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=f,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ce,this._afterOpenedAtThisLevel=new Ce,this._idPrefix="mat-dialog-",this.afterAllClosed=o_(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(rr(void 0))),this._scrollStrategy=s,this._dialog=n.get(T9)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,n){let r;(n={...this._defaultOptions||new fx,...n}).id=n.id||`${this._idPrefix}${r3e++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:fx,useValue:n},{provide:gx,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(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}}return i.\u0275fac=function(t){Lh()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),a3e=(()=>{class i extends o3e{constructor(t,n,r,o,a,s,l,u){super(t,n,o,s,l,a,XLe,ZLe,e3e,u)}}return i.\u0275fac=function(t){return new(t||i)(Me(Rl),Me(Bi),Me(gc,8),Me(t3e,8),Me(S9),Me(i,12),Me(rw),Me(aa,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),s3e=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[a3e,i3e],imports:[qLe,ow,Tg,yr,yr]}),i})(),E9=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})(),b3e=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[E9,Jb,yr,zb,E9,yr]}),i})();class Ay{static forRoot(e={}){return{ngModule:Ay,providers:[{provide:rI,useValue:e}]}}static \u0275fac=function(t){return new(t||Ay)};static \u0275mod=xt({type:Ay});static \u0275inj=wt({imports:[fi]})}function C3e(i,e){if(1&i){const t=re();c(0,"span",8),P("click",function(){return E(t),I(g().cancelClick())}),B(1,"i",9),m(2," Cancel "),d()}}function w3e(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g().addClick())}),B(1,"i",11),m(2," Add "),d()}}function x3e(i,e){if(1&i){const t=re();c(0,"i",18),P("click",function(r){E(t);const o=g().$implicit;return g().moveDownClick(o),I(r.stopPropagation())}),d()}}function k3e(i,e){if(1&i){const t=re();c(0,"i",19),P("click",function(r){E(t);const o=g().$implicit;return g().moveUpClick(o),I(r.stopPropagation())}),d()}}function M3e(i,e){1&i&&(c(0,"i",20),m(1,"\xa0\xa0\xa0"),d())}function D3e(i,e){if(1&i){const t=re();c(0,"i",21),P("click",function(r){E(t);const o=g().$implicit;return g().removeClick(o),I(r.stopPropagation())}),d()}}function T3e(i,e){if(1&i){const t=re();c(0,"li",8),P("click",function(){const o=E(t).$implicit;return I(g().editClick(o))}),c(1,"div",12),m(2),d(),c(3,"div",13),b(4,x3e,1,0,"i",14),b(5,k3e,1,0,"i",15),b(6,M3e,2,0,"i",16),b(7,D3e,1,0,"i",17),d()()}if(2&i){const t=e.$implicit,n=e.index,r=g();p(2),$e(" ",t[r.displayMemberName]," "),p(2),h("ngIf",r.allowReorder&&r.items.length-1>n),p(1),h("ngIf",r.allowReorder&&n>0),p(1),h("ngIf",r.allowReorder&&0==n),p(1),h("ngIf",r.showRemove)}}class mx{modalComponent;client;constructor(e,t){this.modalComponent=e,this.client=t}title;displayMemberName="name";showCancel=!1;showAdd=!0;showRemove=!1;allowReorder=!1;_items;get items(){return this._items}set items(e){e&&(this._items=e)}_listResponse;set listResponse(e){this._listResponse=e,e&&(this.items=e.model,e.title&&(this.title=e.title))}get listResponse(){return this._listResponse}add=new Ie;cancel=new Ie;selected=new Ie;remove=new Ie;_blade;set blade(e){this._blade=e,e&&(this.listResponse=e.list,this.items=e.items)}get blade(){return this._blade}ngOnInit(){}addClick(){this.add.emit()}editClick(e){this.selected.emit(e)}cancelClick(){this.cancel.emit()}removeClick(e){var t=this;const n=this.modalComponent.open(Us,{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=O(function*(o){if(o)if(t._listResponse?.deleteUrl){let a=t._listResponse?.deleteUrl.replace("{id}",e.id);(yield t.client.delete(a))&&t.items.splice(t.items.indexOf(e),1)}else t.items.splice(t.items.indexOf(e),1),t.remove.emit(e)});return function(o){return r.apply(this,arguments)}}())}showAddTip(e){}moveUpClick(e){let t=this.items.indexOf(e);t>0&&(this.items[t]=this.items[t-1],this.items[t-1]=e)}moveDownClick(e){let t=this.items.indexOf(e);t({id:a.id,key:a.key||void 0,text:a.name}))||[];r.executePopulatePicker(e,o,n),console.log("configured by NuvIoTUiUtils.configurePropertyViaCollection()",o)})()}configurePropertyPickerWithListResponse(e,t,n){var r=this;return O(function*(){let a=(yield t)?.model?.map(s=>({id:s.id,key:s.key||void 0,text:s.name}))||[];r.executePopulatePicker(e,a,n),console.log("configured by NuvIoTUiUtils.configurePropertyViaListResponse()")})()}configurePropertyPickerWithPromise(e,t,n){var r=this;return O(function*(){let a=(yield t)?.map(s=>({id:s.id,key:s.key||void 0,text:s.name}))||[];r.executePopulatePicker(e,a,n),console.log("configured by NuvIoTUiUtils.configurePropertyViaPromise()")})()}executePopulatePicker(e,t,n){var r=this;n.clearEntityHeader=()=>{n.value=void 0},n.selectEntityHeader=function(){var o=O(function*(a){if(t.length>0){const s=r.modalComponent.open(ct,{size:"lg"}).componentInstance;s.title=e,s.items=t,s.itemSelected.subscribe(l=>{n.value=l})}else alert("Please add items to select from.")});return function(a){return o.apply(this,arguments)}}()}handleFormKeyEditability(e){null==e.isEditing&&(e.isEditing=(void 0!==e?.model?.key||void 0!==e?.model?.id)&&e?.model?.name.length>0),e.view.key.isUserEditable=!e.isEditing}static \u0275fac=function(t){return new(t||_x)(Me(Pn))};static \u0275mod=xt({type:_x});static \u0275inj=wt({})}var I9=j(5439);const jp=I9||j.t(I9,2),A9=new Xe("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function E3e(){return{useUtc:!1}}});function I3e(i,e){const t=Array(i);for(let n=0;n{class i extends _o{constructor(t,n){super(),this._options=n,this.setLocale(t||jp.locale())}setLocale(t){super.setLocale(t);let n=jp.localeData(t);this._localeData={firstDayOfWeek:n.firstDayOfWeek(),longMonths:n.months(),shortMonths:n.monthsShort(),dates:I3e(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:n.weekdays(),shortDaysOfWeek:n.weekdaysShort(),narrowDaysOfWeek:n.weekdaysMin()}}getYear(t){return this.clone(t).year()}getMonth(t){return this.clone(t).month()}getDate(t){return this.clone(t).date()}getDayOfWeek(t){return this.clone(t).day()}getMonthNames(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(t){return this.clone(t).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(t){return this.clone(t).daysInMonth()}clone(t){return t.clone().locale(this.locale)}createDate(t,n,r){const o=this._createMoment({year:t,month:n,date:r}).locale(this.locale);return o.isValid(),o}today(){return this._createMoment().locale(this.locale)}parse(t,n){return t&&"string"==typeof t?this._createMoment(t,n,this.locale):t?this._createMoment(t).locale(this.locale):null}format(t,n){return t=this.clone(t),this.isValid(t),t.format(n)}addCalendarYears(t,n){return this.clone(t).add({years:n})}addCalendarMonths(t,n){return this.clone(t).add({months:n})}addCalendarDays(t,n){return this.clone(t).add({days:n})}toIso8601(t){return this.clone(t).format()}deserialize(t){let n;if(t instanceof Date)n=this._createMoment(t).locale(this.locale);else if(this.isDateInstance(t))return this.clone(t);if("string"==typeof t){if(!t)return null;n=this._createMoment(t,jp.ISO_8601).locale(this.locale)}return n&&this.isValid(n)?this._createMoment(n).locale(this.locale):super.deserialize(t)}isDateInstance(t){return jp.isMoment(t)}isValid(t){return this.clone(t).isValid()}invalid(){return jp.invalid()}_createMoment(t,n,r){const{strict:o,useUtc:a}=this._options||{};return a?jp.utc(t,n,r,o):jp(t,n,r,o)}}return i.\u0275fac=function(t){return new(t||i)(Me(f6,8),Me(A9,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();const P3e={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let F3e=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[{provide:_o,useClass:A3e,deps:[f6,A9]}]}),i})(),R3e=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:[{provide:hp,useValue:P3e}],imports:[F3e]}),i})();function P9(i){return new tt(3e3,!1)}function f4e(){return typeof window<"u"&&typeof window.document<"u"}function RA(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function du(i){switch(i.length){case 0:return new W_;case 1:return i[0];default:return new T6(i)}}function F9(i,e,t,n,r=new Map,o=new Map){const a=[],s=[];let l=-1,u=null;if(n.forEach(f=>{const v=f.get("offset"),D=v==l,A=D&&u||new Map;f.forEach((W,J)=>{let pe=J,fe=W;if("offset"!==J)switch(pe=e.normalizePropertyName(pe,a),fe){case"!":fe=r.get(J);break;case Ec:fe=o.get(J);break;default:fe=e.normalizeStyleValue(J,pe,fe,a)}A.set(pe,fe)}),D||s.push(A),u=A,l=v}),a.length)throw function i4e(i){return new tt(3502,!1)}();return s}function OA(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&LA(t,"start",i)));break;case"done":i.onDone(()=>n(t&&LA(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&LA(t,"destroy",i)))}}function LA(i,e,t){const o=NA(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t.totalTime??i.totalTime,!!t.disabled),a=i._data;return null!=a&&(o._data=a),o}function NA(i,e,t,n,r="",o=0,a){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function Oa(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function R9(i){const e=i.indexOf(":");return[i.substring(1,e),i.slice(e+1)]}let BA=(i,e)=>!1,O9=(i,e,t)=>[],L9=null;function VA(i){const e=i.parentNode||i.host;return e===L9?null:e}(RA()||typeof Element<"u")&&(f4e()?(L9=(()=>document.documentElement)(),BA=(i,e)=>{for(;e;){if(e===i)return!0;e=VA(e)}return!1}):BA=(i,e)=>i.contains(e),O9=(i,e,t)=>{if(t)return Array.from(i.querySelectorAll(e));const n=i.querySelector(e);return n?[n]:[]});let Yp=null,N9=!1;const B9=BA,V9=O9;let $9=(()=>{class i{validateStyleProperty(t){return function _4e(i){Yp||(Yp=function v4e(){return typeof document<"u"?document.body:null}()||{},N9=!!Yp.style&&"WebkitAppearance"in Yp.style);let e=!0;return Yp.style&&!function m4e(i){return"ebkit"==i.substring(1,6)}(i)&&(e=i in Yp.style,!e&&N9&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Yp.style)),e}(t)}matchesElement(t,n){return!1}containsElement(t,n){return B9(t,n)}getParentElement(t){return VA(t)}query(t,n,r){return V9(t,n,r)}computeStyle(t,n,r){return r||""}animate(t,n,r,o,a,s=[],l){return new W_(r,o)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),$A=(()=>{class i{}return i.NOOP=new $9,i})();const HA="ng-enter",vx="ng-leave",yx="ng-trigger",bx=".ng-trigger",U9="ng-animating",UA=".ng-animating";function Gc(i){if("number"==typeof i)return i;const e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:jA(parseFloat(e[1]),e[2])}function jA(i,e){return"s"===e?1e3*i:i}function Cx(i,e,t){return i.hasOwnProperty("duration")?i:function C4e(i,e,t){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 e.push(P9()),{duration:0,delay:0,easing:""};r=jA(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(o=jA(parseFloat(l),s[4]));const u=s[5];u&&(a=u)}else r=i;if(!t){let s=!1,l=e.length;r<0&&(e.push(function O3e(){return new tt(3100,!1)}()),s=!0),o<0&&(e.push(function L3e(){return new tt(3101,!1)}()),s=!0),s&&e.splice(l,0,P9())}return{duration:r,delay:o,easing:a}}(i,e,t)}function Py(i,e={}){return Object.keys(i).forEach(t=>{e[t]=i[t]}),e}function j9(i){const e=new Map;return Object.keys(i).forEach(t=>{e.set(t,i[t])}),e}function uu(i,e=new Map,t){if(t)for(let[n,r]of t)e.set(n,r);for(let[n,r]of i)e.set(n,r);return e}function z9(i,e,t){return t?e+":"+t+";":""}function W9(i){let e="";for(let t=0;t{const o=zA(r);t&&!t.has(r)&&t.set(r,i.style[o]),i.style[o]=n}),RA()&&W9(i))}function zp(i,e){i.style&&(e.forEach((t,n)=>{const r=zA(n);i.style[r]=""}),RA()&&W9(i))}function Fy(i){return Array.isArray(i)?1==i.length?i[0]:w6(i):i}const YA=new RegExp("{{\\s*(.+?)\\s*}}","g");function q9(i){let e=[];if("string"==typeof i){let t;for(;t=YA.exec(i);)e.push(t[1]);YA.lastIndex=0}return e}function Ry(i,e,t){const n=i.toString(),r=n.replace(YA,(o,a)=>{let s=e[a];return null==s&&(t.push(function B3e(i){return new tt(3003,!1)}()),s=""),s.toString()});return r==n?i:r}function wx(i){const e=[];let t=i.next();for(;!t.done;)e.push(t.value),t=i.next();return e}const k4e=/-+([a-z0-9])/g;function zA(i){return i.replace(k4e,(...e)=>e[1].toUpperCase())}function M4e(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function La(i,e,t){switch(e.type){case 7:return i.visitTrigger(e,t);case 0:return i.visitState(e,t);case 1:return i.visitTransition(e,t);case 2:return i.visitSequence(e,t);case 3:return i.visitGroup(e,t);case 4:return i.visitAnimate(e,t);case 5:return i.visitKeyframes(e,t);case 6:return i.visitStyle(e,t);case 8:return i.visitReference(e,t);case 9:return i.visitAnimateChild(e,t);case 10:return i.visitAnimateRef(e,t);case 11:return i.visitQuery(e,t);case 12:return i.visitStagger(e,t);default:throw function V3e(i){return new tt(3004,!1)}()}}function G9(i,e){return window.getComputedStyle(i)[e]}function A4e(i,e){const t=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(n=>function P4e(i,e,t){if(":"==i[0]){const l=function F4e(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}(i,t);if("function"==typeof l)return void e.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(function X3e(i){return new tt(3015,!1)}()),e;const r=n[1],o=n[2],a=n[3];e.push(K9(r,a));"<"==o[0]&&!("*"==r&&"*"==a)&&e.push(K9(a,r))}(n,t,e)):t.push(i),t}const Dx=new Set(["true","1"]),Tx=new Set(["false","0"]);function K9(i,e){const t=Dx.has(i)||Tx.has(i),n=Dx.has(e)||Tx.has(e);return(r,o)=>{let a="*"==i||i==r,s="*"==e||e==o;return!a&&t&&"boolean"==typeof r&&(a=r?Dx.has(i):Tx.has(i)),!s&&n&&"boolean"==typeof o&&(s=o?Dx.has(e):Tx.has(e)),a&&s}}const R4e=new RegExp("s*:selfs*,?","g");function WA(i,e,t,n){return new O4e(i).build(e,t,n)}class O4e{constructor(e){this._driver=e}build(e,t,n){const r=new B4e(t);return this._resetContextStyleTimingState(r),La(this,Fy(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push(function H3e(){return new tt(3006,!1)}()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(t),0==s.type){const l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,t))}),l.name=u}else if(1==s.type){const l=this.visitTransition(s,t);n+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push(function U3e(){return new tt(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{q9(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&(wx(o.values()),t.errors.push(function j3e(i,e){return new tt(3008,!1)}()))}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=La(this,Fy(e.animation),t);return{type:1,matchers:A4e(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Wp(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(n=>La(this,n,t)),options:Wp(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const o=e.steps.map(a=>{t.currentTime=n;const s=La(this,a,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:o,options:Wp(e.options)}}visitAnimate(e,t){const n=function $4e(i,e){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return qA(Cx(i,e).duration,0,"");const t=i;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=qA(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Cx(t,e);return qA(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;let r,o=e.styles?e.styles:$i({});if(5==o.type)r=this.visitKeyframes(o,t);else{let a=e.styles,s=!1;if(!a){s=!0;const u={};n.easing&&(u.easing=n.easing),a=$i(u)}t.currentTime+=n.duration+n.delay;const l=this.visitStyle(a,t);l.isEmptyStep=s,r=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of r)"string"==typeof s?s===Ec?n.push(s):t.errors.push(new tt(3002,!1)):n.push(j9(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:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const u=t.collectedStyles.get(t.currentQuerySelector),f=u.get(l);let v=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(t.errors.push(function z3e(i,e,t,n,r){return new tt(3010,!1)}()),v=!1),o=f.startTime),v&&u.set(l,{startTime:o,endTime:r}),t.options&&function x4e(i,e,t){const n=e.params||{},r=q9(i);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||t.push(function N3e(i){return new tt(3001,!1)}())})}(s,t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function W3e(){return new tt(3011,!1)}()),n;let o=0;const a=[];let s=!1,l=!1,u=0;const f=e.steps.map(fe=>{const ye=this._makeStyleAst(fe,t);let we=null!=ye.offset?ye.offset:function V4e(i){if("string"==typeof i)return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){const n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(ye.styles),Te=0;return null!=we&&(o++,Te=ye.offset=we),l=l||Te<0||Te>1,s=s||Te0&&o{const we=D>0?ye==A?1:D*ye:a[ye],Te=we*pe;t.currentTime=W+J.delay+Te,J.duration=Te,this._validateStyleAst(fe,t),fe.offset=we,n.styles.push(fe)}),n}visitReference(e,t){return{type:8,animation:La(this,Fy(e.animation),t),options:Wp(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Wp(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Wp(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[o,a]=function L4e(i){const e=!!i.split(/\s*,\s*/).find(t=>":self"==t);return e&&(i=i.replace(R4e,"")),i=i.replace(/@\*/g,bx).replace(/@\w+/g,t=>bx+"-"+t.slice(1)).replace(/:animating/g,UA),[i,e]}(e.selector);t.currentQuerySelector=n.length?n+" "+o:o,Oa(t.collectedStyles,t.currentQuerySelector,new Map);const s=La(this,Fy(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Wp(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Q3e(){return new tt(3013,!1)}());const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Cx(e.timings,t.errors,!0);return{type:12,animation:La(this,Fy(e.animation),t),timings:n,options:null}}}class B4e{constructor(e){this.errors=e,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 Wp(i){return i?(i=Py(i)).params&&(i.params=function N4e(i){return i?Py(i):null}(i.params)):i={},i}function qA(i,e,t){return{duration:i,delay:e,easing:t}}function GA(i,e,t,n,r,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class Sx{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const j4e=new RegExp(":enter","g"),z4e=new RegExp(":leave","g");function KA(i,e,t,n,r,o=new Map,a=new Map,s,l,u=[]){return(new W4e).buildKeyframes(i,e,t,n,r,o,a,s,l,u)}class W4e{buildKeyframes(e,t,n,r,o,a,s,l,u,f=[]){u=u||new Sx;const v=new QA(e,t,u,r,o,f,[]);v.options=l;const D=l.delay?Gc(l.delay):0;v.currentTimeline.delayNextStep(D),v.currentTimeline.setStyles([a],null,v.errors,l),La(this,n,v);const A=v.timelines.filter(W=>W.containsAnimation());if(A.length&&s.size){let W;for(let J=A.length-1;J>=0;J--){const pe=A[J];if(pe.element===t){W=pe;break}}W&&!W.allowOnlyTimelineStyles()&&W.setStyles([s],null,v.errors,l)}return A.length?A.map(W=>W.buildKeyframes()):[GA(t,[],[],[],0,D,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.get(t.element);if(n){const r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(const r of e){const o=r?.delay;if(o){const a="number"==typeof o?o:Gc(Ry(o,r?.params??{},t.errors));n.delayNextStep(a)}}}_visitSubInstructions(e,t,n){let o=t.currentTimeline.currentTime;const a=null!=n.duration?Gc(n.duration):null,s=null!=n.delay?Gc(n.delay):null;return 0!==a&&e.forEach(l=>{const u=t.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),La(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ex);const a=Gc(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>La(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?Gc(e.options.delay):0;e.steps.forEach(a=>{const s=t.createSubContext(e.options);o&&s.delayNextStep(o),La(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Cx(t.params?Ry(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(l=>{s.forwardTime((l.offset||0)*o),s.setStyles(l.styles,l.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?Gc(r.delay):0;o&&(6===t.previousNode.type||0==n&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ex);let a=n;const s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;let l=null;s.forEach((u,f)=>{t.currentQueryIndex=f;const v=t.createSubContext(e.options,u);o&&v.delayNextStep(o),u===t.element&&(l=v.currentTimeline),La(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,v.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(t.currentQueryTotal-1);let l=a*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime}const f=t.currentTimeline;l&&f.delayNextStep(l);const v=f.currentTime;La(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-v+(r.startTime-n.currentTimeline.startTime)}}const Ex={};class QA{constructor(e,t,n,r,o,a,s,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ex,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ix(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=Gc(n.duration)),null!=n.delay&&(r.delay=Gc(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!t||!a.hasOwnProperty(s))&&(a[s]=Ry(o[s],a,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,o=new QA(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(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Ex,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new q4e(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,o,a){let s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(j4e,"."+this._enterClassName)).replace(z4e,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!o&&0==s.length&&a.push(function Z3e(i){return new tt(3014,!1)}()),s}}class Ix{constructor(e,t,n,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Ix(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Ec),this._currentKeyframe.set(t,Ec);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},a=function G4e(i,e){const t=new Map;let n;return i.forEach(r=>{if("*"===r){n=n||e.keys();for(let o of n)t.set(o,Ec)}else uu(r,t)}),t}(e,this._globalTimelineStyles);for(let[s,l]of a){const u=Ry(l,o,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ec),this._updateStyle(s,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{const r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,l)=>{const u=uu(s,new Map,this._backFill);u.forEach((f,v)=>{"!"===f?e.add(v):f===Ec&&t.add(v)}),n||u.set("offset",l/this.duration),r.push(u)});const o=e.size?wx(e.values()):[],a=t.size?wx(t.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 q4e extends Ix{constructor(e,t,n,r,o,a,s=!1){super(e,t,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 e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],a=n+t,s=t/a,l=uu(e[0]);l.set("offset",0),o.push(l);const u=uu(e[0]);u.set("offset",X9(s)),o.push(u);const f=e.length-1;for(let v=1;v<=f;v++){let D=uu(e[v]);const A=D.get("offset");D.set("offset",X9((t+A*n)/a)),o.push(D)}n=a,t=0,r="",e=o}return GA(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function X9(i,e=3){const t=Math.pow(10,e-1);return Math.round(i*t)/t}class ZA{}const K4e=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 Q4e extends ZA{normalizePropertyName(e,t){return zA(e)}normalizeStyleValue(e,t,n,r){let o="";const a=n.toString().trim();if(K4e.has(t)&&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 $3e(i,e){return new tt(3005,!1)}())}return a+o}}function J9(i,e,t,n,r,o,a,s,l,u,f,v,D){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:f,totalTime:v,errors:D}}const XA={};class eU{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function Z4e(i,e,t,n,r){return i.some(o=>o(e,t,n,r))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,o,a,s,l,u,f){const v=[],D=this.ast.options&&this.ast.options.params||XA,W=this.buildStyles(n,s&&s.params||XA,v),J=l&&l.params||XA,pe=this.buildStyles(r,J,v),fe=new Set,ye=new Map,we=new Map,Te="void"===r,Re={params:X4e(J,D),delay:this.ast.options?.delay},Ye=f?[]:KA(e,t,this.ast.animation,o,a,W,pe,Re,u,v);let We=0;if(Ye.forEach(ht=>{We=Math.max(ht.duration+ht.delay,We)}),v.length)return J9(t,this._triggerName,n,r,Te,W,pe,[],[],ye,we,We,v);Ye.forEach(ht=>{const vt=ht.element,Ht=Oa(ye,vt,new Set);ht.preStyleProps.forEach(Rt=>Ht.add(Rt));const tn=Oa(we,vt,new Set);ht.postStyleProps.forEach(Rt=>tn.add(Rt)),vt!==t&&fe.add(vt)});const Ze=wx(fe.values());return J9(t,this._triggerName,n,r,Te,W,pe,Ye,Ze,ye,we,We)}}function X4e(i,e){const t=Py(e);for(const n in i)i.hasOwnProperty(n)&&null!=i[n]&&(t[n]=i[n]);return t}class J4e{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){const n=new Map,r=Py(this.defaultParams);return Object.keys(e).forEach(o=>{const a=e[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=Ry(a,r,t));const l=this.normalizer.normalizePropertyName(s,t);a=this.normalizer.normalizeStyleValue(s,l,a,t),n.set(l,a)})}),n}}class t5e{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new J4e(r.style,r.options&&r.options.params||{},n))}),tU(this.states,"true","1"),tU(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new eU(e,r,this.states))}),this.fallbackTransition=function n5e(i,e,t){return new eU(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(a=>a.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function tU(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}const i5e=new Sx;class r5e{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const n=[],o=WA(this._driver,t,n,[]);if(n.length)throw function r4e(i){return new tt(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,t,n){const r=e.element,o=F9(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],o=this._animations.get(e);let a;const s=new Map;if(o?(a=KA(this._driver,t,o,HA,vx,new Map,new Map,n,i5e,r),a.forEach(f=>{const v=Oa(s,f.element,new Map);f.postStyleProps.forEach(D=>v.set(D,null))})):(r.push(function o4e(){return new tt(3300,!1)}()),a=[]),r.length)throw function a4e(i){return new tt(3504,!1)}();s.forEach((f,v)=>{f.forEach((D,A)=>{f.set(A,this._driver.computeStyle(v,A,Ec))})});const u=du(a.map(f=>{const v=s.get(f.element);return this._buildPlayer(f,new Map,v)}));return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function s4e(i){return new tt(3301,!1)}();return t}listen(e,t,n,r){const o=NA(t,"","","");return OA(this._getPlayer(e),n,o,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const o=this._getPlayer(e);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(e)}}}const nU="ng-animate-queued",JA="ng-animate-disabled",c5e=[],iU={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},d5e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ls="__ng_removed";class eP{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=function g5e(i){return i??null}(n?e.value:e),n){const o=Py(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const n=this.options.params;Object.keys(t).forEach(r=>{null==n[r]&&(n[r]=t[r])})}}}const Oy="void",tP=new eP(Oy);class u5e{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,cs(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw function l4e(i,e){return new tt(3302,!1)}();if(null==n||0==n.length)throw function c4e(i){return new tt(3303,!1)}();if(!function f5e(i){return"start"==i||"done"==i}(n))throw function d4e(i,e){return new tt(3400,!1)}();const o=Oa(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};o.push(a);const s=Oa(this._engine.statesByElement,e,new Map);return s.has(t)||(cs(e,yx),cs(e,yx+"-"+t),s.set(t,tP)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(t)||s.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function u4e(i){return new tt(3401,!1)}();return t}trigger(e,t,n,r=!0){const o=this._getTrigger(t),a=new nP(this.id,t,e);let s=this._engine.statesByElement.get(e);s||(cs(e,yx),cs(e,yx+"-"+t),this._engine.statesByElement.set(e,s=new Map));let l=s.get(t);const u=new eP(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(t,u),l||(l=tP),u.value!==Oy&&l.value===u.value){if(!function v5e(i,e){const t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let r=0;r{zp(e,pe),Hl(e,fe)})}return}const D=Oa(this._engine.playersByElement,e,[]);D.forEach(J=>{J.namespaceId==this.id&&J.triggerName==t&&J.queued&&J.destroy()});let A=o.matchTransition(l.value,u.value,e,u.params),W=!1;if(!A){if(!r)return;A=o.fallbackTransition,W=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:A,fromState:l,toState:u,player:a,isFallbackTransition:W}),W||(cs(e,nU),a.onStart(()=>{If(e,nU)})),a.onDone(()=>{let J=this.players.indexOf(a);J>=0&&this.players.splice(J,1);const pe=this._engine.playersByElement.get(e);if(pe){let fe=pe.indexOf(a);fe>=0&&pe.splice(fe,1)}}),this.players.push(a),D.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,bx,!0);n.forEach(r=>{if(r[ls])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,r){const o=this._engine.statesByElement.get(e),a=new Map;if(o){const s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){const f=this.trigger(e,u,Oy,r);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),n&&du(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const r=new Set;t.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const l=this._triggers.get(a).fallbackTransition,u=n.get(a)||tP,f=new eP(Oy),v=new nP(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const o=e[ls];(!o||o===iU)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){cs(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];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=NA(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,OA(n.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.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(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(n=>n.element===e)||t,t}}class p5e{constructor(e,t,n){this.bodyNode=e,this.driver=t,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(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){const n=new u5e(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(t);for(;s;){const l=r.get(s);if(l){const u=n.indexOf(l);n.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(e,t,n,r){if(Ax(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Ax(t))return;const o=t[ls];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){const a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),cs(e,JA)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),If(e,JA))}removeNode(e,t,n,r){if(Ax(t)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r,o){this.collectedLeaveElements.push(t),t[ls]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,n,r,o){return Ax(t)?this._fetchNamespace(e).listen(t,n,r,o):()=>{}}_buildInstruction(e,t,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,bx,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,UA,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return du(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[ls];if(t&&t.setForRemoval){if(e[ls]=iU,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(JA)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];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=[],t.length?du(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw function p4e(i){return new tt(3402,!1)}()}_flushAnimations(e,t){const n=new Sx,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(qe=>{f.add(qe);const Qe=this.driver.query(qe,".ng-animate-queued",!0);for(let nt=0;nt{const nt=HA+J++;W.set(Qe,nt),qe.forEach(kt=>cs(kt,nt))});const pe=[],fe=new Set,ye=new Set;for(let qe=0;qefe.add(kt)):ye.add(Qe))}const we=new Map,Te=aU(D,Array.from(fe));Te.forEach((qe,Qe)=>{const nt=vx+J++;we.set(Qe,nt),qe.forEach(kt=>cs(kt,nt))}),e.push(()=>{A.forEach((qe,Qe)=>{const nt=W.get(Qe);qe.forEach(kt=>If(kt,nt))}),Te.forEach((qe,Qe)=>{const nt=we.get(Qe);qe.forEach(kt=>If(kt,nt))}),pe.forEach(qe=>{this.processLeaveNode(qe)})});const Re=[],Ye=[];for(let qe=this._namespaceList.length-1;qe>=0;qe--)this._namespaceList[qe].drainQueuedTransitions(t).forEach(nt=>{const kt=nt.player,rn=nt.element;if(Re.push(kt),this.collectedEnterElements.length){const yi=rn[ls];if(yi&&yi.setForMove){if(yi.previousTriggersValues&&yi.previousTriggersValues.has(nt.triggerName)){const ui=yi.previousTriggersValues.get(nt.triggerName),qi=this.statesByElement.get(nt.element);if(qi&&qi.has(nt.triggerName)){const Na=qi.get(nt.triggerName);Na.value=ui,qi.set(nt.triggerName,Na)}}return void kt.destroy()}}const ri=!v||!this.driver.containsElement(v,rn),st=we.get(rn),Fi=W.get(rn),jt=this._buildInstruction(nt,n,Fi,st,ri);if(jt.errors&&jt.errors.length)return void Ye.push(jt);if(ri)return kt.onStart(()=>zp(rn,jt.fromStyles)),kt.onDestroy(()=>Hl(rn,jt.toStyles)),void r.push(kt);if(nt.isFallbackTransition)return kt.onStart(()=>zp(rn,jt.fromStyles)),kt.onDestroy(()=>Hl(rn,jt.toStyles)),void r.push(kt);const jn=[];jt.timelines.forEach(yi=>{yi.stretchStartingKeyframe=!0,this.disabledNodes.has(yi.element)||jn.push(yi)}),jt.timelines=jn,n.append(rn,jt.timelines),a.push({instruction:jt,player:kt,element:rn}),jt.queriedElements.forEach(yi=>Oa(s,yi,[]).push(kt)),jt.preStyleProps.forEach((yi,ui)=>{if(yi.size){let qi=l.get(ui);qi||l.set(ui,qi=new Set),yi.forEach((Na,ds)=>qi.add(ds))}}),jt.postStyleProps.forEach((yi,ui)=>{let qi=u.get(ui);qi||u.set(ui,qi=new Set),yi.forEach((Na,ds)=>qi.add(ds))})});if(Ye.length){const qe=[];Ye.forEach(Qe=>{qe.push(function h4e(i,e){return new tt(3505,!1)}())}),Re.forEach(Qe=>Qe.destroy()),this.reportError(qe)}const We=new Map,Ze=new Map;a.forEach(qe=>{const Qe=qe.element;n.has(Qe)&&(Ze.set(Qe,Qe),this._beforeAnimationBuild(qe.player.namespaceId,qe.instruction,We))}),r.forEach(qe=>{const Qe=qe.element;this._getPreviousPlayers(Qe,!1,qe.namespaceId,qe.triggerName,null).forEach(kt=>{Oa(We,Qe,[]).push(kt),kt.destroy()})});const ht=pe.filter(qe=>lU(qe,l,u)),vt=new Map;oU(vt,this.driver,ye,u,Ec).forEach(qe=>{lU(qe,l,u)&&ht.push(qe)});const tn=new Map;A.forEach((qe,Qe)=>{oU(tn,this.driver,new Set(qe),l,"!")}),ht.forEach(qe=>{const Qe=vt.get(qe),nt=tn.get(qe);vt.set(qe,new Map([...Array.from(Qe?.entries()??[]),...Array.from(nt?.entries()??[])]))});const Rt=[],ei=[],nn={};a.forEach(qe=>{const{element:Qe,player:nt,instruction:kt}=qe;if(n.has(Qe)){if(f.has(Qe))return nt.onDestroy(()=>Hl(Qe,kt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(kt.totalTime),void r.push(nt);let rn=nn;if(Ze.size>1){let st=Qe;const Fi=[];for(;st=st.parentNode;){const jt=Ze.get(st);if(jt){rn=jt;break}Fi.push(st)}Fi.forEach(jt=>Ze.set(jt,rn))}const ri=this._buildAnimation(nt.namespaceId,kt,We,o,tn,vt);if(nt.setRealPlayer(ri),rn===nn)Rt.push(nt);else{const st=this.playersByElement.get(rn);st&&st.length&&(nt.parentPlayer=du(st)),r.push(nt)}}else zp(Qe,kt.fromStyles),nt.onDestroy(()=>Hl(Qe,kt.toStyles)),ei.push(nt),f.has(Qe)&&r.push(nt)}),ei.forEach(qe=>{const Qe=o.get(qe.element);if(Qe&&Qe.length){const nt=du(Qe);qe.setRealPlayer(nt)}}),r.forEach(qe=>{qe.parentPlayer?qe.syncPlayerEvents(qe.parentPlayer):qe.destroy()});for(let qe=0;qe!ri.destroyed);rn.length?m5e(this,Qe,rn):this.processLeaveNode(Qe)}return pe.length=0,Rt.forEach(qe=>{this.players.push(qe),qe.onDone(()=>{qe.destroy();const Qe=this.players.indexOf(qe);this.players.splice(Qe,1)}),qe.play()}),Rt}elementContainsData(e,t){let n=!1;const r=t[ls];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,o){let a=[];if(t){const s=this.playersByQueriedElement.get(e);s&&(a=s)}else{const s=this.playersByElement.get(e);if(s){const l=!o||o==Oy;s.forEach(u=>{u.queued||!l&&u.triggerName!=r||a.push(u)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(e,t,n){const o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const u=l.element,f=u!==o,v=Oa(n,u,[]);this._getPreviousPlayers(u,f,a,s,t.toState).forEach(A=>{const W=A.getRealPlayer();W.beforeDestroy&&W.beforeDestroy(),A.destroy(),v.push(A)})}zp(o,t.fromStyles)}_buildAnimation(e,t,n,r,o,a){const s=t.triggerName,l=t.element,u=[],f=new Set,v=new Set,D=t.timelines.map(W=>{const J=W.element;f.add(J);const pe=J[ls];if(pe&&pe.removedBeforeQueried)return new W_(W.duration,W.delay);const fe=J!==l,ye=function _5e(i){const e=[];return sU(i,e),e}((n.get(J)||c5e).map(We=>We.getRealPlayer())).filter(We=>!!We.element&&We.element===J),we=o.get(J),Te=a.get(J),Re=F9(0,this._normalizer,0,W.keyframes,we,Te),Ye=this._buildPlayer(W,Re,ye);if(W.subTimeline&&r&&v.add(J),fe){const We=new nP(e,s,J);We.setRealPlayer(Ye),u.push(We)}return Ye});u.forEach(W=>{Oa(this.playersByQueriedElement,W.element,[]).push(W),W.onDone(()=>function h5e(i,e,t){let n=i.get(e);if(n){if(n.length){const r=n.indexOf(t);n.splice(r,1)}0==n.length&&i.delete(e)}return n}(this.playersByQueriedElement,W.element,W))}),f.forEach(W=>cs(W,U9));const A=du(D);return A.onDestroy(()=>{f.forEach(W=>If(W,U9)),Hl(l,t.toStyles)}),v.forEach(W=>{Oa(r,W,[]).push(A)}),A}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new W_(e.duration,e.delay)}}class nP{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new W_,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(r=>OA(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Oa(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Ax(i){return i&&1===i.nodeType}function rU(i,e){const t=i.style.display;return i.style.display=e??"none",t}function oU(i,e,t,n,r){const o=[];t.forEach(l=>o.push(rU(l)));const a=[];n.forEach((l,u)=>{const f=new Map;l.forEach(v=>{const D=e.computeStyle(u,v,r);f.set(v,D),(!D||0==D.length)&&(u[ls]=d5e,a.push(u))}),i.set(u,f)});let s=0;return t.forEach(l=>rU(l,o[s++])),a}function aU(i,e){const t=new Map;if(i.forEach(s=>t.set(s,[])),0==e.length)return t;const r=new Set(e),o=new Map;function a(s){if(!s)return 1;let l=o.get(s);if(l)return l;const u=s.parentNode;return l=t.has(u)?u:r.has(u)?1:a(u),o.set(s,l),l}return e.forEach(s=>{const l=a(s);1!==l&&t.get(l).push(s)}),t}function cs(i,e){i.classList?.add(e)}function If(i,e){i.classList?.remove(e)}function m5e(i,e,t){du(t).onDone(()=>i.processLeaveNode(e))}function sU(i,e){for(let t=0;tr.add(o)):e.set(i,n),t.delete(i),!0}class Px{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new p5e(e,t,n),this._timelineEngine=new r5e(e,t,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,n,r,o){const a=e+"-"+r;let s=this._triggerCache[a];if(!s){const l=[],f=WA(this._driver,o,l,[]);if(l.length)throw function n4e(i,e){return new tt(3404,!1)}();s=function e5e(i,e,t){return new t5e(i,e,t)}(r,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(t,r,s)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[o,a]=R9(n);this._timelineEngine.command(o,t,a,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,o){if("@"==n.charAt(0)){const[a,s]=R9(n);return this._timelineEngine.listen(a,t,s,o)}return this._transitionEngine.listen(e,t,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let b5e=(()=>{class i{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let o=i.initialStylesByElement.get(t);o||i.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Hl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Hl(this._element,this._initialStyles),this._endStyles&&(Hl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(zp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zp(this._element,this._endStyles),this._endStyles=null),Hl(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function iP(i){let e=null;return i.forEach((t,n)=>{(function C5e(i){return"display"===i||"position"===i})(n)&&(e=e||new Map,e.set(n,t))}),e}class cU{constructor(e,t,n,r){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&e.set(r,this._finished?n:G9(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}class w5e{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return B9(e,t)}getParentElement(e){return VA(e)}query(e,t,n){return V9(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}animate(e,t,n,r,o,a=[]){const l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const u=new Map,f=a.filter(A=>A instanceof cU);(function D4e(i,e){return 0===i||0===e})(n,r)&&f.forEach(A=>{A.currentSnapshot.forEach((W,J)=>u.set(J,W))});let v=function w4e(i){return i.length?i[0]instanceof Map?i:i.map(e=>j9(e)):[]}(t).map(A=>uu(A));v=function T4e(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(s,G9(i,s)))}}return e}(e,v,u);const D=function y5e(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=iP(e[0]),e.length>1&&(n=iP(e[e.length-1]))):e instanceof Map&&(t=iP(e)),t||n?new b5e(i,t,n):null}(e,v);return new cU(e,v,l,D)}}let x5e=(()=>{class i extends b6{constructor(t,n){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(n.body,{id:"0",encapsulation:ya.None,styles:[],data:{animation:[]}})}build(t){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?w6(t):t;return dU(this._renderer,null,n,"register",[r]),new k5e(n,this._renderer)}}return i.\u0275fac=function(t){return new(t||i)(Me(Ph),Me(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();class k5e extends class Dde{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new M5e(this._id,e,t||{},this._renderer)}}class M5e{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return dU(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function dU(i,e,t,n,r){return i.setProperty(e,`@@${t}:${n}`,r)}const uU="@.disabled";let D5e=(()=>{class i{constructor(t,n,r){this.delegate=t,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(t,n){const o=this.delegate.createRenderer(t,n);if(!(t&&n&&n.data&&n.data.animation)){let f=this._rendererCache.get(o);return f||(f=new pU("",o,this.engine),this._rendererCache.set(o,f)),f}const a=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const l=f=>{Array.isArray(f)?f.forEach(l):this.engine.registerTrigger(a,s,t,f.name,f)};return n.data.animation.forEach(l),new T5e(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){t>=0&&tn(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(t){return new(t||i)(Me(Ph),Me(Px),Me($t))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})();class pU{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&t==uU?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class T5e extends pU{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==uU?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const r=function S5e(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(e);let o=t.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function E5e(i){const e=i.indexOf(".");return[i.substring(0,e),i.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(e,t,n)}}const hU=[{provide:b6,useClass:x5e},{provide:ZA,useFactory:function A5e(){return new Q4e}},{provide:Px,useClass:(()=>{class i extends Px{constructor(t,n,r,o){super(t.body,n,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(t){return new(t||i)(Me(Jt),Me($A),Me(ZA),Me(yd))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})()},{provide:Ph,useFactory:function P5e(i,e,t){return new D5e(i,e,t)},deps:[I0,Px,$t]}],rP=[{provide:$A,useFactory:()=>new w5e},{provide:aa,useValue:"BrowserAnimations"},...hU],gU=[{provide:$A,useClass:$9},{provide:aa,useValue:"NoopAnimations"},...hU];let F5e=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?gU:rP}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({providers:rP,imports:[b4]}),i})();function R5e(i,e){if(1&i&&(c(0,"li")(1,"label",9),B(2,"nuv-icon",10),m(3),d()()),2&i){const t=e.$implicit;p(2),h("iconName",t.icon),p(1),$e(" ",t.name,"")}}function O5e(i,e){if(1&i&&(c(0,"div",7)(1,"h3"),m(2,"Guides"),d(),c(3,"ul"),b(4,R5e,4,2,"li",8),d()()),2&i){const t=g(2);p(4),h("ngForOf",t.guides)}}function L5e(i,e){if(1&i){const t=re();c(0,"li")(1,"label",11),P("click",function(){const o=E(t).$implicit;return I(g(3).showVideo(o))}),B(2,"nuv-icon",10),m(3),d()()}if(2&i){const t=e.$implicit;p(2),h("iconName",t.icon),p(1),$e(" ",t.name,"")}}function N5e(i,e){if(1&i&&(c(0,"div",7)(1,"h3"),m(2,"Videos"),d(),c(3,"ul"),b(4,L5e,4,2,"li",8),d()()),2&i){const t=g(2);p(4),h("ngForOf",t.videos)}}function B5e(i,e){if(1&i&&(c(0,"li")(1,"label",12),B(2,"nuv-icon",10),c(3,"a",13),m(4),d()()()),2&i){const t=e.$implicit;p(2),h("iconName",t.icon),p(1),_t("href",t.url,gi),p(1),Ae(t.name)}}function V5e(i,e){if(1&i&&(c(0,"div",7)(1,"h3"),m(2,"Web Resource"),d(),c(3,"ul"),b(4,B5e,5,3,"li",8),d()()),2&i){const t=g(2);p(4),h("ngForOf",t.links)}}function $5e(i,e){if(1&i){const t=re();c(0,"i",19),P("click",function(){return E(t),I(g().$implicit.visible=!1)}),d()}}function H5e(i,e){if(1&i){const t=re();c(0,"i",20),P("click",function(){return E(t),I(g().$implicit.visible=!0)}),d()}}function U5e(i,e){1&i&&B(0,"div",21),2&i&&h("innerHTML",g().$implicit.htmlContent,Gn)}function j5e(i,e){if(1&i&&(c(0,"li")(1,"h4"),B(2,"nuv-icon",10),m(3),c(4,"div",15),b(5,$5e,1,0,"i",16),b(6,H5e,1,0,"i",17),d()(),b(7,U5e,1,1,"div",18),d()),2&i){const t=e.$implicit;p(2),h("iconName",t.icon),p(1),$e(" ",t.name," "),p(2),h("ngIf",t.visible),p(1),h("ngIf",!t.visible),p(1),h("ngIf",t.visible)}}function Y5e(i,e){if(1&i&&(c(0,"div",14)(1,"ul"),b(2,j5e,8,5,"li",8),d()()),2&i){const t=g(2);p(2),h("ngForOf",t.htmlNotes)}}function z5e(i,e){if(1&i){const t=re();c(0,"li")(1,"label",11),P("click",function(){const o=E(t).$implicit;return I(g(3).showTerm(o))}),m(2),d()()}if(2&i){const t=e.$implicit;p(2),Ae(t.text)}}function W5e(i,e){if(1&i&&(c(0,"div",7)(1,"h3"),m(2,"Terms"),d(),c(3,"ul"),b(4,z5e,3,1,"li",8),d()()),2&i){const t=g(2);p(4),h("ngForOf",t.terms)}}function q5e(i,e){if(1&i&&(c(0,"div"),B(1,"iframe",22),Zt(2,"safeNuviotLink"),d()),2&i){const t=g(2);p(1),h("src",Xt(2,1,t.videoLink),oM)}}function G5e(i,e){if(1&i&&(c(0,"div"),B(1,"app-glossary-term-viewer",23),d()),2&i){const t=g(2);p(1),h("term",t.term)}}function K5e(i,e){if(1&i&&(c(0,"div")(1,"h1"),B(2,"nuv-icon",2),m(3),d(),B(4,"div",3),c(5,"div",4),b(6,O5e,5,1,"div",5),b(7,N5e,5,1,"div",5),b(8,V5e,5,1,"div",5),b(9,Y5e,3,1,"div",6),b(10,W5e,5,1,"div",5),d(),b(11,q5e,3,3,"div",1),b(12,G5e,2,1,"div",1),d()),2&i){const t=g();p(2),h("iconName",t.help.icon),p(1),Ae(t.help.name),p(1),h("innerHTML",t.help.description,Gn),p(2),h("ngIf",t.guides.length>0),p(1),h("ngIf",t.videos.length>0),p(1),h("ngIf",t.links.length>0),p(1),h("ngIf",t.htmlNotes.length>0),p(1),h("ngIf",t.terms.length>0),p(1),h("ngIf",t.videoLink),p(1),h("ngIf",t.term)}}class Rx{glossaryService;help;term;htmlNotes;guides;videos;links;terms;videoLink;constructor(e){this.glossaryService=e}ngOnInit(){this.guides=this.help.helpResources.filter(t=>"guide"==t.resourceType.key),this.videos=this.help.helpResources.filter(t=>"video"==t.resourceType.key),this.links=this.help.helpResources.filter(t=>"weblink"==t.resourceType.key),this.htmlNotes=this.help.helpResources.filter(t=>"note"==t.resourceType.key);let e=this.help.helpResources.filter(t=>"terms"==t.resourceType.key);this.terms=[];for(let t of e)this.terms=this.terms.concat(t.terms);this.terms=this.terms.sort((t,n)=>t.text.localeCompare(n.text)),console.log(this.terms)}showHelpResource(e){console.log(e)}_selectedTermId;showTerm(e){var t=this;return O(function*(){if(t.videoLink=void 0,t._selectedTermId!=e.id){t._selectedTermId=e.id;var n=e.id.substring(0,32),r=e.id.substring(32);t.term=yield t.glossaryService.getTerm(n,r)}})()}showVideo(e){this.term=void 0,this.videoLink=e.url}static \u0275fac=function(t){return new(t||Rx)(H(Dc))};static \u0275cmp=Oe({type:Rx,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(t,n){1&t&&(c(0,"div",0),b(1,K5e,13,10,"div",1),d()),2&t&&(p(1),h("ngIf",n.help))},dependencies:[es,Ot,rt,ov,bv],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(--color-accent);--color-fg-panel-link-active: 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 pu=(()=>{return(i=pu||(pu={})).AM="AM",i.PM="PM",pu;var i})(),rl=(()=>{return(i=rl||(rl={})).TWELVE="hh:mm a",i.TWELVE_SHORT="h:m a",i.TWENTY_FOUR="HH:mm",i.TWENTY_FOUR_SHORT="H:m",rl;var i})();function aP(i,e,t="minutes"){return"hours"===t?i.hour>=e.hour:"minutes"===t?i.hasSame(e,t)||i.valueOf()>e.valueOf():void 0}function sP(i,e,t="minutes"){return"hours"===t?i.hour<=e.hour:"minutes"===t?i.hasSame(e,t)||i.valueOf()<=e.valueOf():void 0}let qp=(()=>{class i{static parseTime(t,n){const{numberingSystem:r,locale:o}=i.getLocaleOptionsByTime(t,n),s=2===t.split(" ").length?rl.TWELVE_SHORT:rl.TWENTY_FOUR_SHORT;return vn.fromFormat(t,s,{numberingSystem:r,locale:o})}static formatTime(t,n){if(!t)return"Invalid Time";const{format:r}=n,o=i.parseTime(t,n).setLocale(i.DEFAULT_LOCALE);return o.isValid?24!==r?o.toLocaleString(Object.assign(Object.assign({},vn.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(t,n={}){const{format:r=i.DEFAULT_FORMAT,locale:o=i.DEFAULT_LOCALE}=n,a=24===r?"h23":"h12",s=Object.assign(Object.assign({},vn.TIME_SIMPLE),{hourCycle:a}),l=24===r?rl.TWENTY_FOUR_SHORT:rl.TWELVE_SHORT,u=Object.assign({locale:n.locale,numberingSystem:n.numberingSystem},s);return vn.fromFormat(t,l).setLocale(o).toLocaleString(u).replace(/\u202F/g," ")}static isTimeAvailable(t,n,r,o,a,s){if(!t)return;const l=this.parseTime(t,{format:s}),u=l.minute;if(a&&u==u&&u%a!=0)throw new Error(`Your minutes - ${u} doesn't match your minutesGap - ${a}`);const f=n&&!r&&aP(l,n,o),v=r&&!n&&sP(l,r,o),D=n&&r&&function cNe(i,e,t,n="minutes"){return"hours"===n?sP(i,t,n)&&aP(i,e,n):"minutes"===n?sP(i,t)&&aP(i,e):void 0}(l,n,r,o);return f||v||D||!n&&!r}static formatHour(t,n,r){if(24===n)return t;const o=r===pu.AM?t:t+12;return r===pu.AM&&12===o?0:r===pu.PM&&24===o?12:o}static fromDateTimeToString(t,n){const r=24===n?rl.TWENTY_FOUR:rl.TWELVE;return t.reconfigure({numberingSystem:i.DEFAULT_NUMBERING_SYSTEM,locale:i.DEFAULT_LOCALE}).toFormat(r).replace(/\u202F/g," ")}static getLocaleOptionsByTime(t,n){const r={numberingSystem:n.numberingSystem,locale:n.locale},o={numberingSystem:i.DEFAULT_NUMBERING_SYSTEM,locale:i.DEFAULT_LOCALE};return isNaN(parseInt(t,10))?r:o}}return i.DEFAULT_FORMAT=12,i.DEFAULT_LOCALE="en-US",i.DEFAULT_NUMBERING_SYSTEM="latn",i})();const dNe=new Xe("TimeLocale",{providedIn:"root",factory:()=>qp.DEFAULT_LOCALE}),uNe=new Xe("NumberingSystem",{providedIn:"root",factory:()=>qp.DEFAULT_NUMBERING_SYSTEM});let hNe=(()=>{class i{static setOpts(t,n=qp.DEFAULT_NUMBERING_SYSTEM){return{ngModule:i,providers:[{provide:dNe,useValue:t},{provide:uNe,useValue:n}]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[[fi,Dl,$5]]}),i})();class Ox{static \u0275fac=function(t){return new(t||Ox)};static \u0275mod=xt({type:Ox});static \u0275inj=wt({imports:[fi,Dl,$5,HC]})}function gNe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g(3).exportForm())}),B(1,"i",14),m(2,"Export"),d()}}function fNe(i,e){if(1&i){const t=re();c(0,"span",10),P("click",function(){return E(t),I(g(3).importForm())}),B(1,"i",15),m(2,"Import"),d()}}function mNe(i,e){if(1&i){const t=re();c(0,"div")(1,"label"),m(2),d(),c(3,"div",9)(4,"span",10),P("click",function(){return E(t),I(g(2).saveForm())}),B(5,"i",11),m(6,"Save"),d(),c(7,"span",10),P("click",function(){return E(t),I(g(2).cancelForm())}),B(8,"i",12),m(9,"Cancel"),d(),b(10,gNe,3,0,"span",13),b(11,fNe,3,0,"span",13),d()()}if(2&i){const t=g(2);p(2),Ae(t.title),p(8),h("ngIf",t.canExport),p(1),h("ngIf",t.importObjectName)}}function _Ne(i,e){if(1&i){const t=re();c(0,"span",18),P("click",function(){return I(E(t).$implicit.click())}),B(1,"i"),m(2),d()}if(2&i){const t=e.$implicit;p(1),ko(t.icon),p(1),Ae(t.title)}}function vNe(i,e){if(1&i&&(c(0,"div",16)(1,"label"),m(2),d(),c(3,"div",9),b(4,_Ne,3,4,"span",17),d()()),2&i){const t=g(2);p(2),Ae(t.headerExtension.title),p(2),h("ngForOf",t.headerExtension.actions)}}function yNe(i,e){if(1&i&&(c(0,"div",19),m(1),d()),2&i){const t=g(2);p(1),Ae(t.summary)}}const bNe=function(i){return{width:i}};function CNe(i,e){if(1&i&&(c(0,"div"),m(1),c(2,"div",25),B(3,"div",26),d()()),2&i){const t=g(3);p(1),$e(" ",t.fileNameOrStatus," "),p(2),h("ngStyle",bt(2,bNe,t.uploader.progress+"%"))}}const wNe=function(i){return{"nv-file-over":i}};function xNe(i,e){if(1&i){const t=re();c(0,"div",20)(1,"span",21),P("fileOver",function(r){return E(t),I(g(2).fileOverBase(r))}),B(2,"i",22),d(),c(3,"span",23)(4,"span"),m(5,"Select File"),d(),B(6,"input",24),d(),b(7,CNe,4,4,"div",2),d()}if(2&i){const t=g(2);p(1),h("ngClass",bt(4,wNe,t.hasBaseDropZoneOver))("uploader",t.uploader),p(5),h("uploader",t.uploader),p(1),h("ngIf",t.fileNameOrStatus)}}function kNe(i,e){if(1&i&&B(0,"app-form-field",29),2&i){const t=e.$implicit,n=g(3);h("field",t)("model",n.model)("view",n.view)}}function MNe(i,e){if(1&i&&(c(0,"div",27),b(1,kNe,1,3,"app-form-field",28),ki(2),d()),2&i){const t=g(2);p(1),h("ngForOf",t.fields)}}function DNe(i,e){if(1&i&&(c(0,"div",1),b(1,mNe,12,3,"div",2),b(2,vNe,5,2,"div",3),c(3,"div",4),B(4,"div",5),b(5,yNe,2,1,"div",6),b(6,xNe,8,6,"div",7),b(7,MNe,3,1,"div",8),d()()),2&i){const t=g();p(1),h("ngIf",!t.hideToolBar),p(1),h("ngIf",t.headerExtension),p(3),h("ngIf",t.summary),p(1),h("ngIf",t.uploader&&t.isImporting),p(1),h("ngIf",!t.isImporting)}}const TNe=[[["footer"]]],SNe=["footer"];class Lx extends Pv{constructor(e,t,n,r,o,a,s,l,u){super(e,t,n,r,o,a,s,l,u),super.readOnlyNameAndKey=!1}_blade;set blade(e){this._blade=e,e&&(this.form=e.form)}get blade(){return this._blade}static \u0275fac=function(t){return new(t||Lx)(H(hn),H(mi),H(_i),H(zd),H(Ic),H(Ac),H(Sl),H(Pn),H(kp))};static \u0275cmp=Oe({type:Lx,selectors:[["app-blade-form"]],inputs:{blade:"blade"},features:[it],ngContentSelectors:SNe,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(t,n){1&t&&(ho(TNe),b(0,DNe,8,5,"div",0)),2&t&&h("ngIf",n.fields)},dependencies:[Vi,Ot,rt,Rs,Bd,Vd,Sf],styles:[".form[_ngcontent-%COMP%]{border-bottom:1px solid silver}"]})}class Ly{static \u0275fac=function(t){return new(t||Ly)};static \u0275mod=xt({type:Ly});static \u0275inj=wt({imports:[Iy,fi,Z7,Dl,VE,e7,U6,s3e,I7,aw,jV,_x,hNe,Z6,Ug,pb,b3e,U6,jg,mhe,Pke,zke,OV,R3e,F5e,HC,Ox,Ay.forRoot(),Iy]})}bu(yC,[Lx,Ot,rt,mx],[]),bu(Av,[Ol,Ot,rt,Rx],[]);class Nx{static \u0275fac=function(t){return new(t||Nx)};static \u0275mod=xt({type:Nx});static \u0275inj=wt({imports:[fi]})}let Pf={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 INe=/[&<>"']/,ANe=/[&<>"']/g,PNe=/[<>"']|&(?!#?\w+;)/,FNe=/[<>"']|&(?!#?\w+;)/g,RNe={"&":"&","<":"<",">":">",'"':""","'":"'"},vU=i=>RNe[i];function oo(i,e){if(e){if(INe.test(i))return i.replace(ANe,vU)}else if(PNe.test(i))return i.replace(FNe,vU);return i}const ONe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function yU(i){return i.replace(ONe,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const LNe=/(^|[^\[])\^/g;function Hi(i,e){i="string"==typeof i?i:i.source,e=e||"";const t={replace:(n,r)=>(r=(r=r.source||r).replace(LNe,"$1"),i=i.replace(n,r),t),getRegex:()=>new RegExp(i,e)};return t}const NNe=/[^\w:]/g,BNe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function bU(i,e,t){if(i){let n;try{n=decodeURIComponent(yU(t)).replace(NNe,"").toLowerCase()}catch{return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!BNe.test(t)&&(t=function UNe(i,e){Bx[" "+i]||(Bx[" "+i]=VNe.test(i)?i+"/":$x(i,"/",!0));const t=-1===(i=Bx[" "+i]).indexOf(":");return"//"===e.substring(0,2)?t?e:i.replace($Ne,"$1")+e:"/"===e.charAt(0)?t?e:i.replace(HNe,"$1")+e:i+e}(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Bx={},VNe=/^[^:]+:\/*[^/]*$/,$Ne=/^([^:]+:)[\s\S]*$/,HNe=/^([^:]+:\/*[^/]*)[\s\S]*$/,Vx={exec:function(){}};function ol(i){let t,n,e=1;for(;e{let l=!1,u=a;for(;--u>=0&&"\\"===s[u];)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>e)n.splice(e);else for(;n.length1;)1&e&&(t+=i),e>>=1,i+=i;return t+i}function kU(i,e,t,n){const r=e.href,o=e.title?oo(e.title):null,a=i[1].replace(/\\([\[\]])/g,"$1");if("!"!==i[0].charAt(0)){n.state.inLink=!0;const s={type:"link",raw:t,href:r,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,s}return{type:"image",raw:t,href:r,title:o,text:oo(a)}}class lP{constructor(e){this.options=e||Pf}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$x(n,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=function YNe(i,e){const t=i.match(/^(\s+)(?:```)/);if(null===t)return e;const n=t[1];return e.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,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const r=$x(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,a,s,l,u,f,v,D,A,W,J=t[1].trim();const pe=J.length>1,fe={type:"list",raw:"",ordered:pe,start:pe?+J.slice(0,-1):"",loose:!1,items:[]};J=pe?`\\d{1,9}\\${J.slice(-1)}`:`\\${J}`,this.options.pedantic&&(J=pe?J:"[*+-]");const ye=new RegExp(`^( {0,3}${J})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(W=!1,(t=ye.exec(e))&&!this.rules.block.hr.test(e));){if(n=t[0],e=e.substring(n.length),f=t[2].split("\n",1)[0],v=e.split("\n",1)[0],this.options.pedantic?(a=2,A=f.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,A=f.slice(a),a+=t[1].length),l=!1,!f&&/^ *$/.test(v)&&(n+=v+"\n",e=e.substring(v.length+1),W=!0),!W){const Te=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),Re=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ye=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),We=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(D=e.split("\n",1)[0],f=D,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ye.test(f)||We.test(f)||Te.test(f)||Re.test(e)));){if(f.search(/[^ ]/)>=a||!f.trim())A+="\n"+f.slice(a);else{if(l)break;A+="\n"+f}!l&&!f.trim()&&(l=!0),n+=D+"\n",e=e.substring(D.length+1)}}fe.loose||(u?fe.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(A),r&&(o="[ ] "!==r[0],A=A.replace(/^\[[ xX]\] +/,""))),fe.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:A}),fe.raw+=n}fe.items[fe.items.length-1].raw=n.trimRight(),fe.items[fe.items.length-1].text=A.trimRight(),fe.raw=fe.raw.trimRight();const we=fe.items.length;for(s=0;s"space"===Ye.type),Re=Te.every(Ye=>{const We=Ye.raw.split("");let Ze=0;for(const ht of We)if("\n"===ht&&(Ze+=1),Ze>1)return!0;return!1});!fe.loose&&Te.length&&Re&&(fe.loose=!0,fe.items[s].loose=!0)}return fe}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const r=this.options.sanitizer?this.options.sanitizer(t[0]):oo(t[0]);n.type="paragraph",n.text=r,n.tokens=this.lexer.inline(r)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2]?t[2].replace(this.rules.inline._escapes,"$1"):t[2],title:t[3]?t[3].replace(this.rules.inline._escapes,"$1"):t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:CU(t[1]).map(r=>({text:r})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];let o,a,s,l,r=n.align.length;for(o=0;o({text:u}));for(r=n.header.length,a=0;a/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):oo(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const a=$x(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{const a=function jNe(i,e){if(-1===i.indexOf(e[1]))return-1;const t=i.length;let n=0,r=0;for(;r-1){const l=(0===t[0].indexOf("!")?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(n)?r.slice(1):r.slice(1,-1)),kU(t,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return kU(n,r,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);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,u=a,f=0;const v="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=v.exec(t));){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(l=s.length,r[3]||r[4]){u+=l;continue}if((r[5]||r[6])&&a%3&&!((a+l)%3)){f+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+f);const D=e.slice(0,a+r.index+(r[0].length-s.length)+l);if(Math.min(a,l)%2){const W=D.slice(1,-1);return{type:"em",raw:D,text:W,tokens:this.lexer.inlineTokens(W)}}const A=D.slice(2,-2);return{type:"strong",raw:D,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=oo(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let r,o;return"@"===n[2]?(r=oo(this.options.mangle?t(n[1]):n[1]),o="mailto:"+r):(r=oo(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let r,o;if("@"===n[2])r=oo(this.options.mangle?t(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=oo(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(e,t){const n=this.rules.inline.text.exec(e);if(n){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):oo(n[0]):n[0]:oo(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}}}}const un={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:Vx,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?'|\([^()]*\))/};un.def=Hi(un.def).replace("label",un._label).replace("title",un._title).getRegex(),un.bullet=/(?:[*+-]|\d{1,9}[.)])/,un.listItemStart=Hi(/^( *)(bull) */).replace("bull",un.bullet).getRegex(),un.list=Hi(un.list).replace(/bull/g,un.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+un.def.source+")").getRegex(),un._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",un._comment=/|$)/,un.html=Hi(un.html,"i").replace("comment",un._comment).replace("tag",un._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),un.paragraph=Hi(un._paragraph).replace("hr",un.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",un._tag).getRegex(),un.blockquote=Hi(un.blockquote).replace("paragraph",un.paragraph).getRegex(),un.normal=ol({},un),un.gfm=ol({},un.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),un.gfm.table=Hi(un.gfm.table).replace("hr",un.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",un._tag).getRegex(),un.gfm.paragraph=Hi(un._paragraph).replace("hr",un.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",un.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",un._tag).getRegex(),un.pedantic=ol({},un.normal,{html:Hi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",un._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:Vx,paragraph:Hi(un.normal._paragraph).replace("hr",un.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",un.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Vt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vx,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:Vx,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}Vt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Vt.punctuation=Hi(Vt.punctuation).replace(/punctuation/g,Vt._punctuation).getRegex(),Vt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Vt.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Vt._comment=Hi(un._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Vt.emStrong.lDelim=Hi(Vt.emStrong.lDelim).replace(/punct/g,Vt._punctuation).getRegex(),Vt.emStrong.rDelimAst=Hi(Vt.emStrong.rDelimAst,"g").replace(/punct/g,Vt._punctuation).getRegex(),Vt.emStrong.rDelimUnd=Hi(Vt.emStrong.rDelimUnd,"g").replace(/punct/g,Vt._punctuation).getRegex(),Vt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Vt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Vt._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])?)+(?![-_])/,Vt.autolink=Hi(Vt.autolink).replace("scheme",Vt._scheme).replace("email",Vt._email).getRegex(),Vt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Vt.tag=Hi(Vt.tag).replace("comment",Vt._comment).replace("attribute",Vt._attribute).getRegex(),Vt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Vt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Vt.link=Hi(Vt.link).replace("label",Vt._label).replace("href",Vt._href).replace("title",Vt._title).getRegex(),Vt.reflink=Hi(Vt.reflink).replace("label",Vt._label).replace("ref",un._label).getRegex(),Vt.nolink=Hi(Vt.nolink).replace("ref",un._label).getRegex(),Vt.reflinkSearch=Hi(Vt.reflinkSearch,"g").replace("reflink",Vt.reflink).replace("nolink",Vt.nolink).getRegex(),Vt.normal=ol({},Vt),Vt.pedantic=ol({},Vt.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:Hi(/^!?\[(label)\]\((.*?)\)/).replace("label",Vt._label).getRegex(),reflink:Hi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vt._label).getRegex()}),Vt.gfm=ol({},Vt.normal,{escape:Hi(Vt.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(u.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>!!(n=s.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.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(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),r=t[t.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(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const l=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(f){u=f.call({lexer:this},l),"number"==typeof u&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(o=e.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=t[t.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):t.push(n),a=o.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),r=t[t.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):t.push(n);continue}if(e){const s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,o,s,l,u,a=e;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)+"["+xU("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)+"["+xU("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(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>!!(n=f.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,MU)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,MU))){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const v=e.slice(1);let D;this.options.extensions.startInline.forEach(function(A){D=A.call({lexer:this},v),"number"==typeof D&&D>=0&&(f=Math.min(f,D))}),f<1/0&&f>=0&&(o=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(o,zNe)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(u=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return t}}class Ff{constructor(e){this.options=e||Pf}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:oo(e,!0))+"
\n":"
"+(n?e:oo(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,n,r){return this.options.headerIds?`${e}\n`:`${e}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=bU(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=bU(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">",r}text(e){return e}}class DU{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class TU{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Ul{constructor(e){this.options=e||Pf,this.options.renderer=this.options.renderer||new Ff,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new DU,this.slugger=new TU}static parse(e,t){return new Ul(t).parse(e)}static parseInline(e,t){return new Ul(t).parseInline(e)}parse(e,t=!0){let r,o,a,s,l,u,f,v,D,A,W,J,pe,fe,ye,we,Te,Re,Ye,n="";const We=e.length;for(r=0;r0&&"paragraph"===ye.tokens[0].type?(ye.tokens[0].text=Re+" "+ye.tokens[0].text,ye.tokens[0].tokens&&ye.tokens[0].tokens.length>0&&"text"===ye.tokens[0].tokens[0].type&&(ye.tokens[0].tokens[0].text=Re+" "+ye.tokens[0].tokens[0].text)):ye.tokens.unshift({type:"text",text:Re}):fe+=Re),fe+=this.parse(ye.tokens,pe),D+=this.renderer.listitem(fe,Te,we);n+=this.renderer.list(D,W,J);continue;case"html":n+=this.renderer.html(A.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(A.tokens));continue;case"text":for(D=A.tokens?this.parseInline(A.tokens):A.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 e&&(t=e,e=null),wU(e=ol({},bn.defaults,e||{})),t){const r=e.highlight;let o;try{o=Kc.lex(i,e)}catch(l){return t(l)}const a=function(l){let u;if(!l)try{e.walkTokens&&bn.walkTokens(o,e.walkTokens),u=Ul.parse(o,e)}catch(f){l=f}return e.highlight=r,l?t(l):t(null,u)};if(!r||r.length<3||(delete e.highlight,!o.length))return a();let s=0;return bn.walkTokens(o,function(l){"code"===l.type&&(s++,setTimeout(()=>{r(l.text,l.lang,function(u,f){if(u)return a(u);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.",e.silent)return"

    An error occurred:

    "+oo(r.message+"",!0)+"
    ";throw r}try{const r=Kc.lex(i,e);if(e.walkTokens){if(e.async)return Promise.all(bn.walkTokens(r,e.walkTokens)).then(()=>Ul.parse(r,e)).catch(n);bn.walkTokens(r,e.walkTokens)}return Ul.parse(r,e)}catch(r){n(r)}}bn.options=bn.setOptions=function(i){return ol(bn.defaults,i),function ENe(i){Pf=i}(bn.defaults),bn},bn.getDefaults=function _U(){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}},bn.defaults=Pf,bn.use=function(...i){const e=ol({},...i),t=bn.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=t.renderers?t.renderers[o.name]:null;t.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'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&("block"===o.level?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:"inline"===o.level&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){const o=bn.defaults.renderer||new Ff;for(const a in r.renderer){const s=o[a];o[a]=(...l)=>{let u=r.renderer[a].apply(o,l);return!1===u&&(u=s.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){const o=bn.defaults.tokenizer||new lP;for(const a in r.tokenizer){const s=o[a];o[a]=(...l)=>{let u=r.tokenizer[a].apply(o,l);return!1===u&&(u=s.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){const o=bn.defaults.walkTokens;e.walkTokens=function(a){let s=[];return s.push(r.walkTokens.call(this,a)),o&&(s=s.concat(o.call(this,a))),s}}n&&(e.extensions=t),bn.setOptions(e)})},bn.walkTokens=function(i,e){let t=[];for(const n of i)switch(t=t.concat(e.call(bn,n)),n.type){case"table":for(const r of n.header)t=t.concat(bn.walkTokens(r.tokens,e));for(const r of n.rows)for(const o of r)t=t.concat(bn.walkTokens(o.tokens,e));break;case"list":t=t.concat(bn.walkTokens(n.items,e));break;default:bn.defaults.extensions&&bn.defaults.extensions.childTokens&&bn.defaults.extensions.childTokens[n.type]?bn.defaults.extensions.childTokens[n.type].forEach(function(r){t=t.concat(bn.walkTokens(n[r],e))}):n.tokens&&(t=t.concat(bn.walkTokens(n.tokens,e)))}return t},bn.parseInline=function(i,e){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");wU(e=ol({},bn.defaults,e||{}));try{const t=Kc.lexInline(i,e);return e.walkTokens&&bn.walkTokens(t,e.walkTokens),Ul.parseInline(t,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"

    An error occurred:

    "+oo(t.message+"",!0)+"
    ";throw t}},bn.Parser=Ul,bn.parser=Ul.parse,bn.Renderer=Ff,bn.TextRenderer=DU,bn.Lexer=Kc,bn.lexer=Kc.lex,bn.Tokenizer=lP,bn.Slugger=TU,bn.parse=bn;let cP=(()=>{class i{constructor(){this._buttonClick$=new Ce,this.copied$=this._buttonClick$.pipe(to(()=>Qr(Pt(!0),Ku(3e3).pipe(j0(!1)))),pg(),j6(1)),this.copiedText$=this.copied$.pipe(rr(!1),Ve(t=>t?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=Oe({type:i,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,n){1&t&&(c(0,"button",0),P("click",function(){return n.onCopyToClipboardClick()}),Zt(1,"async"),m(2),Zt(3,"async"),d()),2&t&&(St("copied",Xt(1,3,n.copied$)),p(2),Ae(Xt(3,5,n.copiedText$)))},dependencies:[k0],encapsulation:2,changeDetection:0}),i})();class KNe{}class SU{}const EU=new Xe("SECURITY_CONTEXT");let dP=(()=>{class i{constructor(t,n,r,o,a,s){this.platform=t,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 Ff},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 Ce,this.reload$=this._reload$.asObservable(),this.options=a}get options(){return this._options}set options(t){this._options={...this.DEFAULT_MARKED_OPTIONS,...t}}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}parse(t,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 Ff));const u=this.trimIndentation(t),f=r?this.decodeHtml(u):u,v=a?this.parseEmoji(f):f,D=this.parseMarked(v,l,o);return this.sanitizer.sanitize(this.securityContext,D)||""}render(t,n=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:a,katex:s,katexOptions:l,mermaid:u,mermaidOptions:f}=n;o&&this.renderClipboard(t,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...a}),s&&this.renderKatex(t,{...this.DEFAULT_KATEX_OPTIONS,...l}),u&&this.renderMermaid(t,{...this.DEFAULT_MERMAID_OPTIONS,...f}),this.highlight(t)}reload(){this._reload$.next()}getSource(t){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(t,{responseType:"text"}).pipe(Ve(n=>this.handleExtension(t,n)))}highlight(t){if(!Ls(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;t||(t=document);const n=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(n,r=>r.classList.add("language-none")),Prism.highlightAllUnder(t)}decodeHtml(t){if(!Ls(this.platform))return t;const n=document.createElement("textarea");return n.innerHTML=t,n.value}extendRenderer(t){const n=t;if(!0===n.\u0275NgxMarkdownRendererExtended)return t;const r=t.code;return t.code=function(o,a,s){return"mermaid"===a?`
    ${o}
    `:r.call(this,o,a,s)},n.\u0275NgxMarkdownRendererExtended=!0,t}handleExtension(t,n){const r=t.lastIndexOf("://"),o=r>-1?t.substring(r+4):t,a=o.lastIndexOf("/"),s=a>-1?o.substring(a+1).split("?")[0]:"",l=s.lastIndexOf("."),u=l>-1?s.substring(l+1):"";return u&&"md"!==u?"```"+u+"\n"+n+"\n```":n}parseMarked(t,n,r=!1){return Ls(this.platform)?r?bn.parseInline(t,n):bn.parse(t,n):t}parseEmoji(t){if(!Ls(this.platform))return t;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(t)}renderKatex(t,n){if(Ls(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(t,n)}}renderClipboard(t,n,r){if(!Ls(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=t.querySelectorAll("pre");for(let l=0;lv.style.opacity="1",u.onmouseout=()=>v.style.opacity="0",D=o?n.createComponent(o).hostView:a?n.createEmbeddedView(a):n.createComponent(cP).hostView,D.rootNodes.forEach(W=>{W.onmouseover=()=>v.style.opacity="1",v.appendChild(W),A=new ClipboardJS(W,{text:()=>u.innerText})}),D.onDestroy(()=>A.destroy())}}renderMermaid(t,n=this.DEFAULT_MERMAID_OPTIONS){if(!Ls(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=t.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(n),mermaid.init(r))}trimIndentation(t){if(!t)return"";let n;return t.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(t){return new(t||i)(Me(_d),Me(EU),Me(kl,8),Me(KNe,8),Me(SU,8),Me(Ns))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i})(),iBe=(()=>{class i{static forRoot(t){return{ngModule:i,providers:[dP,t&&t.loader||[],t&&t.clipboardOptions||[],t&&t.markedOptions||[],{provide:EU,useValue:t&&null!=t.sanitize?t.sanitize:hi.HTML}]}}static forChild(){return{ngModule:i}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({imports:[fi]}),i})();var IU;!function(i){let e;var r;let t,n;(r=e=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"}(t=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={}))}(IU||(IU={}));var ga=j(6036);j(2813),function Ux(){return typeof window>"u"}()||function Hx(i,e,t){i[e]=t}(ga,"verbosity",ga.VerbosityLevel.ERRORS);let aBe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=xt({type:i}),i.\u0275inj=wt({}),i})();function sBe(){const i=new Ff;return i.link=(e,t,n)=>e.startsWith("./")?`
    ${n}`:`${n}++++`,i.blockquote=e=>'

    '+e+"

    ",{renderer:i,gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}class jx{static \u0275fac=function(t){return new(t||jx)};static \u0275mod=xt({type:jx});static \u0275inj=wt({imports:[aBe,pb,HC,Ly,Nx,Dl,fi,Ug,iBe.forRoot({markedOptions:{provide:SU,useFactory:sBe}})]})}class Yx{static \u0275fac=function(t){return new(t||Yx)};static \u0275mod=xt({type:Yx,bootstrap:[vC]});static \u0275inj=wt({providers:[Zd,{provide:kT,useClass:P_,multi:!0}],imports:[jx,Ly,b4,Dl,_C,R4]})}ft.production&&function wK(){y3=!1}(),YZ().bootstrapModule(Yx).catch(i=>console.error(i))},4901:Se=>{"use strict";var R={single_source_shortest_paths:function(j,C,_){var M={},w={};w[C]=0;var k,F,N,U,de,ne,x=R.PriorityQueue.make();for(x.push(C,0);!x.empty();)for(N in U=(k=x.pop()).cost,de=j[F=k.value]||{})de.hasOwnProperty(N)&&(ne=U+de[N],(typeof w[N]>"u"||w[N]>ne)&&(w[N]=ne,x.push(N,ne),M[N]=F));if(typeof _<"u"&&typeof w[_]>"u"){var z=["Could not find a path from ",C," to ",_,"."].join("");throw new Error(z)}return M},extract_shortest_path_from_predecessor_list:function(j,C){for(var _=[],M=C;M;)_.push(M),M=j[M];return _.reverse(),_},find_path:function(j,C,_){var M=R.single_source_shortest_paths(j,C,_);return R.extract_shortest_path_from_predecessor_list(M,_)},PriorityQueue:{make:function(j){var M,C=R.PriorityQueue,_={};for(M in j=j||{},C)C.hasOwnProperty(M)&&(_[M]=C[M]);return _.queue=[],_.sorter=j.sorter||C.default_sorter,_},default_sorter:function(j,C){return j.cost-C.cost},push:function(j,C){this.queue.push({value:j,cost:C}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Se.exports=R},8419:Se=>{"use strict";Se.exports=function(j){for(var C=[],_=j.length,M=0;M<_;M++){var w=j.charCodeAt(M);if(w>=55296&&w<=56319&&_>M+1){var x=j.charCodeAt(M+1);x>=56320&&x<=57343&&(w=1024*(w-55296)+x-56320+65536,M+=1)}w<128?C.push(w):w<2048?(C.push(w>>6|192),C.push(63&w|128)):w<55296||w>=57344&&w<65536?(C.push(w>>12|224),C.push(w>>6&63|128),C.push(63&w|128)):w>=65536&&w<=1114111?(C.push(w>>18|240),C.push(w>>12&63|128),C.push(w>>6&63|128),C.push(63&w|128)):C.push(239,191,189)}return new Uint8Array(C).buffer}},7088:function(Se,R,j){!function(C){"use strict";C.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(M){return/^nm$/i.test(M)},meridiem:function(M,w,x){return M<12?x?"vm":"VM":x?"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(M){return M+(1===M||8===M||M>=20?"ste":"de")},week:{dow:1,doy:4}})}(j(5439))},2502:function(Se,R,j){!function(C){"use strict";var _=function(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},M={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"]},w=function(F){return function(N,U,de,X){var ne=_(N),Z=M[F][_(N)];return 2===ne&&(Z=Z[U?0:1]),Z.replace(/%d/i,N)}},x=["\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"];C.defineLocale("ar-dz",{months:x,monthsShort:x,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(F){return"\u0645"===F},meridiem:function(F,N,U){return F<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:w("s"),ss:w("s"),m:w("m"),mm:w("m"),h:w("h"),hh:w("h"),d:w("d"),dd:w("d"),M:w("M"),MM:w("M"),y:w("y"),yy:w("y")},postformat:function(F){return F.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(j(5439))},128:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},4519:function(Se,R,j){!function(C){"use strict";var _={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},M=function(N){return 0===N?0:1===N?1:2===N?2:N%100>=3&&N%100<=10?3:N%100>=11?4:5},w={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"]},x=function(N){return function(U,de,X,ne){var Z=M(U),ge=w[N][M(U)];return 2===Z&&(ge=ge[de?0:1]),ge.replace(/%d/i,U)}},k=["\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"];C.defineLocale("ar-ly",{months:k,monthsShort:k,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(N){return"\u0645"===N},meridiem:function(N,U,de){return N<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:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},preparse:function(N){return N.replace(/\u060c/g,",")},postformat:function(N){return N.replace(/\d/g,function(U){return _[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(j(5439))},5443:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},7642:function(Se,R,j){!function(C){"use strict";var _={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},M={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};C.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(x){return"\u0645"===x},meridiem:function(x,k,F){return x<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(x){return x.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(k){return M[k]}).replace(/\u060c/g,",")},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(j(5439))},8592:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},7038:function(Se,R,j){!function(C){"use strict";var _={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},M={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},w=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%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"]},k=function(U){return function(de,X,ne,Z){var ge=w(de),z=x[U][w(de)];return 2===ge&&(z=z[X?0:1]),z.replace(/%d/i,de)}},F=["\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"];C.defineLocale("ar",{months:F,monthsShort:F,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(U){return"\u0645"===U},meridiem:function(U,de,X){return U<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:k("s"),ss:k("s"),m:k("m"),mm:k("m"),h:k("h"),hh:k("h"),d:k("d"),dd:k("d"),M:k("M"),MM:k("M"),y:k("y"),yy:k("y")},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(de){return M[de]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(de){return _[de]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(j(5439))},1213:function(Se,R,j){!function(C){"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"};C.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(w){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(w)},meridiem:function(w,x,k){return w<4?"gec\u0259":w<12?"s\u0259h\u0259r":w<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(w){if(0===w)return w+"-\u0131nc\u0131";var x=w%10;return w+(_[x]||_[w%100-x]||_[w>=100?100:null])},week:{dow:1,doy:7}})}(j(5439))},9191:function(Se,R,j){!function(C){"use strict";function M(x,k,F){return"m"===F?k?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===F?k?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":x+" "+function _(x,k){var F=x.split("_");return k%10==1&&k%100!=11?F[0]:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?F[1]:F[2]}({ss:k?"\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:k?"\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:k?"\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"}[F],+x)}C.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:M,mm:M,h:M,hh:M,d:"\u0434\u0437\u0435\u043d\u044c",dd:M,M:"\u043c\u0435\u0441\u044f\u0446",MM:M,y:"\u0433\u043e\u0434",yy:M},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(x){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(x)},meridiem:function(x,k,F){return x<4?"\u043d\u043e\u0447\u044b":x<12?"\u0440\u0430\u043d\u0456\u0446\u044b":x<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(x,k){switch(k){case"M":case"d":case"DDD":case"w":case"W":return x%10!=2&&x%10!=3||x%100==12||x%100==13?x+"-\u044b":x+"-\u0456";case"D":return x+"-\u0433\u0430";default:return x}},week:{dow:1,doy:7}})}(j(5439))},322:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10,x=M%100;return 0===M?M+"-\u0435\u0432":0===x?M+"-\u0435\u043d":x>10&&x<20?M+"-\u0442\u0438":1===w?M+"-\u0432\u0438":2===w?M+"-\u0440\u0438":7===w||8===w?M+"-\u043c\u0438":M+"-\u0442\u0438"},week:{dow:1,doy:7}})}(j(5439))},8042:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},5903:function(Se,R,j){!function(C){"use strict";var _={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},M={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.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(x){return x.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},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(x,k){return 12===x&&(x=0),"\u09b0\u09be\u09a4"===k?x<4?x:x+12:"\u09ad\u09cb\u09b0"===k||"\u09b8\u0995\u09be\u09b2"===k?x:"\u09a6\u09c1\u09aa\u09c1\u09b0"===k?x>=3?x:x+12:"\u09ac\u09bf\u0995\u09be\u09b2"===k||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===k?x+12:void 0},meridiem:function(x,k,F){return x<4?"\u09b0\u09be\u09a4":x<6?"\u09ad\u09cb\u09b0":x<12?"\u09b8\u0995\u09be\u09b2":x<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":x<18?"\u09ac\u09bf\u0995\u09be\u09b2":x<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(j(5439))},9620:function(Se,R,j){!function(C){"use strict";var _={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},M={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.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(x){return x.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(x,k){return 12===x&&(x=0),"\u09b0\u09be\u09a4"===k&&x>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===k&&x<5||"\u09ac\u09bf\u0995\u09be\u09b2"===k?x+12:x},meridiem:function(x,k,F){return x<4?"\u09b0\u09be\u09a4":x<10?"\u09b8\u0995\u09be\u09b2":x<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":x<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(j(5439))},9645:function(Se,R,j){!function(C){"use strict";var _={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},M={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};C.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(x){return x.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},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(x,k){return 12===x&&(x=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===k&&x>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===k&&x<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===k?x+12:x},meridiem:function(x,k,F){return x<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":x<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":x<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":x<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(j(5439))},5020:function(Se,R,j){!function(C){"use strict";function _(z,ee,te){return z+" "+function x(z,ee){return 2===ee?function k(z){var ee={m:"v",b:"v",d:"z"};return void 0===ee[z.charAt(0)]?z:ee[z.charAt(0)]+z.substring(1)}(z):z}({mm:"munutenn",MM:"miz",dd:"devezh"}[te],z)}function w(z){return z>9?w(z%10):z}var F=[/^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],N=/^(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,Z=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];C.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:Z,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:Z,monthsRegex:N,monthsShortRegex:N,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:F,longMonthsParse:F,shortMonthsParse:F,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 M(z){switch(w(z)){case 1:case 3:case 4:case 5:case 9:return z+" bloaz";default:return z+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(z){return z+(1===z?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(z){return"g.m."===z},meridiem:function(z,ee,te){return z<12?"a.m.":"g.m."}})}(j(5439))},4792:function(Se,R,j){!function(C){"use strict";function _(w,x,k){var F=w+" ";switch(k){case"ss":return F+(1===w?"sekunda":2===w||3===w||4===w?"sekunde":"sekundi");case"m":return x?"jedna minuta":"jedne minute";case"mm":return F+(1===w?"minuta":2===w||3===w||4===w?"minute":"minuta");case"h":return x?"jedan sat":"jednog sata";case"hh":return F+(1===w?"sat":2===w||3===w||4===w?"sata":"sati");case"dd":return F+(1===w?"dan":"dana");case"MM":return F+(1===w?"mjesec":2===w||3===w||4===w?"mjeseca":"mjeseci");case"yy":return F+(1===w?"godina":2===w||3===w||4===w?"godine":"godina")}}C.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}})}(j(5439))},7980:function(Se,R,j){!function(C){"use strict";C.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(M,w){var x=1===M?"r":2===M?"n":3===M?"r":4===M?"t":"\xe8";return("w"===w||"W"===w)&&(x="a"),M+x},week:{dow:1,doy:4}})}(j(5439))},7322:function(Se,R,j){!function(C){"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("_")},M="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),w=[/^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],x=/^(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 k(U){return U>1&&U<5&&1!=~~(U/10)}function F(U,de,X,ne){var Z=U+" ";switch(X){case"s":return de||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return de||ne?Z+(k(U)?"sekundy":"sekund"):Z+"sekundami";case"m":return de?"minuta":ne?"minutu":"minutou";case"mm":return de||ne?Z+(k(U)?"minuty":"minut"):Z+"minutami";case"h":return de?"hodina":ne?"hodinu":"hodinou";case"hh":return de||ne?Z+(k(U)?"hodiny":"hodin"):Z+"hodinami";case"d":return de||ne?"den":"dnem";case"dd":return de||ne?Z+(k(U)?"dny":"dn\xed"):Z+"dny";case"M":return de||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return de||ne?Z+(k(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):Z+"m\u011bs\xedci";case"y":return de||ne?"rok":"rokem";case"yy":return de||ne?Z+(k(U)?"roky":"let"):Z+"lety"}}C.defineLocale("cs",{months:_,monthsShort:M,monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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:F,ss:F,m:F,mm:F,h:F,hh:F,d:F,dd:F,M:F,MM:F,y:F,yy:F},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},365:function(Se,R,j){!function(C){"use strict";C.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(M){return M+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(M)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(M)?"\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}})}(j(5439))},2092:function(Se,R,j){!function(C){"use strict";C.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(M){var x="";return M>20?x=40===M||50===M||60===M||80===M||100===M?"fed":"ain":M>0&&(x=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][M]),M+x},week:{dow:1,doy:4}})}(j(5439))},7387:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},9459:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[w+" Tage",w+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[w+" Monate",w+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[w+" Jahre",w+" Jahren"]};return x?N[k][0]:N[k][1]}C.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}})}(j(5439))},3694:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[w+" Tage",w+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[w+" Monate",w+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[w+" Jahre",w+" Jahren"]};return x?N[k][0]:N[k][1]}C.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}})}(j(5439))},4307:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[w+" Tage",w+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[w+" Monate",w+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[w+" Jahre",w+" Jahren"]};return x?N[k][0]:N[k][1]}C.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}})}(j(5439))},9659:function(Se,R,j){!function(C){"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"],M=["\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"];C.defineLocale("dv",{months:_,monthsShort:_,weekdays:M,weekdaysShort:M,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(x){return"\u0789\u078a"===x},meridiem:function(x,k,F){return x<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(x){return x.replace(/\u060c/g,",")},postformat:function(x){return x.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(j(5439))},3460:function(Se,R,j){!function(C){"use strict";C.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(w,x){return w?"string"==typeof x&&/D/.test(x.substring(0,x.indexOf("MMMM")))?this._monthsGenitiveEl[w.month()]:this._monthsNominativeEl[w.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(w,x,k){return w>11?k?"\u03bc\u03bc":"\u039c\u039c":k?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(w){return"\u03bc"===(w+"").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(w,x){var k=this._calendarEl[w],F=x&&x.hours();return function _(w){return typeof Function<"u"&&w instanceof Function||"[object Function]"===Object.prototype.toString.call(w)}(k)&&(k=k.apply(x)),k.replace("{}",F%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}})}(j(5439))},4369:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:0,doy:4}})}(j(5439))},530:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")}})}(j(5439))},9998:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:1,doy:4}})}(j(5439))},3391:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:1,doy:4}})}(j(5439))},5414:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")}})}(j(5439))},9615:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:0,doy:6}})}(j(5439))},1248:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:1,doy:4}})}(j(5439))},3767:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:1,doy:4}})}(j(5439))},4530:function(Se,R,j){!function(C){"use strict";C.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(M){return"p"===M.charAt(0).toLowerCase()},meridiem:function(M,w,x){return M>11?x?"p.t.m.":"P.T.M.":x?"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}})}(j(5439))},8944:function(Se,R,j){!function(C){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),M="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),w=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],x=/^(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;C.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,N){return F?/-MMM-/.test(N)?M[F.month()]:_[F.month()]:_},monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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}})}(j(5439))},9116:function(Se,R,j){!function(C){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),M="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),w=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],x=/^(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;C.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,N){return F?/-MMM-/.test(N)?M[F.month()]:_[F.month()]:_},monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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"})}(j(5439))},3609:function(Se,R,j){!function(C){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),M="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),w=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],x=/^(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;C.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,N){return F?/-MMM-/.test(N)?M[F.month()]:_[F.month()]:_},monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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}})}(j(5439))},6866:function(Se,R,j){!function(C){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),M="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),w=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],x=/^(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;C.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,N){return F?/-MMM-/.test(N)?M[F.month()]:_[F.month()]:_},monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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"})}(j(5439))},6725:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[w+"sekundi",w+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[w+" minuti",w+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[w+" tunni",w+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[w+" kuu",w+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[w+" aasta",w+" aastat"]};return x?N[k][2]?N[k][2]:N[k][1]:F?N[k][0]:N[k][1]}C.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}})}(j(5439))},7931:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},6417:function(Se,R,j){!function(C){"use strict";var _={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},M={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};C.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(x){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(x)},meridiem:function(x,k,F){return x<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(x){return x.replace(/[\u06f0-\u06f9]/g,function(k){return M[k]}).replace(/\u060c/g,",")},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(j(5439))},944:function(Se,R,j){!function(C){"use strict";var _="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),M=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",_[7],_[8],_[9]];function w(F,N,U,de){var X="";switch(U){case"s":return de?"muutaman sekunnin":"muutama sekunti";case"ss":X=de?"sekunnin":"sekuntia";break;case"m":return de?"minuutin":"minuutti";case"mm":X=de?"minuutin":"minuuttia";break;case"h":return de?"tunnin":"tunti";case"hh":X=de?"tunnin":"tuntia";break;case"d":return de?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":X=de?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return de?"kuukauden":"kuukausi";case"MM":X=de?"kuukauden":"kuukautta";break;case"y":return de?"vuoden":"vuosi";case"yy":X=de?"vuoden":"vuotta"}return function x(F,N){return F<10?N?M[F]:_[F]:F}(F,de)+" "+X}C.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:w,ss:w,m:w,mm:w,h:w,hh:w,d:w,dd:w,M:w,MM:w,y:w,yy:w},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},1766:function(Se,R,j){!function(C){"use strict";C.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(M){return M},week:{dow:1,doy:4}})}(j(5439))},5867:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},6848:function(Se,R,j){!function(C){"use strict";C.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(M,w){switch(w){default:case"M":case"Q":case"D":case"DDD":case"d":return M+(1===M?"er":"e");case"w":case"W":return M+(1===M?"re":"e")}}})}(j(5439))},7773:function(Se,R,j){!function(C){"use strict";C.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(M,w){switch(w){default:case"M":case"Q":case"D":case"DDD":case"d":return M+(1===M?"er":"e");case"w":case"W":return M+(1===M?"re":"e")}},week:{dow:1,doy:4}})}(j(5439))},1636:function(Se,R,j){!function(C){"use strict";var w=/(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,x=[/^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];C.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:w,monthsShortRegex:w,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:x,longMonthsParse:x,shortMonthsParse:x,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(F,N){switch(N){case"D":return F+(1===F?"er":"");default:case"M":case"Q":case"DDD":case"d":return F+(1===F?"er":"e");case"w":case"W":return F+(1===F?"re":"e")}},week:{dow:1,doy:4}})}(j(5439))},4940:function(Se,R,j){!function(C){"use strict";var _="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),M="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");C.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(x,k){return x?/-MMM-/.test(k)?M[x.month()]:_[x.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(x){return x+(1===x||8===x||x>=20?"ste":"de")},week:{dow:1,doy:4}})}(j(5439))},1402:function(Se,R,j){!function(C){"use strict";C.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(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(j(5439))},6924:function(Se,R,j){!function(C){"use strict";C.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(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(j(5439))},6398:function(Se,R,j){!function(C){"use strict";C.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(M){return 0===M.indexOf("un")?"n"+M:"en "+M},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}})}(j(5439))},2457:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N={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:[w+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",w+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[w+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",w+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[w+" \u0935\u0930\u093e\u0902\u0928\u0940",w+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[w+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",w+" \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:[w+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",w+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[w+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",w+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return F?N[k][0]:N[k][1]}C.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(w,x){return"D"===x?w+"\u0935\u0947\u0930":w},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(w,x){return 12===w&&(w=0),"\u0930\u093e\u0924\u0940"===x?w<4?w:w+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===x?w:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===x?w>12?w:w+12:"\u0938\u093e\u0902\u091c\u0947"===x?w+12:void 0},meridiem:function(w,x,k){return w<4?"\u0930\u093e\u0924\u0940":w<12?"\u0938\u0915\u093e\u0933\u0940\u0902":w<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":w<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(j(5439))},2545:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N={s:["thoddea sekondamni","thodde sekond"],ss:[w+" sekondamni",w+" sekond"],m:["eka mintan","ek minut"],mm:[w+" mintamni",w+" mintam"],h:["eka voran","ek vor"],hh:[w+" voramni",w+" voram"],d:["eka disan","ek dis"],dd:[w+" disamni",w+" dis"],M:["eka mhoinean","ek mhoino"],MM:[w+" mhoineamni",w+" mhoine"],y:["eka vorsan","ek voros"],yy:[w+" vorsamni",w+" vorsam"]};return F?N[k][0]:N[k][1]}C.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(w,x){return"D"===x?w+"er":w},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(w,x){return 12===w&&(w=0),"rati"===x?w<4?w:w+12:"sokallim"===x?w:"donparam"===x?w>12?w:w+12:"sanje"===x?w+12:void 0},meridiem:function(w,x,k){return w<4?"rati":w<12?"sokallim":w<16?"donparam":w<20?"sanje":"rati"}})}(j(5439))},2641:function(Se,R,j){!function(C){"use strict";var _={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},M={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};C.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(x){return x.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(x,k){return 12===x&&(x=0),"\u0ab0\u0abe\u0aa4"===k?x<4?x:x+12:"\u0ab8\u0ab5\u0abe\u0ab0"===k?x:"\u0aac\u0aaa\u0acb\u0ab0"===k?x>=10?x:x+12:"\u0ab8\u0abe\u0a82\u0a9c"===k?x+12:void 0},meridiem:function(x,k,F){return x<4?"\u0ab0\u0abe\u0aa4":x<10?"\u0ab8\u0ab5\u0abe\u0ab0":x<17?"\u0aac\u0aaa\u0acb\u0ab0":x<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(j(5439))},7536:function(Se,R,j){!function(C){"use strict";C.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(M){return 2===M?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":M+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(M){return 2===M?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":M+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(M){return 2===M?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":M+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(M){return 2===M?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":M%10==0&&10!==M?M+" \u05e9\u05e0\u05d4":M+" \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(M){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(M)},meridiem:function(M,w,x){return M<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":M<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":M<12?x?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":M<18?x?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(j(5439))},6335:function(Se,R,j){!function(C){"use strict";var _={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},M={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},w=[/^\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];C.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:w,longMonthsParse:w,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(F){return F.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(N){return M[N]})},postformat:function(F){return F.replace(/\d/g,function(N){return _[N]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(F,N){return 12===F&&(F=0),"\u0930\u093e\u0924"===N?F<4?F:F+12:"\u0938\u0941\u092c\u0939"===N?F:"\u0926\u094b\u092a\u0939\u0930"===N?F>=10?F:F+12:"\u0936\u093e\u092e"===N?F+12:void 0},meridiem:function(F,N,U){return F<4?"\u0930\u093e\u0924":F<10?"\u0938\u0941\u092c\u0939":F<17?"\u0926\u094b\u092a\u0939\u0930":F<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(j(5439))},7458:function(Se,R,j){!function(C){"use strict";function _(w,x,k){var F=w+" ";switch(k){case"ss":return F+(1===w?"sekunda":2===w||3===w||4===w?"sekunde":"sekundi");case"m":return x?"jedna minuta":"jedne minute";case"mm":return F+(1===w?"minuta":2===w||3===w||4===w?"minute":"minuta");case"h":return x?"jedan sat":"jednog sata";case"hh":return F+(1===w?"sat":2===w||3===w||4===w?"sata":"sati");case"dd":return F+(1===w?"dan":"dana");case"MM":return F+(1===w?"mjesec":2===w||3===w||4===w?"mjeseca":"mjeseci");case"yy":return F+(1===w?"godina":2===w||3===w||4===w?"godine":"godina")}}C.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}})}(j(5439))},6540:function(Se,R,j){!function(C){"use strict";var _="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function M(k,F,N,U){var de=k;switch(N){case"s":return U||F?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return de+(U||F)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||F?" perc":" perce");case"mm":return de+(U||F?" perc":" perce");case"h":return"egy"+(U||F?" \xf3ra":" \xf3r\xe1ja");case"hh":return de+(U||F?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||F?" nap":" napja");case"dd":return de+(U||F?" nap":" napja");case"M":return"egy"+(U||F?" h\xf3nap":" h\xf3napja");case"MM":return de+(U||F?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||F?" \xe9v":" \xe9ve");case"yy":return de+(U||F?" \xe9v":" \xe9ve")}return""}function w(k){return(k?"":"[m\xfalt] ")+"["+_[this.day()]+"] LT[-kor]"}C.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(k){return"u"===k.charAt(1).toLowerCase()},meridiem:function(k,F,N){return k<12?!0===N?"de":"DE":!0===N?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return w.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return w.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},5283:function(Se,R,j){!function(C){"use strict";C.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(M){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(M)},meridiem:function(M){return M<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":M<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":M<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(M,w){switch(w){case"DDD":case"w":case"W":case"DDDo":return 1===M?M+"-\u056b\u0576":M+"-\u0580\u0564";default:return M}},week:{dow:1,doy:7}})}(j(5439))},8780:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"pagi"===w?M:"siang"===w?M>=11?M:M+12:"sore"===w||"malam"===w?M+12:void 0},meridiem:function(M,w,x){return M<11?"pagi":M<15?"siang":M<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}})}(j(5439))},4205:function(Se,R,j){!function(C){"use strict";function _(x){return x%100==11||x%10!=1}function M(x,k,F,N){var U=x+" ";switch(F){case"s":return k||N?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return _(x)?U+(k||N?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return k?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return _(x)?U+(k||N?"m\xedn\xfatur":"m\xedn\xfatum"):k?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return _(x)?U+(k||N?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return k?"dagur":N?"dag":"degi";case"dd":return _(x)?k?U+"dagar":U+(N?"daga":"d\xf6gum"):k?U+"dagur":U+(N?"dag":"degi");case"M":return k?"m\xe1nu\xf0ur":N?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return _(x)?k?U+"m\xe1nu\xf0ir":U+(N?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):k?U+"m\xe1nu\xf0ur":U+(N?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return k||N?"\xe1r":"\xe1ri";case"yy":return _(x)?U+(k||N?"\xe1r":"\xe1rum"):U+(k||N?"\xe1r":"\xe1ri")}}C.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:M,ss:M,m:M,mm:M,h:"klukkustund",hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},9985:function(Se,R,j){!function(C){"use strict";C.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(M){return(/^[0-9].+$/.test(M)?"tra":"in")+" "+M},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}})}(j(5439))},4211:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},1003:function(Se,R,j){!function(C){"use strict";C.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(M,w){return"\u5143"===w[1]?1:parseInt(w[1]||M,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(M){return"\u5348\u5f8c"===M},meridiem:function(M,w,x){return M<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(M){return M.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(M){return this.week()!==M.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(M,w){switch(w){case"y":return 1===M?"\u5143\u5e74":M+"\u5e74";case"d":case"D":case"DDD":return M+"\u65e5";default:return M}},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"}})}(j(5439))},420:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"enjing"===w?M:"siyang"===w?M>=11?M:M+12:"sonten"===w||"ndalu"===w?M+12:void 0},meridiem:function(M,w,x){return M<11?"enjing":M<15?"siyang":M<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}})}(j(5439))},851:function(Se,R,j){!function(C){"use strict";C.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(M){return M.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(w,x,k){return"\u10d8"===k?x+"\u10e8\u10d8":x+k+"\u10e8\u10d8"})},past:function(M){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(M)?M.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(M)?M.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):M},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(M){return 0===M?M:1===M?M+"-\u10da\u10d8":M<20||M<=100&&M%20==0||M%100==0?"\u10db\u10d4-"+M:M+"-\u10d4"},week:{dow:1,doy:7}})}(j(5439))},6074:function(Se,R,j){!function(C){"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"};C.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(w){return w+(_[w]||_[w%10]||_[w>=100?100:null])},week:{dow:1,doy:7}})}(j(5439))},3343:function(Se,R,j){!function(C){"use strict";var _={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},M={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};C.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(x){return"\u179b\u17d2\u1784\u17b6\u1785"===x},meridiem:function(x,k,F){return x<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(x){return x.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},week:{dow:1,doy:4}})}(j(5439))},4799:function(Se,R,j){!function(C){"use strict";var _={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},M={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};C.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(x){return x.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},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(x,k){return 12===x&&(x=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===k?x<4?x:x+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===k?x:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===k?x>=10?x:x+12:"\u0cb8\u0c82\u0c9c\u0cc6"===k?x+12:void 0},meridiem:function(x,k,F){return x<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":x<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":x<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":x<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(x){return x+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(j(5439))},3549:function(Se,R,j){!function(C){"use strict";C.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(M,w){switch(w){case"d":case"D":case"DDD":return M+"\uc77c";case"M":return M+"\uc6d4";case"w":case"W":return M+"\uc8fc";default:return M}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(M){return"\uc624\ud6c4"===M},meridiem:function(M,w,x){return M<12?"\uc624\uc804":"\uc624\ud6c4"}})}(j(5439))},1037:function(Se,R,j){!function(C){"use strict";var _={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},M={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},w=["\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"];C.defineLocale("ku",{months:w,monthsShort:w,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(k){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(k)},meridiem:function(k,F,N){return k<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(k){return k.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(F){return M[F]}).replace(/\u060c/g,",")},postformat:function(k){return k.replace(/\d/g,function(F){return _[F]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(j(5439))},3125:function(Se,R,j){!function(C){"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"};C.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(w){return w+(_[w]||_[w%10]||_[w>=100?100:null])},week:{dow:1,doy:7}})}(j(5439))},9586:function(Se,R,j){!function(C){"use strict";function _(F,N,U,de){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 N?X[U][0]:X[U][1]}function x(F){if(F=parseInt(F,10),isNaN(F))return!1;if(F<0)return!0;if(F<10)return 4<=F&&F<=7;if(F<100){var N=F%10;return x(0===N?F/10:N)}if(F<1e4){for(;F>=10;)F/=10;return x(F)}return x(F/=1e3)}C.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 M(F){return x(F.substr(0,F.indexOf(" ")))?"a "+F:"an "+F},past:function w(F){return x(F.substr(0,F.indexOf(" ")))?"viru "+F:"virun "+F},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}})}(j(5439))},2349:function(Se,R,j){!function(C){"use strict";C.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(M){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===M},meridiem:function(M,w,x){return M<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(M){return"\u0e97\u0eb5\u0ec8"+M}})}(j(5439))},2400:function(Se,R,j){!function(C){"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 w(U,de,X,ne){return de?k(X)[0]:ne?k(X)[1]:k(X)[2]}function x(U){return U%10==0||U>10&&U<20}function k(U){return _[U].split("_")}function F(U,de,X,ne){var Z=U+" ";return 1===U?Z+w(0,de,X[0],ne):de?Z+(x(U)?k(X)[1]:k(X)[0]):ne?Z+k(X)[1]:Z+(x(U)?k(X)[1]:k(X)[2])}C.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 M(U,de,X,ne){return de?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:F,m:w,mm:F,h:w,hh:F,d:w,dd:F,M:w,MM:F,y:w,yy:F},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(j(5439))},9991:function(Se,R,j){!function(C){"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 M(N,U,de){return de?U%10==1&&U%100!=11?N[2]:N[3]:U%10==1&&U%100!=11?N[0]:N[1]}function w(N,U,de){return N+" "+M(_[de],N,U)}function x(N,U,de){return M(_[de],N,U)}C.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 k(N,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:w,m:x,mm:w,h:x,hh:w,d:x,dd:w,M:x,MM:w,y:x,yy:w},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},8477:function(Se,R,j){!function(C){"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(w,x){return 1===w?x[0]:w>=2&&w<=4?x[1]:x[2]},translate:function(w,x,k){var F=_.words[k];return 1===k.length?x?F[0]:F[1]:w+" "+_.correctGrammaticalCase(w,F)}};C.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}})}(j(5439))},5118:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},5943:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10,x=M%100;return 0===M?M+"-\u0435\u0432":0===x?M+"-\u0435\u043d":x>10&&x<20?M+"-\u0442\u0438":1===w?M+"-\u0432\u0438":2===w?M+"-\u0440\u0438":7===w||8===w?M+"-\u043c\u0438":M+"-\u0442\u0438"},week:{dow:1,doy:7}})}(j(5439))},3849:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===w&&M>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===w||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===w?M+12:M},meridiem:function(M,w,x){return M<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":M<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":M<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":M<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(j(5439))},1977:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){switch(k){case"s":return x?"\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 w+(x?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return w+(x?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return w+(x?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return w+(x?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return w+(x?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return w+(x?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return w}}C.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(w){return"\u04ae\u0425"===w},meridiem:function(w,x,k){return w<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(w,x){switch(x){case"d":case"D":case"DDD":return w+" \u04e9\u0434\u04e9\u0440";default:return w}}})}(j(5439))},6184:function(Se,R,j){!function(C){"use strict";var _={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},M={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function w(k,F,N,U){var de="";if(F)switch(N){case"s":de="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":de="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":de="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":de="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":de="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":de="%d \u0924\u093e\u0938";break;case"d":de="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":de="%d \u0926\u093f\u0935\u0938";break;case"M":de="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":de="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":de="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":de="%d \u0935\u0930\u094d\u0937\u0947"}else switch(N){case"s":de="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":de="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":de="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":de="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":de="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":de="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":de="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":de="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":de="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":de="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":de="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":de="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return de.replace(/%d/i,k)}C.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:w,ss:w,m:w,mm:w,h:w,hh:w,d:w,dd:w,M:w,MM:w,y:w,yy:w},preparse:function(k){return k.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return M[F]})},postformat:function(k){return k.replace(/\d/g,function(F){return _[F]})},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(k,F){return 12===k&&(k=0),"\u092a\u0939\u093e\u091f\u0947"===F||"\u0938\u0915\u093e\u0933\u0940"===F?k:"\u0926\u0941\u092a\u093e\u0930\u0940"===F||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===F||"\u0930\u093e\u0924\u094d\u0930\u0940"===F?k>=12?k:k+12:void 0},meridiem:function(k,F,N){return k>=0&&k<6?"\u092a\u0939\u093e\u091f\u0947":k<12?"\u0938\u0915\u093e\u0933\u0940":k<17?"\u0926\u0941\u092a\u093e\u0930\u0940":k<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(j(5439))},4524:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"pagi"===w?M:"tengahari"===w?M>=11?M:M+12:"petang"===w||"malam"===w?M+12:void 0},meridiem:function(M,w,x){return M<11?"pagi":M<15?"tengahari":M<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}})}(j(5439))},485:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"pagi"===w?M:"tengahari"===w?M>=11?M:M+12:"petang"===w||"malam"===w?M+12:void 0},meridiem:function(M,w,x){return M<11?"pagi":M<15?"tengahari":M<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}})}(j(5439))},6681:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},2024:function(Se,R,j){!function(C){"use strict";var _={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},M={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};C.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(x){return x.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},week:{dow:1,doy:4}})}(j(5439))},2688:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},8914:function(Se,R,j){!function(C){"use strict";var _={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},M={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};C.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(x){return x.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(x,k){return 12===x&&(x=0),"\u0930\u093e\u0924\u093f"===k?x<4?x:x+12:"\u092c\u093f\u0939\u093e\u0928"===k?x:"\u0926\u093f\u0909\u0901\u0938\u094b"===k?x>=10?x:x+12:"\u0938\u093e\u0901\u091d"===k?x+12:void 0},meridiem:function(x,k,F){return x<3?"\u0930\u093e\u0924\u093f":x<12?"\u092c\u093f\u0939\u093e\u0928":x<16?"\u0926\u093f\u0909\u0901\u0938\u094b":x<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}})}(j(5439))},2272:function(Se,R,j){!function(C){"use strict";var _="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),M="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),w=[/^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],x=/^(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;C.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(F,N){return F?/-MMM-/.test(N)?M[F.month()]:_[F.month()]:_},monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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(F){return F+(1===F||8===F||F>=20?"ste":"de")},week:{dow:1,doy:4}})}(j(5439))},1758:function(Se,R,j){!function(C){"use strict";var _="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),M="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),w=[/^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],x=/^(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;C.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(F,N){return F?/-MMM-/.test(N)?M[F.month()]:_[F.month()]:_},monthsRegex:x,monthsShortRegex:x,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:w,longMonthsParse:w,shortMonthsParse:w,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(F){return F+(1===F||8===F||F>=20?"ste":"de")},week:{dow:1,doy:4}})}(j(5439))},1510:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},2797:function(Se,R,j){!function(C){"use strict";C.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(M,w){var x=1===M?"r":2===M?"n":3===M?"r":4===M?"t":"\xe8";return("w"===w||"W"===w)&&(x="a"),M+x},week:{dow:1,doy:4}})}(j(5439))},7944:function(Se,R,j){!function(C){"use strict";var _={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},M={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};C.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(x){return x.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(x,k){return 12===x&&(x=0),"\u0a30\u0a3e\u0a24"===k?x<4?x:x+12:"\u0a38\u0a35\u0a47\u0a30"===k?x:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===k?x>=10?x:x+12:"\u0a38\u0a3c\u0a3e\u0a2e"===k?x+12:void 0},meridiem:function(x,k,F){return x<4?"\u0a30\u0a3e\u0a24":x<10?"\u0a38\u0a35\u0a47\u0a30":x<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":x<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(j(5439))},1605:function(Se,R,j){!function(C){"use strict";var _="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),M="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),w=[/^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 x(N){return N%10<5&&N%10>1&&~~(N/10)%10!=1}function k(N,U,de){var X=N+" ";switch(de){case"ss":return X+(x(N)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return X+(x(N)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return X+(x(N)?"godziny":"godzin");case"ww":return X+(x(N)?"tygodnie":"tygodni");case"MM":return X+(x(N)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return X+(x(N)?"lata":"lat")}}C.defineLocale("pl",{months:function(N,U){return N?/D MMMM/.test(U)?M[N.month()]:_[N.month()]:_},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:w,longMonthsParse:w,shortMonthsParse:w,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:k,m:k,mm:k,h:k,hh:k,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:k,M:"miesi\u0105c",MM:k,y:"rok",yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},3840:function(Se,R,j){!function(C){"use strict";C.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"})}(j(5439))},4225:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},5128:function(Se,R,j){!function(C){"use strict";function _(w,x,k){var N=" ";return(w%100>=20||w>=100&&w%100==0)&&(N=" de "),w+N+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[k]}C.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}})}(j(5439))},5127:function(Se,R,j){!function(C){"use strict";function M(k,F,N){return"m"===N?F?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":k+" "+function _(k,F){var N=k.split("_");return F%10==1&&F%100!=11?N[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?N[1]:N[2]}({ss:F?"\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:F?"\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"}[N],+k)}var w=[/^\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];C.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:w,longMonthsParse:w,shortMonthsParse:w,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(k){if(k.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(k){if(k.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:M,m:M,mm:M,h:"\u0447\u0430\u0441",hh:M,d:"\u0434\u0435\u043d\u044c",dd:M,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:M,M:"\u043c\u0435\u0441\u044f\u0446",MM:M,y:"\u0433\u043e\u0434",yy:M},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(k){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(k)},meridiem:function(k,F,N){return k<4?"\u043d\u043e\u0447\u0438":k<12?"\u0443\u0442\u0440\u0430":k<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(k,F){switch(F){case"M":case"d":case"DDD":return k+"-\u0439";case"D":return k+"-\u0433\u043e";case"w":case"W":return k+"-\u044f";default:return k}},week:{dow:1,doy:4}})}(j(5439))},2525:function(Se,R,j){!function(C){"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"],M=["\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"];C.defineLocale("sd",{months:_,monthsShort:_,weekdays:M,weekdaysShort:M,weekdaysMin:M,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(x){return"\u0634\u0627\u0645"===x},meridiem:function(x,k,F){return x<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(x){return x.replace(/\u060c/g,",")},postformat:function(x){return x.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(j(5439))},9893:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},3123:function(Se,R,j){!function(C){"use strict";C.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(M){return M+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(M){return"\u0db4.\u0dc0."===M||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===M},meridiem:function(M,w,x){return M>11?x?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":x?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(j(5439))},9635:function(Se,R,j){!function(C){"use strict";var _="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),M="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function w(F){return F>1&&F<5}function x(F,N,U,de){var X=F+" ";switch(U){case"s":return N||de?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return N||de?X+(w(F)?"sekundy":"sek\xfand"):X+"sekundami";case"m":return N?"min\xfata":de?"min\xfatu":"min\xfatou";case"mm":return N||de?X+(w(F)?"min\xfaty":"min\xfat"):X+"min\xfatami";case"h":return N?"hodina":de?"hodinu":"hodinou";case"hh":return N||de?X+(w(F)?"hodiny":"hod\xedn"):X+"hodinami";case"d":return N||de?"de\u0148":"d\u0148om";case"dd":return N||de?X+(w(F)?"dni":"dn\xed"):X+"d\u0148ami";case"M":return N||de?"mesiac":"mesiacom";case"MM":return N||de?X+(w(F)?"mesiace":"mesiacov"):X+"mesiacmi";case"y":return N||de?"rok":"rokom";case"yy":return N||de?X+(w(F)?"roky":"rokov"):X+"rokmi"}}C.defineLocale("sk",{months:_,monthsShort:M,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: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}})}(j(5439))},8106:function(Se,R,j){!function(C){"use strict";function _(w,x,k,F){var N=w+" ";switch(k){case"s":return x||F?"nekaj sekund":"nekaj sekundami";case"ss":return N+(1===w?x?"sekundo":"sekundi":2===w?x||F?"sekundi":"sekundah":w<5?x||F?"sekunde":"sekundah":"sekund");case"m":return x?"ena minuta":"eno minuto";case"mm":return N+(1===w?x?"minuta":"minuto":2===w?x||F?"minuti":"minutama":w<5?x||F?"minute":"minutami":x||F?"minut":"minutami");case"h":return x?"ena ura":"eno uro";case"hh":return N+(1===w?x?"ura":"uro":2===w?x||F?"uri":"urama":w<5?x||F?"ure":"urami":x||F?"ur":"urami");case"d":return x||F?"en dan":"enim dnem";case"dd":return N+(1===w?x||F?"dan":"dnem":2===w?x||F?"dni":"dnevoma":x||F?"dni":"dnevi");case"M":return x||F?"en mesec":"enim mesecem";case"MM":return N+(1===w?x||F?"mesec":"mesecem":2===w?x||F?"meseca":"mesecema":w<5?x||F?"mesece":"meseci":x||F?"mesecev":"meseci");case"y":return x||F?"eno leto":"enim letom";case"yy":return N+(1===w?x||F?"leto":"letom":2===w?x||F?"leti":"letoma":w<5?x||F?"leta":"leti":x||F?"let":"leti")}}C.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}})}(j(5439))},8799:function(Se,R,j){!function(C){"use strict";C.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(M){return"M"===M.charAt(0)},meridiem:function(M,w,x){return M<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}})}(j(5439))},2872:function(Se,R,j){!function(C){"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(w,x){return w%10>=1&&w%10<=4&&(w%100<10||w%100>=20)?w%10==1?x[0]:x[1]:x[2]},translate:function(w,x,k,F){var U,N=_.words[k];return 1===k.length?"y"===k&&x?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":F||x?N[0]:N[1]:(U=_.correctGrammaticalCase(w,N),"yy"===k&&x&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?w+" \u0433\u043e\u0434\u0438\u043d\u0430":w+" "+U)}};C.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}})}(j(5439))},7949:function(Se,R,j){!function(C){"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(w,x){return w%10>=1&&w%10<=4&&(w%100<10||w%100>=20)?w%10==1?x[0]:x[1]:x[2]},translate:function(w,x,k,F){var U,N=_.words[k];return 1===k.length?"y"===k&&x?"jedna godina":F||x?N[0]:N[1]:(U=_.correctGrammaticalCase(w,N),"yy"===k&&x&&"godinu"===U?w+" godina":w+" "+U)}};C.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}})}(j(5439))},6167:function(Se,R,j){!function(C){"use strict";C.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(M,w,x){return M<11?"ekuseni":M<15?"emini":M<19?"entsambama":"ebusuku"},meridiemHour:function(M,w){return 12===M&&(M=0),"ekuseni"===w?M:"emini"===w?M>=11?M:M+12:"entsambama"===w||"ebusuku"===w?0===M?0:M+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(j(5439))},9713:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?":e":1===w||2===w?":a":":e")},week:{dow:1,doy:4}})}(j(5439))},1982:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},2732:function(Se,R,j){!function(C){"use strict";var _={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},M={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};C.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(x){return x+"\u0bb5\u0ba4\u0bc1"},preparse:function(x){return x.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(k){return M[k]})},postformat:function(x){return x.replace(/\d/g,function(k){return _[k]})},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(x,k,F){return x<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":x<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":x<10?" \u0b95\u0bbe\u0bb2\u0bc8":x<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":x<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":x<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(x,k){return 12===x&&(x=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===k?x<2?x:x+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===k||"\u0b95\u0bbe\u0bb2\u0bc8"===k||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===k&&x>=10?x:x+12},week:{dow:0,doy:6}})}(j(5439))},3636:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===w?M<4?M:M+12:"\u0c09\u0c26\u0c2f\u0c02"===w?M:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===w?M>=10?M:M+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===w?M+12:void 0},meridiem:function(M,w,x){return M<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":M<10?"\u0c09\u0c26\u0c2f\u0c02":M<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":M<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(j(5439))},2115:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:1,doy:4}})}(j(5439))},9801:function(Se,R,j){!function(C){"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"};C.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(w,x){return 12===w&&(w=0),"\u0448\u0430\u0431"===x?w<4?w:w+12:"\u0441\u0443\u0431\u04b3"===x?w:"\u0440\u04ef\u0437"===x?w>=11?w:w+12:"\u0431\u0435\u0433\u043e\u04b3"===x?w+12:void 0},meridiem:function(w,x,k){return w<4?"\u0448\u0430\u0431":w<11?"\u0441\u0443\u0431\u04b3":w<16?"\u0440\u04ef\u0437":w<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(w){return w+(_[w]||_[w%10]||_[w>=100?100:null])},week:{dow:1,doy:7}})}(j(5439))},2868:function(Se,R,j){!function(C){"use strict";C.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(M){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===M},meridiem:function(M,w,x){return M<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"}})}(j(5439))},1310:function(Se,R,j){!function(C){"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"};C.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(w,x){switch(x){case"d":case"D":case"Do":case"DD":return w;default:if(0===w)return w+"'unjy";var k=w%10;return w+(_[k]||_[w%100-k]||_[w>=100?100:null])}},week:{dow:1,doy:7}})}(j(5439))},2360:function(Se,R,j){!function(C){"use strict";C.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(M){return M},week:{dow:1,doy:4}})}(j(5439))},6645:function(Se,R,j){!function(C){"use strict";var _="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function x(N,U,de,X){var ne=function k(N){var U=Math.floor(N%1e3/100),de=Math.floor(N%100/10),X=N%10,ne="";return U>0&&(ne+=_[U]+"vatlh"),de>0&&(ne+=(""!==ne?" ":"")+_[de]+"maH"),X>0&&(ne+=(""!==ne?" ":"")+_[X]),""===ne?"pagh":ne}(N);switch(de){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"}}C.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 M(N){var U=N;return-1!==N.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==N.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==N.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function w(N){var U=N;return-1!==N.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==N.indexOf("jar")?U.slice(0,-3)+"wen":-1!==N.indexOf("DIS")?U.slice(0,-3)+"ben":U+" ret"},s:"puS lup",ss:x,m:"wa\u2019 tup",mm:x,h:"wa\u2019 rep",hh:x,d:"wa\u2019 jaj",dd:x,M:"wa\u2019 jar",MM:x,y:"wa\u2019 DIS",yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},8374:function(Se,R,j){!function(C){"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"};C.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(w,x,k){return w<12?k?"\xf6\xf6":"\xd6\xd6":k?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(w){return"\xf6s"===w||"\xd6S"===w},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(w,x){switch(x){case"d":case"D":case"Do":case"DD":return w;default:if(0===w)return w+"'\u0131nc\u0131";var k=w%10;return w+(_[k]||_[w%100-k]||_[w>=100?100:null])}},week:{dow:1,doy:7}})}(j(5439))},256:function(Se,R,j){!function(C){"use strict";function M(w,x,k,F){var N={s:["viensas secunds","'iensas secunds"],ss:[w+" secunds",w+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[w+" m\xeduts",w+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[w+" \xfeoras",w+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[w+" ziuas",w+" ziuas"],M:["'n mes","'iens mes"],MM:[w+" mesen",w+" mesen"],y:["'n ar","'iens ar"],yy:[w+" ars",w+" ars"]};return F||x?N[k][0]:N[k][1]}C.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(w){return"d'o"===w.toLowerCase()},meridiem:function(w,x,k){return w>11?k?"d'o":"D'O":k?"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:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(j(5439))},1631:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},1595:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},6050:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===w||"\u0633\u06d5\u06be\u06d5\u0631"===w||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===w?M:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===w||"\u0643\u06d5\u0686"===w?M+12:M>=11?M:M+12},meridiem:function(M,w,x){var k=100*M+w;return k<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":k<900?"\u0633\u06d5\u06be\u06d5\u0631":k<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":k<1230?"\u0686\u06c8\u0634":k<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(M,w){switch(w){case"d":case"D":case"DDD":return M+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return M+"-\u06be\u06d5\u067e\u062a\u06d5";default:return M}},preparse:function(M){return M.replace(/\u060c/g,",")},postformat:function(M){return M.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(j(5439))},5610:function(Se,R,j){!function(C){"use strict";function M(F,N,U){return"m"===U?N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?N?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":F+" "+function _(F,N){var U=F.split("_");return N%10==1&&N%100!=11?U[0]:N%10>=2&&N%10<=4&&(N%100<10||N%100>=20)?U[1]:U[2]}({ss:N?"\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:N?"\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:N?"\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"}[U],+F)}function x(F){return function(){return F+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}C.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 w(F,N){var U={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===F?U.nominative.slice(1,7).concat(U.nominative.slice(0,1)):F?U[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(N)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(N)?"genitive":"nominative"][F.day()]:U.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:x("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:x("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:x("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:x("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return x("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return x("[\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:M,m:M,mm:M,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:M,d:"\u0434\u0435\u043d\u044c",dd:M,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:M,y:"\u0440\u0456\u043a",yy:M},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(F){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(F)},meridiem:function(F,N,U){return F<4?"\u043d\u043e\u0447\u0456":F<12?"\u0440\u0430\u043d\u043a\u0443":F<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(F,N){switch(N){case"M":case"d":case"DDD":case"w":case"W":return F+"-\u0439";case"D":return F+"-\u0433\u043e";default:return F}},week:{dow:1,doy:7}})}(j(5439))},6077:function(Se,R,j){!function(C){"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"],M=["\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"];C.defineLocale("ur",{months:_,monthsShort:_,weekdays:M,weekdaysShort:M,weekdaysMin:M,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(x){return"\u0634\u0627\u0645"===x},meridiem:function(x,k,F){return x<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(x){return x.replace(/\u060c/g,",")},postformat:function(x){return x.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(j(5439))},2207:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},2862:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},8093:function(Se,R,j){!function(C){"use strict";C.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(M){return/^ch$/i.test(M)},meridiem:function(M,w,x){return M<12?x?"sa":"SA":x?"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(M){return M},week:{dow:1,doy:4}})}(j(5439))},5590:function(Se,R,j){!function(C){"use strict";C.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(M){var w=M%10;return M+(1==~~(M%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")},week:{dow:1,doy:4}})}(j(5439))},9058:function(Se,R,j){!function(C){"use strict";C.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}})}(j(5439))},7908:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u51cc\u6668"===w||"\u65e9\u4e0a"===w||"\u4e0a\u5348"===w?M:"\u4e0b\u5348"===w||"\u665a\u4e0a"===w?M+12:M>=11?M:M+12},meridiem:function(M,w,x){var k=100*M+w;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1130?"\u4e0a\u5348":k<1230?"\u4e2d\u5348":k<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(M){return M.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(M){return this.week()!==M.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(M,w){switch(w){case"d":case"D":case"DDD":return M+"\u65e5";case"M":return M+"\u6708";case"w":case"W":return M+"\u5468";default:return M}},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}})}(j(5439))},8867:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u51cc\u6668"===w||"\u65e9\u4e0a"===w||"\u4e0a\u5348"===w?M:"\u4e2d\u5348"===w?M>=11?M:M+12:"\u4e0b\u5348"===w||"\u665a\u4e0a"===w?M+12:void 0},meridiem:function(M,w,x){var k=100*M+w;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1200?"\u4e0a\u5348":1200===k?"\u4e2d\u5348":k<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(M,w){switch(w){case"d":case"D":case"DDD":return M+"\u65e5";case"M":return M+"\u6708";case"w":case"W":return M+"\u9031";default:return M}},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"}})}(j(5439))},1133:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u51cc\u6668"===w||"\u65e9\u4e0a"===w||"\u4e0a\u5348"===w?M:"\u4e2d\u5348"===w?M>=11?M:M+12:"\u4e0b\u5348"===w||"\u665a\u4e0a"===w?M+12:void 0},meridiem:function(M,w,x){var k=100*M+w;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1130?"\u4e0a\u5348":k<1230?"\u4e2d\u5348":k<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(M,w){switch(w){case"d":case"D":case"DDD":return M+"\u65e5";case"M":return M+"\u6708";case"w":case"W":return M+"\u9031";default:return M}},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"}})}(j(5439))},3291:function(Se,R,j){!function(C){"use strict";C.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(M,w){return 12===M&&(M=0),"\u51cc\u6668"===w||"\u65e9\u4e0a"===w||"\u4e0a\u5348"===w?M:"\u4e2d\u5348"===w?M>=11?M:M+12:"\u4e0b\u5348"===w||"\u665a\u4e0a"===w?M+12:void 0},meridiem:function(M,w,x){var k=100*M+w;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1130?"\u4e0a\u5348":k<1230?"\u4e2d\u5348":k<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(M,w){switch(w){case"d":case"D":case"DDD":return M+"\u65e5";case"M":return M+"\u6708";case"w":case"W":return M+"\u9031";default:return M}},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"}})}(j(5439))},5439:function(Se,R,j){(Se=j.nmd(Se)).exports=function(){"use strict";var C,ee;function _(){return C.apply(null,arguments)}function w(y){return y instanceof Array||"[object Array]"===Object.prototype.toString.call(y)}function x(y){return null!=y&&"[object Object]"===Object.prototype.toString.call(y)}function k(y,T){return Object.prototype.hasOwnProperty.call(y,T)}function F(y){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(y).length;var T;for(T in y)if(k(y,T))return!1;return!0}function N(y){return void 0===y}function U(y){return"number"==typeof y||"[object Number]"===Object.prototype.toString.call(y)}function de(y){return y instanceof Date||"[object Date]"===Object.prototype.toString.call(y)}function X(y,T){var ae,Q=[],_e=y.length;for(ae=0;ae<_e;++ae)Q.push(T(y[ae],ae));return Q}function ne(y,T){for(var Q in T)k(T,Q)&&(y[Q]=T[Q]);return k(T,"toString")&&(y.toString=T.toString),k(T,"valueOf")&&(y.valueOf=T.valueOf),y}function Z(y,T,Q,ae){return nd(y,T,Q,ae,!0).utc()}function z(y){return null==y._pf&&(y._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}),y._pf}function te(y){if(null==y._isValid){var T=z(y),Q=ee.call(T.parsedDateParts,function(_e){return null!=_e}),ae=!isNaN(y._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&&Q);if(y._strict&&(ae=ae&&0===T.charsLeftOver&&0===T.unusedTokens.length&&void 0===T.bigHour),null!=Object.isFrozen&&Object.isFrozen(y))return ae;y._isValid=ae}return y._isValid}function K(y){var T=Z(NaN);return null!=y?ne(z(T),y):z(T).userInvalidated=!0,T}ee=Array.prototype.some?Array.prototype.some:function(y){var ae,T=Object(this),Q=T.length>>>0;for(ae=0;ae0)for(Q=0;Q=0?Q?"+":"":"-")+Math.pow(10,Math.max(0,T-ae.length)).toString().substr(1)+ae}var ce=/(\[[^\[]*\])|(\\)?([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,Ce={},Pe={};function Ee(y,T,Q,ae){var _e=ae;"string"==typeof ae&&(_e=function(){return this[ae]()}),y&&(Pe[y]=_e),T&&(Pe[T[0]]=function(){return he(_e.apply(this,arguments),T[1],T[2])}),Q&&(Pe[Q]=function(){return this.localeData().ordinal(_e.apply(this,arguments),y)})}function Be(y){return y.match(/\[[\s\S]/)?y.replace(/^\[|\]$/g,""):y.replace(/\\/g,"")}function Je(y,T){return y.isValid()?(T=Ve(T,y.localeData()),Ce[T]=Ce[T]||function je(y){var Q,ae,T=y.match(ce);for(Q=0,ae=T.length;Q=0&&me.test(y);)y=y.replace(me,ae),me.lastIndex=0,Q-=1;return y}var et={};function at(y,T){var Q=y.toLowerCase();et[Q]=et[Q+"s"]=et[T]=y}function Ge(y){return"string"==typeof y?et[y]||et[y.toLowerCase()]:void 0}function Tt(y){var Q,ae,T={};for(ae in y)k(y,ae)&&(Q=Ge(ae))&&(T[Q]=y[ae]);return T}var yt={};function an(y,T){yt[y]=T}function ti(y){return y%4==0&&y%100!=0||y%400==0}function on(y){return y<0?Math.ceil(y)||0:Math.floor(y)}function Yt(y){var T=+y,Q=0;return 0!==T&&isFinite(T)&&(Q=on(T)),Q}function Gr(y,T){return function(Q){return null!=Q?(fs(this,y,Q),_.updateOffset(this,T),this):gs(this,y)}}function gs(y,T){return y.isValid()?y._d["get"+(y._isUTC?"UTC":"")+T]():NaN}function fs(y,T,Q){y.isValid()&&!isNaN(Q)&&("FullYear"===T&&ti(y.year())&&1===y.month()&&29===y.date()?(Q=Yt(Q),y._d["set"+(y._isUTC?"UTC":"")+T](Q,y.month(),Jp(Q,y.month()))):y._d["set"+(y._isUTC?"UTC":"")+T](Q))}var zl,mu=/\d/,Ni=/\d\d/,sr=/\d{3}/,fr=/\d{4}/,ao=/[+-]?\d{6}/,He=/\d\d?/,Ne=/\d\d\d\d?/,ze=/\d\d\d\d\d\d?/,Ct=/\d{1,3}/,sn=/\d{1,4}/,Mn=/[+-]?\d{1,6}/,Tn=/\d+/,Sn=/[+-]?\d+/,Ao=/Z|[+-]\d\d:?\d\d/gi,_a=/Z|[+-]\d\d(?::?\d\d)?/gi,ll=/[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 It(y,T,Q){zl[y]=be(T)?T:function(ae,_e){return ae&&Q?Q:T}}function Bf(y,T){return k(zl,y)?zl[y](T._strict,T._locale):new RegExp(function va(y){return Po(y.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(T,Q,ae,_e,Fe){return Q||ae||_e||Fe}))}(y))}function Po(y){return y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}zl={};var lr={};function ni(y,T){var Q,_e,ae=T;for("string"==typeof y&&(y=[y]),U(T)&&(ae=function(Fe,Ke){Ke[T]=Yt(Fe)}),_e=y.length,Q=0;Q<_e;Q++)lr[y[Q]]=ae}function Lr(y,T){ni(y,function(Q,ae,_e,Fe){_e._w=_e._w||{},T(Q,_e._w,_e,Fe)})}function gP(y,T,Q){null!=T&&k(lr,y)&&lr[y](T,Q._a,Q,y)}var cr;function Jp(y,T){if(isNaN(y)||isNaN(T))return NaN;var Q=function Kx(y,T){return(y%T+T)%T}(T,12);return y+=(T-Q)/12,1===Q?ti(y)?29:28:31-Q%7%2}cr=Array.prototype.indexOf?Array.prototype.indexOf:function(y){var T;for(T=0;T68?1900:2e3)};var tt=Gr("FullYear",!0);function xn(y,T,Q,ae,_e,Fe,Ke){var Qt;return y<100&&y>=0?(Qt=new Date(y+400,T,Q,ae,_e,Fe,Ke),isFinite(Qt.getFullYear())&&Qt.setFullYear(y)):Qt=new Date(y,T,Q,ae,_e,Fe,Ke),Qt}function Wn(y){var T,Q;return y<100&&y>=0?((Q=Array.prototype.slice.call(arguments))[0]=y+400,T=new Date(Date.UTC.apply(null,Q)),isFinite(T.getUTCFullYear())&&T.setUTCFullYear(y)):T=new Date(Date.UTC.apply(null,arguments)),T}function rh(y,T,Q){var ae=7+T-Q;return-(7+Wn(y,0,ae).getUTCDay()-T)%7+ae-1}function Zx(y,T,Q,ae,_e){var In,xi,Qt=1+7*(T-1)+(7+Q-ae)%7+rh(y,ae,_e);return Qt<=0?xi=nh(In=y-1)+Qt:Qt>nh(y)?(In=y+1,xi=Qt-nh(y)):(In=y,xi=Qt),{year:In,dayOfYear:xi}}function _u(y,T,Q){var Fe,Ke,ae=rh(y.year(),T,Q),_e=Math.floor((y.dayOfYear()-ae-1)/7)+1;return _e<1?Fe=_e+ea(Ke=y.year()-1,T,Q):_e>ea(y.year(),T,Q)?(Fe=_e-ea(y.year(),T,Q),Ke=y.year()+1):(Ke=y.year(),Fe=_e),{week:Fe,year:Ke}}function ea(y,T,Q){var ae=rh(y,T,Q),_e=rh(y+1,T,Q);return(nh(y)-ae+_e)/7}Ee("w",["ww",2],"wo","week"),Ee("W",["WW",2],"Wo","isoWeek"),at("week","w"),at("isoWeek","W"),an("week",5),an("isoWeek",5),It("w",He),It("ww",He,Ni),It("W",He),It("WW",He,Ni),Lr(["w","ww","W","WW"],function(y,T,Q,ae){T[ae.substr(0,1)]=Yt(y)});function zy(y,T){return y.slice(T,7).concat(y.slice(0,T))}Ee("d",0,"do","day"),Ee("dd",0,0,function(y){return this.localeData().weekdaysMin(this,y)}),Ee("ddd",0,0,function(y){return this.localeData().weekdaysShort(this,y)}),Ee("dddd",0,0,function(y){return this.localeData().weekdays(this,y)}),Ee("e",0,0,"weekday"),Ee("E",0,0,"isoWeekday"),at("day","d"),at("weekday","e"),at("isoWeekday","E"),an("day",11),an("weekday",11),an("isoWeekday",11),It("d",He),It("e",He),It("E",He),It("dd",function(y,T){return T.weekdaysMinRegex(y)}),It("ddd",function(y,T){return T.weekdaysShortRegex(y)}),It("dddd",function(y,T){return T.weekdaysRegex(y)}),Lr(["dd","ddd","dddd"],function(y,T,Q,ae){var _e=Q._locale.weekdaysParse(y,ae,Q._strict);null!=_e?T.d=_e:z(Q).invalidWeekday=y}),Lr(["d","e","E"],function(y,T,Q,ae){T[ae]=Yt(y)});var Jx="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ek="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tk="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bP=ll,Ro=ll,pi=ll;function Ue(y,T,Q){var ae,_e,Fe,Ke=y.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ae=0;ae<7;++ae)Fe=Z([2e3,1]).day(ae),this._minWeekdaysParse[ae]=this.weekdaysMin(Fe,"").toLocaleLowerCase(),this._shortWeekdaysParse[ae]=this.weekdaysShort(Fe,"").toLocaleLowerCase(),this._weekdaysParse[ae]=this.weekdays(Fe,"").toLocaleLowerCase();return Q?"dddd"===T?-1!==(_e=cr.call(this._weekdaysParse,Ke))?_e:null:"ddd"===T?-1!==(_e=cr.call(this._shortWeekdaysParse,Ke))?_e:null:-1!==(_e=cr.call(this._minWeekdaysParse,Ke))?_e:null:"dddd"===T?-1!==(_e=cr.call(this._weekdaysParse,Ke))||-1!==(_e=cr.call(this._shortWeekdaysParse,Ke))||-1!==(_e=cr.call(this._minWeekdaysParse,Ke))?_e:null:"ddd"===T?-1!==(_e=cr.call(this._shortWeekdaysParse,Ke))||-1!==(_e=cr.call(this._weekdaysParse,Ke))||-1!==(_e=cr.call(this._minWeekdaysParse,Ke))?_e:null:-1!==(_e=cr.call(this._minWeekdaysParse,Ke))||-1!==(_e=cr.call(this._weekdaysParse,Ke))||-1!==(_e=cr.call(this._shortWeekdaysParse,Ke))?_e:null}function ah(){function y(mr,ks){return ks.length-mr.length}var Fe,Ke,Qt,In,xi,T=[],Q=[],ae=[],_e=[];for(Fe=0;Fe<7;Fe++)Ke=Z([2e3,1]).day(Fe),Qt=Po(this.weekdaysMin(Ke,"")),In=Po(this.weekdaysShort(Ke,"")),xi=Po(this.weekdays(Ke,"")),T.push(Qt),Q.push(In),ae.push(xi),_e.push(Qt),_e.push(In),_e.push(xi);T.sort(y),Q.sort(y),ae.sort(y),_e.sort(y),this._weekdaysRegex=new RegExp("^("+_e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ae.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+T.join("|")+")","i")}function td(){return this.hours()%12||12}function jf(y,T){Ee(y,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),T)})}function qy(y,T){return T._meridiemParse}Ee("H",["HH",2],0,"hour"),Ee("h",["hh",2],0,td),Ee("k",["kk",2],0,function Uf(){return this.hours()||24}),Ee("hmm",0,0,function(){return""+td.apply(this)+he(this.minutes(),2)}),Ee("hmmss",0,0,function(){return""+td.apply(this)+he(this.minutes(),2)+he(this.seconds(),2)}),Ee("Hmm",0,0,function(){return""+this.hours()+he(this.minutes(),2)}),Ee("Hmmss",0,0,function(){return""+this.hours()+he(this.minutes(),2)+he(this.seconds(),2)}),jf("a",!0),jf("A",!1),at("hour","h"),an("hour",13),It("a",qy),It("A",qy),It("H",He),It("h",He),It("k",He),It("HH",He,Ni),It("hh",He,Ni),It("kk",He,Ni),It("hmm",Ne),It("hmmss",ze),It("Hmm",Ne),It("Hmmss",ze),ni(["H","HH"],3),ni(["k","kk"],function(y,T,Q){var ae=Yt(y);T[3]=24===ae?0:ae}),ni(["a","A"],function(y,T,Q){Q._isPm=Q._locale.isPM(y),Q._meridiem=y}),ni(["h","hh"],function(y,T,Q){T[3]=Yt(y),z(Q).bigHour=!0}),ni("hmm",function(y,T,Q){var ae=y.length-2;T[3]=Yt(y.substr(0,ae)),T[4]=Yt(y.substr(ae)),z(Q).bigHour=!0}),ni("hmmss",function(y,T,Q){var ae=y.length-4,_e=y.length-2;T[3]=Yt(y.substr(0,ae)),T[4]=Yt(y.substr(ae,2)),T[5]=Yt(y.substr(_e)),z(Q).bigHour=!0}),ni("Hmm",function(y,T,Q){var ae=y.length-2;T[3]=Yt(y.substr(0,ae)),T[4]=Yt(y.substr(ae))}),ni("Hmmss",function(y,T,Q){var ae=y.length-4,_e=y.length-2;T[3]=Yt(y.substr(0,ae)),T[4]=Yt(y.substr(ae,2)),T[5]=Yt(y.substr(_e))});var ok=Gr("Hours",!0);var lo,zf={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:Uy,monthsShort:jy,week:{dow:0,doy:6},weekdays:Jx,weekdaysMin:tk,weekdaysShort:ek,meridiemParse:/[ap]\.?m?\.?/i},Ki={},na={};function MP(y,T){var Q,ae=Math.min(y.length,T.length);for(Q=0;Q0;){if(_e=Wf(Fe.slice(0,Q).join("-")))return _e;if(ae&&ae.length>=Q&&MP(Fe,ae)>=Q-1)break;Q--}T++}return lo}(y)}function vu(y){var T,Q=y._a;return Q&&-2===z(y).overflow&&(T=Q[1]<0||Q[1]>11?1:Q[2]<1||Q[2]>Jp(Q[0],Q[1])?2:Q[3]<0||Q[3]>24||24===Q[3]&&(0!==Q[4]||0!==Q[5]||0!==Q[6])?3:Q[4]<0||Q[4]>59?4:Q[5]<0||Q[5]>59?5:Q[6]<0||Q[6]>999?6:-1,z(y)._overflowDayOfYear&&(T<0||T>2)&&(T=2),z(y)._overflowWeeks&&-1===T&&(T=7),z(y)._overflowWeekday&&-1===T&&(T=8),z(y).overflow=T),y}var Gy=/^\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)?)?$/,vs=/^\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)?)?$/,yu=/Z|[+-]\d\d(?::?\d\d)?/,sh=[["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]],Oe=[["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/]],bu=/^\/?Date\((-?\d+)/i,Ky=/^(?:(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}))$/,Qy={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(y){var T,Q,Fe,Ke,Qt,In,ae=y._i,_e=Gy.exec(ae)||vs.exec(ae),xi=sh.length,mr=Oe.length;if(_e){for(z(y).iso=!0,T=0,Q=xi;T7)&&(In=!0)):(Fe=y._locale._week.dow,Ke=y._locale._week.doy,xi=_u(Ci(),Fe,Ke),Q=ba(T.gg,y._a[0],xi.year),ae=ba(T.w,xi.week),null!=T.d?((_e=T.d)<0||_e>6)&&(In=!0):null!=T.e?(_e=T.e+Fe,(T.e<0||T.e>6)&&(In=!0)):_e=Fe),ae<1||ae>ea(Q,Fe,Ke)?z(y)._overflowWeeks=!0:null!=In?z(y)._overflowWeekday=!0:(Qt=Zx(Q,ae,_e,Fe,Ke),y._a[0]=Qt.year,y._dayOfYear=Qt.dayOfYear)}(y),null!=y._dayOfYear&&(Ke=ba(y._a[0],_e[0]),(y._dayOfYear>nh(Ke)||0===y._dayOfYear)&&(z(y)._overflowDayOfYear=!0),Q=Wn(Ke,0,y._dayOfYear),y._a[1]=Q.getUTCMonth(),y._a[2]=Q.getUTCDate()),T=0;T<3&&null==y._a[T];++T)y._a[T]=ae[T]=_e[T];for(;T<7;T++)y._a[T]=ae[T]=y._a[T]??(2===T?1:0);24===y._a[3]&&0===y._a[4]&&0===y._a[5]&&0===y._a[6]&&(y._nextDay=!0,y._a[3]=0),y._d=(y._useUTC?Wn:xn).apply(null,ae),Fe=y._useUTC?y._d.getUTCDay():y._d.getDay(),null!=y._tzm&&y._d.setUTCMinutes(y._d.getUTCMinutes()-y._tzm),y._nextDay&&(y._a[3]=24),y._w&&typeof y._w.d<"u"&&y._w.d!==Fe&&(z(y).weekdayMismatch=!0)}}function kn(y){if(y._f!==_.ISO_8601)if(y._f!==_.RFC_2822){y._a=[],z(y).empty=!0;var Q,ae,_e,Fe,Ke,xi,mr,T=""+y._i,Qt=T.length,In=0;for(mr=(_e=Ve(y._f,y._locale).match(ce)||[]).length,Q=0;Q0&&z(y).unusedInput.push(Ke),T=T.slice(T.indexOf(ae)+ae.length),In+=ae.length),Pe[Fe]?(ae?z(y).empty=!1:z(y).unusedTokens.push(Fe),gP(Fe,ae,y)):y._strict&&!ae&&z(y).unusedTokens.push(Fe);z(y).charsLeftOver=Qt-In,T.length>0&&z(y).unusedInput.push(T),y._a[3]<=12&&!0===z(y).bigHour&&y._a[3]>0&&(z(y).bigHour=void 0),z(y).parsedDateParts=y._a.slice(0),z(y).meridiem=y._meridiem,y._a[3]=function Ui(y,T,Q){var ae;return null==Q?T:null!=y.meridiemHour?y.meridiemHour(T,Q):(null!=y.isPM&&((ae=y.isPM(Q))&&T<12&&(T+=12),!ae&&12===T&&(T=0)),T)}(y._locale,y._a[3],y._meridiem),null!==(xi=z(y).era)&&(y._a[0]=y._locale.erasConvertYear(xi,y._a[0])),bo(y),vu(y)}else Zr(y);else xt(y)}function ul(y){var T=y._i,Q=y._f;return y._locale=y._locale||ia(y._l),null===T||void 0===Q&&""===T?K({nullInput:!0}):("string"==typeof T&&(y._i=T=y._locale.preparse(T)),q(T)?new G(vu(T)):(de(T)?y._d=T:w(Q)?function Lo(y){var T,Q,ae,_e,Fe,Ke,Qt=!1,In=y._f.length;if(0===In)return z(y).invalidFormat=!0,void(y._d=new Date(NaN));for(_e=0;_ethis?this:y:K()});function Gl(y,T){var Q,ae;if(1===T.length&&w(T[0])&&(T=T[0]),!T.length)return Ci();for(Q=T[0],ae=1;ae=0?new Date(y+400,T,Q)-xu:new Date(y,T,Q).valueOf()}function hh(y,T,Q){return y<100&&y>=0?Date.UTC(y+400,T,Q)-xu:Date.UTC(y,T,Q)}function fh(y,T){return T.erasAbbrRegex(y)}function Mu(){var _e,Fe,y=[],T=[],Q=[],ae=[],Ke=this.eras();for(_e=0,Fe=Ke.length;_e(Fe=ea(y,ae,_e))&&(T=Fe),ws.call(this,y,T,Q,ae,_e))}function ws(y,T,Q,ae,_e){var Fe=Zx(y,T,Q,ae,_e),Ke=Wn(Fe.year,0,Fe.dayOfYear);return this.year(Ke.getUTCFullYear()),this.month(Ke.getUTCMonth()),this.date(Ke.getUTCDate()),this}Ee("N",0,0,"eraAbbr"),Ee("NN",0,0,"eraAbbr"),Ee("NNN",0,0,"eraAbbr"),Ee("NNNN",0,0,"eraName"),Ee("NNNNN",0,0,"eraNarrow"),Ee("y",["y",1],"yo","eraYear"),Ee("y",["yy",2],0,"eraYear"),Ee("y",["yyy",3],0,"eraYear"),Ee("y",["yyyy",4],0,"eraYear"),It("N",fh),It("NN",fh),It("NNN",fh),It("NNNN",function ku(y,T){return T.erasNameRegex(y)}),It("NNNNN",function Ua(y,T){return T.erasNarrowRegex(y)}),ni(["N","NN","NNN","NNNN","NNNNN"],function(y,T,Q,ae){var _e=Q._locale.erasParse(y,ae,Q._strict);_e?z(Q).era=_e:z(Q).invalidEra=y}),It("y",Tn),It("yy",Tn),It("yyy",Tn),It("yyyy",Tn),It("yo",function im(y,T){return T._eraYearOrdinalRegex||Tn}),ni(["y","yy","yyy","yyyy"],0),ni(["yo"],function(y,T,Q,ae){var _e;Q._locale._eraYearOrdinalRegex&&(_e=y.match(Q._locale._eraYearOrdinalRegex)),T[0]=Q._locale.eraYearOrdinalParse?Q._locale.eraYearOrdinalParse(y,_e):parseInt(y,10)}),Ee(0,["gg",2],0,function(){return this.weekYear()%100}),Ee(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rm("gggg","weekYear"),rm("ggggg","weekYear"),rm("GGGG","isoWeekYear"),rm("GGGGG","isoWeekYear"),at("weekYear","gg"),at("isoWeekYear","GG"),an("weekYear",1),an("isoWeekYear",1),It("G",Sn),It("g",Sn),It("GG",He,Ni),It("gg",He,Ni),It("GGGG",sn,fr),It("gggg",sn,fr),It("GGGGG",Mn,ao),It("ggggg",Mn,ao),Lr(["gggg","ggggg","GGGG","GGGGG"],function(y,T,Q,ae){T[ae.substr(0,2)]=Yt(y)}),Lr(["gg","GG"],function(y,T,Q,ae){T[ae]=_.parseTwoDigitYear(y)}),Ee("Q",0,"Qo","quarter"),at("quarter","Q"),an("quarter",7),It("Q",mu),ni("Q",function(y,T){T[1]=3*(Yt(y)-1)}),Ee("D",["DD",2],"Do","date"),at("date","D"),an("date",9),It("D",He),It("DD",He,Ni),It("Do",function(y,T){return y?T._dayOfMonthOrdinalParse||T._ordinalParse:T._dayOfMonthOrdinalParseLenient}),ni(["D","DD"],2),ni("Do",function(y,T){T[2]=Yt(y.match(He)[0])});var om=Gr("Date",!0);Ee("DDD",["DDDD",3],"DDDo","dayOfYear"),at("dayOfYear","DDD"),an("dayOfYear",4),It("DDD",Ct),It("DDDD",sr),ni(["DDD","DDDD"],function(y,T,Q){Q._dayOfYear=Yt(y)}),Ee("m",["mm",2],0,"minute"),at("minute","m"),an("minute",14),It("m",He),It("mm",He,Ni),ni(["m","mm"],4);var Pk=Gr("Minutes",!1);Ee("s",["ss",2],0,"second"),at("second","s"),an("second",15),It("s",He),It("ss",He,Ni),ni(["s","ss"],5);var ja,sm,am=Gr("Seconds",!1);for(Ee("S",0,0,function(){return~~(this.millisecond()/100)}),Ee(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ee(0,["SSS",3],0,"millisecond"),Ee(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ee(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ee(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ee(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ee(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ee(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),at("millisecond","ms"),an("millisecond",16),It("S",Ct,mu),It("SS",Ct,Ni),It("SSS",Ct,sr),ja="SSSS";ja.length<=9;ja+="S")It(ja,Tn);function lm(y,T){T[6]=Yt(1e3*("0."+y))}for(ja="S";ja.length<=9;ja+="S")ni(ja,lm);sm=Gr("Milliseconds",!1),Ee("z",0,0,"zoneAbbr"),Ee("zz",0,0,"zoneName");var gt=G.prototype;function cm(y){return y}gt.add=EP,gt.calendar=function Xf(y,T){1===arguments.length&&(arguments[0]?AP(arguments[0])?(y=arguments[0],T=void 0):RP(arguments[0])&&(T=arguments[0],y=void 0):(y=void 0,T=void 0));var Q=y||Ci(),ae=od(Q,this).startOf("day"),_e=_.calendarFormat(this,ae)||"sameElse",Fe=T&&(be(T[_e])?T[_e].call(this,Q):T[_e]);return this.format(Fe||this.localeData().calendar(_e,this,Ci(Q)))},gt.clone=function OP(){return new G(this)},gt.diff=function _k(y,T,Q){var ae,_e,Fe;if(!this.isValid())return NaN;if(!(ae=od(y,this)).isValid())return NaN;switch(_e=6e4*(ae.utcOffset()-this.utcOffset()),T=Ge(T)){case"year":Fe=uh(this,ae)/12;break;case"month":Fe=uh(this,ae);break;case"quarter":Fe=uh(this,ae)/3;break;case"second":Fe=(this-ae)/1e3;break;case"minute":Fe=(this-ae)/6e4;break;case"hour":Fe=(this-ae)/36e5;break;case"day":Fe=(this-ae-_e)/864e5;break;case"week":Fe=(this-ae-_e)/6048e5;break;default:Fe=this-ae}return Q?Fe:on(Fe)},gt.endOf=function No(y){var T,Q;if(void 0===(y=Ge(y))||"millisecond"===y||!this.isValid())return this;switch(Q=this._isUTC?hh:o1,y){case"year":T=Q(this.year()+1,0,1)-1;break;case"quarter":T=Q(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":T=Q(this.year(),this.month()+1,1)-1;break;case"week":T=Q(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":T=Q(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":T=Q(this.year(),this.month(),this.date()+1)-1;break;case"hour":T=this._d.valueOf(),T+=tm-Nr(T+(this._isUTC?0:this.utcOffset()*sd),tm)-1;break;case"minute":T=this._d.valueOf(),T+=sd-Nr(T,sd)-1;break;case"second":T=this._d.valueOf(),T+=1e3-Nr(T,1e3)-1}return this._d.setTime(T),_.updateOffset(this,!0),this},gt.format=function Jf(y){y||(y=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var T=Je(this,y);return this.localeData().postformat(T)},gt.from=function yk(y,T){return this.isValid()&&(q(y)&&y.isValid()||Ci(y).isValid())?Ha({to:this,from:y}).locale(this.locale()).humanize(!T):this.localeData().invalidDate()},gt.fromNow=function ra(y){return this.from(Ci(),y)},gt.to=function em(y,T){return this.isValid()&&(q(y)&&y.isValid()||Ci(y).isValid())?Ha({from:this,to:y}).locale(this.locale()).humanize(!T):this.localeData().invalidDate()},gt.toNow=function bk(y){return this.to(Ci(),y)},gt.get=function Jc(y){return be(this[y=Ge(y)])?this[y]():this},gt.invalidAt=function BP(){return z(this).overflow},gt.isAfter=function LP(y,T){var Q=q(y)?y:Ci(y);return!(!this.isValid()||!Q.isValid())&&("millisecond"===(T=Ge(T)||"millisecond")?this.valueOf()>Q.valueOf():Q.valueOf()9999?Je(Q,T?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):be(Date.prototype.toISOString)?T?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Je(Q,"Z")):Je(Q,T?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gt.inspect=function vk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Q,ae,y="moment",T="";return this.isLocal()||(y=0===this.utcOffset()?"moment.utc":"moment.parseZone",T="Z"),Q="["+y+'("]',ae=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Q+ae+"-MM-DD[T]HH:mm:ss.SSS"+T+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(gt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gt.toJSON=function nm(){return this.isValid()?this.toISOString():null},gt.toString=function t1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gt.unix=function gh(){return Math.floor(this.valueOf()/1e3)},gt.valueOf=function wk(){return this._d.valueOf()-6e4*(this._offset||0)},gt.creationData=function kk(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gt.eraName=function Tk(){var y,T,Q,ae=this.localeData().eras();for(y=0,T=ae.length;ythis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gt.isLocal=function dk(){return!!this.isValid()&&!this._isUTC},gt.isUtcOffset=function DP(){return!!this.isValid()&&this._isUTC},gt.isUtc=Xy,gt.isUTC=Xy,gt.zoneAbbr=function Fk(){return this._isUTC?"UTC":""},gt.zoneName=function u1(){return this._isUTC?"Coordinated Universal Time":""},gt.dates=se("dates accessor is deprecated. Use date instead.",om),gt.months=se("months accessor is deprecated. Use month instead",eh),gt.years=se("years accessor is deprecated. Use year instead",tt),gt.zone=se("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ck(y,T){return null!=y?("string"!=typeof y&&(y=-y),this.utcOffset(y,T),this):-this.utcOffset()}),gt.isDSTShifted=se("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function xa(){if(!N(this._isDSTShifted))return this._isDSTShifted;var T,y={};return Y(y,this),(y=ul(y))._a?(T=y._isUTC?Z(y._a):Ci(y._a),this._isDSTShifted=this.isValid()&&function lk(y,T,Q){var Ke,ae=Math.min(y.length,T.length),_e=Math.abs(y.length-T.length),Fe=0;for(Ke=0;Ke0):this._isDSTShifted=!1,this._isDSTShifted});var ii=ue.prototype;function cd(y,T,Q,ae){var _e=ia(),Fe=Z().set(ae,T);return _e[Q](Fe,y)}function g1(y,T,Q){if(U(y)&&(T=y,y=void 0),y=y||"",null!=T)return cd(y,T,Q,"month");var ae,_e=[];for(ae=0;ae<12;ae++)_e[ae]=cd(y,ae,Q,"month");return _e}function dm(y,T,Q,ae){"boolean"==typeof y?(U(T)&&(Q=T,T=void 0),T=T||""):(Q=T=y,y=!1,U(T)&&(Q=T,T=void 0),T=T||"");var Ke,_e=ia(),Fe=y?_e._week.dow:0,Qt=[];if(null!=Q)return cd(T,(Q+Fe)%7,ae,"day");for(Ke=0;Ke<7;Ke++)Qt[Ke]=cd(T,(Ke+Fe)%7,ae,"day");return Qt}ii.calendar=function le(y,T,Q){var ae=this._calendar[y]||this._calendar.sameElse;return be(ae)?ae.call(T,Q):ae},ii.longDateFormat=function Nt(y){var T=this._longDateFormat[y],Q=this._longDateFormat[y.toUpperCase()];return T||!Q?T:(this._longDateFormat[y]=Q.match(ce).map(function(ae){return"MMMM"===ae||"MM"===ae||"DD"===ae||"dddd"===ae?ae.slice(1):ae}).join(""),this._longDateFormat[y])},ii.invalidDate=function Bt(){return this._invalidDate},ii.ordinal=function Xi(y){return this._ordinal.replace("%d",y)},ii.preparse=cm,ii.postformat=cm,ii.relativeTime=function zt(y,T,Q,ae){var _e=this._relativeTime[Q];return be(_e)?_e(y,T,Q,ae):_e.replace(/%d/i,y)},ii.pastFuture=function Le(y,T){var Q=this._relativeTime[y>0?"future":"past"];return be(Q)?Q(T):Q.replace(/%s/i,T)},ii.set=function De(y){var T,Q;for(Q in y)k(y,Q)&&(be(T=y[Q])?this[Q]=T:this["_"+Q]=T);this._config=y,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ii.eras=function Mk(y,T){var Q,ae,_e,Fe=this._eras||ia("en")._eras;for(Q=0,ae=Fe.length;Q=0)return Fe[ae]},ii.erasConvertYear=function l1(y,T){var Q=y.since<=y.until?1:-1;return void 0===T?_(y.since).year():_(y.since).year()+(T-y.offset)*Q},ii.erasAbbrRegex=function I(y){return k(this,"_erasAbbrRegex")||Mu.call(this),y?this._erasAbbrRegex:this._erasRegex},ii.erasNameRegex=function E(y){return k(this,"_erasNameRegex")||Mu.call(this),y?this._erasNameRegex:this._erasRegex},ii.erasNarrowRegex=function xr(y){return k(this,"_erasNarrowRegex")||Mu.call(this),y?this._erasNarrowRegex:this._erasRegex},ii.months=function Vf(y,T){return y?w(this._months)?this._months[y.month()]:this._months[(this._months.isFormat||Yy).test(T)?"format":"standalone"][y.month()]:w(this._months)?this._months:this._months.standalone},ii.monthsShort=function $f(y,T){return y?w(this._monthsShort)?this._monthsShort[y.month()]:this._monthsShort[Yy.test(T)?"format":"standalone"][y.month()]:w(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ii.monthsParse=function Hf(y,T,Q){var ae,_e,Fe;if(this._monthsParseExact)return Ii.call(this,y,T,Q);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ae=0;ae<12;ae++){if(_e=Z([2e3,ae]),Q&&!this._longMonthsParse[ae]&&(this._longMonthsParse[ae]=new RegExp("^"+this.months(_e,"").replace(".","")+"$","i"),this._shortMonthsParse[ae]=new RegExp("^"+this.monthsShort(_e,"").replace(".","")+"$","i")),!Q&&!this._monthsParse[ae]&&(Fe="^"+this.months(_e,"")+"|^"+this.monthsShort(_e,""),this._monthsParse[ae]=new RegExp(Fe.replace(".",""),"i")),Q&&"MMMM"===T&&this._longMonthsParse[ae].test(y))return ae;if(Q&&"MMM"===T&&this._shortMonthsParse[ae].test(y))return ae;if(!Q&&this._monthsParse[ae].test(y))return ae}},ii.monthsRegex=function fn(y){return this._monthsParseExact?(k(this,"_monthsRegex")||th.call(this),y?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=Qr),this._monthsStrictRegex&&y?this._monthsStrictRegex:this._monthsRegex)},ii.monthsShortRegex=function Rn(y){return this._monthsParseExact?(k(this,"_monthsRegex")||th.call(this),y?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=er),this._monthsShortStrictRegex&&y?this._monthsShortStrictRegex:this._monthsShortRegex)},ii.week=function Fo(y){return _u(y,this._week.dow,this._week.doy).week},ii.firstDayOfYear=function mP(){return this._week.doy},ii.firstDayOfWeek=function Xx(){return this._week.dow},ii.weekdays=function CP(y,T){var Q=w(this._weekdays)?this._weekdays:this._weekdays[y&&!0!==y&&this._weekdays.isFormat.test(T)?"format":"standalone"];return!0===y?zy(Q,this._week.dow):y?Q[y.day()]:Q},ii.weekdaysMin=function xP(y){return!0===y?zy(this._weekdaysMin,this._week.dow):y?this._weekdaysMin[y.day()]:this._weekdaysMin},ii.weekdaysShort=function wP(y){return!0===y?zy(this._weekdaysShort,this._week.dow):y?this._weekdaysShort[y.day()]:this._weekdaysShort},ii.weekdaysParse=function kP(y,T,Q){var ae,_e,Fe;if(this._weekdaysParseExact)return Ue.call(this,y,T,Q);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ae=0;ae<7;ae++){if(_e=Z([2e3,1]).day(ae),Q&&!this._fullWeekdaysParse[ae]&&(this._fullWeekdaysParse[ae]=new RegExp("^"+this.weekdays(_e,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ae]=new RegExp("^"+this.weekdaysShort(_e,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ae]=new RegExp("^"+this.weekdaysMin(_e,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ae]||(Fe="^"+this.weekdays(_e,"")+"|^"+this.weekdaysShort(_e,"")+"|^"+this.weekdaysMin(_e,""),this._weekdaysParse[ae]=new RegExp(Fe.replace(".",""),"i")),Q&&"dddd"===T&&this._fullWeekdaysParse[ae].test(y))return ae;if(Q&&"ddd"===T&&this._shortWeekdaysParse[ae].test(y))return ae;if(Q&&"dd"===T&&this._minWeekdaysParse[ae].test(y))return ae;if(!Q&&this._weekdaysParse[ae].test(y))return ae}},ii.weekdaysRegex=function Wy(y){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ah.call(this),y?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=bP),this._weekdaysStrictRegex&&y?this._weekdaysStrictRegex:this._weekdaysRegex)},ii.weekdaysShortRegex=function ik(y){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ah.call(this),y?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ro),this._weekdaysShortStrictRegex&&y?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ii.weekdaysMinRegex=function rk(y){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ah.call(this),y?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=pi),this._weekdaysMinStrictRegex&&y?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ii.isPM=function ln(y){return"p"===(y+"").toLowerCase().charAt(0)},ii.meridiem=function ta(y,T,Q){return y>11?Q?"pm":"PM":Q?"am":"AM"},Wl("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(y){var T=y%10;return y+(1===Yt(y%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}}),_.lang=se("moment.lang is deprecated. Use moment.locale instead.",Wl),_.langData=se("moment.langData is deprecated. Use moment.localeData instead.",ia);var Ya=Math.abs;function f1(y,T,Q,ae){var _e=Ha(T,Q);return y._milliseconds+=ae*_e._milliseconds,y._days+=ae*_e._days,y._months+=ae*_e._months,y._bubble()}function Tu(y){return y<0?Math.floor(y):Math.ceil(y)}function vh(y){return 4800*y/146097}function yh(y){return 146097*y/4800}function Bo(y){return function(){return this.as(y)}}var Bk=Bo("ms"),Vk=Bo("s"),Su=Bo("m"),um=Bo("h"),$k=Bo("d"),Hk=Bo("w"),$P=Bo("M"),HP=Bo("Q"),bh=Bo("y");function za(y){return function(){return this.isValid()?this._data[y]:NaN}}var v1=za("milliseconds"),y1=za("seconds"),dd=za("minutes"),Uk=za("hours"),ud=za("days"),pm=za("months"),Ch=za("years");var Wa=Math.round,Jl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jk(y,T,Q,ae,_e){return _e.relativeTime(T||1,!!Q,y,ae)}var Iu=Math.abs;function xs(y){return(y>0)-(y<0)||+y}function ec(){if(!this.isValid())return this.localeData().invalidDate();var ae,_e,Fe,Ke,In,xi,mr,ks,y=Iu(this._milliseconds)/1e3,T=Iu(this._days),Q=Iu(this._months),Qt=this.asSeconds();return Qt?(ae=on(y/60),_e=on(ae/60),y%=60,ae%=60,Fe=on(Q/12),Q%=12,Ke=y?y.toFixed(3).replace(/\.?0+$/,""):"",In=Qt<0?"-":"",xi=xs(this._months)!==xs(Qt)?"-":"",mr=xs(this._days)!==xs(Qt)?"-":"",ks=xs(this._milliseconds)!==xs(Qt)?"-":"",In+"P"+(Fe?xi+Fe+"Y":"")+(Q?xi+Q+"M":"")+(T?mr+T+"D":"")+(_e||ae||y?"T":"")+(_e?ks+_e+"H":"")+(ae?ks+ae+"M":"")+(y?ks+Ke+"S":"")):"P0D"}var Zn=Cu.prototype;return Zn.isValid=function Ca(){return this._isValid},Zn.abs=function Ok(){var y=this._data;return this._milliseconds=Ya(this._milliseconds),this._days=Ya(this._days),this._months=Ya(this._months),y.milliseconds=Ya(y.milliseconds),y.seconds=Ya(y.seconds),y.minutes=Ya(y.minutes),y.hours=Ya(y.hours),y.months=Ya(y.months),y.years=Ya(y.years),this},Zn.add=function Lk(y,T){return f1(this,y,T,1)},Zn.subtract=function mh(y,T){return f1(this,y,T,-1)},Zn.as=function Nk(y){if(!this.isValid())return NaN;var T,Q,ae=this._milliseconds;if("month"===(y=Ge(y))||"quarter"===y||"year"===y)switch(T=this._days+ae/864e5,Q=this._months+vh(T),y){case"month":return Q;case"quarter":return Q/3;case"year":return Q/12}else switch(T=this._days+Math.round(yh(this._months)),y){case"week":return T/7+ae/6048e5;case"day":return T+ae/864e5;case"hour":return 24*T+ae/36e5;case"minute":return 1440*T+ae/6e4;case"second":return 86400*T+ae/1e3;case"millisecond":return Math.floor(864e5*T)+ae;default:throw new Error("Unknown unit "+y)}},Zn.asMilliseconds=Bk,Zn.asSeconds=Vk,Zn.asMinutes=Su,Zn.asHours=um,Zn.asDays=$k,Zn.asWeeks=Hk,Zn.asMonths=$P,Zn.asQuarters=HP,Zn.asYears=bh,Zn.valueOf=function gl(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Yt(this._months/12):NaN},Zn._bubble=function _h(){var _e,Fe,Ke,Qt,In,y=this._milliseconds,T=this._days,Q=this._months,ae=this._data;return y>=0&&T>=0&&Q>=0||y<=0&&T<=0&&Q<=0||(y+=864e5*Tu(yh(Q)+T),T=0,Q=0),ae.milliseconds=y%1e3,_e=on(y/1e3),ae.seconds=_e%60,Fe=on(_e/60),ae.minutes=Fe%60,Ke=on(Fe/60),ae.hours=Ke%24,T+=on(Ke/24),Q+=In=on(vh(T)),T-=Tu(yh(In)),Qt=on(Q/12),Q%=12,ae.days=T,ae.months=Q,ae.years=Qt,this},Zn.clone=function m1(){return Ha(this)},Zn.get=function _1(y){return y=Ge(y),this.isValid()?this[y+"s"]():NaN},Zn.milliseconds=v1,Zn.seconds=y1,Zn.minutes=dd,Zn.hours=Uk,Zn.days=ud,Zn.weeks=function UP(){return on(this.days()/7)},Zn.months=pm,Zn.years=Ch,Zn.humanize=function hm(y,T){if(!this.isValid())return this.localeData().invalidDate();var _e,Fe,Q=!1,ae=Jl;return"object"==typeof y&&(T=y,y=!1),"boolean"==typeof y&&(Q=y),"object"==typeof T&&(ae=Object.assign({},Jl,T),null!=T.s&&null==T.ss&&(ae.ss=T.s-1)),Fe=function qa(y,T,Q,ae){var _e=Ha(y).abs(),Fe=Wa(_e.as("s")),Ke=Wa(_e.as("m")),Qt=Wa(_e.as("h")),In=Wa(_e.as("d")),xi=Wa(_e.as("M")),mr=Wa(_e.as("w")),ks=Wa(_e.as("y")),Oi=Fe<=Q.ss&&["s",Fe]||Fe0,Oi[4]=ae,jk.apply(null,Oi)}(this,!Q,ae,_e=this.localeData()),Q&&(Fe=_e.pastFuture(+this,Fe)),_e.postformat(Fe)},Zn.toISOString=ec,Zn.toString=ec,Zn.toJSON=ec,Zn.locale=ph,Zn.localeData=Ck,Zn.toIsoString=se("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ec),Zn.lang=r1,Ee("X",0,0,"unix"),Ee("x",0,0,"valueOf"),It("x",Sn),It("X",/[+-]?\d+(\.\d{1,3})?/),ni("X",function(y,T,Q){Q._d=new Date(1e3*parseFloat(y))}),ni("x",function(y,T,Q){Q._d=new Date(Yt(y))}),_.version="2.29.4",function M(y){C=y}(Ci),_.fn=gt,_.min=function Gf(){return Gl("isBefore",[].slice.call(arguments,0))},_.max=function Kl(){return Gl("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=Z,_.unix=function p1(y){return Ci(1e3*y)},_.months=function po(y,T){return g1(y,T,"months")},_.isDate=de,_.locale=Wl,_.invalid=K,_.duration=Ha,_.isMoment=q,_.weekdays=function nr(y,T,Q){return dm(y,T,Q,"weekdays")},_.parseZone=function h1(){return Ci.apply(null,arguments).parseZone()},_.localeData=ia,_.isDuration=wi,_.monthsShort=function hl(y,T){return g1(y,T,"monthsShort")},_.weekdaysMin=function Rk(y,T,Q){return dm(y,T,Q,"weekdaysMin")},_.defineLocale=dl,_.updateLocale=function si(y,T){if(null!=T){var Q,ae,_e=zf;null!=Ki[y]&&null!=Ki[y].parentLocale?Ki[y].set(ve(Ki[y]._config,T)):(null!=(ae=Wf(y))&&(_e=ae._config),T=ve(_e,T),null==ae&&(T.abbr=y),(Q=new ue(T)).parentLocale=Ki[y],Ki[y]=Q),Wl(y)}else null!=Ki[y]&&(null!=Ki[y].parentLocale?(Ki[y]=Ki[y].parentLocale,y===Wl()&&Wl(y)):null!=Ki[y]&&delete Ki[y]);return Ki[y]},_.locales=function qf(){return ie(Ki)},_.weekdaysShort=function Du(y,T,Q){return dm(y,T,Q,"weekdaysShort")},_.normalizeUnits=Ge,_.relativeTimeRounding=function Yk(y){return void 0===y?Wa:"function"==typeof y&&(Wa=y,!0)},_.relativeTimeThreshold=function Eu(y,T){return void 0!==Jl[y]&&(void 0===T?Jl[y]:(Jl[y]=T,"s"===y&&(Jl.ss=T-1),!0))},_.calendarFormat=function Jy(y,T){var Q=y.diff(T,"days",!0);return Q<-6?"sameElse":Q<-1?"lastWeek":Q<0?"lastDay":Q<1?"sameDay":Q<2?"nextDay":Q<7?"nextWeek":"sameElse"},_.prototype=gt,_.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,j;j=function(){return(()=>{"use strict";var __webpack_modules__=[(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),Object.defineProperty(R,"addLinkAttributes",{enumerable:!0,get:function(){return C.addLinkAttributes}}),Object.defineProperty(R,"getFilenameFromUrl",{enumerable:!0,get:function(){return C.getFilenameFromUrl}}),Object.defineProperty(R,"LinkTarget",{enumerable:!0,get:function(){return C.LinkTarget}}),Object.defineProperty(R,"loadScript",{enumerable:!0,get:function(){return C.loadScript}}),Object.defineProperty(R,"PDFDateString",{enumerable:!0,get:function(){return C.PDFDateString}}),Object.defineProperty(R,"RenderingCancelledException",{enumerable:!0,get:function(){return C.RenderingCancelledException}}),Object.defineProperty(R,"build",{enumerable:!0,get:function(){return _.build}}),Object.defineProperty(R,"getDocument",{enumerable:!0,get:function(){return _.getDocument}}),Object.defineProperty(R,"LoopbackPort",{enumerable:!0,get:function(){return _.LoopbackPort}}),Object.defineProperty(R,"PDFDataRangeTransport",{enumerable:!0,get:function(){return _.PDFDataRangeTransport}}),Object.defineProperty(R,"PDFWorker",{enumerable:!0,get:function(){return _.PDFWorker}}),Object.defineProperty(R,"version",{enumerable:!0,get:function(){return _.version}}),Object.defineProperty(R,"CMapCompressionType",{enumerable:!0,get:function(){return M.CMapCompressionType}}),Object.defineProperty(R,"createObjectURL",{enumerable:!0,get:function(){return M.createObjectURL}}),Object.defineProperty(R,"createPromiseCapability",{enumerable:!0,get:function(){return M.createPromiseCapability}}),Object.defineProperty(R,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return M.createValidAbsoluteUrl}}),Object.defineProperty(R,"InvalidPDFException",{enumerable:!0,get:function(){return M.InvalidPDFException}}),Object.defineProperty(R,"MissingPDFException",{enumerable:!0,get:function(){return M.MissingPDFException}}),Object.defineProperty(R,"OPS",{enumerable:!0,get:function(){return M.OPS}}),Object.defineProperty(R,"PasswordResponses",{enumerable:!0,get:function(){return M.PasswordResponses}}),Object.defineProperty(R,"PermissionFlag",{enumerable:!0,get:function(){return M.PermissionFlag}}),Object.defineProperty(R,"removeNullCharacters",{enumerable:!0,get:function(){return M.removeNullCharacters}}),Object.defineProperty(R,"shadow",{enumerable:!0,get:function(){return M.shadow}}),Object.defineProperty(R,"UnexpectedResponseException",{enumerable:!0,get:function(){return M.UnexpectedResponseException}}),Object.defineProperty(R,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return M.UNSUPPORTED_FEATURES}}),Object.defineProperty(R,"Util",{enumerable:!0,get:function(){return M.Util}}),Object.defineProperty(R,"VerbosityLevel",{enumerable:!0,get:function(){return M.VerbosityLevel}}),Object.defineProperty(R,"AnnotationLayer",{enumerable:!0,get:function(){return w.AnnotationLayer}}),Object.defineProperty(R,"apiCompatibilityParams",{enumerable:!0,get:function(){return x.apiCompatibilityParams}}),Object.defineProperty(R,"GlobalWorkerOptions",{enumerable:!0,get:function(){return k.GlobalWorkerOptions}}),Object.defineProperty(R,"renderTextLayer",{enumerable:!0,get:function(){return F.renderTextLayer}}),Object.defineProperty(R,"SVGGraphics",{enumerable:!0,get:function(){return N.SVGGraphics}});var C=j(1),_=j(5),M=j(2),w=j(19),x=j(9),k=j(12),F=j(21),N=j(22);{const{isNodeJS:X}=j(4);if(X){const ne=j(23).PDFNodeStream;(0,_.setPDFNetworkStreamFactory)(Z=>new ne(Z))}else{const ne=j(26).PDFNetworkStream;let Z;(0,C.isFetchSupported)()&&(Z=j(27).PDFFetchStream),(0,_.setPDFNetworkStreamFactory)(ge=>Z&&(0,C.isValidFetchUrl)(ge.url)?new Z(ge):new ne(ge))}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.addLinkAttributes=function ne(Y,{url:G,target:q,rel:oe,enabled:se=!0}={}){(0,C.assert)(G&&"string"==typeof G,'addLinkAttributes: A valid "url" parameter must provided.');const ke=(0,C.removeNullCharacters)(G);se?Y.href=Y.title=ke:(Y.href="",Y.title=`Disabled: ${ke}`,Y.onclick=()=>!1);let xe="";switch(q){case X.NONE:break;case X.SELF:xe="_self";break;case X.BLANK:xe="_blank";break;case X.PARENT:xe="_parent";break;case X.TOP:xe="_top"}Y.target=xe,Y.rel="string"==typeof oe?oe:_},R.deprecated=function K(Y){console.log("Deprecated API usage: "+Y)},R.getFilenameFromUrl=function Z(Y){const G=Y.indexOf("#"),q=Y.indexOf("?"),oe=Math.min(G>0?G:Y.length,q>0?q:Y.length);return Y.substring(Y.lastIndexOf("/",oe)+1,oe)},R.isFetchSupported=z,R.isValidFetchUrl=ee,R.loadScript=function te(Y,G=!1){return new Promise((q,oe)=>{const se=document.createElement("script");se.src=Y,se.onload=function(ke){G&&se.remove(),q(ke)},se.onerror=function(){oe(new Error(`Cannot load script at: ${se.src}`))},(document.head||document.documentElement).appendChild(se)})},R.StatTimer=R.RenderingCancelledException=R.PDFDateString=R.PageViewport=R.LinkTarget=R.DOMSVGFactory=R.DOMCMapReaderFactory=R.DOMCanvasFactory=R.DEFAULT_LINK_REL=R.BaseCMapReaderFactory=R.BaseCanvasFactory=void 0;var C=j(2);const _="noopener noreferrer nofollow";R.DEFAULT_LINK_REL=_;const M="http://www.w3.org/2000/svg";class w{constructor(){this.constructor===w&&(0,C.unreachable)("Cannot initialize BaseCanvasFactory.")}create(G,q){(0,C.unreachable)("Abstract method `create` called.")}reset(G,q,oe){if(!G.canvas)throw new Error("Canvas is not specified");if(q<=0||oe<=0)throw new Error("Invalid canvas size");G.canvas.width=q,G.canvas.height=oe}destroy(G){if(!G.canvas)throw new Error("Canvas is not specified");G.canvas.width=0,G.canvas.height=0,G.canvas=null,G.context=null}}R.BaseCanvasFactory=w,R.DOMCanvasFactory=class x extends w{constructor({ownerDocument:G=globalThis.document}={}){super(),this._document=G}create(G,q){if(G<=0||q<=0)throw new Error("Invalid canvas size");const oe=this._document.createElement("canvas"),se=oe.getContext("2d");return oe.width=G,oe.height=q,{canvas:oe,context:se}}};class k{constructor({baseUrl:G=null,isCompressed:q=!1}){this.constructor===k&&(0,C.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=G,this.isCompressed=q}fetch({name:G}){var q=this;return _asyncToGenerator(function*(){if(!q.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!G)throw new Error("CMap name must be specified.");const oe=q.baseUrl+G+(q.isCompressed?".bcmap":"");return q._fetchData(oe,q.isCompressed?C.CMapCompressionType.BINARY:C.CMapCompressionType.NONE).catch(ke=>{throw new Error(`Unable to load ${q.isCompressed?"binary ":""}CMap at: ${oe}`)})})()}_fetchData(G,q){(0,C.unreachable)("Abstract method `_fetchData` called.")}}R.BaseCMapReaderFactory=k,R.DOMCMapReaderFactory=class F extends k{_fetchData(G,q){var oe=this;return z()&&ee(G,document.baseURI)?fetch(G).then(function(){var se=_asyncToGenerator(function*(ke){if(!ke.ok)throw new Error(ke.statusText);let xe;return xe=oe.isCompressed?new Uint8Array(yield ke.arrayBuffer()):(0,C.stringToBytes)(yield ke.text()),{cMapData:xe,compressionType:q}});return function(ke){return se.apply(this,arguments)}}()):new Promise((se,ke)=>{const xe=new XMLHttpRequest;xe.open("GET",G,!0),this.isCompressed&&(xe.responseType="arraybuffer"),xe.onreadystatechange=()=>{if(xe.readyState===XMLHttpRequest.DONE){if(200===xe.status||0===xe.status){let be;if(this.isCompressed&&xe.response?be=new Uint8Array(xe.response):!this.isCompressed&&xe.responseText&&(be=(0,C.stringToBytes)(xe.responseText)),be)return void se({cMapData:be,compressionType:q})}ke(new Error(xe.statusText))}},xe.send(null)})}},R.DOMSVGFactory=class N{create(G,q){(0,C.assert)(G>0&&q>0,"Invalid SVG dimensions");const oe=document.createElementNS(M,"svg:svg");return oe.setAttribute("version","1.1"),oe.setAttribute("width",G+"px"),oe.setAttribute("height",q+"px"),oe.setAttribute("preserveAspectRatio","none"),oe.setAttribute("viewBox","0 0 "+G+" "+q),oe}createElement(G){return(0,C.assert)("string"==typeof G,"Invalid SVG element type"),document.createElementNS(M,G)}};class U{constructor({viewBox:G,scale:q,rotation:oe,offsetX:se=0,offsetY:ke=0,dontFlip:xe=!1}){this.viewBox=G,this.scale=q,this.rotation=oe,this.offsetX=se,this.offsetY=ke;const be=(G[2]+G[0])/2,De=(G[3]+G[1])/2;let ve,ue,ie,S,le,he,ce,me;switch(oe=(oe%=360)<0?oe+360:oe){case 180:ve=-1,ue=0,ie=0,S=1;break;case 90:ve=0,ue=1,ie=1,S=0;break;case 270:ve=0,ue=-1,ie=-1,S=0;break;case 0:ve=1,ue=0,ie=0,S=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}xe&&(ie=-ie,S=-S),0===ve?(le=Math.abs(De-G[1])*q+se,he=Math.abs(be-G[0])*q+ke,ce=Math.abs(G[3]-G[1])*q,me=Math.abs(G[2]-G[0])*q):(le=Math.abs(be-G[0])*q+se,he=Math.abs(De-G[1])*q+ke,ce=Math.abs(G[2]-G[0])*q,me=Math.abs(G[3]-G[1])*q),this.transform=[ve*q,ue*q,ie*q,S*q,le-ve*q*be-ie*q*De,he-ue*q*be-S*q*De],this.width=ce,this.height=me}clone({scale:G=this.scale,rotation:q=this.rotation,offsetX:oe=this.offsetX,offsetY:se=this.offsetY,dontFlip:ke=!1}={}){return new U({viewBox:this.viewBox.slice(),scale:G,rotation:q,offsetX:oe,offsetY:se,dontFlip:ke})}convertToViewportPoint(G,q){return C.Util.applyTransform([G,q],this.transform)}convertToViewportRectangle(G){const q=C.Util.applyTransform([G[0],G[1]],this.transform),oe=C.Util.applyTransform([G[2],G[3]],this.transform);return[q[0],q[1],oe[0],oe[1]]}convertToPdfPoint(G,q){return C.Util.applyInverseTransform([G,q],this.transform)}}R.PageViewport=U,R.RenderingCancelledException=class de extends C.BaseException{constructor(G,q){super(G),this.type=q}};const X={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function z(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&typeof ReadableStream<"u"}function ee(Y,G){try{const{protocol:q}=G?new URL(Y,G):new URL(Y);return"http:"===q||"https:"===q}catch{return!1}}let V;R.LinkTarget=X,R.StatTimer=class ge{constructor(){this.started=Object.create(null),this.times=[]}time(G){G in this.started&&(0,C.warn)(`Timer is already running for ${G}`),this.started[G]=Date.now()}timeEnd(G){G in this.started||(0,C.warn)(`Timer has not been started for ${G}`),this.times.push({name:G,start:this.started[G],end:Date.now()}),delete this.started[G]}toString(){const G=[];let q=0;for(const oe of this.times){const se=oe.name;se.length>q&&(q=se.length)}for(const oe of this.times){const se=oe.end-oe.start;G.push(`${oe.name.padEnd(q)} ${se}ms\n`)}return G.join("")}},R.PDFDateString=class L{static toDateObject(G){if(!G||!(0,C.isString)(G))return null;V||(V=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const q=V.exec(G);if(!q)return null;const oe=parseInt(q[1],10);let se=parseInt(q[2],10);se=se>=1&&se<=12?se-1:0;let ke=parseInt(q[3],10);ke=ke>=1&&ke<=31?ke:1;let xe=parseInt(q[4],10);xe=xe>=0&&xe<=23?xe:0;let be=parseInt(q[5],10);be=be>=0&&be<=59?be:0;let De=parseInt(q[6],10);De=De>=0&&De<=59?De:0;const ve=q[7]||"Z";let ue=parseInt(q[8],10);ue=ue>=0&&ue<=23?ue:0;let ie=parseInt(q[9],10)||0;return ie=ie>=0&&ie<=59?ie:0,"-"===ve?(xe+=ue,be+=ie):"+"===ve&&(xe-=ue,be-=ie),new Date(Date.UTC(oe,se,ke,xe,be,De))}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.arrayByteLength=Ft,R.arraysToBytes=function Bt(He){const Ne=He.length;if(1===Ne&&He[0]instanceof Uint8Array)return He[0];let ze=0;for(let Mn=0;MnNe}),He.promise=new Promise(function(ze,Ct){He.resolve=function(sn){Ne=!0,ze(sn)},He.reject=function(sn){Ne=!0,Ct(sn)}}),He},R.createValidAbsoluteUrl=function S(He,Ne){if(!He)return null;try{const ze=Ne?new URL(He,Ne):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}}(ze))return ze}catch{}return null},R.encodeToXmlString=function ao(He){const Ne=[];let ze=0;for(let Ct=0,sn=He.length;Ct55295&&(Mn<57344||Mn>65533)&&Ct++,ze=Ct+1}return 0===Ne.length?He:(ze"\n"===Ne?"\\n":"\r"===Ne?"\\r":`\\${Ne}`)},R.getModificationDate=function mu(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("")},R.getVerbosityLevel=function ke(){return oe},R.info=function xe(He){oe>=V.INFOS&&console.log(`Info: ${He}`)},R.isArrayBuffer=function Jc(He){return"object"==typeof He&&null!==He&&void 0!==He.byteLength},R.isArrayEqual=function Xp(He,Ne){return He.length===Ne.length&&He.every(function(ze,Ct){return ze===Ne[Ct]})},R.isAscii=function Cn(He){return/^[\x00-\x7F]*$/.test(He)},R.isBool=function Gr(He){return"boolean"==typeof He},R.isNum=function gs(He){return"number"==typeof He},R.isSameOrigin=function ue(He,Ne){let ze;try{if(ze=new URL(He),!ze.origin||"null"===ze.origin)return!1}catch{return!1}const Ct=new URL(Ne,ze);return ze.origin===Ct.origin},R.isString=function fs(He){return"string"==typeof He},R.objectFromEntries=function Xi(He){return Object.assign(Object.create(null),Object.fromEntries(He))},R.objectSize=function gn(He){return Object.keys(He).length},R.removeNullCharacters=function Ve(He){return"string"!=typeof He?(be("The argument for removeNullCharacters must be a string."),He):He.replace(Je,"")},R.setVerbosityLevel=function se(He){Number.isInteger(He)&&(oe=He)},R.shadow=le,R.string32=function Kt(He){return String.fromCharCode(He>>24&255,He>>16&255,He>>8&255,255&He)},R.stringToBytes=Nt,R.stringToPDFString=function yt(He){const Ne=He.length,ze=[];if("\xfe"===He[0]&&"\xff"===He[1])for(let Ct=2;Ct>8&255)),Ne.push(String.fromCharCode(255&sn))}return Ne.join("")},R.stringToUTF8String=function on(He){return decodeURIComponent(escape(He))},R.unreachable=De,R.utf8StringToString=function Yt(He){return unescape(encodeURIComponent(He))},R.warn=be,R.VerbosityLevel=R.Util=R.UNSUPPORTED_FEATURES=R.UnknownErrorException=R.UnexpectedResponseException=R.TextRenderingMode=R.StreamType=R.PermissionFlag=R.PasswordResponses=R.PasswordException=R.PageActionEventType=R.OPS=R.MissingPDFException=R.IsLittleEndianCached=R.IsEvalSupportedCached=R.InvalidPDFException=R.ImageKind=R.IDENTITY_MATRIX=R.FormatError=R.FontType=R.FONT_IDENTITY_MATRIX=R.DocumentActionEventType=R.createObjectURL=R.CMapCompressionType=R.BaseException=R.AnnotationType=R.AnnotationStateModelType=R.AnnotationReviewState=R.AnnotationReplyType=R.AnnotationMarkedState=R.AnnotationFlag=R.AnnotationFieldFlag=R.AnnotationBorderStyleType=R.AnnotationActionEventType=R.AbortException=void 0,j(3),R.IDENTITY_MATRIX=[1,0,0,1,0,0],R.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],R.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},R.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},R.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},R.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},R.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},R.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},R.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},R.AnnotationReplyType={GROUP:"Group",REPLY:"R"},R.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},R.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},R.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},R.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"},R.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},R.PageActionEventType={O:"PageOpen",C:"PageClose"},R.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},R.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const V={ERRORS:0,WARNINGS:1,INFOS:5};R.VerbosityLevel=V,R.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},R.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},R.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"},R.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let oe=V.WARNINGS;function be(He){oe>=V.WARNINGS&&console.log(`Warning: ${He}`)}function De(He){throw new Error(He)}function ve(He,Ne){He||De(Ne)}function le(He,Ne,ze){return Object.defineProperty(He,Ne,{value:ze,enumerable:!0,configurable:!0,writable:!1}),ze}const he=function(){function Ne(ze){this.constructor===Ne&&De("Cannot initialize BaseException."),this.message=ze,this.name=this.constructor.name}return Ne.prototype=new Error,Ne.constructor=Ne,Ne}();R.BaseException=he,R.PasswordException=class ce extends he{constructor(Ne,ze){super(Ne),this.code=ze}},R.UnknownErrorException=class me extends he{constructor(Ne,ze){super(Ne),this.details=ze}},R.InvalidPDFException=class Ce extends he{},R.MissingPDFException=class Pe extends he{},R.UnexpectedResponseException=class Ee extends he{constructor(Ne,ze){super(Ne),this.status=ze}},R.FormatError=class Be extends he{},R.AbortException=class je extends he{};const Je=/\x00/g;function Nt(He){ve("string"==typeof He,"Invalid argument for stringToBytes");const Ne=He.length,ze=new Uint8Array(Ne);for(let Ct=0;CtHe.toString(16).padStart(2,"0"));class Ge{static makeHexColor(Ne,ze,Ct){return`#${at[Ne]}${at[ze]}${at[Ct]}`}static transform(Ne,ze){return[Ne[0]*ze[0]+Ne[2]*ze[1],Ne[1]*ze[0]+Ne[3]*ze[1],Ne[0]*ze[2]+Ne[2]*ze[3],Ne[1]*ze[2]+Ne[3]*ze[3],Ne[0]*ze[4]+Ne[2]*ze[5]+Ne[4],Ne[1]*ze[4]+Ne[3]*ze[5]+Ne[5]]}static applyTransform(Ne,ze){return[Ne[0]*ze[0]+Ne[1]*ze[2]+ze[4],Ne[0]*ze[1]+Ne[1]*ze[3]+ze[5]]}static applyInverseTransform(Ne,ze){const Ct=ze[0]*ze[3]-ze[1]*ze[2];return[(Ne[0]*ze[3]-Ne[1]*ze[2]+ze[2]*ze[5]-ze[4]*ze[3])/Ct,(-Ne[0]*ze[1]+Ne[1]*ze[0]+ze[4]*ze[1]-ze[5]*ze[0])/Ct]}static getAxialAlignedBoundingBox(Ne,ze){const Ct=Ge.applyTransform(Ne,ze),sn=Ge.applyTransform(Ne.slice(2,4),ze),Mn=Ge.applyTransform([Ne[0],Ne[3]],ze),Tn=Ge.applyTransform([Ne[2],Ne[1]],ze);return[Math.min(Ct[0],sn[0],Mn[0],Tn[0]),Math.min(Ct[1],sn[1],Mn[1],Tn[1]),Math.max(Ct[0],sn[0],Mn[0],Tn[0]),Math.max(Ct[1],sn[1],Mn[1],Tn[1])]}static inverseTransform(Ne){const ze=Ne[0]*Ne[3]-Ne[1]*Ne[2];return[Ne[3]/ze,-Ne[1]/ze,-Ne[2]/ze,Ne[0]/ze,(Ne[2]*Ne[5]-Ne[4]*Ne[3])/ze,(Ne[4]*Ne[1]-Ne[5]*Ne[0])/ze]}static apply3dTransform(Ne,ze){return[Ne[0]*ze[0]+Ne[1]*ze[1]+Ne[2]*ze[2],Ne[3]*ze[0]+Ne[4]*ze[1]+Ne[5]*ze[2],Ne[6]*ze[0]+Ne[7]*ze[1]+Ne[8]*ze[2]]}static singularValueDecompose2dScale(Ne){const ze=[Ne[0],Ne[2],Ne[1],Ne[3]],Ct=Ne[0]*ze[0]+Ne[1]*ze[2],Tn=Ne[2]*ze[1]+Ne[3]*ze[3],Sn=(Ct+Tn)/2,Ao=Math.sqrt((Ct+Tn)*(Ct+Tn)-4*(Ct*Tn-(Ne[2]*ze[0]+Ne[3]*ze[2])*(Ne[0]*ze[1]+Ne[1]*ze[3])))/2,ed=Sn-Ao||1;return[Math.sqrt(Sn+Ao||1),Math.sqrt(ed)]}static normalizeRect(Ne){const ze=Ne.slice(0);return Ne[0]>Ne[2]&&(ze[0]=Ne[2],ze[2]=Ne[0]),Ne[1]>Ne[3]&&(ze[1]=Ne[3],ze[3]=Ne[1]),ze}static intersect(Ne,ze){function Ct(Sn,Ao){return Sn-Ao}const sn=[Ne[0],Ne[2],ze[0],ze[2]].sort(Ct),Mn=[Ne[1],Ne[3],ze[1],ze[3]].sort(Ct),Tn=[];return Ne=Ge.normalizeRect(Ne),ze=Ge.normalizeRect(ze),sn[0]===Ne[0]&&sn[1]===ze[0]||sn[0]===ze[0]&&sn[1]===Ne[0]?(Tn[0]=sn[1],Tn[2]=sn[2],Mn[0]===Ne[1]&&Mn[1]===ze[1]||Mn[0]===ze[1]&&Mn[1]===Ne[1]?(Tn[1]=Mn[1],Tn[3]=Mn[2],Tn):null):null}}R.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],sr=function(){const Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(Ct,sn,Mn=!1){if(!Mn&&URL.createObjectURL){const Sn=new Blob([Ct],{type:sn});return URL.createObjectURL(Sn)}let Tn=`data:${sn};base64,`;for(let Sn=0,Ao=Ct.length;Sn>2]+Ne[(3&_a)<<4|ed>>4]+Ne[Sn+1>6:64]+Ne[Sn+2{j(4)},(Se,R)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.isNodeJS=void 0;const j=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);R.isNodeJS=j},(__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(Se){createPDFNetworkStream=Se}function getDocument(Se){const R=new PDFDocumentLoadingTask;let j;if("string"==typeof Se)j={url:Se};else if((0,_util.isArrayBuffer)(Se))j={data:Se};else if(Se instanceof PDFDataRangeTransport)j={range:Se};else{if("object"!=typeof Se)throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!Se.url&&!Se.data&&!Se.range)throw new Error("Invalid parameter object: need either .data, .range or .url");j=Se}const C=Object.create(null);let _=null,M=null;for(const x in j)if("url"===x&&typeof window<"u")C[x]=new URL(j[x],window.location).href;else if("range"!==x)if("worker"!==x)if("data"!==x||j[x]instanceof Uint8Array)C[x]=j[x];else{const k=j[x];if("string"==typeof k)C[x]=(0,_util.stringToBytes)(k);else if("object"!=typeof k||null===k||isNaN(k.length)){if(!(0,_util.isArrayBuffer)(k))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");C[x]=new Uint8Array(k)}else C[x]=new Uint8Array(k)}else M=j[x];else _=j[x];if(C.rangeChunkSize=C.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,C.CMapReaderFactory=C.CMapReaderFactory||DefaultCMapReaderFactory,C.ignoreErrors=!0!==C.stopAtErrors,C.fontExtraProperties=!0===C.fontExtraProperties,C.pdfBug=!0===C.pdfBug,Number.isInteger(C.maxImageSize)||(C.maxImageSize=-1),"boolean"!=typeof C.isEvalSupported&&(C.isEvalSupported=!0),"boolean"!=typeof C.disableFontFace&&(C.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),typeof C.ownerDocument>"u"&&(C.ownerDocument=globalThis.document),"boolean"!=typeof C.disableRange&&(C.disableRange=!1),"boolean"!=typeof C.disableStream&&(C.disableStream=!1),"boolean"!=typeof C.disableAutoFetch&&(C.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(C.verbosity),!M){const x={verbosity:C.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};M=x.port?PDFWorker.fromPort(x):new PDFWorker(x),R._worker=M}const w=R.docId;return M.promise.then(function(){if(R.destroyed)throw new Error("Loading aborted");const x=_fetchDocument(M,C,_,w),k=new Promise(function(F){let N;_?N=new _transport_stream.PDFDataTransportStream({length:C.length,initialData:C.initialData,progressiveDone:C.progressiveDone,disableRange:C.disableRange,disableStream:C.disableStream},_):C.data||(N=createPDFNetworkStream({url:C.url,length:C.length,httpHeaders:C.httpHeaders,withCredentials:C.withCredentials,rangeChunkSize:C.rangeChunkSize,disableRange:C.disableRange,disableStream:C.disableStream})),F(N)});return Promise.all([x,k]).then(function([F,N]){if(R.destroyed)throw new Error("Loading aborted");const U=new _message_handler.MessageHandler(w,F,M.port);U.postMessageTransfers=M.postMessageTransfers;const de=new WorkerTransport(U,R,N,C);R._transport=de,U.send("Ready",null)})}).catch(R._capability.reject),R}function _fetchDocument(Se,R,j,C){return Se.destroyed?Promise.reject(new Error("Worker was destroyed")):(j&&(R.length=j.length,R.initialData=j.initialData,R.progressiveDone=j.progressiveDone),Se.messageHandler.sendWithPromise("GetDocRequest",{docId:C,apiVersion:"2.7.570",source:{data:R.data,url:R.url,password:R.password,disableAutoFetch:R.disableAutoFetch,rangeChunkSize:R.rangeChunkSize,length:R.length},maxImageSize:R.maxImageSize,disableFontFace:R.disableFontFace,postMessageTransfers:Se.postMessageTransfers,docBaseUrl:R.docBaseUrl,ignoreErrors:R.ignoreErrors,isEvalSupported:R.isEvalSupported,fontExtraProperties:R.fontExtraProperties}).then(function(_){if(Se.destroyed)throw new Error("Worker was destroyed");return _}))}exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const PDFDocumentLoadingTask=function(){let R=0;return class j{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+R++,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(R,j,C=!1){this.length=R,this.initialData=j,this.progressiveDone=C,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(R){this._rangeListeners.push(R)}addProgressListener(R){this._progressListeners.push(R)}addProgressiveReadListener(R){this._progressiveReadListeners.push(R)}addProgressiveDoneListener(R){this._progressiveDoneListeners.push(R)}onDataRange(R,j){for(const C of this._rangeListeners)C(R,j)}onDataProgress(R,j){this._readyCapability.promise.then(()=>{for(const C of this._progressListeners)C(R,j)})}onDataProgressiveRead(R){this._readyCapability.promise.then(()=>{for(const j of this._progressiveReadListeners)j(R)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const R of this._progressiveDoneListeners)R()})}transportReady(){this._readyCapability.resolve()}requestDataRange(R,j){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(R,j){this._pdfInfo=R,this._transport=j}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(R){return this._transport.getPage(R)}getPageIndex(R){return this._transport.getPageIndex(R)}getDestinations(){return this._transport.getDestinations()}getDestination(R){return this._transport.getDestination(R)}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(R){return this._transport.saveDocument(R)}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(R,j,C,_,M=!1){this._pageIndex=R,this._pageInfo=j,this._ownerDocument=_,this._transport=C,this._stats=M?new _display_utils.StatTimer:null,this._pdfBug=M,this.commonObjs=C.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:R,rotation:j=this.rotate,offsetX:C=0,offsetY:_=0,dontFlip:M=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:R,rotation:j,offsetX:C,offsetY:_,dontFlip:M})}getAnnotations({intent:R=null}={}){return(!this.annotationsPromise||this.annotationsIntent!==R)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,R),this.annotationsIntent=R),this.annotationsPromise}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}render({canvasContext:R,viewport:j,intent:C="display",enableWebGL:_=!1,renderInteractiveForms:M=!1,transform:w=null,imageLayer:x=null,canvasFactory:k=null,background:F=null,annotationStorage:N=null,optionalContentConfigPromise:U=null}){this._stats&&this._stats.time("Overall");const de="print"===C?"print":"display";this.pendingCleanup=!1,U||(U=this._transport.getOptionalContentConfig());let X=this._intentStates.get(de);X||(X=Object.create(null),this._intentStates.set(de,X)),X.streamReaderCancelTimeout&&(clearTimeout(X.streamReaderCancelTimeout),X.streamReaderCancelTimeout=null);const ne=k||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),Z=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:de,renderInteractiveForms:!0===M,annotationStorage:N?.getAll()||null}));const ge=te=>{const K=X.renderTasks.indexOf(z);K>=0&&X.renderTasks.splice(K,1),(this.cleanupAfterRender||"print"===de)&&(this.pendingCleanup=!0),this._tryCleanup(),te?(z.capability.reject(te),this._abortOperatorList({intentState:X,reason:te})):z.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},z=new InternalRenderTask({callback:ge,params:{canvasContext:R,viewport:j,transform:w,imageLayer:x,background:F},objs:this.objs,commonObjs:this.commonObjs,operatorList:X.operatorList,pageIndex:this._pageIndex,canvasFactory:ne,webGLContext:Z,useRequestAnimationFrame:"print"!==de,pdfBug:this._pdfBug});X.renderTasks||(X.renderTasks=[]),X.renderTasks.push(z);const ee=z.task;return Promise.all([X.displayReadyCapability.promise,U]).then(([te,K])=>{this.pendingCleanup?ge():(this._stats&&this._stats.time("Rendering"),z.initializeGraphics({transparency:te,optionalContentConfig:K}),z.operatorListChanged())}).catch(ge),ee}getOperatorList(){const j="oplist";let _,C=this._intentStates.get(j);return C||(C=Object.create(null),this._intentStates.set(j,C)),C.opListReadCapability||(_=Object.create(null),_.operatorListChanged=function R(){if(C.operatorList.lastChunk){C.opListReadCapability.resolve(C.operatorList);const M=C.renderTasks.indexOf(_);M>=0&&C.renderTasks.splice(M,1)}},C.opListReadCapability=(0,_util.createPromiseCapability)(),C.renderTasks=[],C.renderTasks.push(_),C.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:j})),C.opListReadCapability.promise}streamTextContent({normalizeWhitespace:R=!1,disableCombineTextItems:j=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===R,combineTextItems:!0!==j},{highWaterMark:100,size:_=>_.items.length})}getTextContent(R={}){const j=this.streamTextContent(R);return new Promise(function(C,_){const w=j.getReader(),x={items:[],styles:Object.create(null)};!function M(){w.read().then(function({value:k,done:F}){F?C(x):(Object.assign(x.styles,k.styles),x.items.push(...k.items),M())},_)}()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const R=[];for(const[j,C]of this._intentStates)if(this._abortOperatorList({intentState:C,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==j)for(const _ of C.renderTasks)R.push(_.completed),_.cancel();return this.objs.clear(),this.annotationsPromise=null,this._jsActionsPromise=null,this.pendingCleanup=!1,Promise.all(R)}cleanup(R=!1){return this.pendingCleanup=!0,this._tryCleanup(R)}_tryCleanup(R=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:j,operatorList:C}of this._intentStates.values())if(0!==j.length||!C.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.annotationsPromise=null,this._jsActionsPromise=null,R&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(R,j){const C=this._intentStates.get(j);!C||(this._stats&&this._stats.timeEnd("Page Request"),C.displayReadyCapability&&C.displayReadyCapability.resolve(R))}_renderPageChunk(R,j){for(let C=0,_=R.length;C<_;C++)j.operatorList.fnArray.push(R.fnArray[C]),j.operatorList.argsArray.push(R.argsArray[C]);j.operatorList.lastChunk=R.lastChunk;for(let C=0;C{C.read().then(({value:w,done:x})=>{x?_.streamReader=null:this._transport.destroyed||(this._renderPageChunk(w,_),M())},w=>{if(_.streamReader=null,!this._transport.destroyed){if(_.operatorList){_.operatorList.lastChunk=!0;for(let x=0;x<_.renderTasks.length;x++)_.renderTasks[x].operatorListChanged();this._tryCleanup()}if(_.displayReadyCapability)_.displayReadyCapability.reject(w);else{if(!_.opListReadCapability)throw w;_.opListReadCapability.reject(w)}}})};M()}_abortOperatorList({intentState:R,reason:j,force:C=!1}){if((0,_util.assert)(j instanceof Error||"object"==typeof j&&null!==j,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),R.streamReader){if(!C){if(0!==R.renderTasks.length)return;if(j instanceof _display_utils.RenderingCancelledException)return void(R.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:R,reason:j,force:!0}),R.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(R.streamReader.cancel(new _util.AbortException(j?.message)),R.streamReader=null,!this._transport.destroyed){for(const[_,M]of this._intentStates)if(M===R){this._intentStates.delete(_);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(R=!0){this._listeners=[],this._defer=R,this._deferred=Promise.resolve(void 0)}postMessage(R,j){if(!this._defer)return void this._listeners.forEach(w=>{w.call(this,{data:R})});const _=new WeakMap,M={data:function C(w){if("object"!=typeof w||null===w)return w;if(_.has(w))return _.get(w);let x,k;if((x=w.buffer)&&(0,_util.isArrayBuffer)(x))return k=j?.includes(x)?new w.constructor(x,w.byteOffset,w.byteLength):new w.constructor(w),_.set(w,k),k;k=Array.isArray(w)?[]:{},_.set(w,k);for(const F in w){let N,U=w;for(;!(N=Object.getOwnPropertyDescriptor(U,F));)U=Object.getPrototypeOf(U);if(!(typeof N.value>"u")){if("function"==typeof N.value){if(w.hasOwnProperty&&w.hasOwnProperty(F))throw new Error(`LoopbackPort.postMessage - cannot clone: ${w[F]}`);continue}k[F]=C(N.value)}}return k}(R)};this._deferred.then(()=>{this._listeners.forEach(w=>{w.call(this,M)})})}addEventListener(R,j){this._listeners.push(j)}removeEventListener(R,j){const C=this._listeners.indexOf(j);this._listeners.splice(C,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 Se=document.currentScript?.src;Se&&(fallbackWorkerSrc=Se.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 Se;try{Se=globalThis.pdfjsWorker?.WorkerMessageHandler}catch{}return Se||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 Se(){return _ref2.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(Se){return URL.createObjectURL(new Blob(["importScripts('"+Se+"');"]))}class PDFWorker{constructor({name:R=null,port:j=null,verbosity:C=(0,_util.getVerbosityLevel)()}={}){if(j&&pdfWorkerPorts.has(j))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=R,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=C,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,j)return pdfWorkerPorts.set(j,this),void this._initializeFromPort(j);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(R){this._port=R,this._messageHandler=new _message_handler.MessageHandler("main","worker",R),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(typeof Worker<"u"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let R=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,R)||(R=createCDNWrapper(new URL(R,window.location).href));const j=new Worker(R),C=new _message_handler.MessageHandler("main","worker",j),_=()=>{j.removeEventListener("error",M),C.destroy(),j.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},M=()=>{this._webWorker||_()};j.addEventListener("error",M),C.on("test",x=>{j.removeEventListener("error",M),this.destroyed?_():x?(this._messageHandler=C,this._port=j,this._webWorker=j,x.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),C.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),C.destroy(),j.terminate())}),C.on("ready",x=>{if(j.removeEventListener("error",M),this.destroyed)_();else try{w()}catch{this._setupFakeWorker()}});const w=()=>{const x=new Uint8Array([this.postMessageTransfers?255:0]);try{C.send("test",x,[x.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),x[0]=0,C.send("test",x)}};return void w()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(R=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const j=new LoopbackPort;this._port=j;const C="fake"+nextFakeWorkerId++,_=new _message_handler.MessageHandler(C+"_worker",C,j);R.setup(_,j);const M=new _message_handler.MessageHandler(C,C+"_worker",j);this._messageHandler=M,this._readyCapability.resolve(),M.send("configure",{verbosity:this.verbosity})}).catch(R=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${R.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(R){if(!R||!R.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(R.port)?pdfWorkerPorts.get(R.port):new PDFWorker(R)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(R,j,C,_){this.messageHandler=R,this.loadingTask=j,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:j.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=C,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 R=[];this.pageCache.forEach(function(C){C&&R.push(C._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const j=this.messageHandler.sendWithPromise("Terminate",null);if(R.push(j),this.loadingTaskSettled){const C=this.loadingTask.promise.then(_=>{_.hasOwnProperty("annotationStorage")&&_.annotationStorage.resetModified()}).catch(()=>{});R.push(C)}return Promise.all(R).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:R,loadingTask:j}=this;R.on("GetReader",(C,_)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=M=>{this._lastProgress={loaded:M.loaded,total:M.total}},_.onPull=()=>{this._fullReader.read().then(function({value:M,done:w}){w?_.close():((0,_util.assert)((0,_util.isArrayBuffer)(M),"GetReader - expected an ArrayBuffer."),_.enqueue(new Uint8Array(M),1,[M]))}).catch(M=>{_.error(M)})},_.onCancel=M=>{this._fullReader.cancel(M),_.ready.catch(w=>{if(!this.destroyed)throw w})}}),R.on("ReaderHeadersReady",C=>{const _=(0,_util.createPromiseCapability)(),M=this._fullReader;return M.headersReady.then(()=>{(!M.isStreamingSupported||!M.isRangeSupported)&&(this._lastProgress&&j.onProgress&&j.onProgress(this._lastProgress),M.onProgress=w=>{j.onProgress&&j.onProgress({loaded:w.loaded,total:w.total})}),_.resolve({isStreamingSupported:M.isStreamingSupported,isRangeSupported:M.isRangeSupported,contentLength:M.contentLength})},_.reject),_.promise}),R.on("GetRangeReader",(C,_)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const M=this._networkStream.getRangeReader(C.begin,C.end);M?(_.onPull=()=>{M.read().then(function({value:w,done:x}){x?_.close():((0,_util.assert)((0,_util.isArrayBuffer)(w),"GetRangeReader - expected an ArrayBuffer."),_.enqueue(new Uint8Array(w),1,[w]))}).catch(w=>{_.error(w)})},_.onCancel=w=>{M.cancel(w),_.ready.catch(x=>{if(!this.destroyed)throw x})}):_.close()}),R.on("GetDoc",({pdfInfo:C})=>{this._numPages=C.numPages,j._capability.resolve(new PDFDocumentProxy(C,this))}),R.on("DocException",function(C){let _;switch(C.name){case"PasswordException":_=new _util.PasswordException(C.message,C.code);break;case"InvalidPDFException":_=new _util.InvalidPDFException(C.message);break;case"MissingPDFException":_=new _util.MissingPDFException(C.message);break;case"UnexpectedResponseException":_=new _util.UnexpectedResponseException(C.message,C.status);break;case"UnknownErrorException":_=new _util.UnknownErrorException(C.message,C.details)}_ instanceof Error||(0,_util.warn)("DocException - expected a valid Error."),j._capability.reject(_)}),R.on("PasswordRequest",C=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),j.onPassword){const _=M=>{this._passwordCapability.resolve({password:M})};try{j.onPassword(_,C.code)}catch(M){this._passwordCapability.reject(M)}}else this._passwordCapability.reject(new _util.PasswordException(C.message,C.code));return this._passwordCapability.promise}),R.on("DataLoaded",C=>{j.onProgress&&j.onProgress({loaded:C.length,total:C.length}),this.downloadInfoCapability.resolve(C)}),R.on("StartRenderPage",C=>{this.destroyed||this.pageCache[C.pageIndex]._startRenderPage(C.transparency,C.intent)}),R.on("commonobj",C=>{if(this.destroyed)return;const[_,M,w]=C;if(!this.commonObjs.has(_))switch(M){case"Font":const x=this._params;if("error"in w){const N=w.error;(0,_util.warn)(`Error during font loading: ${N}`),this.commonObjs.resolve(_,N);break}let k=null;x.pdfBug&&globalThis.FontInspector?.enabled&&(k={registerFont(N,U){globalThis.FontInspector.fontAdded(N,U)}});const F=new _font_loader.FontFaceObject(w,{isEvalSupported:x.isEvalSupported,disableFontFace:x.disableFontFace,ignoreErrors:x.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:k});this.fontLoader.bind(F).catch(N=>R.sendWithPromise("FontFallback",{id:_})).finally(()=>{!x.fontExtraProperties&&F.data&&(F.data=null),this.commonObjs.resolve(_,F)});break;case"FontPath":case"Image":this.commonObjs.resolve(_,w);break;default:throw new Error(`Got unknown common object type ${M}`)}}),R.on("obj",C=>{if(this.destroyed)return;const[_,M,w,x]=C,k=this.pageCache[M];if(!k.objs.has(_)){if("Image"!==w)throw new Error(`Got unknown object type ${w}`);k.objs.resolve(_,x),x?.data?.length>8e6&&(k.cleanupAfterRender=!0)}}),R.on("DocProgress",C=>{this.destroyed||j.onProgress&&j.onProgress({loaded:C.loaded,total:C.total})}),R.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),R.on("FetchBuiltInCMap",(C,_)=>{if(this.destroyed)return void _.error(new Error("Worker was destroyed"));let M=!1;_.onPull=()=>{M?_.close():(M=!0,this.CMapReaderFactory.fetch(C).then(function(w){_.enqueue(w,1,[w.cMapData.buffer])}).catch(function(w){_.error(w)}))}})}_onUnsupportedFeature({featureId:R}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(R)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(R){if(!Number.isInteger(R)||R<=0||R>this._numPages)return Promise.reject(new Error("Invalid page request"));const j=R-1;if(j in this.pagePromises)return this.pagePromises[j];const C=this.messageHandler.sendWithPromise("GetPage",{pageIndex:j}).then(_=>{if(this.destroyed)throw new Error("Transport destroyed");const M=new PDFPageProxy(j,_,this,this._params.ownerDocument,this._params.pdfBug);return this.pageCache[j]=M,M});return this.pagePromises[j]=C,C}getPageIndex(R){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:R}).catch(function(j){return Promise.reject(new Error(j))})}getAnnotations(R,j){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:R,intent:j})}saveDocument(R){return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:R?.getAll()||null,filename:this._fullReader?.filename??null}).finally(()=>{R&&R.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(R){return"string"!=typeof R?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:R})}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(R){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:R})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(R=>new _optional_content_config.OptionalContentConfig(R))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(R=>({info:R[0],metadata:R[1]?new _metadata.Metadata(R[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 R=0,j=this.pageCache.length;R{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&&R.delete(_._canvas),_.callback())))})()}}}(),version="2.7.570";exports.version=version;const build="f2c7338b0";exports.build=build},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.FontLoader=R.FontFaceObject=void 0;var C=j(2);class _{constructor({docId:k,onUnsupportedFeature:F,ownerDocument:N=globalThis.document}){this.constructor===_&&(0,C.unreachable)("Cannot initialize BaseFontLoader."),this.docId=k,this._onUnsupportedFeature=F,this._document=N,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(k){this.nativeFontFaces.push(k),this._document.fonts.add(k)}insertRule(k){let F=this.styleElement;F||(F=this.styleElement=this._document.createElement("style"),F.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(F));const N=F.sheet;N.insertRule(k,N.cssRules.length)}clear(){this.nativeFontFaces.forEach(k=>{this._document.fonts.delete(k)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(k){var F=this;return _asyncToGenerator(function*(){if(k.attached||k.missingFile)return;if(k.attached=!0,F.isFontLoadingAPISupported){const U=k.createNativeFontFace();if(U){F.addNativeFontFace(U);try{yield U.loaded}catch(de){throw F._onUnsupportedFeature({featureId:C.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,C.warn)(`Failed to load font '${U.family}': '${de}'.`),k.disableFontFace=!0,de}}return}const N=k.createFontFaceRule();if(N){if(F.insertRule(N),F.isSyncFontLoadingSupported)return;yield new Promise(U=>{const de=F._queueLoadingCallback(U);F._prepareFontLoadEvent([N],[k],de)})}})()}_queueLoadingCallback(k){(0,C.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){return(0,C.shadow)(this,"isFontLoadingAPISupported",!!this._document?.fonts)}get isSyncFontLoadingSupported(){(0,C.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,C.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(k,F,N){(0,C.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let M;R.FontLoader=M,R.FontLoader=M=class extends _{constructor(k){super(k),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let k=!1;return(typeof navigator>"u"||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(k=!0),(0,C.shadow)(this,"isSyncFontLoadingSupported",k)}_queueLoadingCallback(k){const N=this.loadingContext,U={id:"pdfjs-font-loading-"+N.nextRequestId++,done:!1,complete:function F(){for((0,C.assert)(!U.done,"completeRequest() cannot be called twice."),U.done=!0;N.requests.length>0&&N.requests[0].done;){const de=N.requests.shift();setTimeout(de.callback,0)}},callback:k};return N.requests.push(U),U}get _loadTestFont(){return(0,C.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(k,F,N){function U(xe,be){return xe.charCodeAt(be)<<24|xe.charCodeAt(be+1)<<16|xe.charCodeAt(be+2)<<8|255&xe.charCodeAt(be+3)}function de(xe,be,De,ve){return xe.substring(0,be)+ve+xe.substring(be+De)}let X,ne;const Z=this._document.createElement("canvas");Z.width=1,Z.height=1;const ge=Z.getContext("2d");let z=0;const te=`lt${Date.now()}${this.loadTestFontId++}`;let K=this._loadTestFont;K=de(K,976,te.length,te);const Y=1482184792;let G=U(K,16);for(X=0,ne=te.length-3;X30)return(0,C.warn)("Load test font never loaded."),void be();ge.font="30px "+xe,ge.fillText(".",0,20),ge.getImageData(0,0,1,1).data[3]>0?be():setTimeout(ee.bind(null,xe,be))}(te,()=>{this._document.body.removeChild(ke),N.complete()})}},R.FontFaceObject=class w{constructor(k,{isEvalSupported:F=!0,disableFontFace:N=!1,ignoreErrors:U=!1,onUnsupportedFeature:de=null,fontRegistry:X=null}){this.compiledGlyphs=Object.create(null);for(const ne in k)this[ne]=k[ne];this.isEvalSupported=!1!==F,this.disableFontFace=!0===N,this.ignoreErrors=!0===U,this._onUnsupportedFeature=de,this.fontRegistry=X}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const k=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),k}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const k=(0,C.bytesToString)(new Uint8Array(this.data)),F=`url(data:${this.mimetype};base64,${btoa(k)});`,N=`@font-face {font-family:"${this.loadedName}";src:${F}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,F),N}getPathGenerator(k,F){if(void 0!==this.compiledGlyphs[F])return this.compiledGlyphs[F];let N,U;try{N=k.get(this.loadedName+"_path_"+F)}catch(de){if(!this.ignoreErrors)throw de;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:C.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,C.warn)(`getPathGenerator - ignoring character: "${de}".`),this.compiledGlyphs[F]=function(X,ne){}}if(this.isEvalSupported&&C.IsEvalSupportedCached.value){let de,X="";for(let ne=0,Z=N.length;ne{Object.defineProperty(R,"__esModule",{value:!0}),R.NodeCMapReaderFactory=R.NodeCanvasFactory=void 0;var C=j(1),_=j(4),M=j(2);let w=class{constructor(){(0,M.unreachable)("Not implemented: NodeCanvasFactory")}};R.NodeCanvasFactory=w;let x=class{constructor(){(0,M.unreachable)("Not implemented: NodeCMapReaderFactory")}};R.NodeCMapReaderFactory=x,_.isNodeJS&&(R.NodeCanvasFactory=w=class extends C.BaseCanvasFactory{create(k,F){if(k<=0||F<=0)throw new Error("Invalid canvas size");const U=__webpack_require__(3414).createCanvas(k,F);return{canvas:U,context:U.getContext("2d")}}},R.NodeCMapReaderFactory=x=class extends C.BaseCMapReaderFactory{_fetchData(k,F){return new Promise((N,U)=>{__webpack_require__(172).readFile(k,(X,ne)=>{!X&&ne?N({cMapData:new Uint8Array(ne),compressionType:F}):U(new Error(X))})})}})},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.AnnotationStorage=void 0;var C=j(2);R.AnnotationStorage=class _{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getOrCreateValue(w,x){return this._storage.has(w)?this._storage.get(w):(this._storage.set(w,x),x)}setValue(w,x){const k=this._storage.get(w);let F=!1;if(void 0!==k)for(const[N,U]of Object.entries(x))k[N]!==U&&(F=!0,k[N]=U);else this._storage.set(w,x),F=!0;F&&this._setModified()}getAll(){return 0===this._storage.size?null:(0,C.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())}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.apiCompatibilityParams=void 0;var C=j(4);const _=Object.create(null);C.isNodeJS&&(_.disableFontFace=!0);const M=Object.freeze(_);R.apiCompatibilityParams=M},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.CanvasGraphics=void 0;var C=j(2),_=j(11);const x=4096,N=16;function U(ge){ge.mozCurrentTransform||(ge._originalSave=ge.save,ge._originalRestore=ge.restore,ge._originalRotate=ge.rotate,ge._originalScale=ge.scale,ge._originalTranslate=ge.translate,ge._originalTransform=ge.transform,ge._originalSetTransform=ge.setTransform,ge._transformMatrix=ge._transformMatrix||[1,0,0,1,0,0],ge._transformStack=[],Object.defineProperty(ge,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(ge,"mozCurrentTransformInverse",{get:function(){const ee=this._transformMatrix,te=ee[0],K=ee[1],V=ee[2],L=ee[3],Y=ee[4],G=ee[5],q=te*L-K*V,oe=K*V-te*L;return[L/q,K/oe,V/oe,te/q,(L*Y-V*G)/oe,(K*Y-te*G)/q]}}),ge.save=function(){const ee=this._transformMatrix;this._transformStack.push(ee),this._transformMatrix=ee.slice(0,6),this._originalSave()},ge.restore=function(){const ee=this._transformStack.pop();ee&&(this._transformMatrix=ee,this._originalRestore())},ge.translate=function(ee,te){const K=this._transformMatrix;K[4]=K[0]*ee+K[2]*te+K[4],K[5]=K[1]*ee+K[3]*te+K[5],this._originalTranslate(ee,te)},ge.scale=function(ee,te){const K=this._transformMatrix;K[0]=K[0]*ee,K[1]=K[1]*ee,K[2]=K[2]*te,K[3]=K[3]*te,this._originalScale(ee,te)},ge.transform=function(ee,te,K,V,L,Y){const G=this._transformMatrix;this._transformMatrix=[G[0]*ee+G[2]*te,G[1]*ee+G[3]*te,G[0]*K+G[2]*V,G[1]*K+G[3]*V,G[0]*L+G[2]*Y+G[4],G[1]*L+G[3]*Y+G[5]],ge._originalTransform(ee,te,K,V,L,Y)},ge.setTransform=function(ee,te,K,V,L,Y){this._transformMatrix=[ee,te,K,V,L,Y],ge._originalSetTransform(ee,te,K,V,L,Y)},ge.rotate=function(ee){const te=Math.cos(ee),K=Math.sin(ee),V=this._transformMatrix;this._transformMatrix=[V[0]*te+V[2]*K,V[1]*te+V[3]*K,V[0]*-K+V[2]*te,V[1]*-K+V[3]*te,V[4],V[5]],this._originalRotate(ee)})}const de=function(){function z(ee){this.canvasFactory=ee,this.cache=Object.create(null)}return z.prototype={getCanvas:function(te,K,V,L){let Y;return void 0!==this.cache[te]?(Y=this.cache[te],this.canvasFactory.reset(Y,K,V),Y.context.setTransform(1,0,0,1,0,0)):(Y=this.canvasFactory.create(K,V),this.cache[te]=Y),L&&U(Y.context),Y},clear(){for(const ee in this.cache)this.canvasFactory.destroy(this.cache[ee]),delete this.cache[ee]}},z}(),ne=function(){function z(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=C.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=C.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=C.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 z.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(te,K){this.x=te,this.y=K}},z}(),Z=function(){function te(ue,ie,S,le,he,ce,me){this.ctx=ue,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=le,this.webGLContext=he,this.imageLayer=ce,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 de(this.canvasFactory),ue&&U(ue),this._cachedGetSinglePixelWidth=null}function K(ue,ie,S=null){if(typeof ImageData<"u"&&ie instanceof ImageData)return void ue.putImageData(ie,0,0);const le=ie.height,he=ie.width,ce=le%N,me=(le-ce)/N,Ce=0===ce?me:me+1,Pe=ue.createImageData(he,N);let Be,Ee=0;const je=ie.data,Je=Pe.data;let Ve,dt,Nt,Ft,Bt,Kt,gn,Xi;if(S)switch(S.length){case 1:Bt=S[0],Kt=S[0],gn=S[0],Xi=S[0];break;case 4:Bt=S[0],Kt=S[1],gn=S[2],Xi=S[3]}if(ie.kind===C.ImageKind.GRAYSCALE_1BPP){const Gi=je.byteLength,zt=new Uint32Array(Je.buffer,0,Je.byteLength>>2),Le=zt.length,et=he+7>>3;let at=4294967295,Ge=C.IsLittleEndianCached.value?4278190080:255;for(Xi&&255===Xi[0]&&0===Xi[255]&&([at,Ge]=[Ge,at]),Ve=0;Veet?he:8*Tt-7,Cn=-8&an;let ti=0,on=0;for(;yt>=1}for(;Be=me&&(Nt=ce,Ft=he*Nt),Be=0,dt=Ft;dt--;)Je[Be++]=je[Ee++],Je[Be++]=je[Ee++],Je[Be++]=je[Ee++],Je[Be++]=255;if(Gi)for(let zt=0;zt>=1}ue.putImageData(Ce,0,je*N)}}function L(ue,ie){const S=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let le=0,he=S.length;le>8,ue[ce-2]=ue[ce-2]*me+S*Ce>>8,ue[ce-1]=ue[ce-1]*me+le*Ce>>8}}}function q(ue,ie,S){const le=ue.length;for(let ce=3;ce>8]>>8:ie[he]*ce>>16}}function ke(ue,ie,S,le){const he=ie.canvas,ce=ie.context;ue.setTransform(ie.scaleX,0,0,ie.scaleY,ie.offsetX,ie.offsetY);const me=ie.backdrop||null;if(!ie.transferMap&&le.isEnabled){const Ce=le.composeSMask({layer:S.canvas,mask:he,properties:{subtype:ie.subtype,backdrop:me}});return ue.setTransform(1,0,0,1,0,0),void ue.drawImage(Ce,ie.offsetX,ie.offsetY)}(function se(ue,ie,S,le,he,ce,me){const Ce=!!ce,Pe=Ce?ce[0]:0,Ee=Ce?ce[1]:0,Be=Ce?ce[2]:0;let je;je="Luminosity"===he?oe:q;const Ve=Math.min(le,Math.ceil(1048576/S));for(let dt=0;dt10&&"function"==typeof le,Be=Ee?Date.now()+15:0;let je=0;const Je=this.commonObjs,Ve=this.objs;let dt;for(;;){if(void 0!==he&&Ce===he.nextBreakPoint)return he.breakIt(Ce,le),Ce;if(dt=me[Ce],dt!==C.OPS.dependency)this[dt].apply(this,ce[Ce]);else for(const Nt of ce[Ce]){const Ft=Nt.startsWith("g_")?Je:Ve;if(!Ft.has(Nt))return Ft.get(Nt,le),Ce}if(Ce++,Ce===Pe)return Ce;if(Ee&&++je>10){if(Date.now()>Be)return le(),Ce;je=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=xe[ie]},setLineJoin:function(ie){this.ctx.lineJoin=be[ie]},setMiterLimit:function(ie){this.ctx.miterLimit=ie},setDash:function(ie,S){const le=this.ctx;void 0!==le.setLineDash&&(le.setLineDash(ie),le.lineDashOffset=S)},setRenderingIntent(ue){},setFlatness(ue){},setGState:function(ie){for(let S=0,le=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,ce=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,ie.canvas.width,ie.canvas.height,!0),me=this.ctx,Ce=me.mozCurrentTransform;this.ctx.save();const Pe=ce.context;Pe.scale(1/ie.scaleX,1/ie.scaleY),Pe.translate(-ie.offsetX,-ie.offsetY),Pe.transform.apply(Pe,Ce),ie.startTransformInverse=Pe.mozCurrentTransformInverse,L(me,Pe),this.ctx=Pe,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(),ke(this.ctx,this.current.activeSMask,ie,this.webGLContext),this.ctx.restore(),this.ctx.save(),L(ie,this.ctx),this.current.resumeSMaskCtx=ie;const S=C.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(),ke(this.ctx,this.current.activeSMask,ie,this.webGLContext),this.ctx.restore(),L(ie,this.ctx);const S=C.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,le,he,ce,me){this.ctx.transform(ie,S,le,he,ce,me),this._cachedGetSinglePixelWidth=null},constructPath:function(ie,S){const le=this.ctx,he=this.current;let ce=he.x,me=he.y;for(let Ce=0,Pe=0,Ee=ie.length;Ce=Ce?(S.resetTransform(),S.lineWidth=Math.round(this._combinedScaleFactor)):S.lineWidth=Math.max(me,Ce),S.stroke(),S.restore()}else{const he=this.getSinglePixelWidth();he<0&&-he>=this.current.lineWidth?(S.save(),S.resetTransform(),S.lineWidth=Math.round(this._combinedScaleFactor),S.stroke(),S.restore()):(S.lineWidth=Math.max(he,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,le=this.current.fillColor;let ce=!1;this.current.patternFill&&(S.save(),this.baseTransform&&S.setTransform.apply(S,this.baseTransform),S.fillStyle=le.getPattern(S,this),ce=!0),this.contentVisible&&(this.pendingEOFill?(S.fill("evenodd"),this.pendingEOFill=!1):S.fill()),ce&&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=De},eoClip:function(){this.pendingClip=ve},beginText:function(){this.current.textMatrix=C.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 le=0;le100&&(Ee=100),this.current.fontSizeScale=S/Ee,this.ctx.font=`${Ce} ${me} ${Ee}px ${Pe}`},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,le,he,ce,me){this.current.textMatrix=[ie,S,le,he,ce,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(ue,ie,S,le,he){const ce=this.ctx,me=this.current,Ce=me.font,Pe=me.textRenderingMode,Ee=me.fontSize/me.fontSizeScale,Be=Pe&C.TextRenderingMode.FILL_STROKE_MASK,je=!!(Pe&C.TextRenderingMode.ADD_TO_PATH_FLAG),Je=me.patternFill&&!Ce.missingFile;let Ve;(Ce.disableFontFace||je||Je)&&(Ve=Ce.getPathGenerator(this.commonObjs,ue)),Ce.disableFontFace||Je?(ce.save(),ce.translate(ie,S),ce.beginPath(),Ve(ce,Ee),le&&ce.setTransform.apply(ce,le),(Be===C.TextRenderingMode.FILL||Be===C.TextRenderingMode.FILL_STROKE)&&ce.fill(),(Be===C.TextRenderingMode.STROKE||Be===C.TextRenderingMode.FILL_STROKE)&&(he&&(ce.resetTransform(),ce.lineWidth=Math.round(this._combinedScaleFactor)),ce.stroke()),ce.restore()):((Be===C.TextRenderingMode.FILL||Be===C.TextRenderingMode.FILL_STROKE)&&ce.fillText(ue,ie,S),(Be===C.TextRenderingMode.STROKE||Be===C.TextRenderingMode.FILL_STROKE)&&(he?(ce.save(),ce.moveTo(ie,S),ce.resetTransform(),ce.lineWidth=Math.round(this._combinedScaleFactor),ce.strokeText(ue,0,0),ce.restore()):ce.strokeText(ue,ie,S))),je&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:ce.mozCurrentTransform,x:ie,y:S,fontSize:Ee,addToPath:Ve})},get isFontSubpixelAAEnabled(){const{context:ue}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);ue.scale(1.5,1),ue.fillText("I",0,10);const ie=ue.getImageData(0,0,10,10).data;let S=!1;for(let le=3;le0&&ie[le]<255){S=!0;break}return(0,C.shadow)(this,"isFontSubpixelAAEnabled",S)},showText:function(ie){const S=this.current,le=S.font;if(le.isType3Font)return this.showType3Text(ie);const he=S.fontSize;if(0===he)return;const ce=this.ctx,me=S.fontSizeScale,Ce=S.charSpacing,Pe=S.wordSpacing,Ee=S.fontDirection,Be=S.textHScale*Ee,je=ie.length,Je=le.vertical,Ve=Je?1:-1,dt=le.defaultVMetrics,Nt=he*S.fontMatrix[0],Ft=S.textRenderingMode===C.TextRenderingMode.FILL&&!le.disableFontFace&&!S.patternFill;let Bt;if(ce.save(),S.patternFill){ce.save();const Le=S.fillColor.getPattern(ce,this);Bt=ce.mozCurrentTransform,ce.restore(),ce.fillStyle=Le}ce.transform.apply(ce,S.textMatrix),ce.translate(S.x,S.y+S.textRise),ce.scale(Be,Ee>0?-1:1);let Kt=S.lineWidth,gn=!1;const Xi=S.textMatrixScale;if(0===Xi||0===Kt){const Le=S.textRenderingMode&C.TextRenderingMode.FILL_STROKE_MASK;(Le===C.TextRenderingMode.STROKE||Le===C.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,Kt=this.getSinglePixelWidth(),gn=Kt<0)}else Kt/=Xi;1!==me&&(ce.scale(me,me),Kt/=me),ce.lineWidth=Kt;let zt,Gi=0;for(zt=0;zt0){const on=1e3*ce.measureText(Ge).width/he*me;if(Cnnew te(me,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)},he)}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,le){const he=C.Util.makeHexColor(ie,S,le);this.ctx.strokeStyle=he,this.current.strokeColor=he},setFillRGBColor:function(ie,S,le){const he=C.Util.makeHexColor(ie,S,le);this.ctx.fillStyle=he,this.current.fillColor=he,this.current.patternFill=!1},shadingFill:function(ie){if(!this.contentVisible)return;const S=this.ctx;this.save();const le=(0,_.getShadingPatternFromIR)(ie);S.fillStyle=le.getPattern(S,this,!0);const he=S.mozCurrentTransformInverse;if(he){const ce=S.canvas,me=ce.width,Ce=ce.height,Pe=C.Util.applyTransform([0,0],he),Ee=C.Util.applyTransform([0,Ce],he),Be=C.Util.applyTransform([me,0],he),je=C.Util.applyTransform([me,Ce],he),Je=Math.min(Pe[0],Ee[0],Be[0],je[0]),Ve=Math.min(Pe[1],Ee[1],Be[1],je[1]),dt=Math.max(Pe[0],Ee[0],Be[0],je[0]),Nt=Math.max(Pe[1],Ee[1],Be[1],je[1]);this.ctx.fillRect(Je,Ve,dt-Je,Nt-Ve)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,C.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,C.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,C.info)("TODO: Support non-isolated groups."),ie.knockout&&(0,C.warn)("Knockout groups not supported.");const le=S.mozCurrentTransform;if(ie.matrix&&S.transform.apply(S,ie.matrix),!ie.bbox)throw new Error("Bounding box is required.");let he=C.Util.getAxialAlignedBoundingBox(ie.bbox,S.mozCurrentTransform);he=C.Util.intersect(he,[0,0,S.canvas.width,S.canvas.height])||[0,0,0,0];const me=Math.floor(he[0]),Ce=Math.floor(he[1]);let Pe=Math.max(Math.ceil(he[2])-me,1),Ee=Math.max(Math.ceil(he[3])-Ce,1),Be=1,je=1;Pe>x&&(Be=Pe/x,Pe=x),Ee>x&&(je=Ee/x,Ee=x);let Je="groupAt"+this.groupLevel;ie.smask&&(Je+="_smask_"+this.smaskCounter++%2);const Ve=this.cachedCanvases.getCanvas(Je,Pe,Ee,!0),dt=Ve.context;dt.scale(1/Be,1/je),dt.translate(-me,-Ce),dt.transform.apply(dt,le),ie.smask?this.smaskStack.push({canvas:Ve.canvas,context:dt,offsetX:me,offsetY:Ce,scaleX:Be,scaleY:je,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,Ce),S.scale(Be,je)),L(S,dt),this.ctx=dt,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,le){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,le)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(ie){if(!this.contentVisible)return;const S=this.ctx,le=ie.width,he=ie.height,ce=this.current.fillColor,me=this.current.patternFill,Ce=this.processingType3;if(Ce&&void 0===Ce.compiled&&(Ce.compiled=le<=1e3&&he<=1e3?function X(ge){const ee=ge.width,te=ge.height,K=ee+1;let V,L,Y,G;const q=new Uint8Array(K*(te+1)),oe=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),se=ee+7&-8,ke=ge.data,xe=new Uint8Array(se*te);let be=0;for(V=0,L=ke.length;V0;)xe[be++]=S&le?0:255,le>>=1}let De=0;for(be=0,0!==xe[be]&&(q[0]=1,++De),Y=1;Y>2)+(xe[be+1]?4:0)+(xe[be-se+1]?8:0),oe[S]&&(q[G+Y]=oe[S],++De),be++;if(xe[be-se]!==xe[be]&&(q[G+Y]=xe[be]?2:4,++De),De>1e3)return null}for(be=se*(te-1),G=V*K,0!==xe[be]&&(q[G]=8,++De),Y=1;Y1e3)return null;const ve=new Int32Array([0,K,-1,0,-K,0,0,0,1]),ue=[];for(V=0;De&&V<=te;V++){let S=V*K;const le=S+ee;for(;S>4,q[S]&=me>>2|me<<2),he.push(S%K),he.push(S/K|0),q[S]||--De}while(ce!==S);ue.push(he),--V}return function(S){S.save(),S.scale(1/ee,-1/te),S.translate(0,-te),S.beginPath();for(let le=0,he=ue.length;le2&&Nt>1||je>2&&Ft>1;){let Kt=Nt,gn=Ft;Pe>2&&Nt>1&&(Kt=Math.ceil(Nt/2),Pe/=Nt/Kt),je>2&&Ft>1&&(gn=Math.ceil(Ft/2),je/=Ft/gn),Ve=this.cachedCanvases.getCanvas(Bt,Kt,gn),dt=Ve.context,dt.clearRect(0,0,Kt,gn),dt.drawImage(Je,0,0,Nt,Ft,0,0,Kt,gn),Je=Ve.canvas,Nt=Kt,Ft=gn,Bt="prescale1"===Bt?"prescale2":"prescale1"}if(he.drawImage(Je,0,0,Nt,Ft,0,-le,S,le),this.imageLayer){const Kt=this.getCanvasPosition(0,-le);this.imageLayer.appendImage({imgData:ie,left:Kt[0],top:Kt[1],width:S/ce[0],height:le/ce[3]})}this.restore()},paintInlineImageXObjectGroup:function(ie,S){if(!this.contentVisible)return;const le=this.ctx,he=ie.width,ce=ie.height,me=this.cachedCanvases.getCanvas("inlineImage",he,ce);K(me.context,ie,this.current.transferMaps);for(let Pe=0,Ee=S.length;Pe1?-this._combinedScaleFactor*he:ie>Number.EPSILON?1.0000001*he:1}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(ie,S){const le=this.ctx.mozCurrentTransform;return[le[0]*ie+le[2]*S+le[4],le[1]*ie+le[3]*S+le[5]]},isContentVisible:function(){for(let ie=this.markedContentStack.length-1;ie>=0;ie--)if(!this.markedContentStack[ie].visible)return!1;return!0}};for(const ue in C.OPS)te.prototype[C.OPS[ue]]=te.prototype[ue];return te}();R.CanvasGraphics=Z},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.getShadingPatternFromIR=function x(F){const N=_[F[0]];if(!N)throw new Error(`Unknown IR type: ${F[0]}`);return N.fromIR(F)},R.TilingPattern=void 0;var C=j(2);const _={};function M(F,N){if(!N||typeof Path2D>"u")return;const U=N[2]-N[0],de=N[3]-N[1],X=new Path2D;X.rect(N[0],N[1],U,de),F.clip(X)}_.RadialAxial={fromIR:function(N){const U=N[1],de=N[2],X=N[3],ne=N[4],Z=N[5],ge=N[6],z=N[7];return{getPattern:function(te){let K;M(te,de),"axial"===U?K=te.createLinearGradient(ne[0],ne[1],Z[0],Z[1]):"radial"===U&&(K=te.createRadialGradient(ne[0],ne[1],ge,Z[0],Z[1],z));for(let V=0,L=X.length;VV[ge+1]&&(q=Z,Z=ge,ge=q,q=ee,ee=te,te=q),V[ge+1]>V[z+1]&&(q=ge,ge=z,z=q,q=te,te=K,K=q),V[Z+1]>V[ge+1]&&(q=Z,Z=ge,ge=q,q=ee,ee=te,te=q);const oe=(V[Z]+ne.offsetX)*ne.scaleX,se=(V[Z+1]+ne.offsetY)*ne.scaleY,ke=(V[ge]+ne.offsetX)*ne.scaleX,xe=(V[ge+1]+ne.offsetY)*ne.scaleY,be=(V[z]+ne.offsetX)*ne.scaleX,De=(V[z+1]+ne.offsetY)*ne.scaleY;if(se>=De)return;const ve=L[ee],ue=L[ee+1],ie=L[ee+2],S=L[te],le=L[te+1],he=L[te+2],ce=L[K],me=L[K+1],Ce=L[K+2],Pe=Math.round(se),Ee=Math.round(De);let Be,je,Je,Ve,dt,Nt,Ft,Bt;for(let Kt=Pe;Kt<=Ee;Kt++){if(KtDe?1:xe===De?0:(xe-Kt)/(xe-De),Be=ke-(ke-be)*Le,je=S-(S-ce)*Le,Je=le-(le-me)*Le,Ve=he-(he-Ce)*Le}let gn;gn=KtDe?1:(se-Kt)/(se-De),dt=oe-(oe-be)*gn,Nt=ve-(ve-ce)*gn,Ft=ue-(ue-me)*gn,Bt=ie-(ie-Ce)*gn;const Xi=Math.round(Math.min(Be,dt)),Gi=Math.round(Math.max(Be,dt));let zt=G*Kt+4*Xi;for(let Le=Xi;Le<=Gi;Le++)gn=(Be-Le)/(Be-dt),gn<0?gn=0:gn>1&&(gn=1),Y[zt++]=je-(je-Nt)*gn|0,Y[zt++]=Je-(Je-Ft)*gn|0,Y[zt++]=Ve-(Ve-Bt)*gn|0,Y[zt++]=255}}function U(X,ne,Z){const ge=ne.coords,z=ne.colors;let ee,te;switch(ne.type){case"lattice":const K=ne.verticesPerRow,V=Math.floor(ge.length/K)-1,L=K-1;for(ee=0;ee=z?ee=z:ge=ee/ne,{scale:ge,size:ee}},clipBbox:function(ne,Z,ge,z,ee,te){Array.isArray(Z)&&4===Z.length&&(ne.ctx.rect(ge,z,ee-ge,te-z),ne.clip(),ne.endPath())},setFillAndStrokeStyleToContext:function(ne,Z,ge){const z=ne.ctx,ee=ne.current;switch(Z){case 1:const te=this.ctx;z.fillStyle=te.fillStyle,z.strokeStyle=te.strokeStyle,ee.fillColor=te.fillStyle,ee.strokeColor=te.strokeStyle;break;case 2:const K=C.Util.makeHexColor(ge[0],ge[1],ge[2]);z.fillStyle=K,z.strokeStyle=K,ee.fillColor=K,ee.strokeColor=K;break;default:throw new C.FormatError(`Unsupported paint type: ${Z}`)}},getPattern:function(ne,Z){(ne=this.ctx).setTransform.apply(ne,this.baseTransform),ne.transform.apply(ne,this.matrix);const ge=this.createPatternCanvas(Z);return ne.createPattern(ge,"repeat")}},de}();R.TilingPattern=k},(Se,R)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.GlobalWorkerOptions=void 0;const j=Object.create(null);R.GlobalWorkerOptions=j,j.workerPort=void 0===j.workerPort?null:j.workerPort,j.workerSrc=void 0===j.workerSrc?"":j.workerSrc},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.MessageHandler=void 0;var C=j(2);function w(k){if("object"!=typeof k||null===k)return k;switch(k.name){case"AbortException":return new C.AbortException(k.message);case"MissingPDFException":return new C.MissingPDFException(k.message);case"UnexpectedResponseException":return new C.UnexpectedResponseException(k.message,k.status);case"UnknownErrorException":return new C.UnknownErrorException(k.message,k.details);default:return new C.UnknownErrorException(k.message,k.toString())}}R.MessageHandler=class x{constructor(F,N,U){this.sourceName=F,this.targetName=N,this.comObj=U,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=de=>{const X=de.data;if(X.targetName!==this.sourceName)return;if(X.stream)return void this._processStreamMessage(X);if(X.callback){const Z=X.callbackId,ge=this.callbackCapabilities[Z];if(!ge)throw new Error(`Cannot resolve callback ${Z}`);if(delete this.callbackCapabilities[Z],1===X.callback)ge.resolve(X.data);else{if(2!==X.callback)throw new Error("Unexpected callback case");ge.reject(w(X.reason))}return}const ne=this.actionHandler[X.action];if(!ne)throw new Error(`Unknown action from worker: ${X.action}`);if(X.callbackId){const Z=this.sourceName,ge=X.sourceName;new Promise(function(z){z(ne(X.data))}).then(function(z){U.postMessage({sourceName:Z,targetName:ge,callback:1,callbackId:X.callbackId,data:z})},function(z){U.postMessage({sourceName:Z,targetName:ge,callback:2,callbackId:X.callbackId,reason:w(z)})})}else X.streamId?this._createStreamSink(X):ne(X.data)},U.addEventListener("message",this._onComObjOnMessage)}on(F,N){const U=this.actionHandler;if(U[F])throw new Error(`There is already an actionName called "${F}"`);U[F]=N}send(F,N,U){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:F,data:N},U)}sendWithPromise(F,N,U){const de=this.callbackId++,X=(0,C.createPromiseCapability)();this.callbackCapabilities[de]=X;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:F,callbackId:de,data:N},U)}catch(ne){X.reject(ne)}return X.promise}sendWithStream(F,N,U,de){const X=this.streamId++,ne=this.sourceName,Z=this.targetName,ge=this.comObj;return new ReadableStream({start:z=>{const ee=(0,C.createPromiseCapability)();return this.streamControllers[X]={controller:z,startCall:ee,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:ne,targetName:Z,action:F,streamId:X,data:N,desiredSize:z.desiredSize},de),ee.promise},pull:z=>{const ee=(0,C.createPromiseCapability)();return this.streamControllers[X].pullCall=ee,ge.postMessage({sourceName:ne,targetName:Z,stream:6,streamId:X,desiredSize:z.desiredSize}),ee.promise},cancel:z=>{(0,C.assert)(z instanceof Error,"cancel must have a valid reason");const ee=(0,C.createPromiseCapability)();return this.streamControllers[X].cancelCall=ee,this.streamControllers[X].isClosed=!0,ge.postMessage({sourceName:ne,targetName:Z,stream:1,streamId:X,reason:w(z)}),ee.promise}},U)}_createStreamSink(F){const N=this,U=this.actionHandler[F.action],de=F.streamId,X=this.sourceName,ne=F.sourceName,Z=this.comObj,ge={enqueue(z,ee=1,te){if(this.isCancelled)return;const K=this.desiredSize;this.desiredSize-=ee,K>0&&this.desiredSize<=0&&(this.sinkCapability=(0,C.createPromiseCapability)(),this.ready=this.sinkCapability.promise),N._postMessage({sourceName:X,targetName:ne,stream:4,streamId:de,chunk:z},te)},close(){this.isCancelled||(this.isCancelled=!0,Z.postMessage({sourceName:X,targetName:ne,stream:3,streamId:de}),delete N.streamSinks[de])},error(z){(0,C.assert)(z instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,Z.postMessage({sourceName:X,targetName:ne,stream:5,streamId:de,reason:w(z)}))},sinkCapability:(0,C.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:F.desiredSize,ready:null};ge.sinkCapability.resolve(),ge.ready=ge.sinkCapability.promise,this.streamSinks[de]=ge,new Promise(function(z){z(U(F.data,ge))}).then(function(){Z.postMessage({sourceName:X,targetName:ne,stream:8,streamId:de,success:!0})},function(z){Z.postMessage({sourceName:X,targetName:ne,stream:8,streamId:de,reason:w(z)})})}_processStreamMessage(F){const N=F.streamId,U=this.sourceName,de=F.sourceName,X=this.comObj;switch(F.stream){case 8:F.success?this.streamControllers[N].startCall.resolve():this.streamControllers[N].startCall.reject(w(F.reason));break;case 7:F.success?this.streamControllers[N].pullCall.resolve():this.streamControllers[N].pullCall.reject(w(F.reason));break;case 6:if(!this.streamSinks[N]){X.postMessage({sourceName:U,targetName:de,stream:7,streamId:N,success:!0});break}this.streamSinks[N].desiredSize<=0&&F.desiredSize>0&&this.streamSinks[N].sinkCapability.resolve(),this.streamSinks[N].desiredSize=F.desiredSize;const{onPull:ne}=this.streamSinks[F.streamId];new Promise(function(ge){ge(ne&&ne())}).then(function(){X.postMessage({sourceName:U,targetName:de,stream:7,streamId:N,success:!0})},function(ge){X.postMessage({sourceName:U,targetName:de,stream:7,streamId:N,reason:w(ge)})});break;case 4:if((0,C.assert)(this.streamControllers[N],"enqueue should have stream controller"),this.streamControllers[N].isClosed)break;this.streamControllers[N].controller.enqueue(F.chunk);break;case 3:if((0,C.assert)(this.streamControllers[N],"close should have stream controller"),this.streamControllers[N].isClosed)break;this.streamControllers[N].isClosed=!0,this.streamControllers[N].controller.close(),this._deleteStreamController(N);break;case 5:(0,C.assert)(this.streamControllers[N],"error should have stream controller"),this.streamControllers[N].controller.error(w(F.reason)),this._deleteStreamController(N);break;case 2:F.success?this.streamControllers[N].cancelCall.resolve():this.streamControllers[N].cancelCall.reject(w(F.reason)),this._deleteStreamController(N);break;case 1:if(!this.streamSinks[N])break;const{onCancel:Z}=this.streamSinks[F.streamId];new Promise(function(ge){ge(Z&&Z(w(F.reason)))}).then(function(){X.postMessage({sourceName:U,targetName:de,stream:2,streamId:N,success:!0})},function(ge){X.postMessage({sourceName:U,targetName:de,stream:2,streamId:N,reason:w(ge)})}),this.streamSinks[N].sinkCapability.reject(w(F.reason)),this.streamSinks[N].isCancelled=!0,delete this.streamSinks[N];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(F){var N=this;return _asyncToGenerator(function*(){yield Promise.allSettled([N.streamControllers[F].startCall,N.streamControllers[F].pullCall,N.streamControllers[F].cancelCall].map(function(U){return U&&U.promise})),delete N.streamControllers[F]})()}_postMessage(F,N){N&&this.postMessageTransfers?this.comObj.postMessage(F,N):this.comObj.postMessage(F)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.Metadata=void 0;var C=j(2),_=j(15);R.Metadata=class M{constructor(x){(0,C.assert)("string"==typeof x,"Metadata: input is not a string"),x=this._repair(x);const F=new _.SimpleXMLParser({lowerCaseName:!0}).parseFromString(x);this._metadataMap=new Map,F&&this._parse(F),this._data=x}_repair(x){return x.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(k,F){const N=F.replace(/\\([0-3])([0-7])([0-7])/g,function(de,X,ne,Z){return String.fromCharCode(64*X+8*ne+1*Z)}).replace(/&(amp|apos|gt|lt|quot);/g,function(de,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 U="";for(let de=0,X=N.length;de=32&&ne<127&&60!==ne&&62!==ne&&38!==ne?String.fromCharCode(ne):"&#x"+(65536+ne).toString(16).substring(1)+";"}return">"+U})}_getSequence(x){const k=x.nodeName;return"rdf:bag"!==k&&"rdf:seq"!==k&&"rdf:alt"!==k?null:x.childNodes.filter(F=>"rdf:li"===F.nodeName)}_getCreators(x){if("dc:creator"!==x.nodeName)return!1;if(!x.hasChildNodes())return!0;const F=this._getSequence(x.childNodes[0])||[];return this._metadataMap.set(x.nodeName,F.map(N=>N.textContent.trim())),!0}_parse(x){let k=x.documentElement;if("rdf:rdf"!==k.nodeName)for(k=k.firstChild;k&&"rdf:rdf"!==k.nodeName;)k=k.nextSibling;if(k&&"rdf:rdf"===k.nodeName&&k.hasChildNodes())for(const F of k.childNodes)if("rdf:description"===F.nodeName)for(const N of F.childNodes){const U=N.nodeName;"#text"!==U&&(this._getCreators(N)||this._metadataMap.set(U,N.textContent.trim()))}}getRaw(){return this._data}get(x){return this._metadataMap.get(x)??null}getAll(){return(0,C.objectFromEntries)(this._metadataMap)}has(x){return this._metadataMap.has(x)}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.SimpleXMLParser=R.SimpleDOMNode=void 0;var C=j(2);function M(N,U){const de=N[U];return" "===de||"\n"===de||"\r"===de||"\t"===de}class k{constructor(U,de){this.nodeName=U,this.nodeValue=de,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const U=this.parentNode.childNodes;if(!U)return;const de=U.indexOf(this);return-1!==de?U[de+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(function(U){return U.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}searchNode(U,de){if(de>=U.length)return this;const X=U[de],ne=[];let Z=this;for(;;){if(X.name===Z.nodeName){if(0!==X.pos){if(0===ne.length)return null;{const[ge]=ne.pop();let z=0;for(const ee of ge.childNodes)if(X.name===ee.nodeName){if(z===X.pos)return ee.searchNode(U,de+1);z++}return Z.searchNode(U,de+1)}}{const ge=Z.searchNode(U,de+1);if(null!==ge)return ge}}if(Z.childNodes&&0!==Z.childNodes.length)ne.push([Z,0]),Z=Z.childNodes[0];else{if(0===ne.length)return null;for(;0!==ne.length;){const[ge,z]=ne.pop(),ee=z+1;if(ee");for(const de of this.childNodes)de.dump(U);U.push(``)}else U.push(this.nodeValue?`>${(0,C.encodeToXmlString)(this.nodeValue)}`:"/>")}else U.push((0,C.encodeToXmlString)(this.nodeValue))}}R.SimpleDOMNode=k,R.SimpleXMLParser=class F extends class x{_resolveEntities(U){return U.replace(/&([^;]+);/g,(de,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(U,de){const X=[];let ne=de;function Z(){for(;ne"!==U[ne]&&"/"!==U[ne];)++ne;const ge=U.substring(de,ne);for(Z();ne"!==U[ne]&&"/"!==U[ne]&&"?"!==U[ne];){Z();let z="",ee="";for(;ne"!==U[X]&&"/"!==U[X];)++X;const Z=U.substring(de,X);!function ne(){for(;X"!==U[X+1]);)++X;return{name:Z,value:U.substring(ge,X),parsed:X-de}}parseXml(U){let de=0;for(;de",ne),ge<0)return void this.onError(-9);this.onEndElement(U.substring(ne,ge)),ne=ge+1;break;case"?":++ne;const z=this._parseProcessingInstruction(U,ne);if("?>"!==U.substring(ne+z.parsed,ne+z.parsed+2))return void this.onError(-3);this.onPi(z.name,z.value),ne+=z.parsed+2;break;case"!":if("--"===U.substring(ne+1,ne+3)){if(ge=U.indexOf("--\x3e",ne+3),ge<0)return void this.onError(-5);this.onComment(U.substring(ne+3,ge)),ne=ge+3}else if("[CDATA["===U.substring(ne+1,ne+8)){if(ge=U.indexOf("]]>",ne+8),ge<0)return void this.onError(-2);this.onCdata(U.substring(ne+8,ge)),ne=ge+3}else{if("DOCTYPE"!==U.substring(ne+1,ne+8))return void this.onError(-6);{const K=U.indexOf("[",ne+8);let V=!1;if(ge=U.indexOf(">",ne+8),ge<0)return void this.onError(-4);if(K>0&&ge>K){if(ge=U.indexOf("]>",ne+8),ge<0)return void this.onError(-4);V=!0}const L=U.substring(ne+8,ge+(V?1:0));this.onDoctype(L),ne=ge+(V?2:1)}}break;default:const ee=this._parseContent(U,ne);if(null===ee)return void this.onError(-6);let te=!1;if("/>"===U.substring(ne+ee.parsed,ne+ee.parsed+2))te=!0;else if(">"!==U.substring(ne+ee.parsed,ne+ee.parsed+1))return void this.onError(-9);this.onBeginElement(ee.name,ee.attributes,te),ne+=ee.parsed+(te?2:1)}}else{for(;ne{Object.defineProperty(R,"__esModule",{value:!0}),R.OptionalContentConfig=void 0;var C=j(2);class _{constructor(x,k){this.visible=!0,this.name=x,this.intent=k}}R.OptionalContentConfig=class M{constructor(x){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==x){this.name=x.name,this.creator=x.creator,this._order=x.order;for(const k of x.groups)this._groups.set(k.id,new _(k.name,k.intent));if("OFF"===x.baseState)for(const k of this._groups)k.visible=!1;for(const k of x.on)this._groups.get(k).visible=!0;for(const k of x.off)this._groups.get(k).visible=!1}}isVisible(x){if("OCG"===x.type)return this._groups.has(x.id)?this._groups.get(x.id).visible:((0,C.warn)(`Optional content group not found: ${x.id}`),!0);if("OCMD"===x.type){if(x.expression&&(0,C.warn)("Visibility expression not supported yet."),!x.policy||"AnyOn"===x.policy){for(const k of x.ids){if(!this._groups.has(k))return(0,C.warn)(`Optional content group not found: ${k}`),!0;if(this._groups.get(k).visible)return!0}return!1}if("AllOn"===x.policy){for(const k of x.ids){if(!this._groups.has(k))return(0,C.warn)(`Optional content group not found: ${k}`),!0;if(!this._groups.get(k).visible)return!1}return!0}if("AnyOff"===x.policy){for(const k of x.ids){if(!this._groups.has(k))return(0,C.warn)(`Optional content group not found: ${k}`),!0;if(!this._groups.get(k).visible)return!0}return!1}if("AllOff"===x.policy){for(const k of x.ids){if(!this._groups.has(k))return(0,C.warn)(`Optional content group not found: ${k}`),!0;if(this._groups.get(k).visible)return!1}return!0}return(0,C.warn)(`Unknown optional content policy ${x.policy}.`),!0}return(0,C.warn)(`Unknown group type ${x.type}.`),!0}setVisibility(x,k=!0){this._groups.has(x)?this._groups.get(x).visible=!!k:(0,C.warn)(`Optional content group not found: ${x}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size?(0,C.objectFromEntries)(this._groups):null}getGroup(x){return this._groups.get(x)||null}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.PDFDataTransportStream=void 0;var C=j(2);R.PDFDataTransportStream=class _{constructor(k,F){(0,C.assert)(F,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=k.progressiveDone||!1;const N=k.initialData;if(N?.length>0){const U=new Uint8Array(N).buffer;this._queuedChunks.push(U)}this._pdfDataRangeTransport=F,this._isStreamingSupported=!k.disableStream,this._isRangeSupported=!k.disableRange,this._contentLength=k.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((U,de)=>{this._onReceiveData({begin:U,chunk:de})}),this._pdfDataRangeTransport.addProgressListener((U,de)=>{this._onProgress({loaded:U,total:de})}),this._pdfDataRangeTransport.addProgressiveReadListener(U=>{this._onReceiveData({chunk:U})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(k){const F=new Uint8Array(k.chunk).buffer;if(void 0===k.begin)this._fullRequestReader?this._fullRequestReader._enqueue(F):this._queuedChunks.push(F);else{const N=this._rangeReaders.some(function(U){return U._begin===k.begin&&(U._enqueue(F),!0)});(0,C.assert)(N,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(k){if(void 0===k.total){const F=this._rangeReaders[0];F?.onProgress&&F.onProgress({loaded:k.loaded})}else{const F=this._fullRequestReader;F?.onProgress&&F.onProgress({loaded:k.loaded,total:k.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(k){const F=this._rangeReaders.indexOf(k);F>=0&&this._rangeReaders.splice(F,1)}getFullReader(){(0,C.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const k=this._queuedChunks;return this._queuedChunks=null,new M(this,k,this._progressiveDone)}getRangeReader(k,F){if(F<=this._progressiveDataLength)return null;const N=new w(this,k,F);return this._pdfDataRangeTransport.requestDataRange(k,F),this._rangeReaders.push(N),N}cancelAllRequests(k){this._fullRequestReader&&this._fullRequestReader.cancel(k),this._rangeReaders.slice(0).forEach(function(N){N.cancel(k)}),this._pdfDataRangeTransport.abort()}};class M{constructor(k,F,N=!1){this._stream=k,this._done=N||!1,this._filename=null,this._queuedChunks=F||[],this._loaded=0;for(const U of this._queuedChunks)this._loaded+=U.byteLength;this._requests=[],this._headersReady=Promise.resolve(),k._fullRequestReader=this,this.onProgress=null}_enqueue(k){this._done||(this._requests.length>0?this._requests.shift().resolve({value:k,done:!1}):this._queuedChunks.push(k),this._loaded+=k.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 k=this;return _asyncToGenerator(function*(){if(k._queuedChunks.length>0)return{value:k._queuedChunks.shift(),done:!1};if(k._done)return{value:void 0,done:!0};const F=(0,C.createPromiseCapability)();return k._requests.push(F),F.promise})()}cancel(k){this._done=!0,this._requests.forEach(function(F){F.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class w{constructor(k,F,N){this._stream=k,this._begin=F,this._end=N,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(k){this._done||(0===this._requests.length?this._queuedChunk=k:(this._requests.shift().resolve({value:k,done:!1}),this._requests.forEach(function(N){N.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}read(){var k=this;return _asyncToGenerator(function*(){if(k._queuedChunk){const N=k._queuedChunk;return k._queuedChunk=null,{value:N,done:!1}}if(k._done)return{value:void 0,done:!0};const F=(0,C.createPromiseCapability)();return k._requests.push(F),F.promise})()}cancel(k){this._done=!0,this._requests.forEach(function(F){F.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.WebGLContext=void 0;var C=j(2);R.WebGLContext=class _{constructor({enable:x=!1}){this._enabled=!0===x}get isEnabled(){let x=this._enabled;return x&&(x=M.tryInitGL()),(0,C.shadow)(this,"isEnabled",x)}composeSMask({layer:x,mask:k,properties:F}){return M.composeSMask(x,k,F)}drawFigures({width:x,height:k,backgroundColor:F,figures:N,context:U}){return M.drawFigures(x,k,F,N,U)}clear(){M.cleanup()}};const M=function(){function x(q,oe,se){const ke=q.createShader(se);if(q.shaderSource(ke,oe),q.compileShader(ke),!q.getShaderParameter(ke,q.COMPILE_STATUS)){const be=q.getShaderInfoLog(ke);throw new Error("Error during shader compilation: "+be)}return ke}function k(q,oe){return x(q,oe,q.VERTEX_SHADER)}function F(q,oe){return x(q,oe,q.FRAGMENT_SHADER)}function N(q,oe){const se=q.createProgram();for(let xe=0,be=oe.length;xe 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; } ")]);oe.useProgram(xe);const be={};be.gl=oe,be.canvas=q,be.resolutionLocation=oe.getUniformLocation(xe,"u_resolution"),be.positionLocation=oe.getAttribLocation(xe,"a_position"),be.backdropLocation=oe.getUniformLocation(xe,"u_backdrop"),be.subtypeLocation=oe.getUniformLocation(xe,"u_subtype");const De=oe.getAttribLocation(xe,"a_texCoord"),ve=oe.getUniformLocation(xe,"u_image"),ue=oe.getUniformLocation(xe,"u_mask"),ie=oe.createBuffer();oe.bindBuffer(oe.ARRAY_BUFFER,ie),oe.bufferData(oe.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),oe.STATIC_DRAW),oe.enableVertexAttribArray(De),oe.vertexAttribPointer(De,2,oe.FLOAT,!1,0,0),oe.uniform1i(ve,0),oe.uniform1i(ue,1),z=be}();const be=z,De=be.canvas,ve=be.gl;De.width=ke,De.height=xe,ve.viewport(0,0,ve.drawingBufferWidth,ve.drawingBufferHeight),ve.uniform2f(be.resolutionLocation,ke,xe),se.backdrop?ve.uniform4f(be.resolutionLocation,se.backdrop[0],se.backdrop[1],se.backdrop[2],1):ve.uniform4f(be.resolutionLocation,0,0,0,0),ve.uniform1i(be.subtypeLocation,"Luminosity"===se.subtype?1:0);const ue=U(ve,q,ve.TEXTURE0),ie=U(ve,oe,ve.TEXTURE1),S=ve.createBuffer();return ve.bindBuffer(ve.ARRAY_BUFFER,S),ve.bufferData(ve.ARRAY_BUFFER,new Float32Array([0,0,ke,0,0,xe,0,xe,ke,0,ke,xe]),ve.STATIC_DRAW),ve.enableVertexAttribArray(be.positionLocation),ve.vertexAttribPointer(be.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(ue),ve.deleteTexture(ie),ve.deleteBuffer(S),De},drawFigures:function G(q,oe,se,ke,xe){L||function Y(){ne();const q=X;X=null;const oe=de;de=null;const xe=N(oe,[k(oe," 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); } "),F(oe," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);oe.useProgram(xe);const be={};be.gl=oe,be.canvas=q,be.resolutionLocation=oe.getUniformLocation(xe,"u_resolution"),be.scaleLocation=oe.getUniformLocation(xe,"u_scale"),be.offsetLocation=oe.getUniformLocation(xe,"u_offset"),be.positionLocation=oe.getAttribLocation(xe,"a_position"),be.colorLocation=oe.getAttribLocation(xe,"a_color"),L=be}();const be=L,De=be.canvas,ve=be.gl;De.width=q,De.height=oe,ve.viewport(0,0,ve.drawingBufferWidth,ve.drawingBufferHeight),ve.uniform2f(be.resolutionLocation,q,oe);let ue=0;for(let Ee=0,Be=ke.length;Ee{Object.defineProperty(R,"__esModule",{value:!0}),R.AnnotationLayer=void 0;var C=j(1),_=j(2),M=j(8),w=j(20);class x{static create(S){switch(S.data.annotationType){case _.AnnotationType.LINK:return new F(S);case _.AnnotationType.TEXT:return new N(S);case _.AnnotationType.WIDGET:switch(S.data.fieldType){case"Tx":return new de(S);case"Btn":return S.data.radioButton?new ne(S):S.data.checkBox?new X(S):new Z(S);case"Ch":return new ge(S)}return new U(S);case _.AnnotationType.POPUP:return new z(S);case _.AnnotationType.FREETEXT:return new te(S);case _.AnnotationType.LINE:return new K(S);case _.AnnotationType.SQUARE:return new V(S);case _.AnnotationType.CIRCLE:return new L(S);case _.AnnotationType.POLYLINE:return new Y(S);case _.AnnotationType.CARET:return new q(S);case _.AnnotationType.INK:return new oe(S);case _.AnnotationType.POLYGON:return new G(S);case _.AnnotationType.HIGHLIGHT:return new se(S);case _.AnnotationType.UNDERLINE:return new ke(S);case _.AnnotationType.SQUIGGLY:return new xe(S);case _.AnnotationType.STRIKEOUT:return new be(S);case _.AnnotationType.STAMP:return new De(S);case _.AnnotationType.FILEATTACHMENT:return new ve(S);default:return new k(S)}}}class k{constructor(S,{isRenderable:le=!1,ignoreBorder:he=!1,createQuadrilaterals:ce=!1}={}){this.isRenderable=le,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,le&&(this.container=this._createContainer(he)),ce&&(this.quadrilaterals=this._createQuadrilaterals(he))}_createContainer(S=!1){const le=this.data,he=this.page,ce=this.viewport,me=document.createElement("section");let Ce=le.rect[2]-le.rect[0],Pe=le.rect[3]-le.rect[1];me.setAttribute("data-annotation-id",le.id);const Ee=_.Util.normalizeRect([le.rect[0],he.view[3]-le.rect[1]+he.view[1],le.rect[2],he.view[3]-le.rect[3]+he.view[1]]);if(me.style.transform=`matrix(${ce.transform.join(",")})`,me.style.transformOrigin=`${-Ee[0]}px ${-Ee[1]}px`,!S&&le.borderStyle.width>0){me.style.borderWidth=`${le.borderStyle.width}px`,le.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(Ce-=2*le.borderStyle.width,Pe-=2*le.borderStyle.width);const Be=le.borderStyle.horizontalCornerRadius,je=le.borderStyle.verticalCornerRadius;switch((Be>0||je>0)&&(me.style.borderRadius=`${Be}px / ${je}px`),le.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"}le.color?me.style.borderColor=_.Util.makeHexColor(0|le.color[0],0|le.color[1],0|le.color[2]):me.style.borderWidth=0}return me.style.left=`${Ee[0]}px`,me.style.top=`${Ee[1]}px`,me.style.width=`${Ce}px`,me.style.height=`${Pe}px`,me}_createQuadrilaterals(S=!1){if(!this.data.quadPoints)return null;const le=[],he=this.data.rect;for(const ce of this.data.quadPoints)this.data.rect=[ce[2].x,ce[2].y,ce[1].x,ce[1].y],le.push(this._createContainer(S));return this.data.rect=he,le}_createPopup(S,le){let he=this.container;this.quadrilaterals&&(S=S||this.quadrilaterals,he=this.quadrilaterals[0]),S||((S=document.createElement("div")).style.height=he.style.height,S.style.width=he.style.width,he.appendChild(S));const me=new ee({container:he,trigger:S,color:le.color,title:le.title,modificationDate:le.modificationDate,contents:le.contents,hideWrapper:!0}).render();me.style.left=he.style.width,he.appendChild(me)}_renderQuadrilaterals(S){return this.quadrilaterals.forEach(le=>{le.className=S}),this.quadrilaterals}render(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}class F extends k{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:le}=this,he=document.createElement("a");return S.url?(0,C.addLinkAttributes)(he,{url:S.url,target:S.newWindow?C.LinkTarget.BLANK:le.externalLinkTarget,rel:le.externalLinkRel,enabled:le.externalLinkEnabled}):S.action?this._bindNamedAction(he,S.action):S.dest?this._bindLink(he,S.dest):S.actions&&(S.actions.Action||S.actions["Mouse Up"]||S.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions?this._bindJSAction(he,S):this._bindLink(he,""),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((ce,me)=>{const Ce=0===me?he:he.cloneNode();return ce.appendChild(Ce),ce}):(this.container.className="linkAnnotation",this.container.appendChild(he),this.container)}_bindLink(S,le){S.href=this.linkService.getDestinationHash(le),S.onclick=()=>(le&&this.linkService.goToDestination(le),!1),(le||""===le)&&(S.className="internalLink")}_bindNamedAction(S,le){S.href=this.linkService.getAnchorUrl(""),S.onclick=()=>(this.linkService.executeNamedAction(le),!1),S.className="internalLink"}_bindJSAction(S,le){S.href=this.linkService.getAnchorUrl("");const he=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const ce of Object.keys(le.actions)){const me=he.get(ce);!me||(S[me]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:le.id,name:ce}}),!1))}S.className="internalLink"}}class N extends k{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 U extends k{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,le,he,ce){le.includes("mouse")?S.addEventListener(le,me=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:he,value:ce(me),shift:me.shiftKey,modifier:this._getKeyModifier(me)}})}):S.addEventListener(le,me=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:he,value:me.target.checked}})})}_setEventListeners(S,le,he){for(const[ce,me]of le)("Action"===me||this.data.actions?.[me])&&this._setEventListener(S,ce,me,he)}}class de extends U{constructor(S){super(S,{isRenderable:S.renderInteractiveForms||!S.data.hasAppearance&&!!S.data.fieldValue})}render(){const S=this.annotationStorage,le=this.data.id;this.container.className="textWidgetAnnotation";let he=null;if(this.renderInteractiveForms){const ce=S.getOrCreateValue(le,{value:this.data.fieldValue}).value,me={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(he=document.createElement("textarea"),he.textContent=ce):(he=document.createElement("input"),he.type="text",he.setAttribute("value",ce)),me.userValue=ce,he.setAttribute("id",le),he.addEventListener("input",function(Pe){S.setValue(le,{value:Pe.target.value})});let Ce=Pe=>{me.formattedValue&&(Pe.target.value=me.formattedValue),Pe.target.setSelectionRange(0,0),me.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions&&(he.addEventListener("focus",Pe=>{me.userValue&&(Pe.target.value=me.userValue)}),he.addEventListener("updatefromsandbox",function(Pe){const{detail:Ee}=Pe,Be={value(){me.userValue=Ee.value||"",S.setValue(le,{value:me.userValue.toString()}),me.formattedValue||(Pe.target.value=me.userValue)},valueAsString(){me.formattedValue=Ee.valueAsString||"",Pe.target!==document.activeElement&&(Pe.target.value=me.formattedValue),S.setValue(le,{formattedValue:me.formattedValue})},focus(){setTimeout(()=>Pe.target.focus({preventScroll:!1}),0)},userName(){Pe.target.title=Ee.userName},hidden(){Pe.target.style.visibility=Ee.hidden?"hidden":"visible",S.setValue(le,{hidden:Ee.hidden})},editable(){Pe.target.disabled=!Ee.editable},selRange(){const[je,Je]=Ee.selRange;je>=0&&Jeje in Be).forEach(je=>Be[je]())}),this.data.actions)){he.addEventListener("keydown",Ee=>{me.beforeInputValue=Ee.target.value;let Be=-1;"Escape"===Ee.key?Be=0:"Enter"===Ee.key?Be=2:"Tab"===Ee.key&&(Be=3),-1!==Be&&(me.userValue=Ee.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:le,name:"Keystroke",value:Ee.target.value,willCommit:!0,commitKey:Be,selStart:Ee.target.selectionStart,selEnd:Ee.target.selectionEnd}}))});const Pe=Ce;Ce=null,he.addEventListener("blur",Ee=>{this._mouseState.isDown&&(me.userValue=Ee.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:le,name:"Keystroke",value:Ee.target.value,willCommit:!0,commitKey:1,selStart:Ee.target.selectionStart,selEnd:Ee.target.selectionEnd}})),Pe(Ee)}),he.addEventListener("mousedown",Ee=>{me.beforeInputValue=Ee.target.value,me.beforeInputSelectionRange=null}),he.addEventListener("keyup",Ee=>{Ee.target.selectionStart===Ee.target.selectionEnd&&(me.beforeInputSelectionRange=null)}),he.addEventListener("select",Ee=>{me.beforeInputSelectionRange=[Ee.target.selectionStart,Ee.target.selectionEnd]}),"Keystroke"in this.data.actions&&he.addEventListener("input",Ee=>{let Be=-1,je=-1;me.beforeInputSelectionRange&&([Be,je]=me.beforeInputSelectionRange),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:le,name:"Keystroke",value:me.beforeInputValue,change:Ee.data,willCommit:!1,selStart:Be,selEnd:je}})}),this._setEventListeners(he,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ee=>Ee.target.value)}if(Ce&&he.addEventListener("blur",Ce),he.disabled=this.data.readOnly,he.name=this.data.fieldName,null!==this.data.maxLen&&(he.maxLength=this.data.maxLen),this.data.comb){const Ee=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;he.classList.add("comb"),he.style.letterSpacing=`calc(${Ee}px - 1ch)`}}else he=document.createElement("div"),he.textContent=this.data.fieldValue,he.style.verticalAlign="middle",he.style.display="table-cell";return this._setTextStyle(he),this.container.appendChild(he),this.container}_setTextStyle(S){const{fontSize:he,fontColor:ce}=this.data.defaultAppearanceData,me=S.style;he&&(me.fontSize=`${he}px`),me.color=_.Util.makeHexColor(ce[0],ce[1],ce[2]),null!==this.data.textAlignment&&(me.textAlign=["left","center","right"][this.data.textAlignment])}}class X extends U{constructor(S){super(S,{isRenderable:S.renderInteractiveForms})}render(){const S=this.annotationStorage,le=this.data,he=le.id,ce=S.getOrCreateValue(he,{value:le.fieldValue&&"Off"!==le.fieldValue}).value;this.container.className="buttonWidgetAnnotation checkBox";const me=document.createElement("input");return me.disabled=le.readOnly,me.type="checkbox",me.name=this.data.fieldName,ce&&me.setAttribute("checked",!0),me.setAttribute("id",he),me.addEventListener("change",function(Ce){const Pe=Ce.target.name;for(const Ee of document.getElementsByName(Pe))Ee!==Ce.target&&(Ee.checked=!1,S.setValue(Ee.parentNode.getAttribute("data-annotation-id"),{value:!1}));S.setValue(he,{value:Ce.target.checked})}),this.enableScripting&&this.hasJSActions&&(me.addEventListener("updatefromsandbox",Ce=>{const{detail:Pe}=Ce,Ee={value(){Ce.target.checked="Off"!==Pe.value,S.setValue(he,{value:Ce.target.checked})},focus(){setTimeout(()=>Ce.target.focus({preventScroll:!1}),0)},hidden(){Ce.target.style.visibility=Pe.hidden?"hidden":"visible",S.setValue(he,{hidden:Pe.hidden})},editable(){Ce.target.disabled=!Pe.editable}};Object.keys(Pe).filter(Be=>Be in Ee).forEach(Be=>Ee[Be]())}),this._setEventListeners(me,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ce=>Ce.target.checked)),this.container.appendChild(me),this.container}}class ne extends U{constructor(S){super(S,{isRenderable:S.renderInteractiveForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const S=this.annotationStorage,le=this.data,he=le.id,ce=S.getOrCreateValue(he,{value:le.fieldValue===le.buttonValue}).value,me=document.createElement("input");return me.disabled=le.readOnly,me.type="radio",me.name=le.fieldName,ce&&me.setAttribute("checked",!0),me.setAttribute("pdfButtonValue",le.buttonValue),me.setAttribute("id",he),me.addEventListener("change",function(Ce){const{target:Pe}=Ce;for(const Ee of document.getElementsByName(Pe.name))Ee!==Pe&&S.setValue(Ee.getAttribute("id"),{value:!1});S.setValue(he,{value:Pe.checked})}),this.enableScripting&&this.hasJSActions&&(me.addEventListener("updatefromsandbox",Ce=>{const{detail:Pe}=Ce,Ee={value(){const Be=Pe.value;for(const je of document.getElementsByName(Ce.target.name)){const Je=je.getAttribute("id");Be===je.getAttribute("pdfButtonValue")?(je.setAttribute("checked",!0),S.setValue(Je,{value:!0})):S.setValue(Je,{value:!1})}},focus(){setTimeout(()=>Ce.target.focus({preventScroll:!1}),0)},hidden(){Ce.target.style.visibility=Pe.hidden?"hidden":"visible",S.setValue(he,{hidden:Pe.hidden})},editable(){Ce.target.disabled=!Pe.editable}};Object.keys(Pe).filter(Be=>Be in Ee).forEach(Be=>Ee[Be]())}),this._setEventListeners(me,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ce=>Ce.target.checked)),this.container.appendChild(me),this.container}}class Z extends F{render(){const S=super.render();return S.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(S.title=this.data.alternativeText),S}}class ge extends U{constructor(S){super(S,{isRenderable:S.renderInteractiveForms})}render(){this.container.className="choiceWidgetAnnotation";const S=this.annotationStorage,le=this.data.id;S.getOrCreateValue(le,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});const he=document.createElement("select");he.disabled=this.data.readOnly,he.name=this.data.fieldName,he.setAttribute("id",le),this.data.combo||(he.size=this.data.options.length,this.data.multiSelect&&(he.multiple=!0));for(const me of this.data.options){const Ce=document.createElement("option");Ce.textContent=me.displayValue,Ce.value=me.exportValue,this.data.fieldValue.includes(me.exportValue)&&Ce.setAttribute("selected",!0),he.appendChild(Ce)}function ce(me){const Ce=me.target.options;return Ce[Ce.selectedIndex].value}return this.enableScripting&&this.hasJSActions?(he.addEventListener("updatefromsandbox",me=>{const{detail:Ce}=me,Pe={value(){const Ee=me.target.options,Be=Ce.value,je=Ee.indexOf(Be);-1!==je&&(Ee.selectedIndex=je,S.setValue(le,{value:Be}))},focus(){setTimeout(()=>me.target.focus({preventScroll:!1}),0)},hidden(){me.target.style.visibility=Ce.hidden?"hidden":"visible",S.setValue(le,{hidden:Ce.hidden})},editable(){me.target.disabled=!Ce.editable}};Object.keys(Ce).filter(Ee=>Ee in Pe).forEach(Ee=>Pe[Ee]())}),he.addEventListener("input",me=>{const Ce=ce(me);S.setValue(le,{value:Ce}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:le,name:"Keystroke",changeEx:Ce,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(he,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],me=>me.target.checked)):he.addEventListener("input",function(me){S.setValue(le,{value:ce(me)})}),this.container.appendChild(he),this.container}}class z extends k{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 he=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===he.length)return this.container;const ce=new ee({container:this.container,trigger:Array.from(he),color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),me=this.page,Ce=_.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]]),Pe=Ce[0]+this.data.parentRect[2]-this.data.parentRect[0],Ee=Ce[1];return this.container.style.transformOrigin=`${-Pe}px ${-Ee}px`,this.container.style.left=`${Pe}px`,this.container.style.top=`${Ee}px`,this.container.appendChild(ce.render()),this.container}}class ee{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 le=document.createElement("div");le.className="popupWrapper",this.hideElement=this.hideWrapper?le:this.container,this.hideElement.setAttribute("hidden",!0);const he=document.createElement("div");he.className="popup";const ce=this.color;ce&&(he.style.backgroundColor=_.Util.makeHexColor(0|.7*(255-ce[0])+ce[0],0|.7*(255-ce[1])+ce[1],0|.7*(255-ce[2])+ce[2]));const me=document.createElement("h1");me.textContent=this.title,he.appendChild(me);const Ce=C.PDFDateString.toDateObject(this.modificationDate);if(Ce){const Ee=document.createElement("span");Ee.textContent="{{date}}, {{time}}",Ee.dataset.l10nId="annotation_date_string",Ee.dataset.l10nArgs=JSON.stringify({date:Ce.toLocaleDateString(),time:Ce.toLocaleTimeString()}),he.appendChild(Ee)}const Pe=this._formatContents(this.contents);return he.appendChild(Pe),Array.isArray(this.trigger)||(this.trigger=[this.trigger]),this.trigger.forEach(Ee=>{Ee.addEventListener("click",this._toggle.bind(this)),Ee.addEventListener("mouseover",this._show.bind(this,!1)),Ee.addEventListener("mouseout",this._hide.bind(this,!1))}),he.addEventListener("click",this._hide.bind(this,!0)),le.appendChild(he),le}_formatContents(S){const le=document.createElement("p"),he=S.split(/(?:\r\n?|\n)/);for(let ce=0,me=he.length;ce{me.style.transform=le})}S.div.removeAttribute("hidden")}}},(Se,R)=>{function j(_){return Math.floor(255*Math.max(0,Math.min(1,_))).toString(16).padStart(2,"0")}Object.defineProperty(R,"__esModule",{value:!0}),R.ColorConverters=void 0,R.ColorConverters=class C{static CMYK_G([M,w,x,k]){return["G",1-Math.min(1,.3*M+.59*x+.11*w+k)]}static G_CMYK([M]){return["CMYK",0,0,0,1-M]}static G_RGB([M]){return["RGB",M,M,M]}static G_HTML([M]){const w=j(M);return`#${w}${w}${w}`}static RGB_G([M,w,x]){return["G",.3*M+.59*w+.11*x]}static RGB_HTML([M,w,x]){return`#${j(M)}${j(w)}${j(x)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([M,w,x,k]){return["RGB",1-Math.min(1,M+k),1-Math.min(1,x+k),1-Math.min(1,w+k)]}static CMYK_HTML(M){return this.RGB_HTML(this.CMYK_RGB(M))}static RGB_CMYK([M,w,x]){const k=1-M,F=1-w,N=1-x;return["CMYK",k,F,N,Math.min(k,F,N)]}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.renderTextLayer=void 0;var C=j(2);const _=function(){const x=/\S/;function F(z,ee,te){const K=document.createElement("span"),V={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(z._textDivs.push(K),function k(z){return!x.test(z)}(ee.str))return V.isWhitespace=!0,void z._textDivProperties.set(K,V);const L=C.Util.transform(z._viewport.transform,ee.transform);let Y=Math.atan2(L[1],L[0]);const G=te[ee.fontName];G.vertical&&(Y+=Math.PI/2);const q=Math.sqrt(L[2]*L[2]+L[3]*L[3]);let se,ke,oe=q;G.ascent?oe*=G.ascent:G.descent&&(oe*=1+G.descent),0===Y?(se=L[4],ke=L[5]-oe):(se=L[4]+oe*Math.sin(Y),ke=L[5]-oe*Math.cos(Y)),K.style.left=`${se}px`,K.style.top=`${ke}px`,K.style.fontSize=`${q}px`,K.style.fontFamily=G.fontFamily,K.textContent=ee.str,z._fontInspectorEnabled&&(K.dataset.fontName=ee.fontName),0!==Y&&(V.angle=Y*(180/Math.PI));let xe=!1;if(ee.str.length>1)xe=!0;else if(ee.transform[0]!==ee.transform[3]){const be=Math.abs(ee.transform[0]),De=Math.abs(ee.transform[3]);be!==De&&Math.max(be,De)/Math.min(be,De)>1.5&&(xe=!0)}if(xe&&(V.canvasWidth=G.vertical?ee.height*z._viewport.scale:ee.width*z._viewport.scale),z._textDivProperties.set(K,V),z._textContentStream&&z._layoutText(K),z._enhanceTextSelection){let be=1,De=0;0!==Y&&(be=Math.cos(Y),De=Math.sin(Y));const ve=(G.vertical?ee.height:ee.width)*z._viewport.scale,ue=q;let ie,S;0!==Y?(ie=[be,De,-De,be,se,ke],S=C.Util.getAxialAlignedBoundingBox([0,0,ve,ue],ie)):S=[se,ke,se+ve,ke+ue],z._bounds.push({left:S[0],top:S[1],right:S[2],bottom:S[3],div:K,size:[ve,ue],m:ie})}}function N(z){if(z._canceled)return;const ee=z._textDivs,te=z._capability,K=ee.length;if(K>1e5)return z._renderingDone=!0,void te.resolve();if(!z._textContentStream)for(let V=0;V0&&(K=K?Math.min(L,K):L)}return K}function ne(z,ee){ee.sort(function(V,L){return V.x1-L.x1||V.index-L.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}}];ee.forEach(function(V){let L=0;for(;L=0&&K[Y].start>=V.y2;)Y--;let G,q,oe,se,ke=-1/0;for(oe=L;oe<=Y;oe++){let De;G=K[oe],q=G.boundary,De=q.x2>V.x1?q.index>V.index?q.x1New:V.x1:void 0===q.x2New?(q.x2+V.x1)/2:q.x2New,De>ke&&(ke=De)}for(V.x1New=ke,oe=L;oe<=Y;oe++)G=K[oe],q=G.boundary,void 0===q.x2New?q.x2>V.x1?q.index>V.index&&(q.x2New=q.x2):q.x2New=ke:q.x2New>ke&&(q.x2New=Math.max(ke,q.x2));const xe=[];let be=null;for(oe=L;oe<=Y;oe++){G=K[oe],q=G.boundary;const De=q.x2>V.x2?q:V;be===De?xe[xe.length-1].end=G.end:(xe.push({start:G.start,end:G.end,boundary:De}),be=De)}for(K[L].start=0&&K[se].start>=q.y1;se--)De=K[se].boundary===q;for(se=Y+1;!De&&se{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}return Z.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new C.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(z,ee){for(let te=0,K=z.length;te0&&(ee.scale=ee.canvasWidth/L,te=`scaleX(${ee.scale})`)}0!==ee.angle&&(te=`rotate(${ee.angle}deg) ${te}`),te.length>0&&(this._enhanceTextSelection&&(ee.originalTransform=te),z.style.transform=te),this._textDivProperties.set(z,ee),this._container.appendChild(z)},_render:function(ee){const te=(0,C.createPromiseCapability)();let K=Object.create(null);const V=this._document.createElement("canvas");if(V.mozOpaque=!0,this._layoutTextCtx=V.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 L=()=>{this._reader.read().then(({value:Y,done:G})=>{G?te.resolve():(Object.assign(K,Y.styles),this._processItems(Y.items,K),L())},te.reject)};this._reader=this._textContentStream.getReader(),L()}}te.promise.then(()=>{K=null,ee?this._renderTimer=setTimeout(()=>{N(this),this._renderTimer=null},ee):N(this)},this._capability.reject)},expandTextDivs:function(ee){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function de(z){const ee=z._bounds,te=z._viewport,K=function X(z,ee,te){const K=te.map(function(L,Y){return{x1:L.left,y1:L.top,x2:L.right,y2:L.bottom,index:Y,x1New:void 0,x2New:void 0}});ne(z,K);const V=new Array(te.length);return K.forEach(function(L){V[L.index]={left:L.x1New,top:0,right:L.x2New,bottom:0}}),te.map(function(L,Y){const G=V[Y],q=K[Y];q.x1=L.top,q.y1=z-G.right,q.x2=L.bottom,q.y2=z-G.left,q.index=Y,q.x1New=void 0,q.x2New=void 0}),ne(ee,K),K.forEach(function(L){const Y=L.index;V[Y].top=L.x1New,V[Y].bottom=L.x2New}),V}(te.width,te.height,ee);for(let V=0;V0?(K.push(`${G.paddingTop}px`),te.push(`translateY(${-G.paddingTop}px)`)):K.push(0),K.push(G.paddingRight>0?G.paddingRight/G.scale+"px":0),K.push(G.paddingBottom>0?`${G.paddingBottom}px`:0),G.paddingLeft>0?(K.push(G.paddingLeft/G.scale+"px"),te.push(`translateX(${-G.paddingLeft/G.scale}px)`)):K.push(0),Y.style.padding=K.join(" "),te.length&&(Y.style.transform=te.join(" "))):(Y.style.padding=null,Y.style.transform=G.originalTransform))}}},function ge(z){const ee=new Z({textContent:z.textContent,textContentStream:z.textContentStream,container:z.container,viewport:z.viewport,textDivs:z.textDivs,textContentItemsStr:z.textContentItemsStr,enhanceTextSelection:z.enhanceTextSelection});return ee._render(z.timeout),ee}}();R.renderTextLayer=_},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.SVGGraphics=void 0;var C=j(2),_=j(1),M=j(4);let w=function(){throw new Error("Not implemented: SVGGraphics")};R.SVGGraphics=w;{let ne=function(K){let V=[];const L=[];for(const Y of K)"save"!==Y.fn?"restore"===Y.fn?V=L.pop():V.push(Y):(V.push({fnId:92,fn:"group",items:[]}),L.push(V),V=V[V.length-1].items);return V},Z=function(K){if(Number.isInteger(K))return K.toString();const V=K.toFixed(10);let L=V.length-1;if("0"!==V[L])return V;do{L--}while("0"===V[L]);return V.substring(0,"."===V[L]?L:L+1)},ge=function(K){if(0===K[4]&&0===K[5]){if(0===K[1]&&0===K[2])return 1===K[0]&&1===K[3]?"":`scale(${Z(K[0])} ${Z(K[3])})`;if(K[0]===K[3]&&K[1]===-K[2]){const V=180*Math.acos(K[0])/Math.PI;return`rotate(${Z(V)})`}}else if(1===K[0]&&0===K[1]&&0===K[2]&&1===K[3])return`translate(${Z(K[4])} ${Z(K[5])})`;return`matrix(${Z(K[0])} ${Z(K[1])} ${Z(K[2])} ${Z(K[3])} ${Z(K[4])} ${Z(K[5])})`};const x={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},k="http://www.w3.org/XML/1998/namespace",F="http://www.w3.org/1999/xlink",N=["butt","round","square"],U=["miter","round","bevel"],de=function(){const K=new Uint8Array([137,80,78,71,13,10,26,10]),L=new Int32Array(256);for(let xe=0;xe<256;xe++){let be=xe;for(let De=0;De<8;De++)be=1&be?3988292384^be>>1&2147483647:be>>1&2147483647;L[xe]=be}function G(xe,be,De,ve){let ue=ve;const ie=be.length;De[ue]=ie>>24&255,De[ue+1]=ie>>16&255,De[ue+2]=ie>>8&255,De[ue+3]=255&ie,ue+=4,De[ue]=255&xe.charCodeAt(0),De[ue+1]=255&xe.charCodeAt(1),De[ue+2]=255&xe.charCodeAt(2),De[ue+3]=255&xe.charCodeAt(3),ue+=4,De.set(be,ue),ue+=be.length;const S=function Y(xe,be,De){let ve=-1;for(let ue=be;ue>>8^L[255&(ve^xe[ue])];return-1^ve}(De,ve+4,ue);De[ue]=S>>24&255,De[ue+1]=S>>16&255,De[ue+2]=S>>8&255,De[ue+3]=255&S}function se(xe){let be=xe.length;const De=65535,ve=Math.ceil(be/De),ue=new Uint8Array(2+be+5*ve+4);let ie=0;ue[ie++]=120,ue[ie++]=156;let S=0;for(;be>De;)ue[ie++]=0,ue[ie++]=255,ue[ie++]=255,ue[ie++]=0,ue[ie++]=0,ue.set(xe.subarray(S,S+De),ie),ie+=De,S+=De,be-=De;ue[ie++]=1,ue[ie++]=255&be,ue[ie++]=be>>8&255,ue[ie++]=255&~be,ue[ie++]=(65535&~be)>>8&255,ue.set(xe.subarray(S),ie),ie+=xe.length-S;const le=function q(xe,be,De){let ve=1,ue=0;for(let ie=be;ie>24&255,ue[ie++]=le>>16&255,ue[ie++]=le>>8&255,ue[ie++]=255&le,ue}return function(be,De,ve){return function ke(xe,be,De,ve){const ue=xe.width,ie=xe.height;let S,le,he;const ce=xe.data;switch(be){case C.ImageKind.GRAYSCALE_1BPP:le=0,S=1,he=ue+7>>3;break;case C.ImageKind.RGB_24BPP:le=2,S=8,he=3*ue;break;case C.ImageKind.RGBA_32BPP:le=6,S=8,he=4*ue;break;default:throw new Error("invalid format")}const me=new Uint8Array((1+he)*ie);let Ce=0,Pe=0;for(let dt=0;dt>24&255,ue>>16&255,ue>>8&255,255&ue,ie>>24&255,ie>>16&255,ie>>8&255,255&ie,S,le,0,0,0]),Be=function oe(xe){if(!M.isNodeJS)return se(xe);try{let be;be=parseInt(process.versions.node)>=8?xe:Buffer.from(xe);const De=__webpack_require__(2258).deflateSync(be,{level:9});return De instanceof Uint8Array?De:new Uint8Array(De)}catch(be){(0,C.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+be)}return se(xe)}(me),Je=new Uint8Array(K.length+36+Ee.length+Be.length);let Ve=0;return Je.set(K,Ve),Ve+=K.length,G("IHDR",Ee,Je,Ve),Ve+=12+Ee.length,G("IDATA",Be,Je,Ve),Ve+=12+Be.length,G("IEND",new Uint8Array(0),Je,Ve),(0,C.createObjectURL)(Je,"image/png",De)}(be,void 0===be.kind?C.ImageKind.GRAYSCALE_1BPP:be.kind,De,ve)}}();class X{constructor(){this.fontSizeScale=1,this.fontWeight=x.fontWeight,this.fontSize=0,this.textMatrix=C.IDENTITY_MATRIX,this.fontMatrix=C.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=C.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=x.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(V,L){this.x=V,this.y=L}}let z=0,ee=0,te=0;R.SVGGraphics=w=class{constructor(V,L,Y=!1){this.svgFactory=new _.DOMSVGFactory,this.current=new X,this.transformMatrix=C.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=V,this.objs=L,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!Y,this._operatorIdMapping=[];for(const G in C.OPS)this._operatorIdMapping[C.OPS[G]]=G}save(){this.transformStack.push(this.transformMatrix);const V=this.current;this.extraStack.push(V),this.current=V.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(V){this.save(),this.executeOpTree(V),this.restore()}loadDependencies(V){const L=V.fnArray,Y=V.argsArray;for(let G=0,q=L.length;G{se.get(oe,xe)});this.current.dependencies.push(ke)}return Promise.all(this.current.dependencies)}transform(V,L,Y,G,q,oe){this.transformMatrix=C.Util.transform(this.transformMatrix,[V,L,Y,G,q,oe]),this.tgrp=null}getSVG(V,L){this.viewport=L;const Y=this._initialize(L);return this.loadDependencies(V).then(()=>(this.transformMatrix=C.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(V)),Y))}convertOpList(V){const L=this._operatorIdMapping,Y=V.argsArray,G=V.fnArray,q=[];for(let oe=0,se=G.length;oe0&&(this.current.lineWidth=V)}setLineCap(V){this.current.lineCap=N[V]}setLineJoin(V){this.current.lineJoin=U[V]}setMiterLimit(V){this.current.miterLimit=V}setStrokeAlpha(V){this.current.strokeAlpha=V}setStrokeRGBColor(V,L,Y){this.current.strokeColor=C.Util.makeHexColor(V,L,Y)}setFillAlpha(V){this.current.fillAlpha=V}setFillRGBColor(V,L,Y){this.current.fillColor=C.Util.makeHexColor(V,L,Y),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(V){this.current.strokeColor=this._makeColorN_Pattern(V)}setFillColorN(V){this.current.fillColor=this._makeColorN_Pattern(V)}shadingFill(V){const L=this.viewport.width,Y=this.viewport.height,G=C.Util.inverseTransform(this.transformMatrix),q=C.Util.applyTransform([0,0],G),oe=C.Util.applyTransform([0,Y],G),se=C.Util.applyTransform([L,0],G),ke=C.Util.applyTransform([L,Y],G),xe=Math.min(q[0],oe[0],se[0],ke[0]),be=Math.min(q[1],oe[1],se[1],ke[1]),De=Math.max(q[0],oe[0],se[0],ke[0]),ve=Math.max(q[1],oe[1],se[1],ke[1]),ue=this.svgFactory.createElement("svg:rect");ue.setAttributeNS(null,"x",xe),ue.setAttributeNS(null,"y",be),ue.setAttributeNS(null,"width",De-xe),ue.setAttributeNS(null,"height",ve-be),ue.setAttributeNS(null,"fill",this._makeShadingPattern(V)),this.current.fillAlpha<1&&ue.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(ue)}_makeColorN_Pattern(V){return"TilingPattern"===V[0]?this._makeTilingPattern(V):this._makeShadingPattern(V)}_makeTilingPattern(V){const L=V[1],Y=V[2],G=V[3]||C.IDENTITY_MATRIX,[q,oe,se,ke]=V[4],xe=V[5],be=V[6],De=V[7],ve="shading"+te++,[ue,ie]=C.Util.applyTransform([q,oe],G),[S,le]=C.Util.applyTransform([se,ke],G),[he,ce]=C.Util.singularValueDecompose2dScale(G),me=xe*he,Ce=be*ce,Pe=this.svgFactory.createElement("svg:pattern");Pe.setAttributeNS(null,"id",ve),Pe.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Pe.setAttributeNS(null,"width",me),Pe.setAttributeNS(null,"height",Ce),Pe.setAttributeNS(null,"x",`${ue}`),Pe.setAttributeNS(null,"y",`${ie}`);const Ee=this.svg,Be=this.transformMatrix,je=this.current.fillColor,Je=this.current.strokeColor,Ve=this.svgFactory.create(S-ue,le-ie);if(this.svg=Ve,this.transformMatrix=G,2===De){const dt=C.Util.makeHexColor(...L);this.current.fillColor=dt,this.current.strokeColor=dt}return this.executeOpTree(this.convertOpList(Y)),this.svg=Ee,this.transformMatrix=Be,this.current.fillColor=je,this.current.strokeColor=Je,Pe.appendChild(Ve.childNodes[0]),this.defs.appendChild(Pe),`url(#${ve})`}_makeShadingPattern(V){switch(V[0]){case"RadialAxial":const L="shading"+te++,Y=V[3];let G;switch(V[1]){case"axial":const q=V[4],oe=V[5];G=this.svgFactory.createElement("svg:linearGradient"),G.setAttributeNS(null,"id",L),G.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),G.setAttributeNS(null,"x1",q[0]),G.setAttributeNS(null,"y1",q[1]),G.setAttributeNS(null,"x2",oe[0]),G.setAttributeNS(null,"y2",oe[1]);break;case"radial":const se=V[4],ke=V[5],xe=V[6],be=V[7];G=this.svgFactory.createElement("svg:radialGradient"),G.setAttributeNS(null,"id",L),G.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),G.setAttributeNS(null,"cx",ke[0]),G.setAttributeNS(null,"cy",ke[1]),G.setAttributeNS(null,"r",be),G.setAttributeNS(null,"fx",se[0]),G.setAttributeNS(null,"fy",se[1]),G.setAttributeNS(null,"fr",xe);break;default:throw new Error(`Unknown RadialAxial type: ${V[1]}`)}for(const q of Y){const oe=this.svgFactory.createElement("svg:stop");oe.setAttributeNS(null,"offset",q[0]),oe.setAttributeNS(null,"stop-color",q[1]),G.appendChild(oe)}return this.defs.appendChild(G),`url(#${L})`;case"Mesh":return(0,C.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${V[0]}`)}}setDash(V,L){this.current.dashArray=V,this.current.dashPhase=L}constructPath(V,L){const Y=this.current;let G=Y.x,q=Y.y,oe=[],se=0;for(const ke of V)switch(0|ke){case C.OPS.rectangle:G=L[se++],q=L[se++];const De=G+L[se++],ve=q+L[se++];oe.push("M",Z(G),Z(q),"L",Z(De),Z(q),"L",Z(De),Z(ve),"L",Z(G),Z(ve),"Z");break;case C.OPS.moveTo:G=L[se++],q=L[se++],oe.push("M",Z(G),Z(q));break;case C.OPS.lineTo:G=L[se++],q=L[se++],oe.push("L",Z(G),Z(q));break;case C.OPS.curveTo:G=L[se+4],q=L[se+5],oe.push("C",Z(L[se]),Z(L[se+1]),Z(L[se+2]),Z(L[se+3]),Z(G),Z(q)),se+=6;break;case C.OPS.curveTo2:oe.push("C",Z(G),Z(q),Z(L[se]),Z(L[se+1]),Z(L[se+2]),Z(L[se+3])),G=L[se+2],q=L[se+3],se+=4;break;case C.OPS.curveTo3:G=L[se+2],q=L[se+3],oe.push("C",Z(L[se]),Z(L[se+1]),Z(G),Z(q),Z(G),Z(q)),se+=4;break;case C.OPS.closePath:oe.push("Z")}oe=oe.join(" "),Y.path&&V.length>0&&V[0]!==C.OPS.rectangle&&V[0]!==C.OPS.moveTo?oe=Y.path.getAttributeNS(null,"d")+oe:(Y.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(Y.path)),Y.path.setAttributeNS(null,"d",oe),Y.path.setAttributeNS(null,"fill","none"),Y.element=Y.path,Y.setCurrentPoint(G,q)}endPath(){const V=this.current;if(V.path=null,!this.pendingClip)return;if(!V.element)return void(this.pendingClip=null);const L="clippath"+z++,Y=this.svgFactory.createElement("svg:clipPath");Y.setAttributeNS(null,"id",L),Y.setAttributeNS(null,"transform",ge(this.transformMatrix));const G=V.element.cloneNode(!0);G.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,Y.appendChild(G),this.defs.appendChild(Y),V.activeClipUrl&&(V.clipGroup=null,this.extraStack.forEach(function(q){q.clipGroup=null}),Y.setAttributeNS(null,"clip-path",V.activeClipUrl)),V.activeClipUrl=`url(#${L})`,this.tgrp=null}clip(V){this.pendingClip=V}closePath(){const V=this.current;if(V.path){const L=`${V.path.getAttributeNS(null,"d")}Z`;V.path.setAttributeNS(null,"d",L)}}setLeading(V){this.current.leading=-V}setTextRise(V){this.current.textRise=V}setTextRenderingMode(V){this.current.textRenderingMode=V}setHScale(V){this.current.textHScale=V/100}setRenderingIntent(V){}setFlatness(V){}setGState(V){for(const[L,Y]of V)switch(L){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,C.warn)(`Unimplemented graphic state operator ${L}`)}}fill(){const V=this.current;V.element&&(V.element.setAttributeNS(null,"fill",V.fillColor),V.element.setAttributeNS(null,"fill-opacity",V.fillAlpha),this.endPath())}stroke(){const V=this.current;V.element&&(this._setStrokeAttributes(V.element),V.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(V,L=1){const Y=this.current;let G=Y.dashArray;1!==L&&G.length>0&&(G=G.map(function(q){return L*q})),V.setAttributeNS(null,"stroke",Y.strokeColor),V.setAttributeNS(null,"stroke-opacity",Y.strokeAlpha),V.setAttributeNS(null,"stroke-miterlimit",Z(Y.miterLimit)),V.setAttributeNS(null,"stroke-linecap",Y.lineCap),V.setAttributeNS(null,"stroke-linejoin",Y.lineJoin),V.setAttributeNS(null,"stroke-width",Z(L*Y.lineWidth)+"px"),V.setAttributeNS(null,"stroke-dasharray",G.map(Z).join(" ")),V.setAttributeNS(null,"stroke-dashoffset",Z(L*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 V=this.svgFactory.createElement("svg:rect");V.setAttributeNS(null,"x","0"),V.setAttributeNS(null,"y","0"),V.setAttributeNS(null,"width","1px"),V.setAttributeNS(null,"height","1px"),V.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(V)}paintImageXObject(V){const L=V.startsWith("g_")?this.commonObjs.get(V):this.objs.get(V);L?this.paintInlineImageXObject(L):(0,C.warn)(`Dependent image with object ID ${V} is not ready yet`)}paintInlineImageXObject(V,L){const Y=V.width,G=V.height,q=de(V,this.forceDataSchema,!!L),oe=this.svgFactory.createElement("svg:rect");oe.setAttributeNS(null,"x","0"),oe.setAttributeNS(null,"y","0"),oe.setAttributeNS(null,"width",Z(Y)),oe.setAttributeNS(null,"height",Z(G)),this.current.element=oe,this.clip("nonzero");const se=this.svgFactory.createElement("svg:image");se.setAttributeNS(F,"xlink:href",q),se.setAttributeNS(null,"x","0"),se.setAttributeNS(null,"y",Z(-G)),se.setAttributeNS(null,"width",Z(Y)+"px"),se.setAttributeNS(null,"height",Z(G)+"px"),se.setAttributeNS(null,"transform",`scale(${Z(1/Y)} ${Z(-1/G)})`),L?L.appendChild(se):this._ensureTransformGroup().appendChild(se)}paintImageMaskXObject(V){const L=this.current,Y=V.width,G=V.height,q=L.fillColor;L.maskId="mask"+ee++;const oe=this.svgFactory.createElement("svg:mask");oe.setAttributeNS(null,"id",L.maskId);const se=this.svgFactory.createElement("svg:rect");se.setAttributeNS(null,"x","0"),se.setAttributeNS(null,"y","0"),se.setAttributeNS(null,"width",Z(Y)),se.setAttributeNS(null,"height",Z(G)),se.setAttributeNS(null,"fill",q),se.setAttributeNS(null,"mask",`url(#${L.maskId})`),this.defs.appendChild(oe),this._ensureTransformGroup().appendChild(se),this.paintInlineImageXObject(V,oe)}paintFormXObjectBegin(V,L){if(Array.isArray(V)&&6===V.length&&this.transform(V[0],V[1],V[2],V[3],V[4],V[5]),L){const Y=L[2]-L[0],G=L[3]-L[1],q=this.svgFactory.createElement("svg:rect");q.setAttributeNS(null,"x",L[0]),q.setAttributeNS(null,"y",L[1]),q.setAttributeNS(null,"width",Z(Y)),q.setAttributeNS(null,"height",Z(G)),this.current.element=q,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(V){const L=this.svgFactory.create(V.width,V.height),Y=this.svgFactory.createElement("svg:defs");L.appendChild(Y),this.defs=Y;const G=this.svgFactory.createElement("svg:g");return G.setAttributeNS(null,"transform",ge(V.transform)),L.appendChild(G),this.svg=G,L}_ensureClipGroup(){if(!this.current.clipGroup){const V=this.svgFactory.createElement("svg:g");V.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(V),this.current.clipGroup=V}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",ge(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.PDFNodeStream=void 0;var C=j(2),_=j(24);const M=__webpack_require__(172),w=__webpack_require__(2001),x=__webpack_require__(3779),k=__webpack_require__(6558),F=/^file:\/\/\/[a-zA-Z]:\//;R.PDFNodeStream=class U{constructor(K){this.source=K,this.url=function N(te){const K=k.parse(te);return"file:"===K.protocol||K.host?K:/^[a-z]:[/\\]/i.test(te)?k.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,C.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new z(this):new Z(this),this._fullRequestReader}getRangeReader(K,V){if(V<=this._progressiveDataLength)return null;const L=this.isFsUrl?new ee(this,K,V):new ge(this,K,V);return this._rangeRequestReaders.push(L),L}cancelAllRequests(K){this._fullRequestReader&&this._fullRequestReader.cancel(K),this._rangeRequestReaders.slice(0).forEach(function(L){L.cancel(K)})}};class de{constructor(K){this._url=K.url,this._done=!1,this._storedError=null,this.onProgress=null;const V=K.source;this._contentLength=V.length,this._loaded=0,this._filename=null,this._disableRange=V.disableRange||!1,this._rangeChunkSize=V.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!V.disableStream,this._isRangeSupported=!V.disableRange,this._readableStream=null,this._readCapability=(0,C.createPromiseCapability)(),this._headersCapability=(0,C.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 V=K._readableStream.read();return null===V?(K._readCapability=(0,C.createPromiseCapability)(),K.read()):(K._loaded+=V.length,K.onProgress&&K.onProgress({loaded:K._loaded,total:K._contentLength}),{value:new Uint8Array(V).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",V=>{this._error(V)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new C.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,C.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 V=K._readableStream.read();return null===V?(K._readCapability=(0,C.createPromiseCapability)(),K.read()):(K._loaded+=V.length,K.onProgress&&K.onProgress({loaded:K._loaded}),{value:new Uint8Array(V).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",V=>{this._error(V)}),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 Z extends de{constructor(K){super(K);const V=L=>{if(404===L.statusCode){const oe=new C.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=oe,void this._headersCapability.reject(oe)}this._headersCapability.resolve(),this._setReadableStream(L);const Y=oe=>this._readableStream.headers[oe.toLowerCase()],{allowRangeRequests:G,suggestedLength:q}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Y,isHttp:K.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=G,this._contentLength=q||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Y)};this._request=null,this._request="http:"===this._url.protocol?w.request(ne(this._url,K.httpHeaders),V):x.request(ne(this._url,K.httpHeaders),V),this._request.on("error",L=>{this._storedError=L,this._headersCapability.reject(L)}),this._request.end()}}class ge extends X{constructor(K,V,L){super(K),this._httpHeaders={};for(const G in K.httpHeaders){const q=K.httpHeaders[G];typeof q>"u"||(this._httpHeaders[G]=q)}this._httpHeaders.Range=`bytes=${V}-${L-1}`;const Y=G=>{if(404!==G.statusCode)this._setReadableStream(G);else{const q=new C.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=q}};this._request=null,this._request="http:"===this._url.protocol?w.request(ne(this._url,this._httpHeaders),Y):x.request(ne(this._url,this._httpHeaders),Y),this._request.on("error",G=>{this._storedError=G}),this._request.end()}}class z extends de{constructor(K){super(K);let V=decodeURIComponent(this._url.path);F.test(this._url.href)&&(V=V.replace(/^\//,"")),M.lstat(V,(L,Y)=>{if(L)return"ENOENT"===L.code&&(L=new C.MissingPDFException(`Missing PDF "${V}".`)),this._storedError=L,void this._headersCapability.reject(L);this._contentLength=Y.size,this._setReadableStream(M.createReadStream(V)),this._headersCapability.resolve()})}}class ee extends X{constructor(K,V,L){super(K);let Y=decodeURIComponent(this._url.path);F.test(this._url.href)&&(Y=Y.replace(/^\//,"")),this._setReadableStream(M.createReadStream(Y,{start:V,end:L-1}))}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.createResponseStatusError=function x(F,N){return 404===F||0===F&&N.startsWith("file:")?new C.MissingPDFException('Missing PDF "'+N+'".'):new C.UnexpectedResponseException("Unexpected server response ("+F+') while retrieving PDF "'+N+'".',F)},R.extractFilenameFromHeader=function w(F){const N=F("Content-Disposition");if(N){let U=(0,_.getFilenameFromContentDispositionHeader)(N);if(U.includes("%"))try{U=decodeURIComponent(U)}catch{}if(/\.pdf$/i.test(U))return U}return null},R.validateRangeRequestCapabilities=function M({getResponseHeader:F,isHttp:N,rangeChunkSize:U,disableRange:de}){(0,C.assert)(U>0,"Range chunk size must be larger than zero");const X={allowRangeRequests:!1,suggestedLength:void 0},ne=parseInt(F("Content-Length"),10);return!Number.isInteger(ne)||(X.suggestedLength=ne,ne<=2*U)||de||!N||"bytes"!==F("Accept-Ranges")||"identity"!==(F("Content-Encoding")||"identity")||(X.allowRangeRequests=!0),X},R.validateResponseStatus=function k(F){return 200===F||206===F};var C=j(2),_=j(25)},(Se,R)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.getFilenameFromContentDispositionHeader=function j(C){let _=!0,M=w("filename\\*","i").exec(C);if(M){M=M[1];let X=N(M);return X=unescape(X),X=U(X),X=de(X),k(X)}if(M=function F(X){const ne=[];let Z;const ge=w("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(Z=ge.exec(X));){let[,ee,te,K]=Z;if(ee=parseInt(ee,10),ee in ne){if(0===ee)break}else ne[ee]=[te,K]}const z=[];for(let ee=0;ee{Object.defineProperty(R,"__esModule",{value:!0}),R.PDFNetworkStream=void 0;var C=j(2),_=j(24);class k{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,Z){const ge={begin:X,end:ne};for(const z in Z)ge[z]=Z[z];return this.request(ge)}requestFull(X){return this.request(X)}request(X){const ne=this.getXhr(),Z=this.currXhrId++,ge=this.pendingRequests[Z]={xhr:ne};ne.open("GET",this.url),ne.withCredentials=this.withCredentials;for(const z in this.httpHeaders){const ee=this.httpHeaders[z];typeof ee>"u"||ne.setRequestHeader(z,ee)}return this.isHttp&&"begin"in X&&"end"in X?(ne.setRequestHeader("Range",`bytes=${X.begin}-${X.end-1}`),ge.expectedStatus=206):ge.expectedStatus=200,ne.responseType="arraybuffer",X.onError&&(ne.onerror=function(z){X.onError(ne.status)}),ne.onreadystatechange=this.onStateChange.bind(this,Z),ne.onprogress=this.onProgress.bind(this,Z),ge.onHeadersReceived=X.onHeadersReceived,ge.onDone=X.onDone,ge.onError=X.onError,ge.onProgress=X.onProgress,ne.send(null),Z}onProgress(X,ne){const Z=this.pendingRequests[X];!Z||Z.onProgress&&Z.onProgress(ne)}onStateChange(X,ne){const Z=this.pendingRequests[X];if(!Z)return;const ge=Z.xhr;if(ge.readyState>=2&&Z.onHeadersReceived&&(Z.onHeadersReceived(),delete Z.onHeadersReceived),4!==ge.readyState||!(X in this.pendingRequests))return;if(delete this.pendingRequests[X],0===ge.status&&this.isHttp)return void(Z.onError&&Z.onError(ge.status));const z=ge.status||200;if((200!==z||206!==Z.expectedStatus)&&z!==Z.expectedStatus)return void(Z.onError&&Z.onError(ge.status));const te=function x(de){const X=de.response;return"string"!=typeof X?X:(0,C.stringToBytes)(X).buffer}(ge);if(206===z){const K=ge.getResponseHeader("Content-Range"),V=/bytes (\d+)-(\d+)\/(\d+)/.exec(K);Z.onDone({begin:parseInt(V[1],10),chunk:te})}else te?Z.onDone({begin:0,chunk:te}):Z.onError&&Z.onError(ge.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()}}R.PDFNetworkStream=class F{constructor(X){this._source=X,this._manager=new k(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,C.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new N(this._manager,this._source),this._fullRequestReader}getRangeReader(X,ne){const Z=new U(this._manager,X,ne);return Z.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(Z),Z}cancelAllRequests(X){this._fullRequestReader&&this._fullRequestReader.cancel(X),this._rangeRequestReaders.slice(0).forEach(function(Z){Z.cancel(X)})}};class N{constructor(X,ne){this._manager=X;const Z={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(Z),this._headersReceivedCapability=(0,C.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),Z=ee=>ne.getResponseHeader(ee),{allowRangeRequests:ge,suggestedLength:z}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Z,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});ge&&(this._isRangeSupported=!0),this._contentLength=z||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Z),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 Z=(0,_.createResponseStatusError)(X,this._url);this._storedError=Z,this._headersReceivedCapability.reject(Z),this._requests.forEach(function(ge){ge.reject(Z)}),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,C.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 U{constructor(X,ne,Z){this._manager=X;const ge={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=X.requestRange(ne,Z,ge),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(Z){Z.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 Z=X._queuedChunk;return X._queuedChunk=null,{value:Z,done:!1}}if(X._done)return{value:void 0,done:!0};const ne=(0,C.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()}}},(Se,R,j)=>{Object.defineProperty(R,"__esModule",{value:!0}),R.PDFFetchStream=void 0;var C=j(2),_=j(24);function M(N,U,de){return{method:"GET",headers:N,signal:de?.signal,mode:"cors",credentials:U?"include":"same-origin",redirect:"follow"}}function w(N){const U=new Headers;for(const de in N){const X=N[de];typeof X>"u"||U.append(de,X)}return U}R.PDFFetchStream=class x{constructor(U){this.source=U,this.isHttp=/^https?:/i.test(U.url),this.httpHeaders=this.isHttp&&U.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,C.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new k(this),this._fullRequestReader}getRangeReader(U,de){if(de<=this._progressiveDataLength)return null;const X=new F(this,U,de);return this._rangeRequestReaders.push(X),X}cancelAllRequests(U){this._fullRequestReader&&this._fullRequestReader.cancel(U),this._rangeRequestReaders.slice(0).forEach(function(X){X.cancel(U)})}};class k{constructor(U){this._stream=U,this._reader=null,this._loaded=0,this._filename=null;const de=U.source;this._withCredentials=de.withCredentials||!1,this._contentLength=de.length,this._headersCapability=(0,C.createPromiseCapability)(),this._disableRange=de.disableRange||!1,this._rangeChunkSize=de.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!de.disableStream,this._isRangeSupported=!de.disableRange,this._headers=w(this._stream.httpHeaders);const X=de.url;fetch(X,M(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 Z=ee=>ne.headers.get(ee),{allowRangeRequests:ge,suggestedLength:z}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Z,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=ge,this._contentLength=z||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Z),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new C.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 U=this;return _asyncToGenerator(function*(){yield U._headersCapability.promise;const{value:de,done:X}=yield U._reader.read();return X?{value:de,done:X}:(U._loaded+=de.byteLength,U.onProgress&&U.onProgress({loaded:U._loaded,total:U._contentLength}),{value:new Uint8Array(de).buffer,done:!1})})()}cancel(U){this._reader&&this._reader.cancel(U),this._abortController&&this._abortController.abort()}}class F{constructor(U,de,X){this._stream=U,this._reader=null,this._loaded=0;const ne=U.source;this._withCredentials=ne.withCredentials||!1,this._readCapability=(0,C.createPromiseCapability)(),this._isStreamingSupported=!ne.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=w(this._stream.httpHeaders),this._headers.append("Range",`bytes=${de}-${X-1}`);const Z=ne.url;fetch(Z,M(this._headers,this._withCredentials,this._abortController)).then(ge=>{if(!(0,_.validateResponseStatus)(ge.status))throw(0,_.createResponseStatusError)(ge.status,Z);this._readCapability.resolve(),this._reader=ge.body.getReader()}).catch(ge=>{if("AbortError"!==ge?.name)throw ge}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var U=this;return _asyncToGenerator(function*(){yield U._readCapability.promise;const{value:de,done:X}=yield U._reader.read();return X?{value:de,done:X}:(U._loaded+=de.byteLength,U.onProgress&&U.onProgress({loaded:U._loaded}),{value:new Uint8Array(de).buffer,done:!1})})()}cancel(U){this._reader&&this._reader.cancel(U),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(Se){if(__webpack_module_cache__[Se])return __webpack_module_cache__[Se].exports;var R=__webpack_module_cache__[Se]={exports:{}};return __webpack_modules__[Se](R,R.exports,__w_pdfjs_require__),R.exports}return __w_pdfjs_require__(0)})()},module.exports=j()},2813:function(Se,R,j){var C=j(7156).default;Se.exports=(()=>{"use strict";var _=[(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(k,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return N.AnnotationLayerBuilder}}),Object.defineProperty(k,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return N.DefaultAnnotationLayerFactory}}),Object.defineProperty(k,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return U.DefaultTextLayerFactory}}),Object.defineProperty(k,"TextLayerBuilder",{enumerable:!0,get:function(){return U.TextLayerBuilder}}),Object.defineProperty(k,"EventBus",{enumerable:!0,get:function(){return de.EventBus}}),Object.defineProperty(k,"NullL10n",{enumerable:!0,get:function(){return de.NullL10n}}),Object.defineProperty(k,"ProgressBar",{enumerable:!0,get:function(){return de.ProgressBar}}),Object.defineProperty(k,"PDFLinkService",{enumerable:!0,get:function(){return X.PDFLinkService}}),Object.defineProperty(k,"SimpleLinkService",{enumerable:!0,get:function(){return X.SimpleLinkService}}),Object.defineProperty(k,"DownloadManager",{enumerable:!0,get:function(){return ne.DownloadManager}}),Object.defineProperty(k,"GenericL10n",{enumerable:!0,get:function(){return Z.GenericL10n}}),Object.defineProperty(k,"PDFFindController",{enumerable:!0,get:function(){return ge.PDFFindController}}),Object.defineProperty(k,"PDFHistory",{enumerable:!0,get:function(){return z.PDFHistory}}),Object.defineProperty(k,"PDFPageView",{enumerable:!0,get:function(){return ee.PDFPageView}}),Object.defineProperty(k,"PDFSinglePageViewer",{enumerable:!0,get:function(){return te.PDFSinglePageViewer}}),Object.defineProperty(k,"PDFViewer",{enumerable:!0,get:function(){return K.PDFViewer}});var N=F(1),U=F(5),de=F(3),X=F(4),ne=F(6),Z=F(8),ge=F(10),z=F(12),ee=F(13),te=F(15),K=F(17)},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.DefaultAnnotationLayerFactory=k.AnnotationLayerBuilder=void 0;var N=F(2),U=F(3),de=F(4);class X{constructor({pageDiv:ge,pdfPage:z,linkService:ee,downloadManager:te,annotationStorage:K=null,imageResourcesPath:V="",renderInteractiveForms:L=!0,l10n:Y=U.NullL10n,enableScripting:G=!1,hasJSActionsPromise:q=null,mouseState:oe=null}){this.pageDiv=ge,this.pdfPage=z,this.linkService=ee,this.downloadManager=te,this.imageResourcesPath=V,this.renderInteractiveForms=L,this.l10n=Y,this.annotationStorage=K,this.enableScripting=G,this._hasJSActionsPromise=q,this._mouseState=oe,this.div=null,this._cancelled=!1}render(ge,z="display"){return Promise.all([this.pdfPage.getAnnotations({intent:z}),this._hasJSActionsPromise]).then(([ee,te=!1])=>{if(this._cancelled||0===ee.length)return;const K={viewport:ge.clone({dontFlip:!0}),div:this.div,annotations:ee,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?N.AnnotationLayer.update(K):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),K.div=this.div,N.AnnotationLayer.render(K),this.l10n.translate(this.div))})}cancel(){this._cancelled=!0}hide(){!this.div||this.div.setAttribute("hidden","true")}}k.AnnotationLayerBuilder=X;k.DefaultAnnotationLayerFactory=class ne{createAnnotationLayerBuilder(ge,z,ee=null,te="",K=!0,V=U.NullL10n,L=!1,Y=null,G=null){return new X({pageDiv:ge,pdfPage:z,imageResourcesPath:te,renderInteractiveForms:K,linkService:new de.SimpleLinkService,l10n:V,annotationStorage:ee,enableScripting:L,hasJSActionsPromise:Y,mouseState:G})}}},x=>{let k;k=typeof window<"u"&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:j(6036),x.exports=k},(x,k)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.approximateFraction=function ue(Le){if(Math.floor(Le)===Le)return[Le,1];const et=1/Le;if(et>8)return[1,8];if(Math.floor(et)===et)return[1,et];const Ge=Le>1?et:Le;let ti,Tt=0,yt=1,an=1,Cn=1;for(;;){const on=Tt+an,Yt=yt+Cn;if(Yt>8)break;Ge<=on/Yt?(an=on,Cn=Yt):(Tt=on,yt=Yt)}return ti=Ge-Tt/ytCn}:function on(Ni){const sr=Ni.div;return sr.offsetTop+sr.clientTop+sr.clientHeight>yt});fs>0&&fs=an&&(Jc=sn);else if((Ge?ao:He)>Jc)break;if(sn<=yt||He>=an||Ct<=Cn||ao>=ti)continue;const Mn=Math.max(0,yt-He)+Math.max(0,sn-an),Ao=(Ne-(Math.max(0,Cn-ao)+Math.max(0,Ct-ti)))/Ne;Gr.push({id:sr.id,x:ao,y:He,view:sr,percent:(ze-Mn)/ze*Ao*100|0,widthPercent:100*Ao|0})}const Xp=Gr[0],mu=Gr[Gr.length-1];return at&&Gr.sort(function(Ni,sr){const fr=Ni.percent-sr.percent;return Math.abs(fr)>.001?-fr:Ni.id-sr.id}),{first:Xp,last:mu,views:Gr}},k.isPortraitOrientation=function Ve(Le){return Le.width<=Le.height},k.isValidRotation=function Be(Le){return Number.isInteger(Le)&&Le%90==0},k.isValidScrollMode=function je(Le){return Number.isInteger(Le)&&Object.values(Y).includes(Le)&&Le!==Y.UNKNOWN},k.isValidSpreadMode=function Je(Le){return Number.isInteger(Le)&&Object.values(G).includes(Le)&&Le!==G.UNKNOWN},k.moveToEndOfArray=function Gi(Le,et){const at=[],Ge=Le.length;let Tt=0;for(let yt=0;yt1?yt[1]:null;at[decodeURIComponent(an)]=decodeURIComponent(Cn)}return at},k.roundToDivide=function ie(Le,et){const at=Le%et;return 0===at?Le:Math.round(Le-at+et)},k.scrollIntoView=function xe(Le,et,at=!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||at&&"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;et&&(void 0!==et.top&&(Tt+=et.top),void 0!==et.left&&(yt+=et.left,Ge.scrollLeft=yt)),Ge.scrollTop=Tt},k.waitOnEventOrTimeout=function Nt({target:Le,name:et,delay:at=0}){return new Promise(function(Ge,Tt){if("object"!=typeof Le||!et||"string"!=typeof et||!(Number.isInteger(at)&&at>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function yt(on){Le instanceof Kt?Le._off(et,an):Le.removeEventListener(et,an),ti&&clearTimeout(ti),Ge(on)}const an=yt.bind(null,dt.EVENT);Le instanceof Kt?Le._on(et,an):Le.addEventListener(et,an);const Cn=yt.bind(null,dt.TIMEOUT),ti=setTimeout(Cn,at)})},k.watchScroll=function be(Le,et){const at=function(yt){Tt||(Tt=window.requestAnimationFrame(function(){Tt=null;const Cn=Le.scrollLeft,ti=Ge.lastX;Cn!==ti&&(Ge.right=Cn>ti),Ge.lastX=Cn;const on=Le.scrollTop,Yt=Ge.lastY;on!==Yt&&(Ge.down=on>Yt),Ge.lastY=on,et(Ge)}))},Ge={right:!0,down:!0,lastX:Le.scrollLeft,lastY:Le.scrollTop,_eventHandler:at};let Tt=null;return Le.addEventListener("scroll",at,!0),Ge},k.WaitOnType=k.VERTICAL_PADDING=k.UNKNOWN_SCALE=k.TextLayerMode=k.SpreadMode=k.SidebarView=k.ScrollMode=k.SCROLLBAR_PADDING=k.RendererType=k.ProgressBar=k.PresentationModeState=k.NullL10n=k.MIN_SCALE=k.MAX_SCALE=k.MAX_AUTO_SCALE=k.EventBus=k.DEFAULT_SCALE_VALUE=k.DEFAULT_SCALE=k.CSS_UNITS=k.AutoPrintRegExp=k.animationStarted=void 0,k.CSS_UNITS=96/72,k.DEFAULT_SCALE_VALUE="auto",k.DEFAULT_SCALE=1,k.MIN_SCALE=.1,k.MAX_SCALE=10,k.UNKNOWN_SCALE=0,k.MAX_AUTO_SCALE=1.25,k.SCROLLBAR_PADDING=40,k.VERTICAL_PADDING=5;k.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},k.SidebarView={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4},k.RendererType={CANVAS:"canvas",SVG:"svg"},k.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const Y={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};k.ScrollMode=Y;const G={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function ve(Le,et){let at=0,Ge=Le.length-1;if(Ge<0||!et(Le[Ge]))return Le.length;if(et(Le[at]))return at;for(;at>1;et(Le[Tt])?Ge=Tt:at=Tt+1}return at}function le(Le,et,at){if(Le<2)return Le;let Ge=et[Le].div,Tt=Ge.offsetTop+Ge.clientTop;Tt>=at&&(Ge=et[Le-1].div,Tt=Ge.offsetTop+Ge.clientTop);for(let yt=Le-2;yt>=0&&(Ge=et[yt].div,!(Ge.offsetTop+Ge.clientTop+Ge.clientHeight<=Tt));--yt)Le=yt;return Le}function Pe(Le){let et=Math.sqrt(Le.deltaX*Le.deltaX+Le.deltaY*Le.deltaY);const at=Math.atan2(Le.deltaY,Le.deltaX);return-.25*Math.PIC(function*(){return"en-us"})(),getDirection:()=>C(function*(){return"ltr"})(),get:(Le,et,at)=>C(function*(){return function oe(Le,et){return et?Le.replace(/\{\{\s*(\w+)\s*\}\}/g,(at,Ge)=>Ge in et?et[Ge]:"{{"+Ge+"}}"):Le}(at,et)})(),translate:Le=>C(function*(){})()};const dt={EVENT:"event",TIMEOUT:"timeout"};k.WaitOnType=dt;const Ft=new Promise(function(Le){window.requestAnimationFrame(Le)});k.animationStarted=Ft;class Kt{constructor(et){this._listeners=Object.create(null)}on(et,at,Ge=null){this._on(et,at,{external:!0,once:Ge?.once})}off(et,at,Ge=null){this._off(et,at,{external:!0,once:Ge?.once})}dispatch(et){const at=this._listeners[et];if(!at||0===at.length)return;const Ge=Array.prototype.slice.call(arguments,1);let Tt;at.slice(0).forEach(({listener:yt,external:an,once:Cn})=>{Cn&&this._off(et,yt),an?(Tt||(Tt=[])).push(yt):yt.apply(null,Ge)}),Tt&&(Tt.forEach(yt=>{yt.apply(null,Ge)}),Tt=null)}_on(et,at,Ge=null){var Tt;((Tt=this._listeners)[et]||(Tt[et]=[])).push({listener:at,external:!0===Ge?.external,once:!0===Ge?.once})}_off(et,at,Ge=null){const Tt=this._listeners[et];if(Tt)for(let yt=0,an=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"))}}},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.SimpleLinkService=k.PDFLinkService=void 0;var N=F(3);k.PDFLinkService=class U{constructor({eventBus:Z,externalLinkTarget:ge=null,externalLinkRel:z=null,externalLinkEnabled:ee=!0,ignoreDestinationZoom:te=!1}={}){this.eventBus=Z,this.externalLinkTarget=ge,this.externalLinkRel=z,this.externalLinkEnabled=ee,this._ignoreDestinationZoom=te,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(Z,ge=null){this.baseUrl=ge,this.pdfDocument=Z,this._pagesRefCache=Object.create(null)}setViewer(Z){this.pdfViewer=Z}setHistory(Z){this.pdfHistory=Z}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(Z){this.pdfViewer.currentPageNumber=Z}get rotation(){return this.pdfViewer.pagesRotation}set rotation(Z){this.pdfViewer.pagesRotation=Z}navigateTo(Z){console.error("Deprecated method: `navigateTo`, use `goToDestination` instead."),this.goToDestination(Z)}_goToDestinationHelper(Z,ge=null,z){const ee=z[0];let te;if(ee instanceof Object){if(te=this._cachedPageNumber(ee),null===te)return void this.pdfDocument.getPageIndex(ee).then(K=>{this.cachePageRef(K+1,ee),this._goToDestinationHelper(Z,ge,z)}).catch(()=>{console.error(`PDFLinkService._goToDestinationHelper: "${ee}" is not a valid page reference, for dest="${Z}".`)})}else{if(!Number.isInteger(ee))return void console.error(`PDFLinkService._goToDestinationHelper: "${ee}" is not a valid destination reference, for dest="${Z}".`);te=ee+1}!te||te<1||te>this.pagesCount?console.error(`PDFLinkService._goToDestinationHelper: "${te}" is not a valid page number, for dest="${Z}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:ge,explicitDest:z,pageNumber:te})),this.pdfViewer.scrollPageIntoView({pageNumber:te,destArray:z,ignoreDestinationZoom:this._ignoreDestinationZoom}))}goToDestination(Z){var ge=this;return C(function*(){if(!ge.pdfDocument)return;let z,ee;"string"==typeof Z?(z=Z,ee=yield ge.pdfDocument.getDestination(Z)):(z=null,ee=yield Z),Array.isArray(ee)?ge._goToDestinationHelper(Z,z,ee):console.error(`PDFLinkService.goToDestination: "${ee}" is not a valid destination array, for dest="${Z}".`)})()}goToPage(Z){if(!this.pdfDocument)return;const ge="string"==typeof Z&&this.pdfViewer.pageLabelToPageNumber(Z)||0|Z;Number.isInteger(ge)&&ge>0&&ge<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(ge)),this.pdfViewer.scrollPageIntoView({pageNumber:ge})):console.error(`PDFLinkService.goToPage: "${Z}" is not a valid page.`)}getDestinationHash(Z){if("string"==typeof Z){if(Z.length>0)return this.getAnchorUrl("#"+escape(Z))}else if(Array.isArray(Z)){const ge=JSON.stringify(Z);if(ge.length>0)return this.getAnchorUrl("#"+escape(ge))}return this.getAnchorUrl("")}getAnchorUrl(Z){return(this.baseUrl||"")+Z}setHash(Z){if(!this.pdfDocument)return;let ge,z;if(Z.includes("=")){const ee=(0,N.parseQueryString)(Z);if("search"in ee&&this.eventBus.dispatch("findfromurlhash",{source:this,query:ee.search.replace(/"/g,""),phraseSearch:"true"===ee.phrase}),"page"in ee&&(ge=0|ee.page||1),"zoom"in ee){const te=ee.zoom.split(","),K=te[0],V=parseFloat(K);K.includes("Fit")?"Fit"===K||"FitB"===K?z=[null,{name:K}]:"FitH"===K||"FitBH"===K||"FitV"===K||"FitBV"===K?z=[null,{name:K},te.length>1?0|te[1]:null]:"FitR"===K?5!==te.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):z=[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.`):z=[null,{name:"XYZ"},te.length>1?0|te[1]:null,te.length>2?0|te[2]:null,V?V/100:K]}z?this.pdfViewer.scrollPageIntoView({pageNumber:ge||this.page,destArray:z,allowNegativeOffset:!0}):ge&&(this.page=ge),"pagemode"in ee&&this.eventBus.dispatch("pagemode",{source:this,mode:ee.pagemode}),"nameddest"in ee&&this.goToDestination(ee.nameddest)}else{z=unescape(Z);try{z=JSON.parse(z),Array.isArray(z)||(z=z.toString())}catch{}if("string"==typeof z||function de(ne){if(!Array.isArray(ne))return!1;const Z=ne.length;if(Z<2)return!1;const ge=ne[0];if(!("object"==typeof ge&&Number.isInteger(ge.num)&&Number.isInteger(ge.gen)||Number.isInteger(ge)&&ge>=0))return!1;const z=ne[1];if("object"!=typeof z||"string"!=typeof z.name)return!1;let ee=!0;switch(z.name){case"XYZ":if(5!==Z)return!1;break;case"Fit":case"FitB":return 2===Z;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==Z)return!1;break;case"FitR":if(6!==Z)return!1;ee=!1;break;default:return!1}for(let te=2;te{Object.defineProperty(k,"__esModule",{value:!0}),k.TextLayerBuilder=k.DefaultTextLayerFactory=void 0;var N=F(2);class de{constructor({textLayerDiv:Z,eventBus:ge,pageIndex:z,viewport:ee,findController:te=null,enhanceTextSelection:K=!1}){this.textLayerDiv=Z,this.eventBus=ge,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=z,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=ee,this.textDivs=[],this.findController=te,this.textLayerRenderTask=null,this.enhanceTextSelection=K,this._onUpdateTextLayerMatches=null,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const Z=document.createElement("div");Z.className="endOfContent",this.textLayerDiv.appendChild(Z)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(Z=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs=[];const ge=document.createDocumentFragment();this.textLayerRenderTask=(0,N.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:ge,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:Z,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild(ge),this._finishRendering(),this._updateMatches()},function(z){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=z=>{(z.pageIndex===this.pageIdx||-1===z.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(Z){this.cancel(),this.textContentStream=Z}setTextContent(Z){this.cancel(),this.textContent=Z}_convertMatches(Z,ge){if(!Z)return[];const{textContentItemsStr:z}=this;let ee=0,te=0;const K=z.length-1,V=[];for(let L=0,Y=Z.length;L=te+z[ee].length;)te+=z[ee].length,ee++;ee===z.length&&console.error("Could not find a matching mapping");const q={begin:{divIdx:ee,offset:G-te}};for(G+=ge[L];ee!==K&&G>te+z[ee].length;)te+=z[ee].length,ee++;q.end={divIdx:ee,offset:G-te},V.push(q)}return V}_renderMatches(Z){if(0===Z.length)return;const{findController:ge,pageIdx:z,textContentItemsStr:ee,textDivs:te}=this,K=z===ge.selected.pageIdx,V=ge.selected.matchIdx;let Y=null;const G_offset=void 0;function q(xe,be){const De=xe.divIdx;te[De].textContent="",oe(De,0,xe.offset,be)}function oe(xe,be,De,ve){const ue=te[xe],ie=ee[xe].substring(be,De),S=document.createTextNode(ie);if(ve){const le=document.createElement("span");return le.className=ve,le.appendChild(S),void ue.appendChild(le)}ue.appendChild(S)}let se=V,ke=se+1;if(ge.state.highlightAll)se=0,ke=Z.length;else if(!K)return;for(let xe=se;xe{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(ge&&(clearTimeout(ge),ge=null));const ee=Z.querySelector(".endOfContent");if(!ee)return;let te=z.target!==Z;if(te=te&&"none"!==window.getComputedStyle(ee).getPropertyValue("-moz-user-select"),te){const K=Z.getBoundingClientRect(),V=Math.max(0,(z.pageY-K.top)/K.height);ee.style.top=(100*V).toFixed(2)+"%"}ee.classList.add("active")}),Z.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(ge=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),ge=null},300));const z=Z.querySelector(".endOfContent");!z||(z.style.top="",z.classList.remove("active"))})}}k.TextLayerBuilder=de;k.DefaultTextLayerFactory=class X{createTextLayerBuilder(Z,ge,z,ee=!1,te){return new de({textLayerDiv:Z,pageIndex:ge,viewport:z,enhanceTextSelection:ee,eventBus:te})}}},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.DownloadManager=void 0;var N=F(2),U=F(7);function de(ne,Z){const ge=document.createElement("a");if(!ge.click)throw new Error('DownloadManager: "a.click()" is not supported.');ge.href=ne,ge.target="_parent","download"in ge&&(ge.download=Z),(document.body||document.documentElement).appendChild(ge),ge.click(),ge.remove()}k.DownloadManager=class X{downloadUrl(Z,ge){!(0,N.createValidAbsoluteUrl)(Z,"http://example.com")||de(Z+"#pdfjs.action=download",ge)}downloadData(Z,ge,z){de((0,N.createObjectURL)(Z,z,U.viewerCompatibilityParams.disableCreateObjectURL),ge)}download(Z,ge,z,ee="download"){U.viewerCompatibilityParams.disableCreateObjectURL?this.downloadUrl(ge,z):de(URL.createObjectURL(Z),z)}}},(x,k)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.viewerCompatibilityParams=void 0;const F=Object.create(null);{const U=typeof navigator<"u"&&navigator.userAgent||"",de=typeof navigator<"u"&&navigator.platform||"",X=typeof navigator<"u"&&navigator.maxTouchPoints||1,ne=/Android/.test(U),Z=/\b(iPad|iPhone|iPod)(?=;)/.test(U)||"MacIntel"===de&&X>1;/CriOS/.test(U)&&(F.disableCreateObjectURL=!0),(Z||ne)&&(F.maxCanvasPixels=5242880)}const N=Object.freeze(F);k.viewerCompatibilityParams=N},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.GenericL10n=void 0,F(9);const N=document.webL10n;k.GenericL10n=class U{constructor(X){this._lang=X,this._ready=new Promise((ne,Z)=>{N.setLanguage(X,()=>{ne(N)})})}getLanguage(){var X=this;return C(function*(){return(yield X._ready).getLanguage()})()}getDirection(){var X=this;return C(function*(){return(yield X._ready).getDirection()})()}get(X,ne,Z){var ge=this;return C(function*(){return(yield ge._ready).get(X,ne,Z)})()}translate(X){var ne=this;return C(function*(){return(yield ne._ready).translate(X)})()}}},()=>{document.webL10n=function(x,k,F){var N={},U="",de="textContent",X="",ne={},Z="loading";function V(ve,ue,ie){ue=ue||function(he){},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?ue(S.responseText):ie())},S.onerror=ie,S.ontimeout=ie;try{S.send(null)}catch{ie()}}function L(ve,ue,ie,S){var le=ve.replace(/[^\/]*$/,"")||"./";function he(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,"'")}V(ve,function(me){U+=me,function ce(me,Ce){var Pe={},Ee=/^\s*|\s*$/,Be=/^\s*#|^\s*$/,je=/^\s*\[(.*)\]\s*$/,Je=/^\s*@import\s+url\((.*)\)\s*$/i,Ve=/^([^=\s]*)\s*=\s*(.+)$/;function dt(Ft,Bt,Kt){var gn=Ft.replace(Ee,"").split(/[\r\n]+/),Xi="*",Gi=ue.split("-",1)[0],zt=!1,Le="";!function et(){for(;;){if(!gn.length)return void Kt();var at=gn.shift();if(!Be.test(at)){if(Bt){if(Le=je.exec(at)){Xi=Le[1].toLowerCase(),zt="*"!==Xi&&Xi!==ue&&Xi!==Gi;continue}if(zt)continue;if(Le=Je.exec(at))return void Nt(le+Le[1],et)}var Ge=at.match(Ve);Ge&&3==Ge.length&&(Pe[Ge[1]]=he(Ge[2]))}}}()}function Nt(Ft,Bt){V(Ft,function(Kt){dt(Kt,!1,Bt)},function(){console.warn(Ft+" not found."),Bt()})}dt(me,!0,function(){Ce(Pe)})}(me,function(Ce){for(var Pe in Ce){var Ee,Be,je=Pe.lastIndexOf(".");je>0?(Ee=Pe.substring(0,je),Be=Pe.substring(je+1)):(Ee=Pe,Be=de),N[Ee]||(N[Ee]={}),N[Ee][Be]=Ce[Pe]}ie&&ie()})},S)}function Y(ve,ue){ve&&(ve=ve.toLowerCase()),ue=ue||function(){},function G(){N={},U="",X=""}(),X=ve;var ie=function z(){return k.querySelectorAll('link[type="application/l10n"]')}(),S=ie.length;if(0!==S){var me,Ce=0;me=function(){++Ce>=S&&(ue(),Z="complete")};for(var Ee=0;Ee0&&(le=ve.substring(S+1),ve=ve.substring(0,S)),ie&&((he={})[le]=ie);var ce=oe(ve,ue,he);return ce&&le in ce?ce[le]:"{{"+ve+"}}"},getData:function(){return N},getText:function(){return U},getLanguage:function(){return X},setLanguage:function(ve,ue){Y(ve,function(){ue&&ue()})},getDirection:function(){var ue=X.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(ue)>=0?"rtl":"ltr"},translate:function De(ve){for(var ue=function te(ve){return ve?ve.querySelectorAll("*[data-l10n-id]"):[]}(ve=ve||k.documentElement),ie=ue.length,S=0;S{Object.defineProperty(k,"__esModule",{value:!0}),k.PDFFindController=k.FindState=void 0;var N=F(2),U=F(11),de=F(3);const X={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};k.FindState=X;const z={"\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"};let ee=null;function te(L){if(!ee){const q=Object.keys(z).join("");ee=new RegExp(`[${q}]`,"g")}let Y=null;return[L.replace(ee,function(q,oe){const se=z[q],ke=se.length-q.length;return 0!==ke&&(Y||(Y=[])).push([oe,ke]),se}),Y]}function K(L,Y=null){if(!Y)return L;let G=0;for(const[q,oe]of Y){const se=q+G;if(se>=L)break;if(se+oe>L){G+=L-se;break}G+=oe}return L-G}k.PDFFindController=class V{constructor({linkService:Y,eventBus:G}){this._linkService=Y,this._eventBus=G,this._reset(),G._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,G){if(!G)return;const q=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(Y,G))&&(this._dirtyMatch=!0),this._state=G,"findhighlightallchange"!==Y&&this._updateUIState(X.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||q&&this._pdfDocument!==q)return;this._extractText();const oe=!this._highlightMatches,se=!!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(),oe&&this._state.highlightAll&&this._updateAllPages()):"findhighlightallchange"===Y?(se?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch()})}scrollMatchIntoView({element:Y=null,pageIndex:G=-1,matchIndex:q=-1}){this._scrollMatches&&Y&&-1!==q&&q===this._selected.matchIdx&&-1!==G&&G===this._selected.pageIdx&&(this._scrollMatches=!1,(0,de.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,N.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=te(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(Y,G){if(G.query!==this._state.query)return!0;switch(Y){case"findagain":const q=this._selected.pageIdx+1,oe=this._linkService;return q>=1&&q<=oe.pagesCount&&q!==oe.page&&!oe.isPageVisible(q);case"findhighlightallchange":return!1}return!0}_prepareMatches(Y,G,q){function oe(se){const ke=Y[se];if(se=0;be--){const De=Y[be];if(!De.skipped){if(De.match+De.matchLength=ke.match+ke.matchLength)return ke.skipped=!0,!0}}return!1}Y.sort(function(se,ke){return se.match===ke.match?se.matchLength-ke.matchLength:se.match-ke.match});for(let se=0,ke=Y.length;se0){const se=Y.charCodeAt(G),ke=Y.charCodeAt(G-1);if((0,U.getCharacterType)(se)===(0,U.getCharacterType)(ke))return!1}const oe=G+q-1;if(oe0&&(this._matchesCountTotal+=be,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let Y=Promise.resolve();for(let G=0,q=this._linkService.pagesCount;Gthis._pdfDocument.getPage(G+1).then(se=>se.getTextContent({normalizeWhitespace:!0})).then(se=>{const ke=se.items,xe=[];for(let be=0,De=ke.length;be{console.error(`Unable to get text content for page ${G+1}`,se),this._pageContents[G]="",this._pageDiffs[G]=null,oe.resolve(G)}))}}_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,G=this._linkService.page-1,q=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=G,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 se=0;se{delete this._pendingFindMatches[ke],this._calculateMatch(ke)}))}if(""===this._query)return void this._updateUIState(X.FOUND);if(this._resumePageIdx)return;const oe=this._offset;if(this._pagesToSearch=q,null!==oe.matchIdx){const se=this._pageMatches[oe.pageIdx].length;if(!Y&&oe.matchIdx+10)return oe.matchIdx=Y?oe.matchIdx-1:oe.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(Y)}this._nextPageMatch()}_matchesReady(Y){const G=this._offset,q=Y.length,oe=this._state.findPrevious;return q?(G.matchIdx=oe?q-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(oe),!!(G.wrapped&&(G.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 G=this._offset.pageIdx;if(Y=this._pageMatches[G],!Y){this._resumePageIdx=G;break}}while(!this._matchesReady(Y))}_advanceOffsetPage(Y){const G=this._offset,q=this._linkService.pagesCount;G.pageIdx=Y?G.pageIdx-1:G.pageIdx+1,G.matchIdx=null,this._pagesToSearch--,(G.pageIdx>=q||G.pageIdx<0)&&(G.pageIdx=Y?q-1:0,G.wrapped=!0)}_updateMatch(Y=!1){let G=X.NOT_FOUND;const q=this._offset.wrapped;if(this._offset.wrapped=!1,Y){const oe=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,G=q?X.WRAPPED:X.FOUND,-1!==oe&&oe!==this._selected.pageIdx&&this._updatePage(oe)}this._updateUIState(G,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(Y){const G=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||G&&this._pdfDocument!==G||(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:G}=this._selected;let q=0,oe=this._matchesCountTotal;if(-1!==G){for(let se=0;seoe)&&(q=oe=0),{current:q,total:oe}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(Y,G){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:Y,previous:G,matchesCount:this._requestMatchesCount(),rawQuery:this._state?this._state.query:null})}}},(x,k)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.getCharacterType=function K(V){return function N(V){return V<11904}(V)?function U(V){return 0==(65408&V)}(V)?function ne(V){return 32===V||9===V||13===V||10===V}(V)?F.SPACE:function de(V){return V>=97&&V<=122||V>=65&&V<=90}(V)||function X(V){return V>=48&&V<=57}(V)||95===V?F.ALPHA_LETTER:F.PUNCT:function te(V){return 3584==(65408&V)}(V)?F.THAI_LETTER:160===V?F.SPACE:F.ALPHA_LETTER:function Z(V){return V>=13312&&V<=40959||V>=63744&&V<=64255}(V)?F.HAN_LETTER:function ge(V){return V>=12448&&V<=12543}(V)?F.KATAKANA_LETTER:function z(V){return V>=12352&&V<=12447}(V)?F.HIRAGANA_LETTER:function ee(V){return V>=65376&&V<=65439}(V)?F.HALFWIDTH_KATAKANA_LETTER:F.ALPHA_LETTER},k.CharacterType=void 0;const F={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};k.CharacterType=F},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.isDestArraysEqual=z,k.isDestHashesEqual=ge,k.PDFHistory=void 0;var N=F(3);function ne(){return document.location.hash}function ge(ee,te){if("string"!=typeof ee||"string"!=typeof te)return!1;if(ee===te)return!0;const{nameddest:K}=(0,N.parseQueryString)(ee);return K===te}function z(ee,te){function K(V,L){if(typeof V!=typeof L||Array.isArray(V)||Array.isArray(L))return!1;if(null!==V&&"object"==typeof V&&null!==L){if(Object.keys(V).length!==Object.keys(L).length)return!1;for(const Y in V)if(!K(V[Y],L[Y]))return!1;return!0}return V===L||Number.isNaN(V)&&Number.isNaN(L)}if(!Array.isArray(ee)||!Array.isArray(te)||ee.length!==te.length)return!1;for(let V=0,L=ee.length;V{this._isViewerInPresentationMode=V.state!==N.PresentationModeState.NORMAL}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",V=>{this._isPagesLoaded=!!V.pagesCount},{once:!0})})}initialize({fingerprint:te,resetHistory:K=!1,updateUrl:V=!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 L=""!==this._fingerprint&&this._fingerprint!==te;this._fingerprint=te,this._updateUrl=!0===V,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:q,page:oe,rotation:se}=this._parseCurrentHash(!0);return!q||L||K?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:q,page:oe,rotation:se},!0)}const G=Y.destination;this._updateInternalState(G,Y.uid,!0),void 0!==G.rotation&&(this._initialRotation=G.rotation),G.dest?(this._initialBookmark=JSON.stringify(G.dest),this._destination.page=null):G.hash?this._initialBookmark=G.hash:G.page&&(this._initialBookmark=`page=${G.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:V}){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(V)&&V>0&&V<=this.linkService.pagesCount)&&(null!==V||this._destination))return void console.error(`PDFHistory.push: "${V}" is not a valid pageNumber parameter.`);const L=te||JSON.stringify(K);if(!L)return;let Y=!1;if(this._destination&&(ge(this._destination.hash,L)||z(this._destination.dest,K))){if(this._destination.page)return;Y=!0}this._popStateInProgress&&!Y||(this._pushOrReplaceState({dest:K,hash:L,page:V,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 V=K||!this._destination,L={fingerprint:this._fingerprint,uid:V?this._uid:this._uid+1,destination:te};let Y;if(this._updateInternalState(te,L.uid),this._updateUrl&&te?.hash){const G=document.location.href.split("#")[0];G.startsWith("file://")||(Y=`${G}#${te.hash}`)}V?window.history.replaceState(L,"",Y):window.history.pushState(L,"",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 V=!1;if(this._destination.page>=K.first&&this._destination.page<=K.page){if(this._destination.dest||!this._destination.first)return;V=!0}this._pushOrReplaceState(K,V)}_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[V]=performance.getEntriesByType("navigation");if("reload"!==V?.type)return!1}}return!(!Number.isInteger(te.uid)||te.uid<0||null===te.destination||"object"!=typeof te.destination)}_updateInternalState(te,K,V=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),V&&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),V=(0,N.parseQueryString)(K),L=V.nameddest||"";let Y=0|V.page;return(!(Number.isInteger(Y)&&Y>0&&Y<=this.linkService.pagesCount)||te&&L.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(),V=this._currentHash!==K;if(this._currentHash=K,!te){this._uid++;const{hash:Y,page:G,rotation:q}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:Y,page:G,rotation:q},!0)}if(!this._isValidState(te))return;this._popStateInProgress=!0,V&&(this._blockHashChange++,(0,N.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const L=te.destination;this._updateInternalState(L,te.uid,!0),(0,N.isValidRotation)(L.rotation)&&(this.linkService.rotation=L.rotation),L.dest?this.linkService.goToDestination(L.dest):L.hash?this.linkService.setHash(L.hash):L.page&&(this.linkService.page=L.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)}}},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.PDFPageView=void 0;var N=F(3),U=F(2),de=F(14);const ne=F(7).viewerCompatibilityParams.maxCanvasPixels||16777216;k.PDFPageView=class Z{constructor(z){const ee=z.container,te=z.defaultViewport;this.id=z.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=z.scale||N.DEFAULT_SCALE,this.viewport=te,this.pdfPageRotate=te.rotation,this._optionalContentConfigPromise=z.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(z.textLayerMode)?z.textLayerMode:N.TextLayerMode.ENABLE,this.imageResourcesPath=z.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof z.renderInteractiveForms||z.renderInteractiveForms,this.useOnlyCssZoom=z.useOnlyCssZoom||!1,this.maxCanvasPixels=z.maxCanvasPixels||ne,this.eventBus=z.eventBus,this.renderingQueue=z.renderingQueue,this.textLayerFactory=z.textLayerFactory,this.annotationLayerFactory=z.annotationLayerFactory,this.renderer=z.renderer||N.RendererType.CANVAS,this.enableWebGL=z.enableWebGL||!1,this.l10n=z.l10n||N.NullL10n,this.enableScripting=z.enableScripting||!1,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=de.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,ee.appendChild(K)}setPdfPage(z){this.pdfPage=z,this.pdfPageRotate=z.rotate,this.viewport=z.getViewport({scale:this.scale*N.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var z=this;return C(function*(){let ee=null;try{yield z.annotationLayer.render(z.viewport,"display")}catch(te){ee=te}finally{z.eventBus.dispatch("annotationlayerrendered",{source:z,pageNumber:z.id,error:ee})}})()}_resetZoomLayer(z=!1){if(!this.zoomLayer)return;const ee=this.zoomLayer.firstChild;this.paintedViewportMap.delete(ee),ee.width=0,ee.height=0,z&&this.zoomLayer.remove(),this.zoomLayer=null}reset(z=!1,ee=!1){this.cancelRendering(ee),this.renderingState=de.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,V=z&&this.zoomLayer||null,L=ee&&this.annotationLayer&&this.annotationLayer.div||null;for(let Y=K.length-1;Y>=0;Y--){const G=K[Y];V===G||L===G||te.removeChild(G)}te.removeAttribute("data-loaded"),L?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),V||(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(z,ee,te=null){if(this.scale=z||this.scale,typeof ee<"u"&&(this.rotation=ee),te instanceof Promise&&(this._optionalContentConfigPromise=te),this.viewport=this.viewport.clone({scale:this.scale*N.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 V=!1;if(this.canvas&&this.maxCanvasPixels>0){const L=this.outputScale;(Math.floor(this.viewport.width)*L.sx|0)*(Math.floor(this.viewport.height)*L.sy|0)>this.maxCanvasPixels&&(V=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&V)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(z=!1){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!z&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}cssTransform(z,ee=!1){const te=this.viewport.width,K=this.viewport.height,V=this.div;z.style.width=z.parentNode.style.width=V.style.width=Math.floor(te)+"px",z.style.height=z.parentNode.style.height=V.style.height=Math.floor(K)+"px";const L=this.viewport.rotation-this.paintedViewportMap.get(z).rotation,Y=Math.abs(L);let G=1,q=1;if((90===Y||270===Y)&&(G=K/te,q=te/K),z.style.transform=`rotate(${L}deg) scale(${G}, ${q})`,this.textLayer){const oe=this.textLayer.viewport,ke=Math.abs(this.viewport.rotation-oe.rotation);let xe=te/oe.width;(90===ke||270===ke)&&(xe=te/oe.height);const be=this.textLayer.textLayerDiv;let De,ve;switch(ke){case 0:De=ve=0;break;case 90:De=0,ve="-"+be.style.height;break;case 180:De="-"+be.style.width,ve="-"+be.style.height;break;case 270:De="-"+be.style.width,ve=0;break;default:console.error("Bad rotation value.")}be.style.transform=`rotate(${ke}deg) scale(${xe}) translate(${De}, ${ve})`,be.style.transformOrigin="0% 0%"}ee&&this.annotationLayer&&this._renderAnnotationLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(z,ee){return this.viewport.convertToPdfPoint(z,ee)}draw(){var z=this;this.renderingState!==de.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:ee,pdfPage:te}=this;if(!te)return this.renderingState=de.RenderingStates.FINISHED,this.loadingIconDiv&&(ee.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=de.RenderingStates.RUNNING;const K=document.createElement("div");K.style.width=ee.style.width,K.style.height=ee.style.height,K.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?ee.insertBefore(K,this.annotationLayer.div):ee.appendChild(K);let V=null;if(this.textLayerMode!==N.TextLayerMode.DISABLE&&this.textLayerFactory){const oe=document.createElement("div");oe.className="textLayer",oe.style.width=K.style.width,oe.style.height=K.style.height,this.annotationLayer&&this.annotationLayer.div?ee.insertBefore(oe,this.annotationLayer.div):ee.appendChild(oe),V=this.textLayerFactory.createTextLayerBuilder(oe,this.id-1,this.viewport,this.textLayerMode===N.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=V;let L=null;this.renderingQueue&&(L=oe=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=de.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=de.RenderingStates.RUNNING,oe()});oe()});const Y=function(){var oe=C(function*(se=null){if(G===z.paintTask&&(z.paintTask=null),se instanceof U.RenderingCancelledException)z._renderError=null;else if(z._renderError=se,z.renderingState=de.RenderingStates.FINISHED,z.loadingIconDiv&&(ee.removeChild(z.loadingIconDiv),delete z.loadingIconDiv),z._resetZoomLayer(!0),z.eventBus.dispatch("pagerendered",{source:z,pageNumber:z.id,cssTransform:!1,timestamp:performance.now(),error:z._renderError}),se)throw se});return function(){return oe.apply(this,arguments)}}(),G=this.renderer===N.RendererType.SVG?this.paintOnSvg(K):this.paintOnCanvas(K);G.onRenderContinue=L,this.paintTask=G;const q=G.promise.then(function(){return Y(null).then(function(){if(V){const oe=te.streamTextContent({normalizeWhitespace:!0});V.setTextContentStream(oe),V.render()}})},function(oe){return Y(oe)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(ee,te,null,this.imageResourcesPath,this.renderInteractiveForms,this.l10n,this.enableScripting,null,null)),this._renderAnnotationLayer()),ee.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),q}paintOnCanvas(z){const ee=(0,U.createPromiseCapability)(),te={promise:ee.promise,onRenderContinue(De){De()},cancel(){be.cancel()}},K=this.viewport,V=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(De=>{V.setAttribute("aria-label",De)}),V.setAttribute("hidden","hidden");let L=!0;const Y=function(){L&&(V.removeAttribute("hidden"),L=!1)};z.appendChild(V),this.canvas=V,V.mozOpaque=!0;const G=V.getContext("2d",{alpha:!1}),q=(0,N.getOutputScale)(G);if(this.outputScale=q,this.useOnlyCssZoom){const De=K.clone({scale:N.CSS_UNITS});q.sx*=De.width/K.width,q.sy*=De.height/K.height,q.scaled=!0}if(this.maxCanvasPixels>0){const ve=Math.sqrt(this.maxCanvasPixels/(K.width*K.height));q.sx>ve||q.sy>ve?(q.sx=ve,q.sy=ve,q.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const oe=(0,N.approximateFraction)(q.sx),se=(0,N.approximateFraction)(q.sy);V.width=(0,N.roundToDivide)(K.width*q.sx,oe[0]),V.height=(0,N.roundToDivide)(K.height*q.sy,se[0]),V.style.width=(0,N.roundToDivide)(K.width,oe[1])+"px",V.style.height=(0,N.roundToDivide)(K.height,se[1])+"px",this.paintedViewportMap.set(V,K);const be=this.pdfPage.render({canvasContext:G,transform:q.scaled?[q.sx,0,0,q.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise});return be.onContinue=function(De){Y(),te.onRenderContinue?te.onRenderContinue(De):De()},be.promise.then(function(){Y(),ee.resolve(void 0)},function(De){Y(),ee.reject(De)}),te}paintOnSvg(z){let ee=!1;const te=()=>{if(ee)throw new U.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},K=this.pdfPage,V=this.viewport.clone({scale:N.CSS_UNITS});return{promise:K.getOperatorList().then(Y=>(te(),new U.SVGGraphics(K.commonObjs,K.objs).getSVG(Y,V).then(q=>{te(),this.svg=q,this.paintedViewportMap.set(q,V),q.style.width=z.style.width,q.style.height=z.style.height,this.renderingState=de.RenderingStates.FINISHED,z.appendChild(q)}))),onRenderContinue(Y){Y()},cancel(){ee=!0}}}setPageLabel(z){this.pageLabel="string"==typeof z?z:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.RenderingStates=k.PDFRenderingQueue=void 0;var N=F(2);const de={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};k.RenderingStates=de;k.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(Z){this.pdfViewer=Z}setThumbnailViewer(Z){this.pdfThumbnailViewer=Z}isHighestPriority(Z){return this.highestPriorityPage===Z.renderingId}renderHighestPriority(Z){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(Z)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(Z,ge,z){const ee=Z.views,te=ee.length;if(0===te)return null;for(let K=0;K{this.renderHighestPriority()}).catch(ge=>{ge instanceof N.RenderingCancelledException||console.error(`renderView: "${ge}"`)})}return!0}}},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.PDFSinglePageViewer=void 0;var N=F(16),U=F(2);k.PDFSinglePageViewer=class de extends N.BaseViewer{constructor(ne){super(ne),this.eventBus._on("pagesinit",Z=>{this._ensurePageViewVisible()})}get _viewerElement(){return(0,U.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],Z=this._pages[this._previousPageNumber-1],ge=this.viewer.childNodes;switch(ge.length){case 0:this.viewer.appendChild(ne.div);break;case 1:if(ge[0]!==Z.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(ne===Z)break;this._shadowViewer.appendChild(Z.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:Z=null,pageNumber:ge=null}){ge&&this._setCurrentPageNumber(ge);const z=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),super._scrollIntoView({pageDiv:ne,pageSpot:Z,pageNumber:ge}),this._updateScrollDown=()=>{this.scroll.down=z,this._updateScrollDown=null}}_getVisiblePages(){return this._getCurrentVisiblePage()}_updateHelper(ne){}get _isScrollModeHorizontal(){return(0,U.shadow)(this,"_isScrollModeHorizontal",!1)}_updateScrollMode(){}_updateSpreadMode(){}_getPageAdvance(){return 1}}},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.BaseViewer=void 0;var N=F(2),U=F(3),de=F(14),X=F(1),ne=F(13),Z=F(4),ge=F(5);function ee(V){const L=[];this.push=function(Y){const G=L.indexOf(Y);G>=0&&L.splice(G,1),L.push(Y),L.length>V&&L.shift().destroy()},this.resize=function(Y,G){if(V=Y,G){const q=new Set;for(let oe=0,se=G.length;oeV;)L.shift().destroy()},this.has=function(Y){return L.includes(Y)}}class K{constructor(L){if(this.constructor===K)throw new Error("Cannot initialize BaseViewer.");const Y="2.7.570";if(N.version!==Y)throw new Error(`The API version "${N.version}" does not match the Viewer version "${Y}".`);if(this._name=this.constructor.name,this.container=L.container,this.viewer=L.viewer||L.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=L.eventBus,this.linkService=L.linkService||new Z.SimpleLinkService,this.downloadManager=L.downloadManager||null,this.findController=L.findController||null,this.removePageBorders=L.removePageBorders||!1,this.textLayerMode=Number.isInteger(L.textLayerMode)?L.textLayerMode:U.TextLayerMode.ENABLE,this.imageResourcesPath=L.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof L.renderInteractiveForms||L.renderInteractiveForms,this.enablePrintAutoRotate=L.enablePrintAutoRotate||!1,this.renderer=L.renderer||U.RendererType.CANVAS,this.enableWebGL=L.enableWebGL||!1,this.useOnlyCssZoom=L.useOnlyCssZoom||!1,this.maxCanvasPixels=L.maxCanvasPixels,this.l10n=L.l10n||U.NullL10n,this.enableScripting=L.enableScripting||!1,this._mouseState=L.mouseState||null,this.defaultRenderingQueue=!L.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new de.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=L.renderingQueue,this.scroll=(0,U.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=U.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(L){return this._pages[L]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(L){return L&&L.pdfPage})}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(L){if(!Number.isInteger(L))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(L,!0)||console.error(`${this._name}.currentPageNumber: "${L}" is not a valid page.`)}_setCurrentPageNumber(L,Y=!1){if(this._currentPageNumber===L)return Y&&this._resetCurrentPageView(),!0;if(!(0=0&&(Y=G+1)}this._setCurrentPageNumber(Y,!0)||console.error(`${this._name}.currentPageLabel: "${L}" is not a valid page.`)}get currentScale(){return this._currentScale!==U.UNKNOWN_SCALE?this._currentScale:U.DEFAULT_SCALE}set currentScale(L){if(isNaN(L))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(L,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(L){!this.pdfDocument||this._setScale(L,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(L){if(!(0,U.isValidRotation)(L))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||this._pagesRotation===L)return;this._pagesRotation=L;const Y=this._currentPageNumber;for(let G=0,q=this._pages.length;G{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Y})}),this._onBeforeDraw=oe=>{const se=this._pages[oe.pageNumber-1];!se||this._buffer.push(se)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=oe=>{oe.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve(),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),G.then(oe=>{this._firstPageCapability.resolve(oe),this._optionalContentConfigPromise=q;const se=this.currentScale,ke=oe.getViewport({scale:se*U.CSS_UNITS}),xe=this.textLayerMode!==U.TextLayerMode.DISABLE?this:null;for(let De=1;De<=Y;++De){const ve=new ne.PDFPageView({container:this._viewerElement,eventBus:this.eventBus,id:De,scale:se,defaultViewport:ke.clone(),optionalContentConfigPromise:q,renderingQueue:this.renderingQueue,textLayerFactory:xe,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 be=this._pages[0];be&&(be.setPdfPage(oe),this.linkService.cachePageRef(1,oe.ref)),this._spreadMode!==U.SpreadMode.NONE&&this._updateSpreadMode(),this._onePageRenderedOrForceFetch().then(()=>{if(this.findController&&this.findController.setDocument(L),L.loadingParams.disableAutoFetch||Y>7500)return void this._pagesCapability.resolve();let De=Y-1;if(De<=0)this._pagesCapability.resolve();else for(let ve=2;ve<=Y;++ve)L.getPage(ve).then(ue=>{const ie=this._pages[ve-1];ie.pdfPage||ie.setPdfPage(ue),this.linkService.cachePageRef(ve,ue.ref),0==--De&&this._pagesCapability.resolve()},ue=>{console.error(`Unable to get page ${ve} to initialize viewer`,ue),0==--De&&this._pagesCapability.resolve()})}),this.eventBus.dispatch("pagesinit",{source:this}),this.defaultRenderingQueue&&this.update()}).catch(oe=>{console.error("Unable to initialize viewer",oe)})}setPageLabels(L){if(this.pdfDocument){L?Array.isArray(L)&&this.pdfDocument.numPages===L.length?this._pageLabels=L:(this._pageLabels=null,console.error(`${this._name}.setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let Y=0,G=this._pages.length;Y0)this._setScaleUpdatePages(G,L,Y,!1);else{const q=this._pages[this._currentPageNumber-1];if(!q)return;const oe=this.isInPresentationMode||this.removePageBorders;let se=oe?0:U.SCROLLBAR_PADDING,ke=oe?0:U.VERTICAL_PADDING;!oe&&this._isScrollModeHorizontal&&([se,ke]=[ke,se]);const xe=(this.container.clientWidth-se)/q.width*q.scale/this._pageWidthScaleFactor,be=(this.container.clientHeight-ke)/q.height*q.scale;switch(L){case"page-actual":G=1;break;case"page-width":G=xe;break;case"page-height":G=be;break;case"page-fit":G=Math.min(xe,be);break;case"auto":const De=(0,U.isPortraitOrientation)(q)?xe:Math.min(be,xe);G=Math.min(U.MAX_AUTO_SCALE,De);break;default:return void console.error(`${this._name}._setScale: "${L}" is an unknown zoom value.`)}this._setScaleUpdatePages(G,L,Y,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}pageLabelToPageNumber(L){if(!this._pageLabels)return null;const Y=this._pageLabels.indexOf(L);return Y<0?null:Y+1}scrollPageIntoView({pageNumber:L,destArray:Y=null,allowNegativeOffset:G=!1,ignoreDestinationZoom:q=!1}){if(!this.pdfDocument)return;const oe=Number.isInteger(L)&&this._pages[L-1];if(!oe)return void console.error(`${this._name}.scrollPageIntoView: "${L}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!Y)return void this._setCurrentPageNumber(L,!0);let De,ve,se=0,ke=0,xe=0,be=0;const ue=oe.rotation%180!=0,ie=(ue?oe.height:oe.width)/oe.scale/U.CSS_UNITS,S=(ue?oe.width:oe.height)/oe.scale/U.CSS_UNITS;let le=0;switch(Y[1].name){case"XYZ":se=Y[2],ke=Y[3],le=Y[4],se=null!==se?se:0,ke=null!==ke?ke:S;break;case"Fit":case"FitB":le="page-fit";break;case"FitH":case"FitBH":ke=Y[2],le="page-width",null===ke&&this._location?(se=this._location.left,ke=this._location.top):"number"!=typeof ke&&(ke=S);break;case"FitV":case"FitBV":se=Y[2],xe=ie,be=S,le="page-height";break;case"FitR":se=Y[2],ke=Y[3],xe=Y[4]-se,be=Y[5]-ke,De=(this.container.clientWidth-(this.removePageBorders?0:U.SCROLLBAR_PADDING))/xe/U.CSS_UNITS,ve=(this.container.clientHeight-(this.removePageBorders?0:U.VERTICAL_PADDING))/be/U.CSS_UNITS,le=Math.min(Math.abs(De),Math.abs(ve));break;default:return void console.error(`${this._name}.scrollPageIntoView: "${Y[1].name}" is not a valid destination type.`)}if(q||(le&&le!==this._currentScale?this.currentScaleValue=le:this._currentScale===U.UNKNOWN_SCALE&&(this.currentScaleValue=U.DEFAULT_SCALE_VALUE)),"page-fit"===le&&!Y[4])return void this._scrollIntoView({pageDiv:oe.div,pageNumber:L});const he=[oe.viewport.convertToViewportPoint(se,ke),oe.viewport.convertToViewportPoint(se+xe,ke+be)];let ce=Math.min(he[0][0],he[1][0]),me=Math.min(he[0][1],he[1][1]);G||(ce=Math.max(ce,0),me=Math.max(me,0)),this._scrollIntoView({pageDiv:oe.div,pageSpot:{left:ce,top:me},pageNumber:L})}_updateLocation(L){const Y=this._currentScale,G=this._currentScaleValue,q=parseFloat(G)===Y?Math.round(1e4*Y)/100:G,oe=L.id;let se="#page="+oe;se+="&zoom="+q;const xe=this.container,be=this._pages[oe-1].getPagePoint(xe.scrollLeft-L.x,xe.scrollTop-L.y),De=Math.round(be[0]),ve=Math.round(be[1]);se+=","+De+","+ve,this._location={pageNumber:oe,scale:q,top:ve,left:De,rotation:this._pagesRotation,pdfOpenParams:se}}_updateHelper(L){throw new Error("Not implemented: _updateHelper")}update(){const L=this._getVisiblePages(),Y=L.views,G=Y.length;if(0===G)return;const q=Math.max(10,2*G+1);this._buffer.resize(q,Y),this.renderingQueue.renderHighestPriority(L),this._updateHelper(Y),this._updateLocation(L.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(L){return this.container.contains(L)}focus(){this.container.focus()}get _isScrollModeHorizontal(){return!this.isInPresentationMode&&this._scrollMode===U.ScrollMode.HORIZONTAL}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===U.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===U.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 L=this._pages[this._currentPageNumber-1],Y=L.div,G={id:L.id,x:Y.offsetLeft+Y.clientLeft,y:Y.offsetTop+Y.clientTop,view:L};return{first:G,last:G,views:[G]}}_getVisiblePages(){return(0,U.getVisibleElements)({scrollEl:this.container,views:this._pages,sortByVisibility:!0,horizontal:this._isScrollModeHorizontal,rtl:this._isScrollModeHorizontal&&this._isContainerRtl})}isPageVisible(L){return!!this.pdfDocument&&(Number.isInteger(L)&&L>0&&L<=this.pagesCount?this._getVisiblePages().views.some(function(Y){return Y.id===L}):(console.error(`${this._name}.isPageVisible: "${L}" is not a valid page.`),!1))}isPageCached(L){if(!this.pdfDocument||!this._buffer)return!1;if(!(Number.isInteger(L)&&L>0&&L<=this.pagesCount))return console.error(`${this._name}.isPageCached: "${L}" is not a valid page.`),!1;const Y=this._pages[L-1];return!!Y&&this._buffer.has(Y)}cleanup(){for(let L=0,Y=this._pages.length;L(L.pdfPage||L.setPdfPage(G),this._pagesRequests.delete(L),G)).catch(G=>{console.error("Unable to get page for page view",G),this._pagesRequests.delete(L)});return this._pagesRequests.set(L,Y),Y}forceRendering(L){const Y=L||this._getVisiblePages(),q=this.renderingQueue.getHighestPriority(Y,this._pages,this._isScrollModeHorizontal?this.scroll.right:this.scroll.down);return!!q&&(this._ensurePdfPageLoaded(q).then(()=>{this.renderingQueue.renderView(q)}),!0)}createTextLayerBuilder(L,Y,G,q=!1,oe){return new ge.TextLayerBuilder({textLayerDiv:L,eventBus:oe,pageIndex:Y,viewport:G,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&q})}createAnnotationLayerBuilder(L,Y,G=null,q="",oe=!1,se=U.NullL10n,ke=!1,xe=null,be=null){return new X.AnnotationLayerBuilder({pageDiv:L,pdfPage:Y,annotationStorage:G||this.pdfDocument?.annotationStorage,imageResourcesPath:q,renderInteractiveForms:oe,linkService:this.linkService,downloadManager:this.downloadManager,l10n:se,enableScripting:ke,hasJSActionsPromise:xe||this.pdfDocument?.hasJSActions(),mouseState:be||this._mouseState})}get hasEqualPageSizes(){const L=this._pages[0];for(let Y=1,G=this._pages.length;Y=be;xe--){const ve=oe[xe+1]-1;if(oe[xe]ve)return ve-L}if(Y){const xe=oe[0];if(xeL)return xe-L+1}break}break}case U.ScrollMode.HORIZONTAL:break;case U.ScrollMode.VERTICAL:{if(this._spreadMode===U.SpreadMode.NONE)break;const G=this._spreadMode-1;if(Y&&L%2!==G)break;if(!Y&&L%2===G)break;const{views:q}=this._getVisiblePages(),oe=Y?L-1:L+1;for(const{id:se,percent:ke,widthPercent:xe}of q)if(se===oe){if(ke>0&&100===xe)return 2;break}break}}return 1}nextPage(){const L=this._currentPageNumber,Y=this.pagesCount;if(L>=Y)return!1;const G=this._getPageAdvance(L,!1)||1;return this.currentPageNumber=Math.min(L+G,Y),!0}previousPage(){const L=this._currentPageNumber;if(L<=1)return!1;const Y=this._getPageAdvance(L,!0)||1;return this.currentPageNumber=Math.max(L-Y,1),!0}initializeScriptingEvents(){if(!this.enableScripting||this._pageOpenPendingSet)return;const L=this.eventBus,Y=this._pageOpenPendingSet=new Set,G=this._scriptingEvents||(this._scriptingEvents=Object.create(null)),q=se=>{Y.has(se)||L.dispatch("pageclose",{source:this,pageNumber:se})},oe=se=>{const ke=this._pages[se-1];ke?.renderingState===de.RenderingStates.FINISHED?(Y.delete(se),L.dispatch("pageopen",{source:this,pageNumber:se,actionsPromise:ke.pdfPage?.getJSActions()})):Y.add(se)};G.onPageChanging=({pageNumber:se,previous:ke})=>{se!==ke&&(q(ke),oe(se))},L._on("pagechanging",G.onPageChanging),G.onPageRendered=({pageNumber:se})=>{!Y.has(se)||se===this._currentPageNumber&&oe(se)},L._on("pagerendered",G.onPageRendered),G.onPagesDestroy=()=>{q(this._currentPageNumber)},L._on("pagesdestroy",G.onPagesDestroy),oe(this._currentPageNumber)}_resetScriptingEvents(){if(!this.enableScripting||!this._pageOpenPendingSet)return;const L=this.eventBus,Y=this._scriptingEvents;L._off("pagechanging",Y.onPageChanging),Y.onPageChanging=null,L._off("pagerendered",Y.onPageRendered),Y.onPageRendered=null,L._off("pagesdestroy",Y.onPagesDestroy),Y.onPagesDestroy=null,this._pageOpenPendingSet=null}}k.BaseViewer=K},(x,k,F)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.PDFViewer=void 0;var N=F(3),U=F(16),de=F(2);k.PDFViewer=class X extends U.BaseViewer{get _viewerElement(){return(0,de.shadow)(this,"_viewerElement",this.viewer)}_scrollIntoView({pageDiv:Z,pageSpot:ge=null,pageNumber:z=null}){if(!ge&&!this.isInPresentationMode){const ee=Z.offsetLeft+Z.clientLeft,te=ee+Z.clientWidth,{scrollLeft:K,clientWidth:V}=this.container;(this._isScrollModeHorizontal||eeK+V)&&(ge={left:0,top:0})}super._scrollIntoView({pageDiv:Z,pageSpot:ge,pageNumber:z})}_getVisiblePages(){return this.isInPresentationMode?this._getCurrentVisiblePage():super._getVisiblePages()}_updateHelper(Z){if(this.isInPresentationMode)return;let ge=this._currentPageNumber,z=!1;for(const ee of Z){if(ee.percent<100)break;if(ee.id===ge&&this._scrollMode===N.ScrollMode.VERTICAL&&this._spreadMode===N.SpreadMode.NONE){z=!0;break}}z||(ge=Z[0].id),this._setCurrentPageNumber(ge)}}}],M={};return function w(x){if(M[x])return M[x].exports;var k=M[x]={exports:{}};return _[x](k,k.exports,w),k.exports}(0)})()},2402:function(Se){Se.exports=function(){"use strict";function R(z,ee,te,K,V){!function L(Y,G,q,oe,se){for(;oe>q;){if(oe-q>600){var ke=oe-q+1,xe=G-q+1,be=Math.log(ke),De=.5*Math.exp(2*be/3),ve=.5*Math.sqrt(be*De*(ke-De)/ke)*(xe-ke/2<0?-1:1);L(Y,G,Math.max(q,Math.floor(G-xe*De/ke+ve)),Math.min(oe,Math.floor(G+(ke-xe)*De/ke+ve)),se)}var S=Y[G],le=q,he=oe;for(j(Y,q,G),se(Y[oe],S)>0&&j(Y,q,oe);le0;)he--}0===se(Y[q],S)?j(Y,q,he):j(Y,++he,oe),he<=G&&(q=he+1),G<=he&&(oe=he-1)}}(z,ee,te||0,K||z.length-1,V||C)}function j(z,ee,te){var K=z[ee];z[ee]=z[te],z[te]=K}function C(z,ee){return zee?1:0}var _=function(z){void 0===z&&(z=9),this._maxEntries=Math.max(4,z),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function M(z,ee,te){if(!te)return ee.indexOf(z);for(var K=0;K=z.minX&&ee.maxY>=z.minY}function Z(z){return{children:z,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function ge(z,ee,te,K,V){for(var L=[ee,te];L.length;)if(!((te=L.pop())-(ee=L.pop())<=K)){var Y=ee+Math.ceil((te-ee)/K/2)*K;R(z,Y,ee,te,V),L.push(ee,Y,Y,te)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(z){var ee=this.data,te=[];if(!ne(z,ee))return te;for(var K=this.toBBox,V=[];ee;){for(var L=0;L=0&&V[ee].children.length>this._maxEntries;)this._split(V,ee),ee--;this._adjustParentBBoxes(K,V,ee)},_.prototype._split=function(z,ee){var te=z[ee],K=te.children.length,V=this._minEntries;this._chooseSplitAxis(te,V,K);var L=this._chooseSplitIndex(te,V,K),Y=Z(te.children.splice(L,te.children.length-L));Y.height=te.height,Y.leaf=te.leaf,w(te,this.toBBox),w(Y,this.toBBox),ee?z[ee-1].children.push(Y):this._splitRoot(te,Y)},_.prototype._splitRoot=function(z,ee){this.data=Z([z,ee]),this.data.height=z.height+1,this.data.leaf=!1,w(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(z,ee,te){for(var K,V,L,Y,G,q,oe,se=1/0,ke=1/0,xe=ee;xe<=te-ee;xe++){var be=x(z,0,xe,this.toBBox),De=x(z,xe,te,this.toBBox),ve=(V=be,L=De,void 0,void 0,void 0,void 0,Y=Math.max(V.minX,L.minX),G=Math.max(V.minY,L.minY),q=Math.min(V.maxX,L.maxX),oe=Math.min(V.maxY,L.maxY),Math.max(0,q-Y)*Math.max(0,oe-G)),ue=U(be)+U(De);ve=ee;se--){var ke=z.children[se];k(Y,z.leaf?V(ke):ke),G+=de(Y)}return G},_.prototype._adjustParentBBoxes=function(z,ee,te){for(var K=te;K>=0;K--)k(ee[K],z)},_.prototype._condense=function(z){for(var ee=z.length-1,te=void 0;ee>=0;ee--)0===z[ee].children.length?ee>0?(te=z[ee-1].children).splice(te.indexOf(z[ee]),1):this.clear():w(z[ee],this.toBBox)},_}()},6700:(Se,R,j)=>{var C={"./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 _(w){var x=M(w);return j(x)}function M(w){if(!j.o(C,w)){var x=new Error("Cannot find module '"+w+"'");throw x.code="MODULE_NOT_FOUND",x}return C[w]}_.keys=function(){return Object.keys(C)},_.resolve=M,Se.exports=_,_.id=6700},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},7156:Se=>{function R(C,_,M,w,x,k,F){try{var N=C[k](F),U=N.value}catch(de){return void M(de)}N.done?_(U):Promise.resolve(U).then(w,x)}Se.exports=function j(C){return function(){var _=this,M=arguments;return new Promise(function(w,x){var k=C.apply(_,M);function F(U){R(k,w,x,F,N,"next",U)}function N(U){R(k,w,x,F,N,"throw",U)}F(void 0)})}},Se.exports.__esModule=!0,Se.exports.default=Se.exports}},Se=>{Se(Se.s=2002)}]);