| Server IP : 3.147.158.171 / Your IP : 216.73.216.88 Web Server : Apache/2.4.67 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-2-178.us-east-2.compute.internal 6.1.172-216.329.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 20 06:31:34 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.21 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /tsai/cb-build/player/browser/ |
Upload File : |
var IL=Object.create;var Yh=Object.defineProperty,AL=Object.defineProperties,RL=Object.getOwnPropertyDescriptor,OL=Object.getOwnPropertyDescriptors,PL=Object.getOwnPropertyNames,Zh=Object.getOwnPropertySymbols,FL=Object.getPrototypeOf,Fv=Object.prototype.hasOwnProperty,pS=Object.prototype.propertyIsEnumerable;var hS=(t,i,e)=>i in t?Yh(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,G=(t,i)=>{for(var e in i||={})Fv.call(i,e)&&hS(t,e,i[e]);if(Zh)for(var e of Zh(i))pS.call(i,e)&&hS(t,e,i[e]);return t},Xe=(t,i)=>AL(t,OL(i));var su=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(i,e)=>(typeof require<"u"?require:i)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var lu=(t,i)=>{var e={};for(var n in t)Fv.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Zh)for(var n of Zh(t))i.indexOf(n)<0&&pS.call(t,n)&&(e[n]=t[n]);return e};var fS=(t,i)=>()=>{try{return i||t((i={exports:{}}).exports,i),i.exports}catch(e){throw i=0,e}},Kh=(t,i)=>{for(var e in i)Yh(t,e,{get:i[e],enumerable:!0})},NL=(t,i,e,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of PL(i))!Fv.call(t,r)&&r!==e&&Yh(t,r,{get:()=>i[r],enumerable:!(n=RL(i,r))||n.enumerable});return t};var gS=(t,i,e)=>(e=t!=null?IL(FL(t)):{},NL(i||!t||!t.__esModule?Yh(e,"default",{value:t,enumerable:!0}):e,t));var X3=fS((K3,iS)=>{"use strict";(function(t){typeof K3=="object"&&typeof iS<"u"?iS.exports=t():typeof define=="function"&&define.amd?define([],t):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=t()})(function(){return(function t(i,e,n){function r(s,l){if(!e[s]){if(!i[s]){var c=typeof su=="function"&&su;if(!l&&c)return c(s,!0);if(o)return o(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var h=e[s]={exports:{}};i[s][0].call(h.exports,function(b){var f=i[s][1][b];return r(f||b)},h,h.exports,t,i,e,n)}return e[s].exports}for(var o=typeof su=="function"&&su,a=0;a<n.length;a++)r(n[a]);return r})({1:[function(t,i,e){"use strict";var n=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(a){for(var s,l,c,d,h,b,f,_=[],y=0,C=a.length,D=C,k=n.getTypeOf(a)!=="string";y<a.length;)D=C-y,c=k?(s=a[y++],l=y<C?a[y++]:0,y<C?a[y++]:0):(s=a.charCodeAt(y++),l=y<C?a.charCodeAt(y++):0,y<C?a.charCodeAt(y++):0),d=s>>2,h=(3&s)<<4|l>>4,b=1<D?(15&l)<<2|c>>6:64,f=2<D?63&c:64,_.push(o.charAt(d)+o.charAt(h)+o.charAt(b)+o.charAt(f));return _.join("")},e.decode=function(a){var s,l,c,d,h,b,f=0,_=0,y="data:";if(a.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var C,D=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&D--,a.charAt(a.length-2)===o.charAt(64)&&D--,D%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=r.uint8array?new Uint8Array(0|D):new Array(0|D);f<a.length;)s=o.indexOf(a.charAt(f++))<<2|(d=o.indexOf(a.charAt(f++)))>>4,l=(15&d)<<4|(h=o.indexOf(a.charAt(f++)))>>2,c=(3&h)<<6|(b=o.indexOf(a.charAt(f++))),C[_++]=s,h!==64&&(C[_++]=l),b!==64&&(C[_++]=c);return C}},{"./support":30,"./utils":32}],2:[function(t,i,e){"use strict";var n=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(l,c,d,h,b){this.compressedSize=l,this.uncompressedSize=c,this.crc32=d,this.compression=h,this.compressedContent=b}s.prototype={getContentWorker:function(){var l=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),c=this;return l.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(l,c,d){return l.pipe(new o).pipe(new a("uncompressedSize")).pipe(c.compressWorker(d)).pipe(new a("compressedSize")).withStreamInfo("compression",c)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,e){"use strict";var n=t("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},e.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,e){"use strict";var n=t("./utils"),r=(function(){for(var o,a=[],s=0;s<256;s++){o=s;for(var l=0;l<8;l++)o=1&o?3988292384^o>>>1:o>>>1;a[s]=o}return a})();i.exports=function(o,a){return o!==void 0&&o.length?n.getTypeOf(o)!=="string"?(function(s,l,c,d){var h=r,b=d+c;s^=-1;for(var f=d;f<b;f++)s=s>>>8^h[255&(s^l[f])];return-1^s})(0|a,o,o.length,0):(function(s,l,c,d){var h=r,b=d+c;s^=-1;for(var f=d;f<b;f++)s=s>>>8^h[255&(s^l.charCodeAt(f))];return-1^s})(0|a,o,o.length,0):0}},{"./utils":32}],5:[function(t,i,e){"use strict";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(t,i,e){"use strict";var n=null;n=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:n}},{lie:37}],7:[function(t,i,e){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",r=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=n?"uint8array":"array";function l(c,d){a.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=d,this.meta={}}e.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(s,c.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(d){c.push({data:d,meta:c.meta})}},e.compressWorker=function(c){return new l("Deflate",c)},e.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,e){"use strict";function n(h,b){var f,_="";for(f=0;f<b;f++)_+=String.fromCharCode(255&h),h>>>=8;return _}function r(h,b,f,_,y,C){var D,k,T=h.file,F=h.compression,L=C!==s.utf8encode,B=o.transformTo("string",C(T.name)),V=o.transformTo("string",s.utf8encode(T.name)),ne=T.comment,Re=o.transformTo("string",C(ne)),P=o.transformTo("string",s.utf8encode(ne)),re=V.length!==T.name.length,w=P.length!==ne.length,de="",st="",_e="",ge=T.dir,J=T.date,ye={crc32:0,compressedSize:0,uncompressedSize:0};b&&!f||(ye.crc32=h.crc32,ye.compressedSize=h.compressedSize,ye.uncompressedSize=h.uncompressedSize);var H=0;b&&(H|=8),L||!re&&!w||(H|=2048);var $=0,Ze=0;ge&&($|=16),y==="UNIX"?(Ze=798,$|=(function(Te,pt){var Qn=Te;return Te||(Qn=pt?16893:33204),(65535&Qn)<<16})(T.unixPermissions,ge)):(Ze=20,$|=(function(Te){return 63&(Te||0)})(T.dosPermissions)),D=J.getUTCHours(),D<<=6,D|=J.getUTCMinutes(),D<<=5,D|=J.getUTCSeconds()/2,k=J.getUTCFullYear()-1980,k<<=4,k|=J.getUTCMonth()+1,k<<=5,k|=J.getUTCDate(),re&&(st=n(1,1)+n(l(B),4)+V,de+="up"+n(st.length,2)+st),w&&(_e=n(1,1)+n(l(Re),4)+P,de+="uc"+n(_e.length,2)+_e);var Fe="";return Fe+=`
\0`,Fe+=n(H,2),Fe+=F.magic,Fe+=n(D,2),Fe+=n(k,2),Fe+=n(ye.crc32,4),Fe+=n(ye.compressedSize,4),Fe+=n(ye.uncompressedSize,4),Fe+=n(B.length,2),Fe+=n(de.length,2),{fileRecord:c.LOCAL_FILE_HEADER+Fe+B+de,dirRecord:c.CENTRAL_FILE_HEADER+n(Ze,2)+Fe+n(Re.length,2)+"\0\0\0\0"+n($,4)+n(_,4)+B+de+Re}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),c=t("../signature");function d(h,b,f,_){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=f,this.encodeFileName=_,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(d,a),d.prototype.push=function(h){var b=h.meta.percent||0,f=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,a.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:f?(b+100*(f-_-1))/f:100}}))},d.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var b=this.streamFiles&&!h.file.dir;if(b){var f=r(h,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(h){this.accumulate=!1;var b=this.streamFiles&&!h.file.dir,f=r(h,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),b)this.push({data:(function(_){return c.DATA_DESCRIPTOR+n(_.crc32,4)+n(_.compressedSize,4)+n(_.uncompressedSize,4)})(h),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var h=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var f=this.bytesWritten-h,_=(function(y,C,D,k,T){var F=o.transformTo("string",T(k));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(y,2)+n(y,2)+n(C,4)+n(D,4)+n(F.length,2)+F})(this.dirRecords.length,f,h,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(h){this._sources.push(h);var b=this;return h.on("data",function(f){b.processChunk(f)}),h.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),h.on("error",function(f){b.error(f)}),this},d.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(h){var b=this._sources;if(!a.prototype.error.call(this,h))return!1;for(var f=0;f<b.length;f++)try{b[f].error(h)}catch{}return!0},d.prototype.lock=function(){a.prototype.lock.call(this);for(var h=this._sources,b=0;b<h.length;b++)h[b].lock()},i.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,e){"use strict";var n=t("../compressions"),r=t("./ZipFileWorker");e.generateWorker=function(o,a,s){var l=new r(a.streamFiles,s,a.platform,a.encodeFileName),c=0;try{o.forEach(function(d,h){c++;var b=(function(C,D){var k=C||D,T=n[k];if(!T)throw new Error(k+" is not a valid compression method !");return T})(h.options.compression,a.compression),f=h.options.compressionOptions||a.compressionOptions||{},_=h.dir,y=h.date;h._compressWorker(b,f).withStreamInfo("file",{name:d,dir:_,date:y,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(l)}),l.entriesCount=c}catch(d){l.error(d)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i,e){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var r=new n;for(var o in this)typeof this[o]!="function"&&(r[o]=this[o]);return r}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.1",n.loadAsync=function(r,o){return new n().loadAsync(r,o)},n.external=t("./external"),i.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i,e){"use strict";var n=t("./utils"),r=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(d){return new r.Promise(function(h,b){var f=d.decompressed.getContentWorker().pipe(new s);f.on("error",function(_){b(_)}).on("end",function(){f.streamInfo.crc32!==d.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}i.exports=function(d,h){var b=this;return h=n.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(d)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",d,!0,h.optimizedBinaryString,h.base64).then(function(f){var _=new a(h);return _.load(f),_}).then(function(f){var _=[r.Promise.resolve(f)],y=f.files;if(h.checkCRC32)for(var C=0;C<y.length;C++)_.push(c(y[C]));return r.Promise.all(_)}).then(function(f){for(var _=f.shift(),y=_.files,C=0;C<y.length;C++){var D=y[C],k=D.fileNameStr,T=n.resolve(D.fileNameStr);b.file(T,D.decompressed,{binary:!0,optimizedBinaryString:!0,date:D.date,dir:D.dir,comment:D.fileCommentStr.length?D.fileCommentStr:null,unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions,createFolders:h.createFolders}),D.dir||(b.file(T).unsafeOriginalName=k)}return _.zipComment.length&&(b.comment=_.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i,e){"use strict";var n=t("../utils"),r=t("../stream/GenericWorker");function o(a,s){r.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(s)}n.inherits(o,r),o.prototype._bindStream=function(a){var s=this;(this._stream=a).pause(),a.on("data",function(l){s.push({data:l,meta:{percent:0}})}).on("error",function(l){s.isPaused?this.generatedError=l:s.error(l)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i,e){"use strict";var n=t("readable-stream").Readable;function r(o,a,s){n.call(this,a),this._helper=o;var l=this;o.on("data",function(c,d){l.push(c)||l._helper.pause(),s&&s(d)}).on("error",function(c){l.emit("error",c)}).on("end",function(){l.push(null)})}t("../utils").inherits(r,n),r.prototype._read=function(){this._helper.resume()},i.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,i,e){"use strict";i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(n,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(n,r);if(typeof n=="number")throw new Error('The "data" argument must not be a number');return new Buffer(n,r)},allocBuffer:function(n){if(Buffer.alloc)return Buffer.alloc(n);var r=new Buffer(n);return r.fill(0),r},isBuffer:function(n){return Buffer.isBuffer(n)},isStream:function(n){return n&&typeof n.on=="function"&&typeof n.pause=="function"&&typeof n.resume=="function"}}},{}],15:[function(t,i,e){"use strict";function n(T,F,L){var B,V=o.getTypeOf(F),ne=o.extend(L||{},l);ne.date=ne.date||new Date,ne.compression!==null&&(ne.compression=ne.compression.toUpperCase()),typeof ne.unixPermissions=="string"&&(ne.unixPermissions=parseInt(ne.unixPermissions,8)),ne.unixPermissions&&16384&ne.unixPermissions&&(ne.dir=!0),ne.dosPermissions&&16&ne.dosPermissions&&(ne.dir=!0),ne.dir&&(T=y(T)),ne.createFolders&&(B=_(T))&&C.call(this,B,!0);var Re=V==="string"&&ne.binary===!1&&ne.base64===!1;L&&L.binary!==void 0||(ne.binary=!Re),(F instanceof c&&F.uncompressedSize===0||ne.dir||!F||F.length===0)&&(ne.base64=!1,ne.binary=!0,F="",ne.compression="STORE",V="string");var P=null;P=F instanceof c||F instanceof a?F:b.isNode&&b.isStream(F)?new f(T,F):o.prepareContent(T,F,ne.binary,ne.optimizedBinaryString,ne.base64);var re=new d(T,P,ne);this.files[T]=re}var r=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),d=t("./zipObject"),h=t("./generate"),b=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),_=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var F=T.lastIndexOf("/");return 0<F?T.substring(0,F):""},y=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},C=function(T,F){return F=F!==void 0?F:l.createFolders,T=y(T),this.files[T]||n.call(this,T,null,{dir:!0,createFolders:F}),this.files[T]};function D(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var k={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var F,L,B;for(F in this.files)B=this.files[F],(L=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&T(L,B)},filter:function(T){var F=[];return this.forEach(function(L,B){T(L,B)&&F.push(B)}),F},file:function(T,F,L){if(arguments.length!==1)return T=this.root+T,n.call(this,T,F,L),this;if(D(T)){var B=T;return this.filter(function(ne,Re){return!Re.dir&&B.test(ne)})}var V=this.files[this.root+T];return V&&!V.dir?V:null},folder:function(T){if(!T)return this;if(D(T))return this.filter(function(V,ne){return ne.dir&&T.test(V)});var F=this.root+T,L=C.call(this,F),B=this.clone();return B.root=L.name,B},remove:function(T){T=this.root+T;var F=this.files[T];if(F||(T.slice(-1)!=="/"&&(T+="/"),F=this.files[T]),F&&!F.dir)delete this.files[T];else for(var L=this.filter(function(V,ne){return ne.name.slice(0,T.length)===T}),B=0;B<L.length;B++)delete this.files[L[B].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var F,L={};try{if((L=o.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");o.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var B=L.comment||this.comment||"";F=h.generateWorker(this,L,B)}catch(V){(F=new a("error")).error(V)}return new s(F,L.type||"string",L.mimeType)},generateAsync:function(T,F){return this.generateInternalStream(T).accumulate(F)},generateNodeStream:function(T,F){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(F)}};i.exports=k},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,i,e){"use strict";i.exports=t("stream")},{stream:void 0}],17:[function(t,i,e){"use strict";var n=t("./DataReader");function r(o){n.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}t("../utils").inherits(r,n),r.prototype.byteAt=function(o){return this.data[this.zero+o]},r.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),s=o.charCodeAt(1),l=o.charCodeAt(2),c=o.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===a&&this.data[d+1]===s&&this.data[d+2]===l&&this.data[d+3]===c)return d-this.zero;return-1},r.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),s=o.charCodeAt(1),l=o.charCodeAt(2),c=o.charCodeAt(3),d=this.readData(4);return a===d[0]&&s===d[1]&&l===d[2]&&c===d[3]},r.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},i.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,i,e){"use strict";var n=t("../utils");function r(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,s=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)s=(s<<8)+this.byteAt(a);return this.index+=o,s},readString:function(o){return n.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},i.exports=r},{"../utils":32}],19:[function(t,i,e){"use strict";var n=t("./Uint8ArrayReader");function r(o){n.call(this,o)}t("../utils").inherits(r,n),r.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},i.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,e){"use strict";var n=t("./DataReader");function r(o){n.call(this,o)}t("../utils").inherits(r,n),r.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},r.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},r.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},r.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},i.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,i,e){"use strict";var n=t("./ArrayReader");function r(o){n.call(this,o)}t("../utils").inherits(r,n),r.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},i.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,e){"use strict";var n=t("../utils"),r=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");i.exports=function(c){var d=n.getTypeOf(c);return n.checkSupport(d),d!=="string"||r.uint8array?d==="nodebuffer"?new s(c):r.uint8array?new l(n.transformTo("uint8array",c)):new o(n.transformTo("array",c)):new a(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,e){"use strict";e.LOCAL_FILE_HEADER="PK",e.CENTRAL_FILE_HEADER="PK",e.CENTRAL_DIRECTORY_END="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",e.ZIP64_CENTRAL_DIRECTORY_END="PK",e.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,e){"use strict";var n=t("./GenericWorker"),r=t("../utils");function o(a){n.call(this,"ConvertWorker to "+a),this.destType=a}r.inherits(o,n),o.prototype.processChunk=function(a){this.push({data:r.transformTo(this.destType,a.data),meta:a.meta})},i.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,e){"use strict";var n=t("./GenericWorker"),r=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(a){this.streamInfo.crc32=r(a.data,this.streamInfo.crc32||0),this.push(a)},i.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,e){"use strict";var n=t("../utils"),r=t("./GenericWorker");function o(a){r.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}n.inherits(o,r),o.prototype.processChunk=function(a){if(a){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+a.data.length}r.prototype.processChunk.call(this,a)},i.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,e){"use strict";var n=t("../utils"),r=t("./GenericWorker");function o(a){r.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(l){s.dataIsReady=!0,s.data=l,s.max=l&&l.length||0,s.type=n.getTypeOf(l),s.isPaused||s._tickAndRepeat()},function(l){s.error(l)})}n.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,s);break;case"uint8array":a=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":a=this.data.slice(this.index,s)}return this.index=s,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,e){"use strict";function n(r){this.name=r||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,o){return this._listeners[r].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,o){if(this._listeners[r])for(var a=0;a<this._listeners[r].length;a++)this._listeners[r][a].call(this,o)},pipe:function(r){return r.registerPrevious(this)},registerPrevious:function(r){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=r.streamInfo,this.mergeStreamInfo(),this.previous=r;var o=this;return r.on("data",function(a){o.processChunk(a)}),r.on("end",function(){o.end()}),r.on("error",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var r=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),r=!0),this.previous&&this.previous.resume(),!r},flush:function(){},processChunk:function(r){this.push(r)},withStreamInfo:function(r,o){return this.extraStreamInfo[r]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var r in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,r)&&(this.streamInfo[r]=this.extraStreamInfo[r])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var r="Worker "+this.name;return this.previous?this.previous+" -> "+r:r}},i.exports=n},{}],29:[function(t,i,e){"use strict";var n=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),a=t("../base64"),s=t("../support"),l=t("../external"),c=null;if(s.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(b,f){return new l.Promise(function(_,y){var C=[],D=b._internalType,k=b._outputType,T=b._mimeType;b.on("data",function(F,L){C.push(F),f&&f(L)}).on("error",function(F){C=[],y(F)}).on("end",function(){try{var F=(function(L,B,V){switch(L){case"blob":return n.newBlob(n.transformTo("arraybuffer",B),V);case"base64":return a.encode(B);default:return n.transformTo(L,B)}})(k,(function(L,B){var V,ne=0,Re=null,P=0;for(V=0;V<B.length;V++)P+=B[V].length;switch(L){case"string":return B.join("");case"array":return Array.prototype.concat.apply([],B);case"uint8array":for(Re=new Uint8Array(P),V=0;V<B.length;V++)Re.set(B[V],ne),ne+=B[V].length;return Re;case"nodebuffer":return Buffer.concat(B);default:throw new Error("concat : unsupported type '"+L+"'")}})(D,C),T);_(F)}catch(L){y(L)}C=[]}).resume()})}function h(b,f,_){var y=f;switch(f){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=f,this._mimeType=_,n.checkSupport(y),this._worker=b.pipe(new r(y)),b.lock()}catch(C){this._worker=new o("error"),this._worker.error(C)}}h.prototype={accumulate:function(b){return d(this,b)},on:function(b,f){var _=this;return b==="data"?this._worker.on(b,function(y){f.call(_,y.data,y.meta)}):this._worker.on(b,function(){n.delay(f,arguments,_)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(n.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},b)}},i.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,e){"use strict";if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",e.nodebuffer=typeof Buffer<"u",e.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")e.blob=!1;else{var n=new ArrayBuffer(0);try{e.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(n),e.blob=r.getBlob("application/zip").size===0}catch{e.blob=!1}}}try{e.nodestream=!!t("readable-stream").Readable}catch{e.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,e){"use strict";for(var n=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;s[254]=s[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function d(){a.call(this,"utf-8 encode")}e.utf8encode=function(h){return r.nodebuffer?o.newBufferFrom(h,"utf-8"):(function(b){var f,_,y,C,D,k=b.length,T=0;for(C=0;C<k;C++)(64512&(_=b.charCodeAt(C)))==55296&&C+1<k&&(64512&(y=b.charCodeAt(C+1)))==56320&&(_=65536+(_-55296<<10)+(y-56320),C++),T+=_<128?1:_<2048?2:_<65536?3:4;for(f=r.uint8array?new Uint8Array(T):new Array(T),C=D=0;D<T;C++)(64512&(_=b.charCodeAt(C)))==55296&&C+1<k&&(64512&(y=b.charCodeAt(C+1)))==56320&&(_=65536+(_-55296<<10)+(y-56320),C++),_<128?f[D++]=_:(_<2048?f[D++]=192|_>>>6:(_<65536?f[D++]=224|_>>>12:(f[D++]=240|_>>>18,f[D++]=128|_>>>12&63),f[D++]=128|_>>>6&63),f[D++]=128|63&_);return f})(h)},e.utf8decode=function(h){return r.nodebuffer?n.transformTo("nodebuffer",h).toString("utf-8"):(function(b){var f,_,y,C,D=b.length,k=new Array(2*D);for(f=_=0;f<D;)if((y=b[f++])<128)k[_++]=y;else if(4<(C=s[y]))k[_++]=65533,f+=C-1;else{for(y&=C===2?31:C===3?15:7;1<C&&f<D;)y=y<<6|63&b[f++],C--;1<C?k[_++]=65533:y<65536?k[_++]=y:(y-=65536,k[_++]=55296|y>>10&1023,k[_++]=56320|1023&y)}return k.length!==_&&(k.subarray?k=k.subarray(0,_):k.length=_),n.applyFromCharCode(k)})(h=n.transformTo(r.uint8array?"uint8array":"array",h))},n.inherits(c,a),c.prototype.processChunk=function(h){var b=n.transformTo(r.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var f=b;(b=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),b.set(f,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var _=(function(C,D){var k;for((D=D||C.length)>C.length&&(D=C.length),k=D-1;0<=k&&(192&C[k])==128;)k--;return k<0||k===0?D:k+s[C[k]]>D?k:D})(b),y=b;_!==b.length&&(r.uint8array?(y=b.subarray(0,_),this.leftOver=b.subarray(_,b.length)):(y=b.slice(0,_),this.leftOver=b.slice(_,b.length))),this.push({data:e.utf8decode(y),meta:h.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=c,n.inherits(d,a),d.prototype.processChunk=function(h){this.push({data:e.utf8encode(h.data),meta:h.meta})},e.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,e){"use strict";var n=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(f){return f}function l(f,_){for(var y=0;y<f.length;++y)_[y]=255&f.charCodeAt(y);return _}t("setimmediate"),e.newBlob=function(f,_){e.checkSupport("blob");try{return new Blob([f],{type:_})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(f),y.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(f,_,y){var C=[],D=0,k=f.length;if(k<=y)return String.fromCharCode.apply(null,f);for(;D<k;)_==="array"||_==="nodebuffer"?C.push(String.fromCharCode.apply(null,f.slice(D,Math.min(D+y,k)))):C.push(String.fromCharCode.apply(null,f.subarray(D,Math.min(D+y,k)))),D+=y;return C.join("")},stringifyByChar:function(f){for(var _="",y=0;y<f.length;y++)_+=String.fromCharCode(f[y]);return _},applyCanBeUsed:{uint8array:(function(){try{return n.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return n.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}})()}};function d(f){var _=65536,y=e.getTypeOf(f),C=!0;if(y==="uint8array"?C=c.applyCanBeUsed.uint8array:y==="nodebuffer"&&(C=c.applyCanBeUsed.nodebuffer),C)for(;1<_;)try{return c.stringifyByChunk(f,y,_)}catch{_=Math.floor(_/2)}return c.stringifyByChar(f)}function h(f,_){for(var y=0;y<f.length;y++)_[y]=f[y];return _}e.applyFromCharCode=d;var b={};b.string={string:s,array:function(f){return l(f,new Array(f.length))},arraybuffer:function(f){return b.string.uint8array(f).buffer},uint8array:function(f){return l(f,new Uint8Array(f.length))},nodebuffer:function(f){return l(f,o.allocBuffer(f.length))}},b.array={string:d,array:s,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return o.newBufferFrom(f)}},b.arraybuffer={string:function(f){return d(new Uint8Array(f))},array:function(f){return h(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:s,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return o.newBufferFrom(new Uint8Array(f))}},b.uint8array={string:d,array:function(f){return h(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:s,nodebuffer:function(f){return o.newBufferFrom(f)}},b.nodebuffer={string:d,array:function(f){return h(f,new Array(f.length))},arraybuffer:function(f){return b.nodebuffer.uint8array(f).buffer},uint8array:function(f){return h(f,new Uint8Array(f.length))},nodebuffer:s},e.transformTo=function(f,_){if(_=_||"",!f)return _;e.checkSupport(f);var y=e.getTypeOf(_);return b[y][f](_)},e.resolve=function(f){for(var _=f.split("/"),y=[],C=0;C<_.length;C++){var D=_[C];D==="."||D===""&&C!==0&&C!==_.length-1||(D===".."?y.pop():y.push(D))}return y.join("/")},e.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":n.nodebuffer&&o.isBuffer(f)?"nodebuffer":n.uint8array&&f instanceof Uint8Array?"uint8array":n.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(f){if(!n[f.toLowerCase()])throw new Error(f+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(f){var _,y,C="";for(y=0;y<(f||"").length;y++)C+="\\x"+((_=f.charCodeAt(y))<16?"0":"")+_.toString(16).toUpperCase();return C},e.delay=function(f,_,y){setImmediate(function(){f.apply(y||null,_||[])})},e.inherits=function(f,_){function y(){}y.prototype=_.prototype,f.prototype=new y},e.extend=function(){var f,_,y={};for(f=0;f<arguments.length;f++)for(_ in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],_)&&y[_]===void 0&&(y[_]=arguments[f][_]);return y},e.prepareContent=function(f,_,y,C,D){return a.Promise.resolve(_).then(function(k){return n.blob&&(k instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(k))!==-1)&&typeof FileReader<"u"?new a.Promise(function(T,F){var L=new FileReader;L.onload=function(B){T(B.target.result)},L.onerror=function(B){F(B.target.error)},L.readAsArrayBuffer(k)}):k}).then(function(k){var T=e.getTypeOf(k);return T?(T==="arraybuffer"?k=e.transformTo("uint8array",k):T==="string"&&(D?k=r.decode(k):y&&C!==!0&&(k=(function(F){return l(F,n.uint8array?new Uint8Array(F.length):new Array(F.length))})(k))),k):a.Promise.reject(new Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i,e){"use strict";var n=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(c){this.files=[],this.loadOptions=c}l.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(d)+", expected "+r.pretty(c)+")")}},isSignature:function(c,d){var h=this.reader.index;this.reader.setIndex(c);var b=this.reader.readString(4)===d;return this.reader.setIndex(h),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),d=s.uint8array?"uint8array":"array",h=r.transformTo(d,c);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,d,h,b=this.zip64EndOfCentralSize-44;0<b;)c=this.reader.readInt(2),d=this.reader.readInt(4),h=this.reader.readData(d),this.zip64ExtensibleData[c]={id:c,length:d,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,d;for(c=0;c<this.files.length;c++)d=this.files[c],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(c=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var d=c;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var b=d-h;if(0<b)this.isSignature(d,o.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(c){this.reader=n(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i,e){"use strict";var n=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),c=t("./support");function d(h,b){this.options=h,this.loadOptions=b}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var b,f;if(h.skip(22),this.fileNameLength=h.readInt(2),f=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(f),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(_){for(var y in l)if(Object.prototype.hasOwnProperty.call(l,y)&&l[y].magic===_)return l[y];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,b,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var b=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(b),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=n(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var b,f,_,y=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<y;)b=h.readInt(2),f=h.readInt(2),_=h.readData(f),this.extraFields[b]={id:b,length:f,value:_};h.setIndex(y)},handleUTF8:function(){var h=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var f=r.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var y=r.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var b=n(h.value);return b.readInt(1)!==1||a(this.fileName)!==b.readInt(4)?null:s.utf8decode(b.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var b=n(h.value);return b.readInt(1)!==1||a(this.fileComment)!==b.readInt(4)?null:s.utf8decode(b.readData(h.length-5))}return null}},i.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i,e){"use strict";function n(b,f,_){this.name=b,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=f,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");n.prototype={internalStream:function(b){var f=null,_="string";try{if(!b)throw new Error("No output type specified.");var y=(_=b.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),f=this._decompressWorker();var C=!this._dataBinary;C&&!y&&(f=f.pipe(new a.Utf8EncodeWorker)),!C&&y&&(f=f.pipe(new a.Utf8DecodeWorker))}catch(D){(f=new l("error")).error(D)}return new r(f,_,"")},async:function(b,f){return this.internalStream(b).accumulate(f)},nodeStream:function(b,f){return this.internalStream(b||"nodebuffer").toNodejsStream(f)},_compressWorker:function(b,f){if(this._data instanceof s&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(_,b,f)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)n.prototype[c[h]]=d;i.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,i,e){(function(n){"use strict";var r,o,a=n.MutationObserver||n.WebKitMutationObserver;if(a){var s=0,l=new a(b),c=n.document.createTextNode("");l.observe(c,{characterData:!0}),r=function(){c.data=s=++s%2}}else if(n.setImmediate||n.MessageChannel===void 0)r="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var f=n.document.createElement("script");f.onreadystatechange=function(){b(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},n.document.documentElement.appendChild(f)}:function(){setTimeout(b,0)};else{var d=new n.MessageChannel;d.port1.onmessage=b,r=function(){d.port2.postMessage(0)}}var h=[];function b(){var f,_;o=!0;for(var y=h.length;y;){for(_=h,h=[],f=-1;++f<y;)_[f]();y=h.length}o=!1}i.exports=function(f){h.push(f)!==1||o||r()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,i,e){"use strict";var n=t("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,y!==r&&f(this,y)}function d(y,C,D){this.promise=y,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}function h(y,C,D){n(function(){var k;try{k=C(D)}catch(T){return o.reject(y,T)}k===y?o.reject(y,new TypeError("Cannot resolve promise with itself")):o.resolve(y,k)})}function b(y){var C=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof C=="function")return function(){C.apply(y,arguments)}}function f(y,C){var D=!1;function k(L){D||(D=!0,o.reject(y,L))}function T(L){D||(D=!0,o.resolve(y,L))}var F=_(function(){C(T,k)});F.status==="error"&&k(F.value)}function _(y,C){var D={};try{D.value=y(C),D.status="success"}catch(k){D.status="error",D.value=k}return D}(i.exports=c).prototype.finally=function(y){if(typeof y!="function")return this;var C=this.constructor;return this.then(function(D){return C.resolve(y()).then(function(){return D})},function(D){return C.resolve(y()).then(function(){throw D})})},c.prototype.catch=function(y){return this.then(null,y)},c.prototype.then=function(y,C){if(typeof y!="function"&&this.state===s||typeof C!="function"&&this.state===a)return this;var D=new this.constructor(r);return this.state!==l?h(D,this.state===s?y:C,this.outcome):this.queue.push(new d(D,y,C)),D},d.prototype.callFulfilled=function(y){o.resolve(this.promise,y)},d.prototype.otherCallFulfilled=function(y){h(this.promise,this.onFulfilled,y)},d.prototype.callRejected=function(y){o.reject(this.promise,y)},d.prototype.otherCallRejected=function(y){h(this.promise,this.onRejected,y)},o.resolve=function(y,C){var D=_(b,C);if(D.status==="error")return o.reject(y,D.value);var k=D.value;if(k)f(y,k);else{y.state=s,y.outcome=C;for(var T=-1,F=y.queue.length;++T<F;)y.queue[T].callFulfilled(C)}return y},o.reject=function(y,C){y.state=a,y.outcome=C;for(var D=-1,k=y.queue.length;++D<k;)y.queue[D].callRejected(C);return y},c.resolve=function(y){return y instanceof this?y:o.resolve(new this(r),y)},c.reject=function(y){var C=new this(r);return o.reject(C,y)},c.all=function(y){var C=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=y.length,k=!1;if(!D)return this.resolve([]);for(var T=new Array(D),F=0,L=-1,B=new this(r);++L<D;)V(y[L],L);return B;function V(ne,Re){C.resolve(ne).then(function(P){T[Re]=P,++F!==D||k||(k=!0,o.resolve(B,T))},function(P){k||(k=!0,o.reject(B,P))})}},c.race=function(y){var C=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=y.length,k=!1;if(!D)return this.resolve([]);for(var T=-1,F=new this(r);++T<D;)L=y[T],C.resolve(L).then(function(B){k||(k=!0,o.resolve(F,B))},function(B){k||(k=!0,o.reject(F,B))});var L;return F}},{immediate:36}],38:[function(t,i,e){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,e){"use strict";var n=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString,c=0,d=-1,h=0,b=8;function f(y){if(!(this instanceof f))return new f(y);this.options=r.assign({level:d,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},y||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var D=n.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(D!==c)throw new Error(a[D]);if(C.header&&n.deflateSetHeader(this.strm,C.header),C.dictionary){var k;if(k=typeof C.dictionary=="string"?o.string2buf(C.dictionary):l.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(D=n.deflateSetDictionary(this.strm,k))!==c)throw new Error(a[D]);this._dict_set=!0}}function _(y,C){var D=new f(C);if(D.push(y,!0),D.err)throw D.msg||a[D.err];return D.result}f.prototype.push=function(y,C){var D,k,T=this.strm,F=this.options.chunkSize;if(this.ended)return!1;k=C===~~C?C:C===!0?4:0,typeof y=="string"?T.input=o.string2buf(y):l.call(y)==="[object ArrayBuffer]"?T.input=new Uint8Array(y):T.input=y,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new r.Buf8(F),T.next_out=0,T.avail_out=F),(D=n.deflate(T,k))!==1&&D!==c)return this.onEnd(D),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||k!==4&&k!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(r.shrinkBuf(T.output,T.next_out))):this.onData(r.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&D!==1);return k===4?(D=n.deflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===c):k!==2||(this.onEnd(c),!(T.avail_out=0))},f.prototype.onData=function(y){this.chunks.push(y)},f.prototype.onEnd=function(y){y===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},e.Deflate=f,e.deflate=_,e.deflateRaw=function(y,C){return(C=C||{}).raw=!0,_(y,C)},e.gzip=function(y,C){return(C=C||{}).gzip=!0,_(y,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,e){"use strict";var n=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),d=Object.prototype.toString;function h(f){if(!(this instanceof h))return new h(f);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},f||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||f&&f.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&(15&_.windowBits)==0&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var y=n.inflateInit2(this.strm,_.windowBits);if(y!==a.Z_OK)throw new Error(s[y]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function b(f,_){var y=new h(_);if(y.push(f,!0),y.err)throw y.msg||s[y.err];return y.result}h.prototype.push=function(f,_){var y,C,D,k,T,F,L=this.strm,B=this.options.chunkSize,V=this.options.dictionary,ne=!1;if(this.ended)return!1;C=_===~~_?_:_===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof f=="string"?L.input=o.binstring2buf(f):d.call(f)==="[object ArrayBuffer]"?L.input=new Uint8Array(f):L.input=f,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new r.Buf8(B),L.next_out=0,L.avail_out=B),(y=n.inflate(L,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&V&&(F=typeof V=="string"?o.string2buf(V):d.call(V)==="[object ArrayBuffer]"?new Uint8Array(V):V,y=n.inflateSetDictionary(this.strm,F)),y===a.Z_BUF_ERROR&&ne===!0&&(y=a.Z_OK,ne=!1),y!==a.Z_STREAM_END&&y!==a.Z_OK)return this.onEnd(y),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&y!==a.Z_STREAM_END&&(L.avail_in!==0||C!==a.Z_FINISH&&C!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(D=o.utf8border(L.output,L.next_out),k=L.next_out-D,T=o.buf2string(L.output,D),L.next_out=k,L.avail_out=B-k,k&&r.arraySet(L.output,L.output,D,k,0),this.onData(T)):this.onData(r.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(ne=!0)}while((0<L.avail_in||L.avail_out===0)&&y!==a.Z_STREAM_END);return y===a.Z_STREAM_END&&(C=a.Z_FINISH),C===a.Z_FINISH?(y=n.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===a.Z_OK):C!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(L.avail_out=0))},h.prototype.onData=function(f){this.chunks.push(f)},h.prototype.onEnd=function(f){f===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},e.Inflate=h,e.inflate=b,e.inflateRaw=function(f,_){return(_=_||{}).raw=!0,b(f,_)},e.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,e){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";e.assign=function(a){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var l=s.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var c in l)l.hasOwnProperty(c)&&(a[c]=l[c])}}return a},e.shrinkBuf=function(a,s){return a.length===s?a:a.subarray?a.subarray(0,s):(a.length=s,a)};var r={arraySet:function(a,s,l,c,d){if(s.subarray&&a.subarray)a.set(s.subarray(l,l+c),d);else for(var h=0;h<c;h++)a[d+h]=s[l+h]},flattenChunks:function(a){var s,l,c,d,h,b;for(s=c=0,l=a.length;s<l;s++)c+=a[s].length;for(b=new Uint8Array(c),s=d=0,l=a.length;s<l;s++)h=a[s],b.set(h,d),d+=h.length;return b}},o={arraySet:function(a,s,l,c,d){for(var h=0;h<c;h++)a[d+h]=s[l+h]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)},{}],42:[function(t,i,e){"use strict";var n=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(c,d){if(d<65537&&(c.subarray&&o||!c.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(c,d));for(var h="",b=0;b<d;b++)h+=String.fromCharCode(c[b]);return h}a[254]=a[254]=1,e.string2buf=function(c){var d,h,b,f,_,y=c.length,C=0;for(f=0;f<y;f++)(64512&(h=c.charCodeAt(f)))==55296&&f+1<y&&(64512&(b=c.charCodeAt(f+1)))==56320&&(h=65536+(h-55296<<10)+(b-56320),f++),C+=h<128?1:h<2048?2:h<65536?3:4;for(d=new n.Buf8(C),f=_=0;_<C;f++)(64512&(h=c.charCodeAt(f)))==55296&&f+1<y&&(64512&(b=c.charCodeAt(f+1)))==56320&&(h=65536+(h-55296<<10)+(b-56320),f++),h<128?d[_++]=h:(h<2048?d[_++]=192|h>>>6:(h<65536?d[_++]=224|h>>>12:(d[_++]=240|h>>>18,d[_++]=128|h>>>12&63),d[_++]=128|h>>>6&63),d[_++]=128|63&h);return d},e.buf2binstring=function(c){return l(c,c.length)},e.binstring2buf=function(c){for(var d=new n.Buf8(c.length),h=0,b=d.length;h<b;h++)d[h]=c.charCodeAt(h);return d},e.buf2string=function(c,d){var h,b,f,_,y=d||c.length,C=new Array(2*y);for(h=b=0;h<y;)if((f=c[h++])<128)C[b++]=f;else if(4<(_=a[f]))C[b++]=65533,h+=_-1;else{for(f&=_===2?31:_===3?15:7;1<_&&h<y;)f=f<<6|63&c[h++],_--;1<_?C[b++]=65533:f<65536?C[b++]=f:(f-=65536,C[b++]=55296|f>>10&1023,C[b++]=56320|1023&f)}return l(C,b)},e.utf8border=function(c,d){var h;for((d=d||c.length)>c.length&&(d=c.length),h=d-1;0<=h&&(192&c[h])==128;)h--;return h<0||h===0?d:h+a[c[h]]>d?h:d}},{"./common":41}],43:[function(t,i,e){"use strict";i.exports=function(n,r,o,a){for(var s=65535&n|0,l=n>>>16&65535|0,c=0;o!==0;){for(o-=c=2e3<o?2e3:o;l=l+(s=s+r[a++]|0)|0,--c;);s%=65521,l%=65521}return s|l<<16|0}},{}],44:[function(t,i,e){"use strict";i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,i,e){"use strict";var n=(function(){for(var r,o=[],a=0;a<256;a++){r=a;for(var s=0;s<8;s++)r=1&r?3988292384^r>>>1:r>>>1;o[a]=r}return o})();i.exports=function(r,o,a,s){var l=n,c=s+a;r^=-1;for(var d=s;d<c;d++)r=r>>>8^l[255&(r^o[d])];return-1^r}},{}],46:[function(t,i,e){"use strict";var n,r=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),c=0,d=4,h=0,b=-2,f=-1,_=4,y=2,C=8,D=9,k=286,T=30,F=19,L=2*k+1,B=15,V=3,ne=258,Re=ne+V+1,P=42,re=113,w=1,de=2,st=3,_e=4;function ge(x,me){return x.msg=l[me],me}function J(x){return(x<<1)-(4<x?9:0)}function ye(x){for(var me=x.length;0<=--me;)x[me]=0}function H(x){var me=x.state,ie=me.pending;ie>x.avail_out&&(ie=x.avail_out),ie!==0&&(r.arraySet(x.output,me.pending_buf,me.pending_out,ie,x.next_out),x.next_out+=ie,me.pending_out+=ie,x.total_out+=ie,x.avail_out-=ie,me.pending-=ie,me.pending===0&&(me.pending_out=0))}function $(x,me){o._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,me),x.block_start=x.strstart,H(x.strm)}function Ze(x,me){x.pending_buf[x.pending++]=me}function Fe(x,me){x.pending_buf[x.pending++]=me>>>8&255,x.pending_buf[x.pending++]=255&me}function Te(x,me){var ie,O,I=x.max_chain_length,j=x.strstart,fe=x.prev_length,ve=x.nice_match,W=x.strstart>x.w_size-Re?x.strstart-(x.w_size-Re):0,Ie=x.window,$e=x.w_mask,Oe=x.prev,at=x.strstart+ne,gn=Ie[j+fe-1],Vt=Ie[j+fe];x.prev_length>=x.good_match&&(I>>=2),ve>x.lookahead&&(ve=x.lookahead);do if(Ie[(ie=me)+fe]===Vt&&Ie[ie+fe-1]===gn&&Ie[ie]===Ie[j]&&Ie[++ie]===Ie[j+1]){j+=2,ie++;do;while(Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&Ie[++j]===Ie[++ie]&&j<at);if(O=ne-(at-j),j=at-ne,fe<O){if(x.match_start=me,ve<=(fe=O))break;gn=Ie[j+fe-1],Vt=Ie[j+fe]}}while((me=Oe[me&$e])>W&&--I!=0);return fe<=x.lookahead?fe:x.lookahead}function pt(x){var me,ie,O,I,j,fe,ve,W,Ie,$e,Oe=x.w_size;do{if(I=x.window_size-x.lookahead-x.strstart,x.strstart>=Oe+(Oe-Re)){for(r.arraySet(x.window,x.window,Oe,Oe,0),x.match_start-=Oe,x.strstart-=Oe,x.block_start-=Oe,me=ie=x.hash_size;O=x.head[--me],x.head[me]=Oe<=O?O-Oe:0,--ie;);for(me=ie=Oe;O=x.prev[--me],x.prev[me]=Oe<=O?O-Oe:0,--ie;);I+=Oe}if(x.strm.avail_in===0)break;if(fe=x.strm,ve=x.window,W=x.strstart+x.lookahead,Ie=I,$e=void 0,$e=fe.avail_in,Ie<$e&&($e=Ie),ie=$e===0?0:(fe.avail_in-=$e,r.arraySet(ve,fe.input,fe.next_in,$e,W),fe.state.wrap===1?fe.adler=a(fe.adler,ve,$e,W):fe.state.wrap===2&&(fe.adler=s(fe.adler,ve,$e,W)),fe.next_in+=$e,fe.total_in+=$e,$e),x.lookahead+=ie,x.lookahead+x.insert>=V)for(j=x.strstart-x.insert,x.ins_h=x.window[j],x.ins_h=(x.ins_h<<x.hash_shift^x.window[j+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[j+V-1])&x.hash_mask,x.prev[j&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=j,j++,x.insert--,!(x.lookahead+x.insert<V)););}while(x.lookahead<Re&&x.strm.avail_in!==0)}function Qn(x,me){for(var ie,O;;){if(x.lookahead<Re){if(pt(x),x.lookahead<Re&&me===c)return w;if(x.lookahead===0)break}if(ie=0,x.lookahead>=V&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+V-1])&x.hash_mask,ie=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),ie!==0&&x.strstart-ie<=x.w_size-Re&&(x.match_length=Te(x,ie)),x.match_length>=V)if(O=o._tr_tally(x,x.strstart-x.match_start,x.match_length-V),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=V){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+V-1])&x.hash_mask,ie=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else O=o._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(O&&($(x,!1),x.strm.avail_out===0))return w}return x.insert=x.strstart<V-1?x.strstart:V-1,me===d?($(x,!0),x.strm.avail_out===0?st:_e):x.last_lit&&($(x,!1),x.strm.avail_out===0)?w:de}function Nt(x,me){for(var ie,O,I;;){if(x.lookahead<Re){if(pt(x),x.lookahead<Re&&me===c)return w;if(x.lookahead===0)break}if(ie=0,x.lookahead>=V&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+V-1])&x.hash_mask,ie=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=V-1,ie!==0&&x.prev_length<x.max_lazy_match&&x.strstart-ie<=x.w_size-Re&&(x.match_length=Te(x,ie),x.match_length<=5&&(x.strategy===1||x.match_length===V&&4096<x.strstart-x.match_start)&&(x.match_length=V-1)),x.prev_length>=V&&x.match_length<=x.prev_length){for(I=x.strstart+x.lookahead-V,O=o._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-V),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=I&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+V-1])&x.hash_mask,ie=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=V-1,x.strstart++,O&&($(x,!1),x.strm.avail_out===0))return w}else if(x.match_available){if((O=o._tr_tally(x,0,x.window[x.strstart-1]))&&$(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return w}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(O=o._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<V-1?x.strstart:V-1,me===d?($(x,!0),x.strm.avail_out===0?st:_e):x.last_lit&&($(x,!1),x.strm.avail_out===0)?w:de}function ut(x,me,ie,O,I){this.good_length=x,this.max_lazy=me,this.nice_length=ie,this.max_chain=O,this.func=I}function fn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*L),this.dyn_dtree=new r.Buf16(2*(2*T+1)),this.bl_tree=new r.Buf16(2*(2*F+1)),ye(this.dyn_ltree),ye(this.dyn_dtree),ye(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(B+1),this.heap=new r.Buf16(2*k+1),ye(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*k+1),ye(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function zt(x){var me;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=y,(me=x.state).pending=0,me.pending_out=0,me.wrap<0&&(me.wrap=-me.wrap),me.status=me.wrap?P:re,x.adler=me.wrap===2?0:1,me.last_flush=c,o._tr_init(me),h):ge(x,b)}function Ti(x){var me=zt(x);return me===h&&(function(ie){ie.window_size=2*ie.w_size,ye(ie.head),ie.max_lazy_match=n[ie.level].max_lazy,ie.good_match=n[ie.level].good_length,ie.nice_match=n[ie.level].nice_length,ie.max_chain_length=n[ie.level].max_chain,ie.strstart=0,ie.block_start=0,ie.lookahead=0,ie.insert=0,ie.match_length=ie.prev_length=V-1,ie.match_available=0,ie.ins_h=0})(x.state),me}function Ii(x,me,ie,O,I,j){if(!x)return b;var fe=1;if(me===f&&(me=6),O<0?(fe=0,O=-O):15<O&&(fe=2,O-=16),I<1||D<I||ie!==C||O<8||15<O||me<0||9<me||j<0||_<j)return ge(x,b);O===8&&(O=9);var ve=new fn;return(x.state=ve).strm=x,ve.wrap=fe,ve.gzhead=null,ve.w_bits=O,ve.w_size=1<<ve.w_bits,ve.w_mask=ve.w_size-1,ve.hash_bits=I+7,ve.hash_size=1<<ve.hash_bits,ve.hash_mask=ve.hash_size-1,ve.hash_shift=~~((ve.hash_bits+V-1)/V),ve.window=new r.Buf8(2*ve.w_size),ve.head=new r.Buf16(ve.hash_size),ve.prev=new r.Buf16(ve.w_size),ve.lit_bufsize=1<<I+6,ve.pending_buf_size=4*ve.lit_bufsize,ve.pending_buf=new r.Buf8(ve.pending_buf_size),ve.d_buf=1*ve.lit_bufsize,ve.l_buf=3*ve.lit_bufsize,ve.level=me,ve.strategy=j,ve.method=ie,Ti(x)}n=[new ut(0,0,0,0,function(x,me){var ie=65535;for(ie>x.pending_buf_size-5&&(ie=x.pending_buf_size-5);;){if(x.lookahead<=1){if(pt(x),x.lookahead===0&&me===c)return w;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var O=x.block_start+ie;if((x.strstart===0||x.strstart>=O)&&(x.lookahead=x.strstart-O,x.strstart=O,$(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-Re&&($(x,!1),x.strm.avail_out===0))return w}return x.insert=0,me===d?($(x,!0),x.strm.avail_out===0?st:_e):(x.strstart>x.block_start&&($(x,!1),x.strm.avail_out),w)}),new ut(4,4,8,4,Qn),new ut(4,5,16,8,Qn),new ut(4,6,32,32,Qn),new ut(4,4,16,16,Nt),new ut(8,16,32,32,Nt),new ut(8,16,128,128,Nt),new ut(8,32,128,256,Nt),new ut(32,128,258,1024,Nt),new ut(32,258,258,4096,Nt)],e.deflateInit=function(x,me){return Ii(x,me,C,15,8,0)},e.deflateInit2=Ii,e.deflateReset=Ti,e.deflateResetKeep=zt,e.deflateSetHeader=function(x,me){return x&&x.state?x.state.wrap!==2?b:(x.state.gzhead=me,h):b},e.deflate=function(x,me){var ie,O,I,j;if(!x||!x.state||5<me||me<0)return x?ge(x,b):b;if(O=x.state,!x.output||!x.input&&x.avail_in!==0||O.status===666&&me!==d)return ge(x,x.avail_out===0?-5:b);if(O.strm=x,ie=O.last_flush,O.last_flush=me,O.status===P)if(O.wrap===2)x.adler=0,Ze(O,31),Ze(O,139),Ze(O,8),O.gzhead?(Ze(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),Ze(O,255&O.gzhead.time),Ze(O,O.gzhead.time>>8&255),Ze(O,O.gzhead.time>>16&255),Ze(O,O.gzhead.time>>24&255),Ze(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),Ze(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(Ze(O,255&O.gzhead.extra.length),Ze(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(x.adler=s(x.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(Ze(O,0),Ze(O,0),Ze(O,0),Ze(O,0),Ze(O,0),Ze(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),Ze(O,3),O.status=re);else{var fe=C+(O.w_bits-8<<4)<<8;fe|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(fe|=32),fe+=31-fe%31,O.status=re,Fe(O,fe),O.strstart!==0&&(Fe(O,x.adler>>>16),Fe(O,65535&x.adler)),x.adler=1}if(O.status===69)if(O.gzhead.extra){for(I=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>I&&(x.adler=s(x.adler,O.pending_buf,O.pending-I,I)),H(x),I=O.pending,O.pending!==O.pending_buf_size));)Ze(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>I&&(x.adler=s(x.adler,O.pending_buf,O.pending-I,I)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){I=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>I&&(x.adler=s(x.adler,O.pending_buf,O.pending-I,I)),H(x),I=O.pending,O.pending===O.pending_buf_size)){j=1;break}j=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,Ze(O,j)}while(j!==0);O.gzhead.hcrc&&O.pending>I&&(x.adler=s(x.adler,O.pending_buf,O.pending-I,I)),j===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){I=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>I&&(x.adler=s(x.adler,O.pending_buf,O.pending-I,I)),H(x),I=O.pending,O.pending===O.pending_buf_size)){j=1;break}j=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,Ze(O,j)}while(j!==0);O.gzhead.hcrc&&O.pending>I&&(x.adler=s(x.adler,O.pending_buf,O.pending-I,I)),j===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&H(x),O.pending+2<=O.pending_buf_size&&(Ze(O,255&x.adler),Ze(O,x.adler>>8&255),x.adler=0,O.status=re)):O.status=re),O.pending!==0){if(H(x),x.avail_out===0)return O.last_flush=-1,h}else if(x.avail_in===0&&J(me)<=J(ie)&&me!==d)return ge(x,-5);if(O.status===666&&x.avail_in!==0)return ge(x,-5);if(x.avail_in!==0||O.lookahead!==0||me!==c&&O.status!==666){var ve=O.strategy===2?(function(W,Ie){for(var $e;;){if(W.lookahead===0&&(pt(W),W.lookahead===0)){if(Ie===c)return w;break}if(W.match_length=0,$e=o._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++,$e&&($(W,!1),W.strm.avail_out===0))return w}return W.insert=0,Ie===d?($(W,!0),W.strm.avail_out===0?st:_e):W.last_lit&&($(W,!1),W.strm.avail_out===0)?w:de})(O,me):O.strategy===3?(function(W,Ie){for(var $e,Oe,at,gn,Vt=W.window;;){if(W.lookahead<=ne){if(pt(W),W.lookahead<=ne&&Ie===c)return w;if(W.lookahead===0)break}if(W.match_length=0,W.lookahead>=V&&0<W.strstart&&(Oe=Vt[at=W.strstart-1])===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]){gn=W.strstart+ne;do;while(Oe===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]&&Oe===Vt[++at]&&at<gn);W.match_length=ne-(gn-at),W.match_length>W.lookahead&&(W.match_length=W.lookahead)}if(W.match_length>=V?($e=o._tr_tally(W,1,W.match_length-V),W.lookahead-=W.match_length,W.strstart+=W.match_length,W.match_length=0):($e=o._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++),$e&&($(W,!1),W.strm.avail_out===0))return w}return W.insert=0,Ie===d?($(W,!0),W.strm.avail_out===0?st:_e):W.last_lit&&($(W,!1),W.strm.avail_out===0)?w:de})(O,me):n[O.level].func(O,me);if(ve!==st&&ve!==_e||(O.status=666),ve===w||ve===st)return x.avail_out===0&&(O.last_flush=-1),h;if(ve===de&&(me===1?o._tr_align(O):me!==5&&(o._tr_stored_block(O,0,0,!1),me===3&&(ye(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),H(x),x.avail_out===0))return O.last_flush=-1,h}return me!==d?h:O.wrap<=0?1:(O.wrap===2?(Ze(O,255&x.adler),Ze(O,x.adler>>8&255),Ze(O,x.adler>>16&255),Ze(O,x.adler>>24&255),Ze(O,255&x.total_in),Ze(O,x.total_in>>8&255),Ze(O,x.total_in>>16&255),Ze(O,x.total_in>>24&255)):(Fe(O,x.adler>>>16),Fe(O,65535&x.adler)),H(x),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?h:1)},e.deflateEnd=function(x){var me;return x&&x.state?(me=x.state.status)!==P&&me!==69&&me!==73&&me!==91&&me!==103&&me!==re&&me!==666?ge(x,b):(x.state=null,me===re?ge(x,-3):h):b},e.deflateSetDictionary=function(x,me){var ie,O,I,j,fe,ve,W,Ie,$e=me.length;if(!x||!x.state||(j=(ie=x.state).wrap)===2||j===1&&ie.status!==P||ie.lookahead)return b;for(j===1&&(x.adler=a(x.adler,me,$e,0)),ie.wrap=0,$e>=ie.w_size&&(j===0&&(ye(ie.head),ie.strstart=0,ie.block_start=0,ie.insert=0),Ie=new r.Buf8(ie.w_size),r.arraySet(Ie,me,$e-ie.w_size,ie.w_size,0),me=Ie,$e=ie.w_size),fe=x.avail_in,ve=x.next_in,W=x.input,x.avail_in=$e,x.next_in=0,x.input=me,pt(ie);ie.lookahead>=V;){for(O=ie.strstart,I=ie.lookahead-(V-1);ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[O+V-1])&ie.hash_mask,ie.prev[O&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=O,O++,--I;);ie.strstart=O,ie.lookahead=V-1,pt(ie)}return ie.strstart+=ie.lookahead,ie.block_start=ie.strstart,ie.insert=ie.lookahead,ie.lookahead=0,ie.match_length=ie.prev_length=V-1,ie.match_available=0,x.next_in=ve,x.input=W,x.avail_in=fe,ie.wrap=j,h},e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i,e){"use strict";i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,i,e){"use strict";i.exports=function(n,r){var o,a,s,l,c,d,h,b,f,_,y,C,D,k,T,F,L,B,V,ne,Re,P,re,w,de;o=n.state,a=n.next_in,w=n.input,s=a+(n.avail_in-5),l=n.next_out,de=n.output,c=l-(r-n.avail_out),d=l+(n.avail_out-257),h=o.dmax,b=o.wsize,f=o.whave,_=o.wnext,y=o.window,C=o.hold,D=o.bits,k=o.lencode,T=o.distcode,F=(1<<o.lenbits)-1,L=(1<<o.distbits)-1;e:do{D<15&&(C+=w[a++]<<D,D+=8,C+=w[a++]<<D,D+=8),B=k[C&F];t:for(;;){if(C>>>=V=B>>>24,D-=V,(V=B>>>16&255)===0)de[l++]=65535&B;else{if(!(16&V)){if((64&V)==0){B=k[(65535&B)+(C&(1<<V)-1)];continue t}if(32&V){o.mode=12;break e}n.msg="invalid literal/length code",o.mode=30;break e}ne=65535&B,(V&=15)&&(D<V&&(C+=w[a++]<<D,D+=8),ne+=C&(1<<V)-1,C>>>=V,D-=V),D<15&&(C+=w[a++]<<D,D+=8,C+=w[a++]<<D,D+=8),B=T[C&L];n:for(;;){if(C>>>=V=B>>>24,D-=V,!(16&(V=B>>>16&255))){if((64&V)==0){B=T[(65535&B)+(C&(1<<V)-1)];continue n}n.msg="invalid distance code",o.mode=30;break e}if(Re=65535&B,D<(V&=15)&&(C+=w[a++]<<D,(D+=8)<V&&(C+=w[a++]<<D,D+=8)),h<(Re+=C&(1<<V)-1)){n.msg="invalid distance too far back",o.mode=30;break e}if(C>>>=V,D-=V,(V=l-c)<Re){if(f<(V=Re-V)&&o.sane){n.msg="invalid distance too far back",o.mode=30;break e}if(re=y,(P=0)===_){if(P+=b-V,V<ne){for(ne-=V;de[l++]=y[P++],--V;);P=l-Re,re=de}}else if(_<V){if(P+=b+_-V,(V-=_)<ne){for(ne-=V;de[l++]=y[P++],--V;);if(P=0,_<ne){for(ne-=V=_;de[l++]=y[P++],--V;);P=l-Re,re=de}}}else if(P+=_-V,V<ne){for(ne-=V;de[l++]=y[P++],--V;);P=l-Re,re=de}for(;2<ne;)de[l++]=re[P++],de[l++]=re[P++],de[l++]=re[P++],ne-=3;ne&&(de[l++]=re[P++],1<ne&&(de[l++]=re[P++]))}else{for(P=l-Re;de[l++]=de[P++],de[l++]=de[P++],de[l++]=de[P++],2<(ne-=3););ne&&(de[l++]=de[P++],1<ne&&(de[l++]=de[P++]))}break}}break}}while(a<s&&l<d);a-=ne=D>>3,C&=(1<<(D-=ne<<3))-1,n.next_in=a,n.next_out=l,n.avail_in=a<s?s-a+5:5-(a-s),n.avail_out=l<d?d-l+257:257-(l-d),o.hold=C,o.bits=D}},{}],49:[function(t,i,e){"use strict";var n=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=1,c=2,d=0,h=-2,b=1,f=852,_=592;function y(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function D(P){var re;return P&&P.state?(re=P.state,P.total_in=P.total_out=re.total=0,P.msg="",re.wrap&&(P.adler=1&re.wrap),re.mode=b,re.last=0,re.havedict=0,re.dmax=32768,re.head=null,re.hold=0,re.bits=0,re.lencode=re.lendyn=new n.Buf32(f),re.distcode=re.distdyn=new n.Buf32(_),re.sane=1,re.back=-1,d):h}function k(P){var re;return P&&P.state?((re=P.state).wsize=0,re.whave=0,re.wnext=0,D(P)):h}function T(P,re){var w,de;return P&&P.state?(de=P.state,re<0?(w=0,re=-re):(w=1+(re>>4),re<48&&(re&=15)),re&&(re<8||15<re)?h:(de.window!==null&&de.wbits!==re&&(de.window=null),de.wrap=w,de.wbits=re,k(P))):h}function F(P,re){var w,de;return P?(de=new C,(P.state=de).window=null,(w=T(P,re))!==d&&(P.state=null),w):h}var L,B,V=!0;function ne(P){if(V){var re;for(L=new n.Buf32(512),B=new n.Buf32(32),re=0;re<144;)P.lens[re++]=8;for(;re<256;)P.lens[re++]=9;for(;re<280;)P.lens[re++]=7;for(;re<288;)P.lens[re++]=8;for(s(l,P.lens,0,288,L,0,P.work,{bits:9}),re=0;re<32;)P.lens[re++]=5;s(c,P.lens,0,32,B,0,P.work,{bits:5}),V=!1}P.lencode=L,P.lenbits=9,P.distcode=B,P.distbits=5}function Re(P,re,w,de){var st,_e=P.state;return _e.window===null&&(_e.wsize=1<<_e.wbits,_e.wnext=0,_e.whave=0,_e.window=new n.Buf8(_e.wsize)),de>=_e.wsize?(n.arraySet(_e.window,re,w-_e.wsize,_e.wsize,0),_e.wnext=0,_e.whave=_e.wsize):(de<(st=_e.wsize-_e.wnext)&&(st=de),n.arraySet(_e.window,re,w-de,st,_e.wnext),(de-=st)?(n.arraySet(_e.window,re,w-de,de,0),_e.wnext=de,_e.whave=_e.wsize):(_e.wnext+=st,_e.wnext===_e.wsize&&(_e.wnext=0),_e.whave<_e.wsize&&(_e.whave+=st))),0}e.inflateReset=k,e.inflateReset2=T,e.inflateResetKeep=D,e.inflateInit=function(P){return F(P,15)},e.inflateInit2=F,e.inflate=function(P,re){var w,de,st,_e,ge,J,ye,H,$,Ze,Fe,Te,pt,Qn,Nt,ut,fn,zt,Ti,Ii,x,me,ie,O,I=0,j=new n.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return h;(w=P.state).mode===12&&(w.mode=13),ge=P.next_out,st=P.output,ye=P.avail_out,_e=P.next_in,de=P.input,J=P.avail_in,H=w.hold,$=w.bits,Ze=J,Fe=ye,me=d;e:for(;;)switch(w.mode){case b:if(w.wrap===0){w.mode=13;break}for(;$<16;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(2&w.wrap&&H===35615){j[w.check=0]=255&H,j[1]=H>>>8&255,w.check=o(w.check,j,2,0),$=H=0,w.mode=2;break}if(w.flags=0,w.head&&(w.head.done=!1),!(1&w.wrap)||(((255&H)<<8)+(H>>8))%31){P.msg="incorrect header check",w.mode=30;break}if((15&H)!=8){P.msg="unknown compression method",w.mode=30;break}if($-=4,x=8+(15&(H>>>=4)),w.wbits===0)w.wbits=x;else if(x>w.wbits){P.msg="invalid window size",w.mode=30;break}w.dmax=1<<x,P.adler=w.check=1,w.mode=512&H?10:12,$=H=0;break;case 2:for(;$<16;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(w.flags=H,(255&w.flags)!=8){P.msg="unknown compression method",w.mode=30;break}if(57344&w.flags){P.msg="unknown header flags set",w.mode=30;break}w.head&&(w.head.text=H>>8&1),512&w.flags&&(j[0]=255&H,j[1]=H>>>8&255,w.check=o(w.check,j,2,0)),$=H=0,w.mode=3;case 3:for(;$<32;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}w.head&&(w.head.time=H),512&w.flags&&(j[0]=255&H,j[1]=H>>>8&255,j[2]=H>>>16&255,j[3]=H>>>24&255,w.check=o(w.check,j,4,0)),$=H=0,w.mode=4;case 4:for(;$<16;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}w.head&&(w.head.xflags=255&H,w.head.os=H>>8),512&w.flags&&(j[0]=255&H,j[1]=H>>>8&255,w.check=o(w.check,j,2,0)),$=H=0,w.mode=5;case 5:if(1024&w.flags){for(;$<16;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}w.length=H,w.head&&(w.head.extra_len=H),512&w.flags&&(j[0]=255&H,j[1]=H>>>8&255,w.check=o(w.check,j,2,0)),$=H=0}else w.head&&(w.head.extra=null);w.mode=6;case 6:if(1024&w.flags&&(J<(Te=w.length)&&(Te=J),Te&&(w.head&&(x=w.head.extra_len-w.length,w.head.extra||(w.head.extra=new Array(w.head.extra_len)),n.arraySet(w.head.extra,de,_e,Te,x)),512&w.flags&&(w.check=o(w.check,de,Te,_e)),J-=Te,_e+=Te,w.length-=Te),w.length))break e;w.length=0,w.mode=7;case 7:if(2048&w.flags){if(J===0)break e;for(Te=0;x=de[_e+Te++],w.head&&x&&w.length<65536&&(w.head.name+=String.fromCharCode(x)),x&&Te<J;);if(512&w.flags&&(w.check=o(w.check,de,Te,_e)),J-=Te,_e+=Te,x)break e}else w.head&&(w.head.name=null);w.length=0,w.mode=8;case 8:if(4096&w.flags){if(J===0)break e;for(Te=0;x=de[_e+Te++],w.head&&x&&w.length<65536&&(w.head.comment+=String.fromCharCode(x)),x&&Te<J;);if(512&w.flags&&(w.check=o(w.check,de,Te,_e)),J-=Te,_e+=Te,x)break e}else w.head&&(w.head.comment=null);w.mode=9;case 9:if(512&w.flags){for(;$<16;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(H!==(65535&w.check)){P.msg="header crc mismatch",w.mode=30;break}$=H=0}w.head&&(w.head.hcrc=w.flags>>9&1,w.head.done=!0),P.adler=w.check=0,w.mode=12;break;case 10:for(;$<32;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}P.adler=w.check=y(H),$=H=0,w.mode=11;case 11:if(w.havedict===0)return P.next_out=ge,P.avail_out=ye,P.next_in=_e,P.avail_in=J,w.hold=H,w.bits=$,2;P.adler=w.check=1,w.mode=12;case 12:if(re===5||re===6)break e;case 13:if(w.last){H>>>=7&$,$-=7&$,w.mode=27;break}for(;$<3;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}switch(w.last=1&H,$-=1,3&(H>>>=1)){case 0:w.mode=14;break;case 1:if(ne(w),w.mode=20,re!==6)break;H>>>=2,$-=2;break e;case 2:w.mode=17;break;case 3:P.msg="invalid block type",w.mode=30}H>>>=2,$-=2;break;case 14:for(H>>>=7&$,$-=7&$;$<32;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if((65535&H)!=(H>>>16^65535)){P.msg="invalid stored block lengths",w.mode=30;break}if(w.length=65535&H,$=H=0,w.mode=15,re===6)break e;case 15:w.mode=16;case 16:if(Te=w.length){if(J<Te&&(Te=J),ye<Te&&(Te=ye),Te===0)break e;n.arraySet(st,de,_e,Te,ge),J-=Te,_e+=Te,ye-=Te,ge+=Te,w.length-=Te;break}w.mode=12;break;case 17:for(;$<14;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(w.nlen=257+(31&H),H>>>=5,$-=5,w.ndist=1+(31&H),H>>>=5,$-=5,w.ncode=4+(15&H),H>>>=4,$-=4,286<w.nlen||30<w.ndist){P.msg="too many length or distance symbols",w.mode=30;break}w.have=0,w.mode=18;case 18:for(;w.have<w.ncode;){for(;$<3;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}w.lens[fe[w.have++]]=7&H,H>>>=3,$-=3}for(;w.have<19;)w.lens[fe[w.have++]]=0;if(w.lencode=w.lendyn,w.lenbits=7,ie={bits:w.lenbits},me=s(0,w.lens,0,19,w.lencode,0,w.work,ie),w.lenbits=ie.bits,me){P.msg="invalid code lengths set",w.mode=30;break}w.have=0,w.mode=19;case 19:for(;w.have<w.nlen+w.ndist;){for(;ut=(I=w.lencode[H&(1<<w.lenbits)-1])>>>16&255,fn=65535&I,!((Nt=I>>>24)<=$);){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(fn<16)H>>>=Nt,$-=Nt,w.lens[w.have++]=fn;else{if(fn===16){for(O=Nt+2;$<O;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(H>>>=Nt,$-=Nt,w.have===0){P.msg="invalid bit length repeat",w.mode=30;break}x=w.lens[w.have-1],Te=3+(3&H),H>>>=2,$-=2}else if(fn===17){for(O=Nt+3;$<O;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}$-=Nt,x=0,Te=3+(7&(H>>>=Nt)),H>>>=3,$-=3}else{for(O=Nt+7;$<O;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}$-=Nt,x=0,Te=11+(127&(H>>>=Nt)),H>>>=7,$-=7}if(w.have+Te>w.nlen+w.ndist){P.msg="invalid bit length repeat",w.mode=30;break}for(;Te--;)w.lens[w.have++]=x}}if(w.mode===30)break;if(w.lens[256]===0){P.msg="invalid code -- missing end-of-block",w.mode=30;break}if(w.lenbits=9,ie={bits:w.lenbits},me=s(l,w.lens,0,w.nlen,w.lencode,0,w.work,ie),w.lenbits=ie.bits,me){P.msg="invalid literal/lengths set",w.mode=30;break}if(w.distbits=6,w.distcode=w.distdyn,ie={bits:w.distbits},me=s(c,w.lens,w.nlen,w.ndist,w.distcode,0,w.work,ie),w.distbits=ie.bits,me){P.msg="invalid distances set",w.mode=30;break}if(w.mode=20,re===6)break e;case 20:w.mode=21;case 21:if(6<=J&&258<=ye){P.next_out=ge,P.avail_out=ye,P.next_in=_e,P.avail_in=J,w.hold=H,w.bits=$,a(P,Fe),ge=P.next_out,st=P.output,ye=P.avail_out,_e=P.next_in,de=P.input,J=P.avail_in,H=w.hold,$=w.bits,w.mode===12&&(w.back=-1);break}for(w.back=0;ut=(I=w.lencode[H&(1<<w.lenbits)-1])>>>16&255,fn=65535&I,!((Nt=I>>>24)<=$);){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(ut&&(240&ut)==0){for(zt=Nt,Ti=ut,Ii=fn;ut=(I=w.lencode[Ii+((H&(1<<zt+Ti)-1)>>zt)])>>>16&255,fn=65535&I,!(zt+(Nt=I>>>24)<=$);){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}H>>>=zt,$-=zt,w.back+=zt}if(H>>>=Nt,$-=Nt,w.back+=Nt,w.length=fn,ut===0){w.mode=26;break}if(32&ut){w.back=-1,w.mode=12;break}if(64&ut){P.msg="invalid literal/length code",w.mode=30;break}w.extra=15&ut,w.mode=22;case 22:if(w.extra){for(O=w.extra;$<O;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}w.length+=H&(1<<w.extra)-1,H>>>=w.extra,$-=w.extra,w.back+=w.extra}w.was=w.length,w.mode=23;case 23:for(;ut=(I=w.distcode[H&(1<<w.distbits)-1])>>>16&255,fn=65535&I,!((Nt=I>>>24)<=$);){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if((240&ut)==0){for(zt=Nt,Ti=ut,Ii=fn;ut=(I=w.distcode[Ii+((H&(1<<zt+Ti)-1)>>zt)])>>>16&255,fn=65535&I,!(zt+(Nt=I>>>24)<=$);){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}H>>>=zt,$-=zt,w.back+=zt}if(H>>>=Nt,$-=Nt,w.back+=Nt,64&ut){P.msg="invalid distance code",w.mode=30;break}w.offset=fn,w.extra=15&ut,w.mode=24;case 24:if(w.extra){for(O=w.extra;$<O;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}w.offset+=H&(1<<w.extra)-1,H>>>=w.extra,$-=w.extra,w.back+=w.extra}if(w.offset>w.dmax){P.msg="invalid distance too far back",w.mode=30;break}w.mode=25;case 25:if(ye===0)break e;if(Te=Fe-ye,w.offset>Te){if((Te=w.offset-Te)>w.whave&&w.sane){P.msg="invalid distance too far back",w.mode=30;break}pt=Te>w.wnext?(Te-=w.wnext,w.wsize-Te):w.wnext-Te,Te>w.length&&(Te=w.length),Qn=w.window}else Qn=st,pt=ge-w.offset,Te=w.length;for(ye<Te&&(Te=ye),ye-=Te,w.length-=Te;st[ge++]=Qn[pt++],--Te;);w.length===0&&(w.mode=21);break;case 26:if(ye===0)break e;st[ge++]=w.length,ye--,w.mode=21;break;case 27:if(w.wrap){for(;$<32;){if(J===0)break e;J--,H|=de[_e++]<<$,$+=8}if(Fe-=ye,P.total_out+=Fe,w.total+=Fe,Fe&&(P.adler=w.check=w.flags?o(w.check,st,Fe,ge-Fe):r(w.check,st,Fe,ge-Fe)),Fe=ye,(w.flags?H:y(H))!==w.check){P.msg="incorrect data check",w.mode=30;break}$=H=0}w.mode=28;case 28:if(w.wrap&&w.flags){for(;$<32;){if(J===0)break e;J--,H+=de[_e++]<<$,$+=8}if(H!==(4294967295&w.total)){P.msg="incorrect length check",w.mode=30;break}$=H=0}w.mode=29;case 29:me=1;break e;case 30:me=-3;break e;case 31:return-4;default:return h}return P.next_out=ge,P.avail_out=ye,P.next_in=_e,P.avail_in=J,w.hold=H,w.bits=$,(w.wsize||Fe!==P.avail_out&&w.mode<30&&(w.mode<27||re!==4))&&Re(P,P.output,P.next_out,Fe-P.avail_out)?(w.mode=31,-4):(Ze-=P.avail_in,Fe-=P.avail_out,P.total_in+=Ze,P.total_out+=Fe,w.total+=Fe,w.wrap&&Fe&&(P.adler=w.check=w.flags?o(w.check,st,Fe,P.next_out-Fe):r(w.check,st,Fe,P.next_out-Fe)),P.data_type=w.bits+(w.last?64:0)+(w.mode===12?128:0)+(w.mode===20||w.mode===15?256:0),(Ze==0&&Fe===0||re===4)&&me===d&&(me=-5),me)},e.inflateEnd=function(P){if(!P||!P.state)return h;var re=P.state;return re.window&&(re.window=null),P.state=null,d},e.inflateGetHeader=function(P,re){var w;return P&&P.state?(2&(w=P.state).wrap)==0?h:((w.head=re).done=!1,d):h},e.inflateSetDictionary=function(P,re){var w,de=re.length;return P&&P.state?(w=P.state).wrap!==0&&w.mode!==11?h:w.mode===11&&r(1,re,de,0)!==w.check?-3:Re(P,re,de,de)?(w.mode=31,-4):(w.havedict=1,d):h},e.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i,e){"use strict";var n=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(l,c,d,h,b,f,_,y){var C,D,k,T,F,L,B,V,ne,Re=y.bits,P=0,re=0,w=0,de=0,st=0,_e=0,ge=0,J=0,ye=0,H=0,$=null,Ze=0,Fe=new n.Buf16(16),Te=new n.Buf16(16),pt=null,Qn=0;for(P=0;P<=15;P++)Fe[P]=0;for(re=0;re<h;re++)Fe[c[d+re]]++;for(st=Re,de=15;1<=de&&Fe[de]===0;de--);if(de<st&&(st=de),de===0)return b[f++]=20971520,b[f++]=20971520,y.bits=1,0;for(w=1;w<de&&Fe[w]===0;w++);for(st<w&&(st=w),P=J=1;P<=15;P++)if(J<<=1,(J-=Fe[P])<0)return-1;if(0<J&&(l===0||de!==1))return-1;for(Te[1]=0,P=1;P<15;P++)Te[P+1]=Te[P]+Fe[P];for(re=0;re<h;re++)c[d+re]!==0&&(_[Te[c[d+re]]++]=re);if(L=l===0?($=pt=_,19):l===1?($=r,Ze-=257,pt=o,Qn-=257,256):($=a,pt=s,-1),P=w,F=f,ge=re=H=0,k=-1,T=(ye=1<<(_e=st))-1,l===1&&852<ye||l===2&&592<ye)return 1;for(;;){for(B=P-ge,ne=_[re]<L?(V=0,_[re]):_[re]>L?(V=pt[Qn+_[re]],$[Ze+_[re]]):(V=96,0),C=1<<P-ge,w=D=1<<_e;b[F+(H>>ge)+(D-=C)]=B<<24|V<<16|ne|0,D!==0;);for(C=1<<P-1;H&C;)C>>=1;if(C!==0?(H&=C-1,H+=C):H=0,re++,--Fe[P]==0){if(P===de)break;P=c[d+_[re]]}if(st<P&&(H&T)!==k){for(ge===0&&(ge=st),F+=w,J=1<<(_e=P-ge);_e+ge<de&&!((J-=Fe[_e+ge])<=0);)_e++,J<<=1;if(ye+=1<<_e,l===1&&852<ye||l===2&&592<ye)return 1;b[k=H&T]=st<<24|_e<<16|F-f|0}}return H!==0&&(b[F+H]=P-ge<<24|64<<16|0),y.bits=st,0}},{"../utils/common":41}],51:[function(t,i,e){"use strict";i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,i,e){"use strict";var n=t("../utils/common"),r=0,o=1;function a(I){for(var j=I.length;0<=--j;)I[j]=0}var s=0,l=29,c=256,d=c+1+l,h=30,b=19,f=2*d+1,_=15,y=16,C=7,D=256,k=16,T=17,F=18,L=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],B=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Re=new Array(2*(d+2));a(Re);var P=new Array(2*h);a(P);var re=new Array(512);a(re);var w=new Array(256);a(w);var de=new Array(l);a(de);var st,_e,ge,J=new Array(h);function ye(I,j,fe,ve,W){this.static_tree=I,this.extra_bits=j,this.extra_base=fe,this.elems=ve,this.max_length=W,this.has_stree=I&&I.length}function H(I,j){this.dyn_tree=I,this.max_code=0,this.stat_desc=j}function $(I){return I<256?re[I]:re[256+(I>>>7)]}function Ze(I,j){I.pending_buf[I.pending++]=255&j,I.pending_buf[I.pending++]=j>>>8&255}function Fe(I,j,fe){I.bi_valid>y-fe?(I.bi_buf|=j<<I.bi_valid&65535,Ze(I,I.bi_buf),I.bi_buf=j>>y-I.bi_valid,I.bi_valid+=fe-y):(I.bi_buf|=j<<I.bi_valid&65535,I.bi_valid+=fe)}function Te(I,j,fe){Fe(I,fe[2*j],fe[2*j+1])}function pt(I,j){for(var fe=0;fe|=1&I,I>>>=1,fe<<=1,0<--j;);return fe>>>1}function Qn(I,j,fe){var ve,W,Ie=new Array(_+1),$e=0;for(ve=1;ve<=_;ve++)Ie[ve]=$e=$e+fe[ve-1]<<1;for(W=0;W<=j;W++){var Oe=I[2*W+1];Oe!==0&&(I[2*W]=pt(Ie[Oe]++,Oe))}}function Nt(I){var j;for(j=0;j<d;j++)I.dyn_ltree[2*j]=0;for(j=0;j<h;j++)I.dyn_dtree[2*j]=0;for(j=0;j<b;j++)I.bl_tree[2*j]=0;I.dyn_ltree[2*D]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function ut(I){8<I.bi_valid?Ze(I,I.bi_buf):0<I.bi_valid&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function fn(I,j,fe,ve){var W=2*j,Ie=2*fe;return I[W]<I[Ie]||I[W]===I[Ie]&&ve[j]<=ve[fe]}function zt(I,j,fe){for(var ve=I.heap[fe],W=fe<<1;W<=I.heap_len&&(W<I.heap_len&&fn(j,I.heap[W+1],I.heap[W],I.depth)&&W++,!fn(j,ve,I.heap[W],I.depth));)I.heap[fe]=I.heap[W],fe=W,W<<=1;I.heap[fe]=ve}function Ti(I,j,fe){var ve,W,Ie,$e,Oe=0;if(I.last_lit!==0)for(;ve=I.pending_buf[I.d_buf+2*Oe]<<8|I.pending_buf[I.d_buf+2*Oe+1],W=I.pending_buf[I.l_buf+Oe],Oe++,ve===0?Te(I,W,j):(Te(I,(Ie=w[W])+c+1,j),($e=L[Ie])!==0&&Fe(I,W-=de[Ie],$e),Te(I,Ie=$(--ve),fe),($e=B[Ie])!==0&&Fe(I,ve-=J[Ie],$e)),Oe<I.last_lit;);Te(I,D,j)}function Ii(I,j){var fe,ve,W,Ie=j.dyn_tree,$e=j.stat_desc.static_tree,Oe=j.stat_desc.has_stree,at=j.stat_desc.elems,gn=-1;for(I.heap_len=0,I.heap_max=f,fe=0;fe<at;fe++)Ie[2*fe]!==0?(I.heap[++I.heap_len]=gn=fe,I.depth[fe]=0):Ie[2*fe+1]=0;for(;I.heap_len<2;)Ie[2*(W=I.heap[++I.heap_len]=gn<2?++gn:0)]=1,I.depth[W]=0,I.opt_len--,Oe&&(I.static_len-=$e[2*W+1]);for(j.max_code=gn,fe=I.heap_len>>1;1<=fe;fe--)zt(I,Ie,fe);for(W=at;fe=I.heap[1],I.heap[1]=I.heap[I.heap_len--],zt(I,Ie,1),ve=I.heap[1],I.heap[--I.heap_max]=fe,I.heap[--I.heap_max]=ve,Ie[2*W]=Ie[2*fe]+Ie[2*ve],I.depth[W]=(I.depth[fe]>=I.depth[ve]?I.depth[fe]:I.depth[ve])+1,Ie[2*fe+1]=Ie[2*ve+1]=W,I.heap[1]=W++,zt(I,Ie,1),2<=I.heap_len;);I.heap[--I.heap_max]=I.heap[1],(function(Vt,Tr){var ru,ko,ou,On,qh,Pv,sa=Tr.dyn_tree,uS=Tr.max_code,kL=Tr.stat_desc.static_tree,ML=Tr.stat_desc.has_stree,TL=Tr.stat_desc.extra_bits,mS=Tr.stat_desc.extra_base,au=Tr.stat_desc.max_length,Qh=0;for(On=0;On<=_;On++)Vt.bl_count[On]=0;for(sa[2*Vt.heap[Vt.heap_max]+1]=0,ru=Vt.heap_max+1;ru<f;ru++)au<(On=sa[2*sa[2*(ko=Vt.heap[ru])+1]+1]+1)&&(On=au,Qh++),sa[2*ko+1]=On,uS<ko||(Vt.bl_count[On]++,qh=0,mS<=ko&&(qh=TL[ko-mS]),Pv=sa[2*ko],Vt.opt_len+=Pv*(On+qh),ML&&(Vt.static_len+=Pv*(kL[2*ko+1]+qh)));if(Qh!==0){do{for(On=au-1;Vt.bl_count[On]===0;)On--;Vt.bl_count[On]--,Vt.bl_count[On+1]+=2,Vt.bl_count[au]--,Qh-=2}while(0<Qh);for(On=au;On!==0;On--)for(ko=Vt.bl_count[On];ko!==0;)uS<(ou=Vt.heap[--ru])||(sa[2*ou+1]!==On&&(Vt.opt_len+=(On-sa[2*ou+1])*sa[2*ou],sa[2*ou+1]=On),ko--)}})(I,j),Qn(Ie,gn,I.bl_count)}function x(I,j,fe){var ve,W,Ie=-1,$e=j[1],Oe=0,at=7,gn=4;for($e===0&&(at=138,gn=3),j[2*(fe+1)+1]=65535,ve=0;ve<=fe;ve++)W=$e,$e=j[2*(ve+1)+1],++Oe<at&&W===$e||(Oe<gn?I.bl_tree[2*W]+=Oe:W!==0?(W!==Ie&&I.bl_tree[2*W]++,I.bl_tree[2*k]++):Oe<=10?I.bl_tree[2*T]++:I.bl_tree[2*F]++,Ie=W,gn=(Oe=0)===$e?(at=138,3):W===$e?(at=6,3):(at=7,4))}function me(I,j,fe){var ve,W,Ie=-1,$e=j[1],Oe=0,at=7,gn=4;for($e===0&&(at=138,gn=3),ve=0;ve<=fe;ve++)if(W=$e,$e=j[2*(ve+1)+1],!(++Oe<at&&W===$e)){if(Oe<gn)for(;Te(I,W,I.bl_tree),--Oe!=0;);else W!==0?(W!==Ie&&(Te(I,W,I.bl_tree),Oe--),Te(I,k,I.bl_tree),Fe(I,Oe-3,2)):Oe<=10?(Te(I,T,I.bl_tree),Fe(I,Oe-3,3)):(Te(I,F,I.bl_tree),Fe(I,Oe-11,7));Ie=W,gn=(Oe=0)===$e?(at=138,3):W===$e?(at=6,3):(at=7,4)}}a(J);var ie=!1;function O(I,j,fe,ve){Fe(I,(s<<1)+(ve?1:0),3),(function(W,Ie,$e,Oe){ut(W),Oe&&(Ze(W,$e),Ze(W,~$e)),n.arraySet(W.pending_buf,W.window,Ie,$e,W.pending),W.pending+=$e})(I,j,fe,!0)}e._tr_init=function(I){ie||((function(){var j,fe,ve,W,Ie,$e=new Array(_+1);for(W=ve=0;W<l-1;W++)for(de[W]=ve,j=0;j<1<<L[W];j++)w[ve++]=W;for(w[ve-1]=W,W=Ie=0;W<16;W++)for(J[W]=Ie,j=0;j<1<<B[W];j++)re[Ie++]=W;for(Ie>>=7;W<h;W++)for(J[W]=Ie<<7,j=0;j<1<<B[W]-7;j++)re[256+Ie++]=W;for(fe=0;fe<=_;fe++)$e[fe]=0;for(j=0;j<=143;)Re[2*j+1]=8,j++,$e[8]++;for(;j<=255;)Re[2*j+1]=9,j++,$e[9]++;for(;j<=279;)Re[2*j+1]=7,j++,$e[7]++;for(;j<=287;)Re[2*j+1]=8,j++,$e[8]++;for(Qn(Re,d+1,$e),j=0;j<h;j++)P[2*j+1]=5,P[2*j]=pt(j,5);st=new ye(Re,L,c+1,d,_),_e=new ye(P,B,0,h,_),ge=new ye(new Array(0),V,0,b,C)})(),ie=!0),I.l_desc=new H(I.dyn_ltree,st),I.d_desc=new H(I.dyn_dtree,_e),I.bl_desc=new H(I.bl_tree,ge),I.bi_buf=0,I.bi_valid=0,Nt(I)},e._tr_stored_block=O,e._tr_flush_block=function(I,j,fe,ve){var W,Ie,$e=0;0<I.level?(I.strm.data_type===2&&(I.strm.data_type=(function(Oe){var at,gn=4093624447;for(at=0;at<=31;at++,gn>>>=1)if(1&gn&&Oe.dyn_ltree[2*at]!==0)return r;if(Oe.dyn_ltree[18]!==0||Oe.dyn_ltree[20]!==0||Oe.dyn_ltree[26]!==0)return o;for(at=32;at<c;at++)if(Oe.dyn_ltree[2*at]!==0)return o;return r})(I)),Ii(I,I.l_desc),Ii(I,I.d_desc),$e=(function(Oe){var at;for(x(Oe,Oe.dyn_ltree,Oe.l_desc.max_code),x(Oe,Oe.dyn_dtree,Oe.d_desc.max_code),Ii(Oe,Oe.bl_desc),at=b-1;3<=at&&Oe.bl_tree[2*ne[at]+1]===0;at--);return Oe.opt_len+=3*(at+1)+5+5+4,at})(I),W=I.opt_len+3+7>>>3,(Ie=I.static_len+3+7>>>3)<=W&&(W=Ie)):W=Ie=fe+5,fe+4<=W&&j!==-1?O(I,j,fe,ve):I.strategy===4||Ie===W?(Fe(I,2+(ve?1:0),3),Ti(I,Re,P)):(Fe(I,4+(ve?1:0),3),(function(Oe,at,gn,Vt){var Tr;for(Fe(Oe,at-257,5),Fe(Oe,gn-1,5),Fe(Oe,Vt-4,4),Tr=0;Tr<Vt;Tr++)Fe(Oe,Oe.bl_tree[2*ne[Tr]+1],3);me(Oe,Oe.dyn_ltree,at-1),me(Oe,Oe.dyn_dtree,gn-1)})(I,I.l_desc.max_code+1,I.d_desc.max_code+1,$e+1),Ti(I,I.dyn_ltree,I.dyn_dtree)),Nt(I),ve&&ut(I)},e._tr_tally=function(I,j,fe){return I.pending_buf[I.d_buf+2*I.last_lit]=j>>>8&255,I.pending_buf[I.d_buf+2*I.last_lit+1]=255&j,I.pending_buf[I.l_buf+I.last_lit]=255&fe,I.last_lit++,j===0?I.dyn_ltree[2*fe]++:(I.matches++,j--,I.dyn_ltree[2*(w[fe]+c+1)]++,I.dyn_dtree[2*$(j)]++),I.last_lit===I.lit_bufsize-1},e._tr_align=function(I){Fe(I,2,3),Te(I,D,Re),(function(j){j.bi_valid===16?(Ze(j,j.bi_buf),j.bi_buf=0,j.bi_valid=0):8<=j.bi_valid&&(j.pending_buf[j.pending++]=255&j.bi_buf,j.bi_buf>>=8,j.bi_valid-=8)})(I)}},{"../utils/common":41}],53:[function(t,i,e){"use strict";i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,e){(function(n){(function(r,o){"use strict";if(!r.setImmediate){var a,s,l,c,d=1,h={},b=!1,f=r.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(r);_=_&&_.setTimeout?_:r,a={}.toString.call(r.process)==="[object process]"?function(k){process.nextTick(function(){C(k)})}:(function(){if(r.postMessage&&!r.importScripts){var k=!0,T=r.onmessage;return r.onmessage=function(){k=!1},r.postMessage("","*"),r.onmessage=T,k}})()?(c="setImmediate$"+Math.random()+"$",r.addEventListener?r.addEventListener("message",D,!1):r.attachEvent("onmessage",D),function(k){r.postMessage(c+k,"*")}):r.MessageChannel?((l=new MessageChannel).port1.onmessage=function(k){C(k.data)},function(k){l.port2.postMessage(k)}):f&&"onreadystatechange"in f.createElement("script")?(s=f.documentElement,function(k){var T=f.createElement("script");T.onreadystatechange=function(){C(k),T.onreadystatechange=null,s.removeChild(T),T=null},s.appendChild(T)}):function(k){setTimeout(C,0,k)},_.setImmediate=function(k){typeof k!="function"&&(k=new Function(""+k));for(var T=new Array(arguments.length-1),F=0;F<T.length;F++)T[F]=arguments[F+1];var L={callback:k,args:T};return h[d]=L,a(d),d++},_.clearImmediate=y}function y(k){delete h[k]}function C(k){if(b)setTimeout(C,0,k);else{var T=h[k];if(T){b=!0;try{(function(F){var L=F.callback,B=F.args;switch(B.length){case 0:L();break;case 1:L(B[0]);break;case 2:L(B[0],B[1]);break;case 3:L(B[0],B[1],B[2]);break;default:L.apply(o,B)}})(T)}finally{y(k),b=!1}}}}function D(k){k.source===r&&typeof k.data=="string"&&k.data.indexOf(c)===0&&C(+k.data.slice(c.length))}})(typeof self>"u"?n===void 0?this:n:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var J3=fS((rS,oS)=>{"use strict";(function(t,i){typeof define=="function"&&define.amd?define([],i):typeof rS<"u"?i():(i(),t.FileSaver={})})(rS,function(){"use strict";function t(s,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function i(s,l,c){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){a(d.response,l,c)},d.onerror=function(){console.error("could not download file")},d.send()}function e(s){var l=new XMLHttpRequest;l.open("HEAD",s,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function n(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(l)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(s,l,c){var d=r.URL||r.webkitURL,h=document.createElement("a");l=l||s.name||"download",h.download=l,h.rel="noopener",typeof s=="string"?(h.href=s,h.origin===location.origin?n(h):e(h.href)?i(s,l,c):n(h,h.target="_blank")):(h.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(h.href)},4e4),setTimeout(function(){n(h)},0))}:"msSaveOrOpenBlob"in navigator?function(s,l,c){if(l=l||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(t(s,c),l);else if(e(s))i(s,l,c);else{var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){n(d)})}}:function(s,l,c,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return i(s,l,c);var h=s.type==="application/octet-stream",b=/constructor/i.test(r.HTMLElement)||r.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||h&&b||o)&&typeof FileReader<"u"){var _=new FileReader;_.onloadend=function(){var D=_.result;D=f?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=D:location=D,d=null},_.readAsDataURL(s)}else{var y=r.URL||r.webkitURL,C=y.createObjectURL(s);d?d.location=C:location.href=C,d=null,setTimeout(function(){y.revokeObjectURL(C)},4e4)}});r.saveAs=a.saveAs=a,typeof oS<"u"&&(oS.exports=a)})});var Ai=null,Xh=!1,$s=1,LL=null,Pn=Symbol("SIGNAL");function nt(t){let i=Ai;return Ai=t,i}function Jh(){return Ai}var qa={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qa(t){if(Xh)throw new Error("");if(Ai===null)return;Ai.consumerOnSignalRead(t);let i=Ai.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=Ai.recomputing;if(n&&(e=i!==void 0?i.nextProducer:Ai.producers,e!==void 0&&e.producer===t)){Ai.producersTail=e,e.lastReadVersion=t.version,e.knownValidAtEpoch=$s;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===Ai&&(!n||r.knownValidAtEpoch===$s))return;let o=fc(Ai),a={producer:t,consumer:Ai,nextProducer:e,prevConsumer:void 0,knownValidAtEpoch:$s,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=a,i!==void 0?i.nextProducer=a:Ai.producers=a,o&&yS(t,a)}function _S(){$s++}function Gs(t){if(!(fc(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===$s)){if(!t.producerMustRecompute(t)&&!pc(t)){hc(t);return}t.producerRecomputeValue(t),hc(t)}}function Nv(t){if(t.consumers===void 0)return;let i=Xh;Xh=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||BL(n)}}finally{Xh=i}}function Lv(){return Ai?.consumerAllowSignalWrites!==!1}function BL(t){t.dirty=!0,Nv(t),t.consumerMarkedDirty?.(t)}function hc(t){t.dirty=!1,t.lastCleanEpoch=$s}function la(t){return t&&vS(t),nt(t)}function vS(t){if(t.producersTail?.knownValidAtEpoch===$s){let i=t.producers;for(;i!==void 0;)i.knownValidAtEpoch=null,i=i.nextProducer}t.producersTail=void 0,t.recomputing=!0}function Za(t,i){nt(i),t&&bS(t)}function bS(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(fc(t))do e=Bv(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function pc(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(Gs(e),n!==e.version))return!0}return!1}function Ya(t){if(fc(t)){let i=t.producers;for(;i!==void 0;)i=Bv(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function yS(t,i){let e=t.consumersTail,n=fc(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let r=t.producers;r!==void 0;r=r.nextProducer)yS(r.producer,r)}function Bv(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=r:i.consumersTail=r,r!==void 0)r.nextConsumer=n;else if(i.consumers=n,!fc(i)){let o=i.producers;for(;o!==void 0;)o=Bv(o)}return e}function fc(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function cu(t){LL?.(t)}function du(t,i){return Object.is(t,i)}function uu(t,i){let e=Object.create(zL);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(Gs(e),Qa(e),e.value===Mo)throw e.error;return e.value};return n[Pn]=e,cu(e),n}var Us=Symbol("UNSET"),Ws=Symbol("COMPUTING"),Mo=Symbol("ERRORED"),zL=Xe(G({},qa),{value:Us,dirty:!0,error:null,equal:du,kind:"computed",producerMustRecompute(t){return t.value===Us||t.value===Ws},producerRecomputeValue(t){if(t.value===Ws)throw new Error("");let i=t.value;t.value=Ws;let e=la(t),n,r=!1;try{n=t.computation(),nt(null),r=i!==Us&&i!==Mo&&n!==Mo&&t.equal(i,n)}catch(o){n=Mo,t.error=o}finally{Za(t,e)}if(r){t.value=i;return}t.value=n,t.version++}});function VL(){throw new Error}var xS=VL;function CS(t){xS(t)}function zv(t){xS=t}var jL=null;function Vv(t,i){let e=Object.create(mu);e.value=t,i!==void 0&&(e.equal=i);let n=()=>wS(e);return n[Pn]=e,cu(e),[n,a=>qs(e,a),a=>ep(e,a)]}function wS(t){return Qa(t),t.value}function qs(t,i){Lv()||CS(t),t.equal(t.value,i)||(t.value=i,HL(t))}function ep(t,i){Lv()||CS(t),qs(t,i(t.value))}var mu=Xe(G({},qa),{equal:du,value:void 0,kind:"signal"});function HL(t){t.version++,_S(),Nv(t),jL?.(t)}var jv=Xe(G({},qa),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Hv(t){if(t.dirty=!1,t.version>0&&!pc(t))return;t.version++;let i=la(t);try{t.cleanup(),t.fn()}finally{Za(t,i)}}var $v;function tp(){return $v}function To(t){let i=$v;return $v=t,i}var ES=Symbol("NotFound");function gc(t){return t===ES||t?.name==="\u0275NotFound"}function Uv(t,i,e){let n=Object.create($L);n.source=t,n.computation=i,e!=null&&(n.equal=e);let o=()=>{if(Gs(n),Qa(n),n.value===Mo)throw n.error;return n.value};return o[Pn]=n,cu(n),o}function DS(t,i){Gs(t),qs(t,i),hc(t)}function SS(t,i){if(Gs(t),t.value===Mo)throw t.error;ep(t,i),hc(t)}var $L=Xe(G({},qa),{value:Us,dirty:!0,error:null,equal:du,kind:"linkedSignal",producerMustRecompute(t){return t.value===Us||t.value===Ws},producerRecomputeValue(t){if(t.value===Ws)throw new Error("");let i=t.value;t.value=Ws;let e=la(t),n,r=!1;try{let o=t.source(),a=i!==Us&&i!==Mo,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(o,s),t.sourceValue=o,nt(null),r=a&&n!==Mo&&t.equal(i,n)}catch(o){n=Mo,t.error=o}finally{Za(t,e)}if(r){t.value=i;return}t.value=n,t.version++}});function kS(t){let i=nt(null);try{return t()}finally{nt(i)}}function Ct(t){return typeof t=="function"}function _c(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var np=_c(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=e});function Qs(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ye=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(Ct(n))try{n()}catch(o){i=o instanceof np?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{MS(o)}catch(a){i=i??[],a instanceof np?i=[...i,...a.errors]:i.push(a)}}if(i)throw new np(i)}}add(i){var e;if(i&&i!==this)if(this.closed)MS(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Qs(e,i)}remove(i){let{_finalizers:e}=this;e&&Qs(e,i),i instanceof t&&i._removeParent(this)}};Ye.EMPTY=(()=>{let t=new Ye;return t.closed=!0,t})();var Wv=Ye.EMPTY;function ip(t){return t instanceof Ye||t&&"closed"in t&&Ct(t.remove)&&Ct(t.add)&&Ct(t.unsubscribe)}function MS(t){Ct(t)?t():t.unsubscribe()}var Zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vc={setTimeout(t,i,...e){let{delegate:n}=vc;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=vc;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function rp(t){vc.setTimeout(()=>{let{onUnhandledError:i}=Zr;if(i)i(t);else throw t})}function hu(){}var TS=Gv("C",void 0,void 0);function IS(t){return Gv("E",void 0,t)}function AS(t){return Gv("N",t,void 0)}function Gv(t,i,e){return{kind:t,value:i,error:e}}var Zs=null;function bc(t){if(Zr.useDeprecatedSynchronousErrorHandling){let i=!Zs;if(i&&(Zs={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Zs;if(Zs=null,e)throw n}}else t()}function RS(t){Zr.useDeprecatedSynchronousErrorHandling&&Zs&&(Zs.errorThrown=!0,Zs.error=t)}var Ys=class extends Ye{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,ip(i)&&i.add(this)):this.destination=GL}static create(i,e,n){return new ca(i,e,n)}next(i){this.isStopped?Qv(AS(i),this):this._next(i)}error(i){this.isStopped?Qv(IS(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?Qv(TS,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},UL=Function.prototype.bind;function qv(t,i){return UL.call(t,i)}var Zv=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){op(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){op(n)}else op(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){op(e)}}},ca=class extends Ys{constructor(i,e,n){super();let r;if(Ct(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&Zr.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&qv(i.next,o),error:i.error&&qv(i.error,o),complete:i.complete&&qv(i.complete,o)}):r=i}this.destination=new Zv(r)}};function op(t){Zr.useDeprecatedSynchronousErrorHandling?RS(t):rp(t)}function WL(t){throw t}function Qv(t,i){let{onStoppedNotification:e}=Zr;e&&vc.setTimeout(()=>e(t,i))}var GL={closed:!0,next:hu,error:WL,complete:hu};var yc=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mr(t){return t}function Yv(...t){return Kv(t)}function Kv(t){return t.length===0?mr:t.length===1?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}var it=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){let o=QL(e)?e:new ca(e,n,r);return bc(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=OS(n),new n((r,o)=>{let a=new ca({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[yc](){return this}pipe(...e){return Kv(e)(this)}toPromise(e){return e=OS(e),new e((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function OS(t){var i;return(i=t??Zr.Promise)!==null&&i!==void 0?i:Promise}function qL(t){return t&&Ct(t.next)&&Ct(t.error)&&Ct(t.complete)}function QL(t){return t&&t instanceof Ys||qL(t)&&ip(t)}function Xv(t){return Ct(t?.lift)}function vt(t){return i=>{if(Xv(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ft(t,i,e,n,r){return new Jv(t,i,e,n,r)}var Jv=class extends Ys{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function PS(){return vt((t,i)=>{let e=null;t._refCount++;let n=ft(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var pu=class extends it{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Xv(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ye;let e=this.getSubject();i.add(this.source.subscribe(ft(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ye.EMPTY)}return i}refCount(){return PS()(this)}};var xc={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=xc;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let r=i(o=>{e=void 0,t(o)});return new Ye(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:i}=xc;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=xc;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var FS=_c(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class t extends it{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new ap(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new FS}next(e){bc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){bc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){bc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:r,observers:o}=this;return n||r?Wv:(this.currentObservers=null,o.push(e),new Ye(()=>{this.currentObservers=null,Qs(o,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){let e=new it;return e.source=this,e}}return t.create=(i,e)=>new ap(i,e),t})(),ap=class extends ce{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:Wv}};var qt=class extends ce{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var fu={now(){return(fu.delegate||Date).now()},delegate:void 0};var Ir=class extends ce{constructor(i=1/0,e=1/0,n=fu){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a<o.length&&!i.closed;a+=n?1:2)i.next(o[a]);return this._checkFinalizedStatuses(i),e}_trimBuffer(){let{_bufferSize:i,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*i;if(i<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let a=e.now(),s=0;for(let l=1;l<n.length&&n[l]<=a;l+=2)s=l;s&&n.splice(0,s+1)}}};var sp=class extends Ye{constructor(i,e){super()}schedule(i,e=0){return this}};var gu={setInterval(t,i,...e){let{delegate:n}=gu;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){let{delegate:i}=gu;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};var Ka=class extends sp{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return gu.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return e;e!=null&&gu.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(i,e);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let n=!1,r;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Qs(n,this),i!=null&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}};var ZL=1,eb,tb={};function NS(t){return t in tb?(delete tb[t],!0):!1}var LS={setImmediate(t){let i=ZL++;return tb[i]=!0,eb||(eb=Promise.resolve()),eb.then(()=>NS(i)&&t()),i},clearImmediate(t){NS(t)}};var{setImmediate:YL,clearImmediate:KL}=LS,_u={setImmediate(...t){let{delegate:i}=_u;return(i?.setImmediate||YL)(...t)},clearImmediate(t){let{delegate:i}=_u;return(i?.clearImmediate||KL)(t)},delegate:void 0};var lp=class extends Ka{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=_u.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:o}=i;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(_u.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var Cc=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};Cc.now=fu.now;var Xa=class extends Cc{constructor(i,e=Cc.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var cp=class extends Xa{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,r;i=i||n.shift();do if(r=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}};var dp=new cp(lp);var vu=new Xa(Ka),BS=vu;var up=class extends Ka{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=xc.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:o}=i;e!=null&&e===i._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(xc.cancelAnimationFrame(e),i._scheduled=void 0)}};var mp=class extends Xa{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,r;i=i||n.shift();do if(r=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}};var hp=new mp(up);var vn=new it(t=>t.complete());function pp(t){return t&&Ct(t.schedule)}function nb(t){return t[t.length-1]}function fp(t){return Ct(nb(t))?t.pop():void 0}function Io(t){return pp(nb(t))?t.pop():void 0}function zS(t,i){return typeof nb(t)=="number"?t.pop():i}function jS(t,i,e,n){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(d){try{c(n.next(d))}catch(h){a(h)}}function l(d){try{c(n.throw(d))}catch(h){a(h)}}function c(d){d.done?o(d.value):r(d.value).then(s,l)}c((n=n.apply(t,i||[])).next())})}function VS(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ks(t){return this instanceof Ks?(this.v=t,this):new Ks(t)}function HS(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(f){return function(_){return Promise.resolve(_).then(f,h)}}function s(f,_){n[f]&&(r[f]=function(y){return new Promise(function(C,D){o.push([f,y,C,D])>1||l(f,y)})},_&&(r[f]=_(r[f])))}function l(f,_){try{c(n[f](_))}catch(y){b(o[0][3],y)}}function c(f){f.value instanceof Ks?Promise.resolve(f.value.v).then(d,h):b(o[0][2],f)}function d(f){l("next",f)}function h(f){l("throw",f)}function b(f,_){f(_),o.shift(),o.length&&l(o[0][0],o[0][1])}}function $S(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof VS=="function"?VS(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var gp=t=>t&&typeof t.length=="number"&&typeof t!="function";function _p(t){return Ct(t?.then)}function vp(t){return Ct(t[yc])}function bp(t){return Symbol.asyncIterator&&Ct(t?.[Symbol.asyncIterator])}function yp(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function XL(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xp=XL();function Cp(t){return Ct(t?.[xp])}function wp(t){return HS(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:r}=yield Ks(e.read());if(r)return yield Ks(void 0);yield yield Ks(n)}}finally{e.releaseLock()}})}function Ep(t){return Ct(t?.getReader)}function un(t){if(t instanceof it)return t;if(t!=null){if(vp(t))return JL(t);if(gp(t))return e4(t);if(_p(t))return t4(t);if(bp(t))return US(t);if(Cp(t))return n4(t);if(Ep(t))return i4(t)}throw yp(t)}function JL(t){return new it(i=>{let e=t[yc]();if(Ct(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function e4(t){return new it(i=>{for(let e=0;e<t.length&&!i.closed;e++)i.next(t[e]);i.complete()})}function t4(t){return new it(i=>{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,rp)})}function n4(t){return new it(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function US(t){return new it(i=>{r4(t,i).catch(e=>i.error(e))})}function i4(t){return US(wp(t))}function r4(t,i){var e,n,r,o;return jS(this,void 0,void 0,function*(){try{for(e=$S(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})}function Qi(t,i,e,n=0,r=!1){let o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function Dp(t,i=0){return vt((e,n)=>{e.subscribe(ft(n,r=>Qi(n,t,()=>n.next(r),i),()=>Qi(n,t,()=>n.complete(),i),r=>Qi(n,t,()=>n.error(r),i)))})}function Sp(t,i=0){return vt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function WS(t,i){return un(t).pipe(Sp(i),Dp(i))}function GS(t,i){return un(t).pipe(Sp(i),Dp(i))}function qS(t,i){return new it(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function QS(t,i){return new it(e=>{let n;return Qi(e,i,()=>{n=t[xp](),Qi(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>Ct(n?.return)&&n.return()})}function kp(t,i){if(!t)throw new Error("Iterable cannot be null");return new it(e=>{Qi(e,i,()=>{let n=t[Symbol.asyncIterator]();Qi(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function ZS(t,i){return kp(wp(t),i)}function YS(t,i){if(t!=null){if(vp(t))return WS(t,i);if(gp(t))return qS(t,i);if(_p(t))return GS(t,i);if(bp(t))return kp(t,i);if(Cp(t))return QS(t,i);if(Ep(t))return ZS(t,i)}throw yp(t)}function mn(t,i){return i?YS(t,i):un(t)}function Ne(...t){let i=Io(t);return mn(t,i)}function bu(t,i){let e=Ct(t)?t:()=>t,n=r=>r.error(e());return new it(i?r=>i.schedule(n,0,r):n)}function Xs(t){return!!t&&(t instanceof it||Ct(t.lift)&&Ct(t.subscribe))}var Js=_c(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function KS(t){return t instanceof Date&&!isNaN(t)}function Le(t,i){return vt((e,n)=>{let r=0;e.subscribe(ft(n,o=>{n.next(t.call(i,o,r++))}))})}var{isArray:o4}=Array;function a4(t,i){return o4(i)?t(...i):t(i)}function Mp(t){return Le(i=>a4(t,i))}var{isArray:s4}=Array,{getPrototypeOf:l4,prototype:c4,keys:d4}=Object;function Tp(t){if(t.length===1){let i=t[0];if(s4(i))return{args:i,keys:null};if(u4(i)){let e=d4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function u4(t){return t&&typeof t=="object"&&l4(t)===c4}function Ip(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Zi(...t){let i=Io(t),e=fp(t),{args:n,keys:r}=Tp(t);if(n.length===0)return mn([],i);let o=new it(m4(n,i,r?a=>Ip(r,a):mr));return e?o.pipe(Mp(e)):o}function m4(t,i,e=mr){return n=>{XS(i,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l<r;l++)XS(i,()=>{let c=mn(t[l],i),d=!1;c.subscribe(ft(n,h=>{o[l]=h,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}function XS(t,i,e){t?Qi(e,t,i):i()}function JS(t,i,e,n,r,o,a,s){let l=[],c=0,d=0,h=!1,b=()=>{h&&!l.length&&!c&&i.complete()},f=y=>c<n?_(y):l.push(y),_=y=>{o&&i.next(y),c++;let C=!1;un(e(y,d++)).subscribe(ft(i,D=>{r?.(D),o?f(D):i.next(D)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<n;){let D=l.shift();a?Qi(i,a,()=>_(D)):_(D)}b()}catch(D){i.error(D)}}))};return t.subscribe(ft(i,f,()=>{h=!0,b()})),()=>{s?.()}}function li(t,i,e=1/0){return Ct(i)?li((n,r)=>Le((o,a)=>i(n,o,r,a))(un(t(n,r))),e):(typeof i=="number"&&(e=i),vt((n,r)=>JS(n,r,t,e)))}function Ja(t=1/0){return li(mr,t)}function ek(){return Ja(1)}function es(...t){return ek()(mn(t,Io(t)))}function Yr(t){return new it(i=>{un(t()).subscribe(i)})}function yu(...t){let i=fp(t),{args:e,keys:n}=Tp(t),r=new it(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let d=0;d<a;d++){let h=!1;un(e[d]).subscribe(ft(o,b=>{h||(h=!0,c--),s[d]=b},()=>l--,void 0,()=>{(!l||!h)&&(c||o.next(n?Ip(n,s):s),o.complete())}))}});return i?r.pipe(Mp(i)):r}function xu(t=0,i,e=BS){let n=-1;return i!=null&&(pp(i)?e=i:n=i),new it(r=>{let o=KS(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function hn(...t){let i=Io(t),e=zS(t,1/0),n=t;return n.length?n.length===1?un(n[0]):Ja(e)(mn(n,i)):vn}function ct(t,i){return vt((e,n)=>{let r=0;e.subscribe(ft(n,o=>t.call(i,o,r++)&&n.next(o)))})}function tk(t){return vt((i,e)=>{let n=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};i.subscribe(ft(e,c=>{n=!0,r=c,o||un(t(c)).subscribe(o=ft(e,s,l))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}function ts(t,i=vu){return tk(()=>xu(t,i))}function Yi(t){return vt((i,e)=>{let n=null,r=!1,o;n=i.subscribe(ft(e,void 0,void 0,a=>{o=un(t(a,Yi(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function ns(t,i){return Ct(i)?li(t,i,1):li(t,1)}function Ar(t,i=vu){return vt((e,n)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,n.next(c)}};function l(){let c=a+t,d=i.now();if(d<c){r=this.schedule(void 0,c-d),n.add(r);return}s()}e.subscribe(ft(n,c=>{o=c,a=i.now(),r||(r=i.schedule(l,t),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function nk(t){return vt((i,e)=>{let n=!1;i.subscribe(ft(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function mt(t){return t<=0?()=>vn:vt((i,e)=>{let n=0;i.subscribe(ft(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Ap(t,i=mr){return t=t??h4,vt((e,n)=>{let r,o=!0;e.subscribe(ft(n,a=>{let s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function h4(t,i){return t===i}function ik(t=p4){return vt((i,e)=>{let n=!1;i.subscribe(ft(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function p4(){return new Js}function is(t){return vt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function da(t,i){let e=arguments.length>=2;return n=>n.pipe(t?ct((r,o)=>t(r,o,n)):mr,mt(1),e?nk(i):ik(()=>new Js))}function Rp(t){return t<=0?()=>vn:vt((i,e)=>{let n=[];i.subscribe(ft(e,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function Op(){return vt((t,i)=>{let e,n=!1;t.subscribe(ft(i,r=>{let o=e;e=r,n&&i.next([o,r]),n=!0}))})}function Cu(t={}){let{connector:i=()=>new ce,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,d=!1,h=!1,b=()=>{s?.unsubscribe(),s=void 0},f=()=>{b(),a=l=void 0,d=h=!1},_=()=>{let y=a;f(),y?.unsubscribe()};return vt((y,C)=>{c++,!h&&!d&&b();let D=l=l??i();C.add(()=>{c--,c===0&&!h&&!d&&(s=ib(_,r))}),D.subscribe(C),!a&&c>0&&(a=new ca({next:k=>D.next(k),error:k=>{h=!0,b(),s=ib(f,e,k),D.error(k)},complete:()=>{d=!0,b(),s=ib(f,n),D.complete()}}),un(y).subscribe(a))})(o)}}function ib(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ca({next:()=>{n.unsubscribe(),t()}});return un(i(...e)).subscribe(n)}function Pp(t,i,e){let n,r=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:r=!1,scheduler:e}=t:n=t??1/0,Cu({connector:()=>new Ir(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function el(t){return ct((i,e)=>t<=e)}function It(...t){let i=Io(t);return vt((e,n)=>{(i?es(t,e,i):es(t,e)).subscribe(n)})}function rn(t,i){return vt((e,n)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&n.complete();e.subscribe(ft(n,l=>{r?.unsubscribe();let c=0,d=o++;un(t(l,d)).subscribe(r=ft(n,h=>n.next(i?i(l,h,d,c++):h),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Ue(t){return vt((i,e)=>{un(t).subscribe(ft(e,()=>e.complete(),hu)),!e.closed&&i.subscribe(e)})}function rb(t,i=!1){return vt((e,n)=>{let r=0;e.subscribe(ft(n,o=>{let a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function Zn(t,i,e){let n=Ct(t)||i||e?{next:t,error:i,complete:e}:t;return n?vt((r,o)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;r.subscribe(ft(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;s=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):mr}var jp="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ee=class extends Error{code;constructor(i,e){super(Rr(i,e)),this.code=i}};function f4(t){return`NG0${Math.abs(t)}`}function Rr(t,i){return`${f4(t)}${i?": "+i:""}`}function Qt(t){for(let i in t)if(t[i]===Qt)return i;throw Error("")}function lk(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Mu(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Mu).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(`
`);return n>=0?e.slice(0,n):e}function Hp(t,i){return t?i?`${t} ${i}`:t:i||""}var g4=Qt({__forward_ref__:Qt});function on(t){return t.__forward_ref__=on,t}function Yn(t){return _b(t)?t():t}function _b(t){return typeof t=="function"&&t.hasOwnProperty(g4)&&t.__forward_ref__===on}function ck(t,i,e){t!=i&&dk(e,t,i,"==")}function dk(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}function Be(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xe(t){return{providers:t.providers||[],imports:t.imports||[]}}function Tu(t){return _4(t,$p)}function vb(t){return Tu(t)!==null}function _4(t,i){return t.hasOwnProperty(i)&&t[i]||null}function v4(t){let i=t?.[$p]??null;return i||null}function ab(t){return t&&t.hasOwnProperty(Np)?t[Np]:null}var $p=Qt({\u0275prov:Qt}),Np=Qt({\u0275inj:Qt}),z=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=Be({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function bb(t){return t&&!!t.\u0275providers}var yb=Qt({\u0275cmp:Qt}),xb=Qt({\u0275dir:Qt}),Cb=Qt({\u0275pipe:Qt}),wb=Qt({\u0275mod:Qt}),Eu=Qt({\u0275fac:Qt}),ol=Qt({__NG_ELEMENT_ID__:Qt}),rk=Qt({__NG_ENV_ID__:Qt});function uk(t){return Wp(t,"@NgModule"),t[wb]||null}function ha(t){return Wp(t,"@Component"),t[yb]||null}function Up(t){return Wp(t,"@Directive"),t[xb]||null}function mk(t){return Wp(t,"@Pipe"),t[Cb]||null}function Wp(t,i){if(t==null)throw new ee(-919,!1)}function Or(t){return typeof t=="string"?t:t==null?"":String(t)}var hk=Qt({ngErrorCode:Qt}),b4=Qt({ngErrorMessage:Qt}),y4=Qt({ngTokenPath:Qt});function Eb(t,i){return pk("",-200,i)}function Gp(t,i){throw new ee(-201,!1)}function pk(t,i,e){let n=new ee(i,t);return n[hk]=i,n[b4]=t,e&&(n[y4]=e),n}function x4(t){return t[hk]}var sb;function fk(){return sb}function Ri(t){let i=sb;return sb=t,i}function Db(t,i,e){let n=Tu(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Gp(t,"")}var Pr=globalThis;var C4={},tl=C4,w4="__NG_DI_FLAG__",lb=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=nl(e)||0;try{return this.injector.get(i,n&8?null:tl,n)}catch(r){if(gc(r))return r;throw r}}};function E4(t,i=0){let e=tp();if(e===void 0)throw new ee(-203,!1);if(e===null)return Db(t,void 0,i);{let n=D4(i),r=e.retrieve(t,n);if(gc(r)){if(n.optional)return null;throw r}return r}}function we(t,i=0){return(fk()||E4)(Yn(t),i)}function g(t,i){return we(t,nl(i))}function nl(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function D4(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function cb(t){let i=[];for(let e=0;e<t.length;e++){let n=Yn(t[e]);if(Array.isArray(n)){if(n.length===0)throw new ee(900,!1);let r,o=0;for(let a=0;a<n.length;a++){let s=n[a],l=S4(s);typeof l=="number"?l===-1?r=s.token:o|=l:r=s}i.push(we(r,o))}else i.push(we(n))}return i}function S4(t){return t[w4]}function rs(t,i){let e=t.hasOwnProperty(Eu);return e?t[Eu]:null}function gk(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=i[n];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function _k(t){return t.flat(Number.POSITIVE_INFINITY)}function qp(t,i){t.forEach(e=>Array.isArray(e)?qp(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Iu(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function vk(t,i){let e=[];for(let n=0;n<t;n++)e.push(i);return e}function bk(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(r===1)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;){let o=r-2;t[r]=t[o],r--}t[i]=e,t[i+1]=n}}function Qp(t,i,e){let n=Dc(t,i);return n>=0?t[n|1]=e:(n=~n,bk(t,n,i,e)),n}function Zp(t,i){let e=Dc(t,i);if(e>=0)return t[e|1]}function Dc(t,i){return k4(t,i,1)}function k4(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let o=n+(r-n>>1),a=t[o<<e];if(i===a)return o<<e;a>i?r=o:n=o+1}return~(r<<e)}var as={},ci=[],al=new z(""),Au=new z("",-1),kb=new z(""),Ec=class{get(i,e=tl){if(e===tl){let r=pk("",-201);throw r.name="\u0275NotFound",r}return e}};function Kr(t){return{\u0275providers:t}}function yk(t){return Kr([{provide:al,multi:!0,useValue:t}])}function xk(...t){return{\u0275providers:Mb(!0,t),\u0275fromNgModule:!0}}function Mb(t,...i){let e=[],n=new Set,r,o=a=>{e.push(a)};return qp(i,a=>{let s=a;Lp(s,o,[],n)&&(r||=[],r.push(s))}),r!==void 0&&Ck(r,o),e}function Ck(t,i){for(let e=0;e<t.length;e++){let{ngModule:n,providers:r}=t[e];Tb(r,o=>{i(o,n)})}}function Lp(t,i,e,n){if(t=Yn(t),!t)return!1;let r=null,o=ab(t),a=!o&&ha(t);if(!o&&!a){let l=t.ngModule;if(o=ab(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)Lp(c,i,e,n)}}else if(o){if(o.imports!=null&&!s){n.add(r);let c;qp(o.imports,d=>{Lp(d,i,e,n)&&(c||=[],c.push(d))}),c!==void 0&&Ck(c,i)}if(!s){let c=rs(r)||(()=>new r);i({provide:r,useFactory:c,deps:ci},r),i({provide:kb,useValue:r,multi:!0},r),i({provide:al,useValue:()=>we(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;Tb(l,d=>{i(d,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Tb(t,i){for(let e of t)bb(e)&&(e=e.\u0275providers),Array.isArray(e)?Tb(e,i):i(e)}var M4=Qt({provide:String,useValue:Qt});function wk(t){return t!==null&&typeof t=="object"&&M4 in t}function T4(t){return!!(t&&t.useExisting)}function I4(t){return!!(t&&t.useFactory)}function il(t){return typeof t=="function"}function Ek(t){return!!t.useClass}var Ru=new z(""),Fp={},ok={},ob;function Sc(){return ob===void 0&&(ob=new Ec),ob}var Zt=class{},rl=class extends Zt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,ub(i,a=>this.processProvider(a)),this.records.set(Au,wc(void 0,this)),r.has("environment")&&this.records.set(Zt,wc(void 0,this));let o=this.records.get(Ru);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(kb,ci,{self:!0}))}retrieve(i,e){let n=nl(e)||0;try{return this.get(i,tl,n)}catch(r){if(gc(r))return r;throw r}}destroy(){wu(this),this._destroyed=!0;let i=nt(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),nt(i)}}onDestroy(i){return wu(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){wu(this);let e=To(this),n=Ri(void 0),r;try{return i()}finally{To(e),Ri(n)}}get(i,e=tl,n){if(wu(this),i.hasOwnProperty(rk))return i[rk](this);let r=nl(n),o,a=To(this),s=Ri(void 0);try{if(!(r&4)){let c=this.records.get(i);if(c===void 0){let d=F4(i)&&Tu(i);d&&this.injectableDefInScope(d)?c=wc(db(i),Fp):c=null,this.records.set(i,c)}if(c!=null)return this.hydrate(i,c,r)}let l=r&2?Sc():this.parent;return e=r&8&&e===tl?null:e,l.get(i,e)}catch(l){let c=x4(l);throw c===-200||c===-201?new ee(c,null):l}finally{Ri(s),To(a)}}resolveInjectorInitializers(){let i=nt(null),e=To(this),n=Ri(void 0),r;try{let o=this.get(al,ci,{self:!0});for(let a of o)a()}finally{To(e),Ri(n),nt(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Yn(i);let e=il(i)?i:Yn(i&&i.provide),n=R4(i);if(!il(i)&&i.multi===!0){let r=this.records.get(e);r||(r=wc(void 0,Fp,!0),r.factory=()=>cb(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let r=nt(null);try{if(e.value===ok)throw Eb("");return e.value===Fp&&(e.value=ok,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&P4(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{nt(r)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Yn(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function db(t){let i=Tu(t),e=i!==null?i.factory:rs(t);if(e!==null)return e;if(t instanceof z)throw new ee(-204,!1);if(t instanceof Function)return A4(t);throw new ee(-204,!1)}function A4(t){if(t.length>0)throw new ee(-204,!1);let e=v4(t);return e!==null?()=>e.factory(t):()=>new t}function R4(t){if(wk(t))return wc(void 0,t.useValue);{let i=Ib(t);return wc(i,Fp)}}function Ib(t,i,e){let n;if(il(t)){let r=Yn(t);return rs(r)||db(r)}else if(wk(t))n=()=>Yn(t.useValue);else if(I4(t))n=()=>t.useFactory(...cb(t.deps||[]));else if(T4(t))n=(r,o)=>we(Yn(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=Yn(t&&(t.useClass||t.provide));if(O4(t))n=()=>new r(...cb(t.deps));else return rs(r)||db(r)}return n}function wu(t){if(t.destroyed)throw new ee(-205,!1)}function wc(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function O4(t){return!!t.deps}function P4(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function F4(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function ub(t,i){for(let e of t)Array.isArray(e)?ub(e,i):e&&bb(e)?ub(e.\u0275providers,i):i(e)}function Xn(t,i){let e;t instanceof rl?(wu(t),e=t):e=new lb(t);let n,r=To(e),o=Ri(void 0);try{return i()}finally{To(r),Ri(o)}}function Dk(){return fk()!==void 0||tp()!=null}var Xr=0,Ke=1,lt=2,Kn=3,Fr=4,di=5,sl=6,kc=7,Fn=8,Ro=9,Jr=10,Ht=11,Mc=12,Ab=13,ss=14,yi=15,ls=16,ll=17,Oo=18,Po=19,Rb=20,ua=21,Yp=22,os=23,hr=24,cl=25,Fo=26,an=27,Sk=1,Ob=6,cs=7,Ou=8,dl=9,Tn=10;function pa(t){return Array.isArray(t)&&typeof t[Sk]=="object"}function Nr(t){return Array.isArray(t)&&t[Sk]===!0}function Pb(t){return(t.flags&4)!==0}function No(t){return t.componentOffset>-1}function Tc(t){return(t.flags&1)===1}function eo(t){return!!t.template}function Ic(t){return(t[lt]&512)!==0}function ul(t){return(t[lt]&256)===256}var Fb="svg",kk="math";function pr(t){for(;Array.isArray(t);)t=t[Xr];return t}function Nb(t,i){return pr(i[t])}function Oi(t,i){return pr(i[t.index])}function Kp(t,i){return t.data[i]}function Pu(t,i){return t[i]}function Lb(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Lr(t,i){let e=i[t];return pa(e)?e:e[Xr]}function Mk(t){return(t[lt]&4)===4}function Xp(t){return(t[lt]&128)===128}function Tk(t){return Nr(t[Kn])}function Ki(t,i){return i==null?null:t[i]}function Bb(t){t[ll]=0}function zb(t){t[lt]&1024||(t[lt]|=1024,Xp(t)&&ml(t))}function Ik(t,i){for(;t>0;)i=i[ss],t--;return i}function Fu(t){return!!(t[lt]&9216||t[hr]?.dirty)}function Jp(t){t[Jr].changeDetectionScheduler?.notify(8),t[lt]&64&&(t[lt]|=1024),Fu(t)&&ml(t)}function ml(t){t[Jr].changeDetectionScheduler?.notify(0);let i=ma(t);for(;i!==null&&!(i[lt]&8192||(i[lt]|=8192,!Xp(i)));)i=ma(i)}function ef(t,i){if(ul(t))throw new ee(911,!1);t[ua]===null&&(t[ua]=[]),t[ua].push(i)}function Ak(t,i){if(t[ua]===null)return;let e=t[ua].indexOf(i);e!==-1&&t[ua].splice(e,1)}function ma(t){let i=t[Kn];return Nr(i)?i[Kn]:i}function Vb(t){return t[kc]??=[]}function jb(t){return t.cleanup??=[]}function Rk(t,i,e,n){let r=Vb(i);r.push(e),t.firstCreatePass&&jb(t).push(n,r.length-1)}var wt={lFrame:Hk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var mb=!1;function Ok(){return wt.lFrame.elementDepthCount}function Pk(){wt.lFrame.elementDepthCount++}function Hb(){wt.lFrame.elementDepthCount--}function tf(){return wt.bindingsEnabled}function $b(){return wt.skipHydrationRootTNode!==null}function Ub(t){return wt.skipHydrationRootTNode===t}function Wb(){wt.skipHydrationRootTNode=null}function We(){return wt.lFrame.lView}function Yt(){return wt.lFrame.tView}function ae(t){return wt.lFrame.contextLView=t,t[Fn]}function se(t){return wt.lFrame.contextLView=null,t}function Nn(){let t=Gb();for(;t!==null&&t.type===64;)t=t.parent;return t}function Gb(){return wt.lFrame.currentTNode}function Ac(){let t=wt.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fa(t,i){let e=wt.lFrame;e.currentTNode=t,e.isParent=i}function qb(){return wt.lFrame.isParent}function Qb(){wt.lFrame.isParent=!1}function Fk(){return wt.lFrame.contextLView}function Zb(){return mb}function Du(t){let i=mb;return mb=t,i}function hl(){let t=wt.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Yb(){return wt.lFrame.bindingIndex}function Nk(t){return wt.lFrame.bindingIndex=t}function Lo(){return wt.lFrame.bindingIndex++}function Nu(t){let i=wt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Lk(){return wt.lFrame.inI18n}function Kb(t){wt.lFrame.inI18n=t}function Bk(t,i){let e=wt.lFrame;e.bindingIndex=e.bindingRootIndex=t,nf(i)}function zk(){return wt.lFrame.currentDirectiveIndex}function nf(t){wt.lFrame.currentDirectiveIndex=t}function Vk(t){let i=wt.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function rf(){return wt.lFrame.currentQueryIndex}function Lu(t){wt.lFrame.currentQueryIndex=t}function N4(t){let i=t[Ke];return i.type===2?i.declTNode:i.type===1?t[di]:null}function Xb(t,i,e){if(e&4){let r=i,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=N4(o),r===null||(o=o[ss],r.type&10))break;if(r===null)return!1;i=r,t=o}let n=wt.lFrame=jk();return n.currentTNode=i,n.lView=t,!0}function of(t){let i=jk(),e=t[Ke];wt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function jk(){let t=wt.lFrame,i=t===null?null:t.child;return i===null?Hk(t):i}function Hk(t){let i={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:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function $k(){let t=wt.lFrame;return wt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Jb=$k;function af(){let t=$k();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Uk(t){return(wt.lFrame.contextLView=Ik(t,wt.lFrame.contextLView))[Fn]}function Br(){return wt.lFrame.selectedIndex}function ds(t){wt.lFrame.selectedIndex=t}function us(){let t=wt.lFrame;return Kp(t.tView,t.selectedIndex)}function bn(){wt.lFrame.currentNamespace=Fb}function ga(){L4()}function L4(){wt.lFrame.currentNamespace=null}function ey(){return wt.lFrame.currentNamespace}var Wk=!0;function Bu(){return Wk}function Rc(t){Wk=t}function hb(t,i=null,e=null,n){let r=ty(t,i,e,n);return r.resolveInjectorInitializers(),r}function ty(t,i=null,e=null,n,r=new Set){let o=[e||ci,xk(t)],a;return new rl(o,i||Sc(),a||null,r)}var ze=class t{static THROW_IF_NOT_FOUND=tl;static NULL=new Ec;static create(i,e){if(Array.isArray(i))return hb({name:""},e,i,"");{let n=i.name??"";return hb({name:n},i.parent,i.providers,n)}}static \u0275prov=Be({token:t,providedIn:"any",factory:()=>we(Au)});static __NG_ELEMENT_ID__=-1},je=new z(""),Jn=(()=>{class t{static __NG_ELEMENT_ID__=B4;static __NG_ENV_ID__=e=>e}return t})(),Bp=class extends Jn{_lView;constructor(i){super(),this._lView=i}get destroyed(){return ul(this._lView)}onDestroy(i){let e=this._lView;return ef(e,i),()=>Ak(e,i)}};function B4(){return new Bp(We())}var Gk=!1,qk=new z(""),_a=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new qt(!1);debugTaskTracker=g(qk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new it(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Be({token:t,providedIn:"root",factory:()=>new t})}return t})(),pb=class extends ce{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,Dk()&&(this.destroyRef=g(Jn,{optional:!0})??void 0,this.pendingTasks=g(_a,{optional:!0})??void 0)}emit(i){let e=nt(null);try{super.next(i)}finally{nt(e)}}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return i instanceof Ye&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},le=pb;function zp(...t){}function ny(t){let i,e;function n(){t=zp;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function Qk(t){return queueMicrotask(()=>t()),()=>{t=zp}}var iy="isAngularZone",Su=iy+"_ID",z4=0,De=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new le(!1);onMicrotaskEmpty=new le(!1);onStable=new le(!1);onError=new le(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=Gk}=i;if(typeof Zone>"u")throw new ee(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,H4(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(iy)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ee(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,V4,zp,zp);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},V4={};function ry(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function j4(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){ny(()=>{t.callbackScheduled=!1,fb(t),t.isCheckStableRunning=!0,ry(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),fb(t)}function H4(t){let i=()=>{j4(t)},e=z4++;t._inner=t._inner.fork({name:"angular",properties:{[iy]:!0,[Su]:e,[Su+e]:!0},onInvokeTask:(n,r,o,a,s,l)=>{if($4(l))return n.invokeTask(o,a,s,l);try{return ak(t),n.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),sk(t)}},onInvoke:(n,r,o,a,s,l,c)=>{try{return ak(t),n.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!U4(l)&&i(),sk(t)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,fb(t),ry(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function fb(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function ak(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function sk(t){t._nesting--,ry(t)}var ku=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new le;onMicrotaskEmpty=new le;onStable=new le;onError=new le;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}};function $4(t){return Zk(t,"__ignore_ng_zone__")}function U4(t){return Zk(t,"__scheduler_tick__")}function Zk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var bi=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xi=new z("",{factory:()=>{let t=g(De),i=g(Zt),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(bi),e.handleError(n))})}}}),Yk={provide:al,useValue:()=>{let t=g(bi,{optional:!0})},multi:!0},W4=new z("",{factory:()=>{let t=g(je).defaultView;if(!t)return;let i=g(Xi),e=o=>{i(o.reason),o.preventDefault()},n=o=>{o.error?i(o.error):i(new Error(o.message,{cause:o})),o.preventDefault()},r=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",n)};typeof Zone<"u"?Zone.root.run(r):r(),g(Jn).onDestroy(()=>{t.removeEventListener("error",n),t.removeEventListener("unhandledrejection",e)})}});function oy(){return Kr([yk(()=>{g(W4)})])}function Q(t,i){let[e,n,r]=Vv(t,i?.equal),o=e,a=o[Pn];return o.set=n,o.update=r,o.asReadonly=sf.bind(o),o}function sf(){let t=this[Pn];if(t.readonlyFn===void 0){let i=()=>this();i[Pn]=t,t.readonlyFn=i}return t.readonlyFn}var va=new z("",{factory:()=>G4}),G4="ng";var lf=new z(""),pl=new z("",{providedIn:"platform",factory:()=>"unknown"}),ms=new z(""),fl=new z("",{factory:()=>g(je).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Oc=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=q4}return t})();function q4(){return new Oc(We(),Nn())}var Ao=class{},zu=new z("",{factory:()=>!0});var ay=new z(""),cf=(()=>{class t{static \u0275prov=Be({token:t,providedIn:"root",factory:()=>new gb})}return t})(),gb=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Vp=class{[Pn];constructor(i){this[Pn]=i}destroy(){this[Pn].destroy()}};function xi(t,i){let e=i?.injector??g(ze),n=i?.manualCleanup!==!0?e.get(Jn):null,r,o=e.get(Oc,null,{optional:!0}),a=e.get(Ao);return o!==null?(r=Y4(o.view,a,t),n instanceof Bp&&n._lView===o.view&&(n=null)):r=K4(t,e.get(cf),a),r.injector=e,n!==null&&(r.onDestroyFns=[n.onDestroy(()=>r.destroy())]),new Vp(r)}var Kk=Xe(G({},jv),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=Du(!1);try{Hv(this)}finally{Du(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=nt(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],nt(t)}}}),Q4=Xe(G({},Kk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Ya(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Z4=Xe(G({},Kk),{consumerMarkedDirty(){this.view[lt]|=8192,ml(this.view),this.notifier.notify(13)},destroy(){if(Ya(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[os]?.delete(this)}});function Y4(t,i,e){let n=Object.create(Z4);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=Xk(n,e),t[os]??=new Set,t[os].add(n),n.consumerMarkedDirty(n),n}function K4(t,i,e){let n=Object.create(Q4);return n.fn=Xk(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function Xk(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Ji(t){return typeof t=="function"&&t[Pn]!==void 0}function df(t){return Ji(t)&&typeof t.set=="function"}var Pc=(()=>{class t{internalPendingTasks=g(_a);scheduler=g(Ao);errorHandler=g(Xi);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();try{e().catch(this.errorHandler).finally(n)}catch(r){this.errorHandler(r),n()}}static \u0275prov=Be({token:t,providedIn:"root",factory:()=>new t})}return t})();function Xu(t){return{toString:t}.toString()}var $t=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})($t||{}),yf=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function qM(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var QM=null,Et=(()=>{QM=Jk;let t=()=>Jk;return t.ngInherit=!0,t})();function a5(){return QM}function Jk(t){return t.type.prototype.ngOnChanges&&(t.setInput=l5),s5}function s5(){let t=ZM(this),i=t?.current;if(i){let e=t.previous;if(e===as)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function l5(t,i,e,n,r){let o=this.declaredInputs[n],a=ZM(t)||c5(t,{previous:as,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new yf(c&&c.currentValue,e,l===as),qM(t,i,r,e)}var by="__ngSimpleChanges__";function ZM(t){return Object.hasOwn(t,by)&&t[by]||null}function c5(t,i){return t[by]=i}var eM=[];var Kt=function(t,i=null,e){for(let n=0;n<eM.length;n++){let r=eM[n];r(t,i,e)}};function d5(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){let a=a5()(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function YM(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e<n;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=o;a&&(t.contentHooks??=[]).push(-e,a),s&&((t.contentHooks??=[]).push(e,s),(t.contentCheckHooks??=[]).push(e,s)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),d!=null&&(t.destroyHooks??=[]).push(e,d)}}function gf(t,i,e){KM(t,i,3,e)}function _f(t,i,e,n){(t[lt]&3)===e&&KM(t,i,e,n)}function sy(t,i){let e=t[lt];(e&3)===i&&(e&=16383,e+=1,t[lt]=e)}function KM(t,i,e,n){let r=n!==void 0?t[ll]&65535:0,o=n??-1,a=i.length-1,s=0;for(let l=r;l<a;l++)if(typeof i[l+1]=="number"){if(s=i[l],n!=null&&s>=n)break}else i[l]<0&&(t[ll]+=65536),(s<o||o==-1)&&(u5(t,e,i,l),t[ll]=(t[ll]&4294901760)+l+2),l++}function tM(t,i){Kt($t.LifecycleHookStart,t,i);let e=nt(null);try{i.call(t)}finally{nt(e),Kt($t.LifecycleHookEnd,t,i)}}function u5(t,i,e,n){let r=e[n]<0,o=e[n+1],a=r?-e[n]:e[n],s=t[a];r?t[lt]>>14<t[ll]>>16&&(t[lt]&3)===i&&(t[lt]+=16384,tM(s,o)):tM(s,o)}var Nc=-1,_l=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,r){this.factory=i,this.name=r,this.canSeeViewProviders=e,this.injectImpl=n}};function m5(t){return(t.flags&8)!==0}function h5(t){return(t.flags&16)!==0}function p5(t,i,e){let n=0;for(;n<e.length;){let r=e[n];if(typeof r=="number"){if(r!==0)break;n++;let o=e[n++],a=e[n++],s=e[n++];t.setAttribute(i,a,s,o)}else{let o=r,a=e[++n];f5(o)?t.setProperty(i,o,a):t.setAttribute(i,o,a),n++}}return n}function XM(t){return t===3||t===4||t===6}function f5(t){return t.charCodeAt(0)===64}function Lc(t,i){if(!(i===null||i.length===0))if(t===null||t.length===0)t=i.slice();else{let e=-1;for(let n=0;n<i.length;n++){let r=i[n];typeof r=="number"?e=r:e===0||(e===-1||e===2?nM(t,e,r,null,i[++n]):nM(t,e,r,null,null))}}return t}function nM(t,i,e,n,r){let o=0,a=t.length;if(i===-1)a=-1;else for(;o<t.length;){let s=t[o++];if(typeof s=="number"){if(s===i){a=-1;break}else if(s>i){a=o-1;break}}}for(;o<t.length;){let s=t[o];if(typeof s=="number")break;if(s===e){r!==null&&(t[o+1]=r);return}o++,r!==null&&o++}a!==-1&&(t.splice(a,0,i),o=a+1),t.splice(o++,0,e),r!==null&&t.splice(o++,0,r)}function JM(t){return t!==Nc}function xf(t){return t&32767}function g5(t){return t>>16}function Cf(t,i){let e=g5(t),n=i;for(;e>0;)n=n[ss],e--;return n}var yy=!0;function wf(t){let i=yy;return yy=t,i}var _5=256,eT=_5-1,tT=5,v5=0,Bo={};function b5(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(ol)&&(n=e[ol]),n==null&&(n=e[ol]=v5++);let r=n&eT,o=1<<r;i.data[t+(r>>tT)]|=o}function Ef(t,i){let e=nT(t,i);if(e!==-1)return e;let n=i[Ke];n.firstCreatePass&&(t.injectorIndex=i.length,ly(n.data,t),ly(i,null),ly(n.blueprint,null));let r=dx(t,i),o=t.injectorIndex;if(JM(r)){let a=xf(r),s=Cf(r,i),l=s[Ke].data;for(let c=0;c<8;c++)i[o+c]=s[a+c]|l[a+c]}return i[o+8]=r,o}function ly(t,i){t.push(0,0,0,0,0,0,0,0,i)}function nT(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function dx(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=sT(r),n===null)return Nc;if(e++,r=r[ss],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Nc}function xy(t,i,e){b5(t,i,e)}function y5(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r<n;){let o=e[r];if(XM(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof e[r]=="string";)r++;else{if(o===i)return e[r+1];r=r+2}}}return null}function iT(t,i,e){if(e&8||t!==void 0)return t;Gp(i,"NodeInjector")}function rT(t,i,e,n){if(e&8&&n===void 0&&(n=null),(e&3)===0){let r=t[Ro],o=Ri(void 0);try{return r?r.get(i,n,e&8):Db(i,n,e&8)}finally{Ri(o)}}return iT(n,i,e)}function oT(t,i,e,n=0,r){if(t!==null){if(i[lt]&2048&&!(n&2)){let a=E5(t,i,e,n,Bo);if(a!==Bo)return a}let o=aT(t,i,e,n,Bo);if(o!==Bo)return o}return rT(i,e,n,r)}function aT(t,i,e,n,r){let o=C5(e);if(typeof o=="function"){if(!Xb(i,t,n))return n&1?iT(r,e,n):rT(i,e,n,r);try{let a;if(a=o(n),a==null&&!(n&8))Gp(e);else return a}finally{Jb()}}else if(typeof o=="number"){let a=null,s=nT(t,i),l=Nc,c=n&1?i[yi][di]:null;for((s===-1||n&4)&&(l=s===-1?dx(t,i):i[s+8],l===Nc||!rM(n,!1)?s=-1:(a=i[Ke],s=xf(l),i=Cf(l,i)));s!==-1;){let d=i[Ke];if(iM(o,s,d.data)){let h=x5(s,i,e,a,n,c);if(h!==Bo)return h}l=i[s+8],l!==Nc&&rM(n,i[Ke].data[s+8]===c)&&iM(o,s,i)?(a=d,s=xf(l),i=Cf(l,i)):s=-1}}return r}function x5(t,i,e,n,r,o){let a=i[Ke],s=a.data[t+8],l=n==null?No(s)&&yy:n!=a&&(s.type&3)!==0,c=r&1&&o===s,d=vf(s,a,e,l,c);return d!==null?Gu(i,a,d,s,r):Bo}function vf(t,i,e,n,r){let o=t.providerIndexes,a=i.data,s=o&1048575,l=t.directiveStart,c=t.directiveEnd,d=o>>20,h=n?s:s+d,b=r?s+d:c;for(let f=h;f<b;f++){let _=a[f];if(f<l&&e===_||f>=l&&_.type===e)return f}if(r){let f=a[l];if(f&&eo(f)&&f.type===e)return l}return null}function Gu(t,i,e,n,r){let o=t[e],a=i.data;if(o instanceof _l){let s=o;if(s.resolving)throw Eb("");let l=wf(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],d,h=s.injectImpl?Ri(s.injectImpl):null,b=Xb(t,n,0);try{o=t[e]=s.factory(void 0,r,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&d5(e,a[e],i)}finally{h!==null&&Ri(h),wf(l),s.resolving=!1,Jb()}}return o}function C5(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(ol)?t[ol]:void 0;return typeof i=="number"?i>=0?i&eT:w5:i}function iM(t,i,e){let n=1<<t;return!!(e[i+(t>>tT)]&n)}function rM(t,i){return!(t&2)&&!(t&1&&i)}var ps=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return oT(this._tNode,this._lView,i,nl(n),e)}};function w5(){return new ps(Nn(),We())}function rt(t){return Xu(()=>{let i=t.prototype.constructor,e=i[Eu]||Cy(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Eu]||Cy(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Cy(t){return _b(t)?()=>{let i=Cy(Yn(t));return i&&i()}:rs(t)}function E5(t,i,e,n,r){let o=t,a=i;for(;o!==null&&a!==null&&a[lt]&2048&&!Ic(a);){let s=aT(o,a,e,n|2,Bo);if(s!==Bo)return s;let l=o.parent;if(!l){let c=a[Rb];if(c){let d=c.get(e,Bo,n&-5);if(d!==Bo)return d}l=sT(a),a=a[ss]}o=l}return r}function sT(t){let i=t[Ke],e=i.type;return e===2?i.declTNode:e===1?t[di]:null}function Ju(t){return y5(Nn(),t)}function Ae(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function D5(){return $c(Nn(),We())}function $c(t,i){return new pe(Oi(t,i))}var pe=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=D5}return t})();function lT(t){return t instanceof pe?t.nativeElement:t}function S5(){return this._results[Symbol.iterator]()}var jn=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ce}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=_k(i);(this._changesDetected=!gk(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=S5};function cT(t){return(t.flags&128)===128}var ux=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(ux||{}),dT=new Map,k5=0;function M5(){return k5++}function T5(t){dT.set(t[Po],t)}function wy(t){dT.delete(t[Po])}var oM="__ngContext__";function Bc(t,i){pa(i)?(t[oM]=i[Po],T5(i)):t[oM]=i}function uT(t){return hT(t[Mc])}function mT(t){return hT(t[Fr])}function hT(t){for(;t!==null&&!Nr(t);)t=t[Fr];return t}var Ey;function mx(t){Ey=t}function Bf(){if(Ey!==void 0)return Ey;if(typeof document<"u")return document;throw new ee(210,!1)}var pT="r";var fT="di";var hx=new z(""),gT=!1,_T=new z("",{factory:()=>gT});var zf=new z("");var aM=new WeakMap;function I5(t,i){if(t==null||typeof t!="object")return;let e=aM.get(t);e||(e=new WeakSet,aM.set(t,e)),e.add(i)}var A5=(t,i,e,n)=>{};function R5(t,i,e,n){A5(t,i,e,n)}function Vf(t){return(t.flags&32)===32}var O5=()=>null;function vT(t,i,e=!1){return O5(t,i,e)}function bT(t,i){let e=t.contentQueries;if(e!==null){let n=nt(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],a=e[r+1];if(a!==-1){let s=t.data[a];Lu(o),s.contentQueries(2,i[a],a)}}}finally{nt(n)}}}function Dy(t,i,e){Lu(0);let n=nt(null);try{i(t,e)}finally{nt(n)}}function px(t,i,e){if(Pb(i)){let n=nt(null);try{let r=i.directiveStart,o=i.directiveEnd;for(let a=r;a<o;a++){let s=t.data[a];if(s.contentQueries){let l=e[a];s.contentQueries(1,l,a)}}}finally{nt(n)}}}var io=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(io||{});var uf;function P5(){if(uf===void 0&&(uf=null,Pr.trustedTypes))try{uf=Pr.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return uf}function em(t){return P5()?.createHTML(t)||t}var mf;function fx(){if(mf===void 0&&(mf=null,Pr.trustedTypes))try{mf=Pr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return mf}function sM(t){return fx()?.createHTML(t)||t}function lM(t){return fx()?.createScript(t)||t}function cM(t){return fx()?.createScriptURL(t)||t}var ya=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${jp})`}},Sy=class extends ya{getTypeName(){return"HTML"}},ky=class extends ya{getTypeName(){return"Style"}},My=class extends ya{getTypeName(){return"Script"}},Ty=class extends ya{getTypeName(){return"URL"}},Iy=class extends ya{getTypeName(){return"ResourceURL"}};function Fi(t){return t instanceof ya?t.changingThisBreaksApplicationSecurity:t}function zr(t,i){let e=yT(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${jp})`)}return e===i}function yT(t){return t instanceof ya&&t.getTypeName()||null}function gx(t){return new Sy(t)}function _x(t){return new ky(t)}function vx(t){return new My(t)}function bx(t){return new Ty(t)}function yx(t){return new Iy(t)}function xT(t){let i=new Ry(t);return F5()?new Ay(i):i}var Ay=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{let e=new window.DOMParser().parseFromString(em(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},Ry=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=em(i),e}};function F5(){try{return!!new window.DOMParser().parseFromString(em(""),"text/html")}catch{return!1}}var N5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Uc(t){return t=String(t),t.match(N5)?t:"unsafe:"+t}function xa(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function tm(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var CT=xa("area,br,col,hr,img,wbr"),wT=xa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ET=xa("rp,rt"),L5=tm(ET,wT),B5=tm(wT,xa("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),z5=tm(ET,xa("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Oy=tm(CT,B5,z5,L5),DT=xa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),V5=xa("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),j5=xa("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Py=tm(DT,V5,j5),H5=xa("script,style,template"),Fy=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=W5(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=U5(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=dM(i).toLowerCase();if(!Oy.hasOwnProperty(e))return this.sanitizedSomething=!0,!H5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),a=o.name,s=a.toLowerCase();if(!Py.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=o.value;DT[s]&&(l=Uc(l)),this.buf.push(" ",a,'="',uM(l),'"')}return this.buf.push(">"),!0}endElement(i){let e=dM(i).toLowerCase();Oy.hasOwnProperty(e)&&!CT.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(uM(i))}};function $5(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function U5(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw ST(i);return i}function W5(t){let i=t.firstChild;if(i&&$5(t,i))throw ST(i);return i}function dM(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function ST(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var G5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,q5=/([^\#-~ |!])/g;function uM(t){return t.replace(/&/g,"&").replace(G5,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(q5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var hf;function jf(t,i){let e=null;try{hf=hf||xT(t);let n=i?String(i):"";e=hf.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=hf.getInertBodyElement(n)}while(n!==o);let s=new Fy().sanitizeChildren(Ny(e)||e);return em(s)}finally{if(e){let n=Ny(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Ny(t){return"content"in t&&Q5(t)?t.content:null}function Q5(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Z5=/^>|^->|<!--|-->|--!>|<!-$/g,Y5=/(<|>)/g,K5="\u200B$1\u200B";function X5(t){return t.replace(Z5,i=>i.replace(Y5,K5))}function kT(t,i){return t.createText(i)}function J5(t,i,e){t.setValue(i,e)}function MT(t,i){return t.createComment(X5(i))}function xx(t,i,e){return t.createElement(i,e)}function zc(t,i,e,n,r){t.insertBefore(i,e,n,r)}function TT(t,i,e){t.appendChild(i,e)}function mM(t,i,e,n,r){n!==null?zc(t,i,e,n,r):TT(t,i,e)}function Cx(t,i,e,n){t.removeChild(null,i,e,n)}function e6(t,i,e){t.setAttribute(i,"style",e)}function t6(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function IT(t,i,e){let{mergedAttrs:n,classes:r,styles:o}=e;n!==null&&p5(t,i,n),r!==null&&t6(t,i,r),o!==null&&e6(t,i,o)}function n6(t){let i=We();t.src="",t.srcdoc=em(""),Cx(i[Ht],t)}var At=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(At||{}),ju,hM="svg",i6="math",AT="",pM="*",Ly=()=>Object.create(null);function r6(){return ju||(ju=Ly(),hs(At.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),hs(At.STYLE,void 0,[["*",["style"]]]),hs(At.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),hs(At.URL,i6,[["*",["href","xlink:href"]]]),hs(At.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),hs(At.URL,hM,[["a",["href","xlink:href"]]]),hs(At.ATTRIBUTE_NO_BINDING,hM,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),hs(At.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),ju)}function hs(t,i,e){let n=i??AT;for(let[r,o]of e){let a=r.toLowerCase();for(let s of o){let l=s.toLowerCase(),c=ju[l]??=Ly(),d=c[n]??=Ly();d[a]=t}}}function fM(t,i,e){let r=r6()[i.toLowerCase()];if(!r)return At.NONE;let o=t.toLowerCase(),a;if(e){let s=r[e];s&&(a=s[o]??s[pM])}if(a===void 0){let s=r[AT];s&&(a=s[o]??s[pM])}return a??At.NONE}function nm(t){let i=im();return i?sM(i.sanitize(At.HTML,t)||""):zr(t,"HTML")?sM(Fi(t)):jf(Bf(),Or(t))}function RT(t){let i=im();return i?i.sanitize(At.STYLE,t)||"":zr(t,"Style")?Fi(t):Or(t)}function Vr(t){let i=im();return i?i.sanitize(At.URL,t)||"":zr(t,"URL")?Fi(t):Uc(Or(t))}function wx(t){let i=im();if(i)return cM(i.sanitize(At.RESOURCE_URL,t)||"");if(zr(t,"ResourceURL"))return cM(Fi(t));throw new ee(904,!1)}function OT(t){let i=im();if(i)return lM(i.sanitize(At.SCRIPT,t)||"");if(zr(t,"Script"))return lM(Fi(t));throw new ee(905,!1)}var o6={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function a6(t,i){return o6[t.toLowerCase()]?.[i.toLowerCase()]===!0?wx:Vr}function Ex(t,i,e){return a6(i,e)(t)}function im(){let t=We();return t&&t[Jr].sanitizer}var pf=new Set(["href","xlink:href"]),s6=["attributeName","attributename"],l6={iframe:{sandbox:!0,allow:!0,allowfullscreen:!0,referrerpolicy:!0,csp:!0,fetchpriority:!0,credentialless:!0},":svg:animate":{attributename:!0,to:pf,values:pf,from:pf},":svg:set":{attributename:!0,to:pf},":svg:animatemotion":{attributename:!0},":svg:animatetransform":{attributename:!0}};function PT(t,i,e){let n=i.toLowerCase(),r=e.toLowerCase(),a=Br()===-1?null:us();if(a&&a.type!==2)return t;let s=n[0]!==":"&&a?.namespace?`:${a.namespace}:${n}`:n,l=l6[s]?.[r];if(!l)return t;let c=We();if(a&&n==="iframe"){let b=Oi(a,c);n6(b)}let d=i[0]===":"?i.split(":").pop():i;if(typeof l!="boolean"){if(!a)throw new ee(-910,!1);let b=Oi(a,c);if(c6(b,l))throw new ee(-910,!1);return t}let h=!1;throw new ee(-910,h)}function c6(t,i){for(let e of s6){let n=t.getAttribute(e);if(n!==null&&i.has(n.toLowerCase()))return n}return null}function Dx(t){return t.ownerDocument.defaultView}function d6(t){return t instanceof Function?t():t}function u6(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}var FT="ng-template";function m6(t,i,e,n){let r=0;if(n){for(;r<i.length&&typeof i[r]=="string";r+=2)if(i[r]==="class"&&u6(i[r+1].toLowerCase(),e,0)!==-1)return!0}else if(Sx(t))return!1;if(r=i.indexOf(1,r),r>-1){let o;for(;++r<i.length&&typeof(o=i[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function Sx(t){return t.type===4&&t.value!==FT}function h6(t,i,e){let n=t.type===4&&!e?FT:t.value;return i===n}function p6(t,i,e){let n=4,r=t.attrs,o=r!==null?_6(r):0,a=!1;for(let s=0;s<i.length;s++){let l=i[s];if(typeof l=="number"){if(!a&&!to(n)&&!to(l))return!1;if(a&&to(l))continue;a=!1,n=l|n&1;continue}if(!a)if(n&4){if(n=2|n&1,l!==""&&!h6(t,l,e)||l===""&&i.length===1){if(to(n))return!1;a=!0}}else if(n&8){if(r===null||!m6(t,r,l,e)){if(to(n))return!1;a=!0}}else{let c=i[++s],d=f6(l,r,Sx(t),e);if(d===-1){if(to(n))return!1;a=!0;continue}if(c!==""){let h;if(d>o?h="":h=r[d+1].toLowerCase(),n&2&&c!==h){if(to(n))return!1;a=!0}}}}return to(n)||a}function to(t){return(t&1)===0}function f6(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let o=!1;for(;r<i.length;){let a=i[r];if(a===t)return r;if(a===3||a===6)o=!0;else if(a===1||a===2){let s=i[++r];for(;typeof s=="string";)s=i[++r];continue}else{if(a===4)break;if(a===0){r+=4;continue}}r+=o?1:2}return-1}else return v6(i,t)}function NT(t,i,e=!1){for(let n=0;n<i.length;n++)if(p6(t,i[n],e))return!0;return!1}function g6(t){let i=t.attrs;if(i!=null){let e=i.indexOf(5);if((e&1)===0)return i[e+1]}return null}function _6(t){for(let i=0;i<t.length;i++){let e=t[i];if(XM(e))return i}return t.length}function v6(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let n=t[e];if(typeof n=="number")return-1;if(n===i)return e;e++}return-1}function b6(t,i){e:for(let e=0;e<i.length;e++){let n=i[e];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function gM(t,i){return t?":not("+i.trim()+")":i}function y6(t){let i=t[0],e=1,n=2,r="",o=!1;for(;e<t.length;){let a=t[e];if(typeof a=="string")if(n&2){let s=t[++e];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else n&8?r+="."+a:n&4&&(r+=" "+a);else r!==""&&!to(a)&&(i+=gM(o,r),r=""),n=a,o=o||!to(n);e++}return r!==""&&(i+=gM(o,r)),i}function x6(t){return t.map(y6).join(",")}function C6(t){let i=[],e=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&i.push(o,t[++n]):r===8&&e.push(o);else{if(!to(r))break;r=o}n++}return e.length&&i.push(1,...e),i}var ri={},ro=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(ro||{}),By;function kx(t,i){return By(t,i)}function w6(t){By===void 0&&(By=t())}var ame=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var zy=new WeakMap;function LT(t){return t?t[ss]??t:null}var Hu=new WeakSet;function E6(t,i,e){let n=zy.get(t);if(!n||n.length===0)return;let r=i.parentNode,o=i.previousSibling,a=LT(e);for(let s=n.length-1;s>=0;s--){let{el:l,declarationView:c}=n[s],d=l.parentNode;l===i?(n.splice(s,1),Hu.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):o&&l===o?(n.splice(s,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):d&&r&&d!==r&&(a===null||c===null||a===c)&&(n.splice(s,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function D6(t,i,e){let n=LT(e),r=zy.get(t);r?r.some(o=>o.el===i)||r.push({el:i,declarationView:n}):zy.set(t,[{el:i,declarationView:n}])}var fs=new Set,Hf=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Hf||{}),oo=new z(""),_M=new Set;function er(t){_M.has(t)||(_M.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var $f=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=Be({token:t,providedIn:"root",factory:()=>new t})}return t})(),Mx=[0,1,2,3],Tx=(()=>{class t{ngZone=g(De);scheduler=g(Ao);errorHandler=g(bi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(oo,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Kt($t.AfterRenderHooksStart),this.executing=!0;for(let n of Mx)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[n];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Kt($t.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[cl]??=[]).push(e),ml(n),n[lt]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,n){return n?n.run(Hf.AFTER_NEXT_RENDER,e):e()}static \u0275prov=Be({token:t,providedIn:"root",factory:()=>new t})}return t})(),qu=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,r,o,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[cl];i&&(this.view[cl]=i.filter(e=>e!==this))}};function Bt(t,i){let e=i?.injector??g(ze);return er("NgAfterNextRender"),k6(t,e,i,!0)}function S6(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function k6(t,i,e,n){let r=i.get($f);r.impl??=i.get(Tx);let o=i.get(oo,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(Jn):null,s=i.get(Oc,null,{optional:!0}),l=new qu(r.impl,S6(t),s?.view,n,a,o?.snapshot(null));return r.impl.register(l),l}var Ix=new z("",{factory:()=>{let t=g(Zt),i=new Set;return t.onDestroy(()=>i.clear()),{queue:i,isScheduled:!1,scheduler:null,injector:t}}});function BT(t,i,e){let n=t.get(Ix);if(Array.isArray(i))for(let r of i)n.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function M6(t,i){let e=t.get(Ix);if(Array.isArray(i))for(let n of i)e.queue.delete(n);else e.queue.delete(i)}function T6(t,i){let e=t.get(Ix);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function I6(t,i){for(let[e,n]of i)BT(t,n.animateFns)}function vM(t,i,e,n){let r=t?.[Fo]?.enter;i!==null&&r&&r.has(e.index)&&I6(n,r)}function bM(t,i,e,n){try{e.get(Au)}catch{return n(!1)}let r=t?.[Fo];r?.enter?.has(i.index)&&M6(e,r.enter.get(i.index).animateFns);let o=A6(t,i,r);if(o.size===0){let a=!1;if(t){let s=[];Uf(t,i,s),a=s.length>0}if(!a)return n(!1)}t&&fs.add(t[Po]),BT(e,()=>R6(t,i,r||void 0,o,n),r||void 0)}function A6(t,i,e){let n=new Map,r=e?.leave;if(r&&r.has(i.index)&&n.set(i.index,r.get(i.index)),t&&r)for(let[o,a]of r){if(n.has(o))continue;let l=t[Ke].data[o].parent;for(;l;){if(l===i){n.set(o,a);break}l=l.parent}}return n}function R6(t,i,e,n,r){let o=[];if(e&&e.leave)for(let[a]of n){if(!e.leave.has(a))continue;let s=e.leave.get(a);for(let l of s.animateFns){let{promise:c}=l();o.push(c)}e.detachedLeaveAnimationFns=void 0}if(t&&Uf(t,i,o),o.length>0){let a=e||t?.[Fo];if(a){let s=a.running;s&&o.push(s),a.running=Promise.allSettled(o),P6(t,a.running,r)}else Promise.allSettled(o).then(()=>{t&&fs.delete(t[Po]),r(!0)})}else t&&fs.delete(t[Po]),r(!1)}function Uf(t,i,e){if(i.type&12){let r=t[i.index];if(Nr(r))for(let o=Tn;o<r.length;o++){let a=r[o];a[Ke].type===2&&O6(a,e)}}let n=i.child;for(;n;)Uf(t,n,e),n=n.next}function O6(t,i){let e=t[Fo];if(e&&e.leave)for(let r of e.leave.values())for(let o of r.animateFns){let{promise:a}=o();i.push(a)}let n=t[Ke].firstChild;for(;n;)Uf(t,n,i),n=n.next}function P6(t,i,e){i.then(()=>{t[Fo]?.running===i&&(t[Fo].running=void 0,fs.delete(t[Po])),e(!0)})}function Fc(t,i,e,n,r,o,a,s){if(r!=null){let l,c=!1;Nr(r)?l=r:pa(r)&&(c=!0,r=r[Xr]);let d=pr(r);t===0&&n!==null?(vM(s,n,o,e),a==null?TT(i,n,d):zc(i,n,d,a||null,!0)):t===1&&n!==null?(vM(s,n,o,e),zc(i,n,d,a||null,!0),E6(o,d,s)):t===2?(s?.[Fo]?.leave?.has(o.index)&&D6(o,d,s),Hu.delete(d),bM(s,o,e,h=>{if(Hu.has(d)){Hu.delete(d);return}Cx(i,d,c,h)})):t===3&&(Hu.delete(d),bM(s,o,e,()=>{i.destroyNode(d)})),l!=null&&j6(i,t,e,l,o,n,a)}}function F6(t,i){zT(t,i),i[Xr]=null,i[di]=null}function N6(t,i,e,n,r,o){n[Xr]=r,n[di]=i,Gf(t,n,e,1,r,o)}function zT(t,i){i[Jr].changeDetectionScheduler?.notify(9),Gf(t,i,i[Ht],2,null,null)}function L6(t){let i=t[Mc];if(!i)return cy(t[Ke],t);for(;i;){let e=null;if(pa(i))e=i[Mc];else{let n=i[Tn];n&&(e=n)}if(!e){for(;i&&!i[Fr]&&i!==t;)pa(i)&&cy(i[Ke],i),i=i[Kn];i===null&&(i=t),pa(i)&&cy(i[Ke],i),e=i&&i[Fr]}i=e}}function Ax(t,i){let e=t[dl],n=e.indexOf(i);e.splice(n,1)}function Wf(t,i){if(ul(i))return;let e=i[Ht];e.destroyNode&&Gf(t,i,e,3,null,null),L6(i)}function cy(t,i){if(ul(i))return;let e=nt(null);try{i[lt]&=-129,i[lt]|=256,i[hr]&&Ya(i[hr]),z6(t,i),B6(t,i),i[Ke].type===1&&i[Ht].destroy();let n=i[ls];if(n!==null&&Nr(i[Kn])){n!==i[Kn]&&Ax(n,i);let r=i[Oo];r!==null&&r.detachView(t)}wy(i)}finally{nt(e)}}function B6(t,i){let e=t.cleanup,n=i[kc];if(e!==null)for(let a=0;a<e.length-1;a+=2)if(typeof e[a]=="string"){let s=e[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[kc]=null);let r=i[ua];if(r!==null){i[ua]=null;for(let a=0;a<r.length;a++){let s=r[a];s()}}let o=i[os];if(o!==null){i[os]=null;for(let a of o)a.destroy()}}function z6(t,i){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let n=0;n<e.length;n+=2){let r=i[e[n]];if(!(r instanceof _l)){let o=e[n+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let s=r[o[a]],l=o[a+1];Kt($t.LifecycleHookStart,s,l);try{l.call(s)}finally{Kt($t.LifecycleHookEnd,s,l)}}else{Kt($t.LifecycleHookStart,r,o);try{o.call(r)}finally{Kt($t.LifecycleHookEnd,r,o)}}}}}function VT(t,i,e){return jT(t,i.parent,e)}function jT(t,i,e){let n=i;for(;n!==null&&n.type&168;)i=n,n=i.parent;if(n===null)return e[Xr];if(No(n)){let{encapsulation:r}=t.data[n.directiveStart+n.componentOffset];if(r===io.None||r===io.Emulated)return null}return Oi(n,e)}function HT(t,i,e){return UT(t,i,e)}function $T(t,i,e){return t.type&40?Oi(t,e):null}var UT=$T,Vy;function WT(t,i){UT=t,Vy=i}function Rx(t,i,e,n){let r=VT(t,n,i),o=i[Ht],a=n.parent||i[di],s=HT(a,n,i);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)mM(o,r,e[l],s,!1);else mM(o,r,e,s,!1);Vy!==void 0&&Vy(o,n,i,e,r)}function $u(t,i){if(i!==null){let e=i.type;if(e&3)return Oi(i,t);if(e&4)return jy(-1,t[i.index]);if(e&8){let n=i.child;if(n!==null)return $u(t,n);{let r=t[i.index];return Nr(r)?jy(-1,r):pr(r)}}else{if(e&128)return $u(t,i.next);if(e&32)return kx(i,t)()||pr(t[i.index]);{let n=GT(t,i);if(n!==null){if(Array.isArray(n))return n[0];let r=ma(t[yi]);return $u(r,n)}else return $u(t,i.next)}}}return null}function GT(t,i){if(i!==null){let n=t[yi][di],r=i.projection;return n.projection[r]}return null}function jy(t,i){let e=Tn+t+1;if(e<i.length){let n=i[e],r=n[Ke].firstChild;if(r!==null)return $u(n,r)}return i[cs]}function Ox(t,i,e,n,r,o,a){for(;e!=null;){let s=n[Ro];if(e.type===128){e=e.next;continue}let l=n[e.index],c=e.type;if(a&&i===0&&(l&&Bc(pr(l),n),e.flags|=2),!Vf(e))if(c&8)Ox(t,i,e.child,n,r,o,!1),Fc(i,t,s,r,l,e,o,n);else if(c&32){let d=kx(e,n),h;for(;h=d();)Fc(i,t,s,r,h,e,o,n);Fc(i,t,s,r,l,e,o,n)}else c&16?qT(t,i,n,e,r,o):Fc(i,t,s,r,l,e,o,n);e=a?e.projectionNext:e.next}}function Gf(t,i,e,n,r,o){Ox(e,n,t.firstChild,i,r,o,!1)}function V6(t,i,e){let n=i[Ht],r=VT(t,e,i),o=e.parent||i[di],a=HT(o,e,i);qT(n,0,i,e,r,a)}function qT(t,i,e,n,r,o){let a=e[yi],l=a[di].projection[n.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let d=l[c];Fc(i,t,e[Ro],r,d,n,o,e)}else{let c=l,d=a[Kn];cT(n)&&(c.flags|=128),Ox(t,i,c,d,r,o,!0)}}function j6(t,i,e,n,r,o,a){let s=n[cs],l=pr(n);s!==l&&Fc(i,t,e,o,s,r,a);for(let c=Tn;c<n.length;c++){let d=n[c];Gf(d[Ke],d,t,i,o,s)}}function H6(t,i,e,n,r){if(i)r?t.addClass(e,n):t.removeClass(e,n);else{let o=n.indexOf("-")===-1?void 0:ro.DashCase;r==null?t.removeStyle(e,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=ro.Important),t.setStyle(e,n,r,o))}}function Px(t,i,e,n,r,o,a,s,l,c,d){let h=an+n,b=h+r,f=$6(h,b),_=typeof c=="function"?c():c;return f[Ke]={type:t,blueprint:f,template:e,queries:null,viewQuery:s,declTNode:i,data:f.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:b,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:l,consts:_,incompleteFirstPass:!1,ssrId:d}}function $6(t,i){let e=[];for(let n=0;n<i;n++)e.push(n<t?null:ri);return e}function U6(t){let i=t.tView;return i===null||i.incompleteFirstPass?t.tView=Px(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):i}function Fx(t,i,e,n,r,o,a,s,l,c,d){let h=i.blueprint.slice();return h[Xr]=r,h[lt]=n|4|128|8|64|1024,(c!==null||t&&t[lt]&2048)&&(h[lt]|=2048),Bb(h),h[Kn]=h[ss]=t,h[Fn]=e,h[Jr]=a||t&&t[Jr],h[Ht]=s||t&&t[Ht],h[Ro]=l||t&&t[Ro]||null,h[di]=o,h[Po]=M5(),h[sl]=d,h[Rb]=c,h[yi]=i.type==2?t[yi]:h,h}function W6(t,i,e){let n=Oi(i,t),r=U6(e),o=t[Jr].rendererFactory,a=Nx(t,Fx(t,r,null,QT(e),n,i,null,o.createRenderer(n,e),null,null,null));return t[i.index]=a}function QT(t){let i=16;return t.signals?i=4096:t.onPush&&(i=64),i}function rm(t,i,e,n){if(e===0)return-1;let r=i.length;for(let o=0;o<e;o++)i.push(n),t.blueprint.push(n),t.data.push(null);return r}function Nx(t,i){return t[Mc]?t[Ab][Fr]=i:t[Mc]=i,t[Ab]=i,i}function u(t=1){ZT(Yt(),We(),Br()+t,!1)}function ZT(t,i,e,n){if(!n)if((i[lt]&3)===3){let o=t.preOrderCheckHooks;o!==null&&gf(i,o,e)}else{let o=t.preOrderHooks;o!==null&&_f(i,o,0,e)}ds(e)}var qf=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(qf||{});function vl(t,i,e,n){let r=nt(null);try{let[o,a,s]=t.inputs[e],l=null;(a&qf.SignalBased)!==0&&(l=i[o][Pn]),l!==null&&l.transformFn!==void 0?n=l.transformFn(n):s!==null&&(n=s.call(i,n)),t.setInput!==null?t.setInput(i,l,n,e,o):qM(i,l,o,n)}finally{nt(r)}}function YT(t,i,e,n,r){let o=Br(),a=n&2;try{ds(-1),a&&i.length>an&&ZT(t,i,an,!1);let s=a?$t.TemplateUpdateStart:$t.TemplateCreateStart;Kt(s,r,e),e(n,r)}finally{ds(o);let s=a?$t.TemplateUpdateEnd:$t.TemplateCreateEnd;Kt(s,r,e)}}function Qf(t,i,e){Y6(t,i,e),(e.flags&64)===64&&K6(t,i,e)}function om(t,i,e=Oi){let n=i.localNames;if(n!==null){let r=i.index+1;for(let o=0;o<n.length;o+=2){let a=n[o+1],s=a===-1?e(i,t):t[a];t[r++]=s}}}function G6(t,i,e,n){let o=n.get(_T,gT)||e===io.ShadowDom||e===io.ExperimentalIsolatedShadowDom,a=t.selectRootElement(i,o);return q6(a),a}function q6(t){Q6(t)}var Q6=()=>null;function Z6(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function KT(t,i,e,n,r,o){let a=i[Ke];if(Zf(t,a,i,e,n)){No(t)&&JT(i,t.index);return}t.type&3&&(e=Z6(e)),XT(t,i,e,n,r,o)}function XT(t,i,e,n,r,o){if(t.type&3){let a=Oi(t,i);n=o!=null?o(n,t.value||"",e):n,r.setProperty(a,e,n)}else t.type&12}function JT(t,i){let e=Lr(i,t);e[lt]&16||(e[lt]|=64)}function Y6(t,i,e){let n=e.directiveStart,r=e.directiveEnd;No(e)&&W6(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||Ef(e,i);let o=e.initialInputs;for(let a=n;a<r;a++){let s=t.data[a],l=Gu(i,t,a,e);if(Bc(l,i),o!==null&&e8(i,a-n,l,s,e,o),eo(s)){let c=Lr(e.index,i);c[Fn]=Gu(i,t,a,e)}}}function K6(t,i,e){let n=e.directiveStart,r=e.directiveEnd,o=e.index,a=zk();try{ds(o);for(let s=n;s<r;s++){let l=t.data[s],c=i[s];nf(s),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&X6(l,c)}}finally{ds(-1),nf(a)}}function X6(t,i){t.hostBindings!==null&&t.hostBindings(1,i)}function Lx(t,i){let e=t.directiveRegistry,n=null;if(e)for(let r=0;r<e.length;r++){let o=e[r];NT(i,o.selectors,!1)&&(n??=[],eo(o)?n.unshift(o):n.push(o))}return n}function J6(t,i,e,n,r,o){let a=Oi(t,i);eI(i[Ht],a,o,t.value,e,n,r)}function eI(t,i,e,n,r,o,a){if(o==null)a?.(o,n||"",r),t.removeAttribute(i,r,e);else{let s=a==null?Or(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}function e8(t,i,e,n,r,o){let a=o[i];if(a!==null)for(let s=0;s<a.length;s+=2){let l=a[s],c=a[s+1];vl(n,e,l,c)}}function Bx(t,i,e,n,r){let o=an+e,a=i[Ke],s=r(a,i,t,n,e);i[o]=s,fa(t,!0);let l=t.type===2;return l?(IT(i[Ht],s,t),(Ok()===0||Tc(t))&&Bc(s,i),Pk()):Bc(s,i),Bu()&&(!l||!Vf(t))&&Rx(a,i,s,t),t}function zx(t){let i=t;return qb()?Qb():(i=i.parent,fa(i,!1)),i}function t8(t,i){let e=t[Ro];if(!e)return;let n;try{n=e.get(Xi,null)}catch{n=null}n?.(i)}function Zf(t,i,e,n,r){let o=t.inputs?.[n],a=t.hostDirectiveInputs?.[n],s=!1;if(a)for(let l=0;l<a.length;l+=2){let c=a[l],d=a[l+1],h=i.data[c];vl(h,e[c],d,r),s=!0}if(o)for(let l of o){let c=e[l],d=i.data[l];vl(d,c,n,r),s=!0}return s}function n8(t,i,e,n,r,o){let a=null,s=null,l=null,c=!1,d=t.directiveToIndex.get(n.type);if(typeof d=="number"?a=d:[a,s,l]=d,s!==null&&l!==null&&t.hostDirectiveInputs?.hasOwnProperty(r)){let h=t.hostDirectiveInputs[r];for(let b=0;b<h.length;b+=2){let f=h[b];if(f>=s&&f<=l){let _=i.data[f],y=h[b+1];vl(_,e[f],y,o),c=!0}else if(f>l)break}}return a!==null&&n.inputs.hasOwnProperty(r)&&(vl(n,e[a],r,o),c=!0),c}function i8(t,i){let e=Lr(i,t),n=e[Ke];r8(n,e);let r=e[Xr];r!==null&&e[sl]===null&&(e[sl]=vT(r,e[Ro])),Kt($t.ComponentStart);try{Vx(n,e,e[Fn])}finally{Kt($t.ComponentEnd,e[Fn])}}function r8(t,i){for(let e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])}function Vx(t,i,e){of(i);try{let n=t.viewQuery;n!==null&&Dy(1,n,e);let r=t.template;r!==null&&YT(t,i,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),i[Oo]?.finishViewCreation(t),t.staticContentQueries&&bT(t,i),t.staticViewQueries&&Dy(2,t.viewQuery,e);let o=t.components;o!==null&&o8(i,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[lt]&=-5,af()}}function o8(t,i){for(let e=0;e<i.length;e++)i8(t,i[e])}function am(t,i,e,n){let r=nt(null);try{let o=i.tView,s=t[lt]&4096?4096:16,l=Fx(t,o,e,s,null,i,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),c=t[i.index];l[ls]=c;let d=t[Oo];return d!==null&&(l[Oo]=d.createEmbeddedView(o)),Vx(o,l,e),l}finally{nt(r)}}function Vc(t,i){return!i||i.firstChild===null||cT(t)}function Qu(t,i,e,n,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=i[e.index];o!==null&&n.push(pr(o)),Nr(o)&&tI(o,n);let a=e.type;if(a&8)Qu(t,i,e.child,n);else if(a&32){let s=kx(e,i),l;for(;l=s();)n.push(l)}else if(a&16){let s=GT(i,e);if(Array.isArray(s))n.push(...s);else{let l=ma(i[yi]);Qu(l[Ke],l,s,n,!0)}}e=r?e.projectionNext:e.next}return n}function tI(t,i){for(let e=Tn;e<t.length;e++){let n=t[e],r=n[Ke].firstChild;r!==null&&Qu(n[Ke],n,r,i)}t[cs]!==t[Xr]&&i.push(t[cs])}function nI(t){if(t[cl]!==null){for(let i of t[cl])i.impl.addSequence(i);t[cl].length=0}}var iI=[];function a8(t){return t[hr]??s8(t)}function s8(t){let i=iI.pop()??Object.create(c8);return i.lView=t,i}function l8(t){t.lView[hr]!==t&&(t.lView=null,iI.push(t))}var c8=Xe(G({},qa),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{ml(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function d8(t){let i=t[hr]??Object.create(u8);return i.lView=t,i}var u8=Xe(G({},qa),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=ma(t.lView);for(;i&&!rI(i[Ke]);)i=ma(i);i&&zb(i)},consumerOnSignalRead(){this.lView[hr]=this}});function rI(t){return t.type!==2}function oI(t){if(t[os]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[os])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[lt]&8192)}}var m8=100;function aI(t,i=0){let n=t[Jr].rendererFactory,r=!1;r||n.begin?.();try{h8(t,i)}finally{r||n.end?.()}}function h8(t,i){let e=Zb();try{Du(!0),Hy(t,i);let n=0;for(;Fu(t);){if(n===m8)throw new ee(103,!1);n++,Hy(t,1)}}finally{Du(e)}}function p8(t,i,e,n){if(ul(i))return;let r=i[lt],o=!1,a=!1;of(i);let s=!0,l=null,c=null;o||(rI(t)?(c=a8(i),l=la(c)):Jh()===null?(s=!1,c=d8(i),l=la(c)):i[hr]&&(Ya(i[hr]),i[hr]=null));try{Bb(i),Nk(t.bindingStartIndex),e!==null&&YT(t,i,e,2,n);let d=(r&3)===3;if(!o)if(d){let f=t.preOrderCheckHooks;f!==null&&gf(i,f,null)}else{let f=t.preOrderHooks;f!==null&&_f(i,f,0,null),sy(i,0)}if(a||f8(i),oI(i),sI(i,0),t.contentQueries!==null&&bT(t,i),!o)if(d){let f=t.contentCheckHooks;f!==null&&gf(i,f)}else{let f=t.contentHooks;f!==null&&_f(i,f,1),sy(i,1)}_8(t,i);let h=t.components;h!==null&&cI(i,h,0);let b=t.viewQuery;if(b!==null&&Dy(2,b,n),!o)if(d){let f=t.viewCheckHooks;f!==null&&gf(i,f)}else{let f=t.viewHooks;f!==null&&_f(i,f,2),sy(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Yp]){for(let f of i[Yp])f();i[Yp]=null}o||(nI(i),i[lt]&=-73)}catch(d){throw o||ml(i),d}finally{c!==null&&(Za(c,l),s&&l8(c)),af()}}function sI(t,i){for(let e=uT(t);e!==null;e=mT(e))for(let n=Tn;n<e.length;n++){let r=e[n];lI(r,i)}}function f8(t){for(let i=uT(t);i!==null;i=mT(i)){if(!(i[lt]&2))continue;let e=i[dl];for(let n=0;n<e.length;n++){let r=e[n];zb(r)}}}function g8(t,i,e){Kt($t.ComponentStart);let n=Lr(i,t);try{lI(n,e)}finally{Kt($t.ComponentEnd,n[Fn])}}function lI(t,i){Xp(t)&&Hy(t,i)}function Hy(t,i){let n=t[Ke],r=t[lt],o=t[hr],a=!!(i===0&&r&16);if(a||=!!(r&64&&i===0),a||=!!(r&1024),a||=!!(o?.dirty&&pc(o)),a||=!1,o&&(o.dirty=!1),t[lt]&=-9217,a)p8(n,t,n.template,t[Fn]);else if(r&8192){let s=nt(null);try{oI(t),sI(t,1);let l=n.components;l!==null&&cI(t,l,1),nI(t)}finally{nt(s)}}}function cI(t,i,e){for(let n=0;n<i.length;n++)g8(t,i[n],e)}function _8(t,i){let e=t.hostBindingOpCodes;if(e!==null)try{for(let n=0;n<e.length;n++){let r=e[n];if(r<0)ds(~r);else{let o=r,a=e[++n],s=e[++n];Bk(a,o);let l=i[o];Kt($t.HostBindingsUpdateStart,l);try{s(2,l)}finally{Kt($t.HostBindingsUpdateEnd,l)}}}}finally{ds(-1)}}function jx(t,i){let e=Zb()?64:1088;for(t[Jr].changeDetectionScheduler?.notify(i);t;){t[lt]|=e;let n=ma(t);if(Ic(t)&&!n)return t;t=n}return null}function dI(t,i,e,n){return[t,!0,0,i,null,n,null,e,null,null]}function uI(t,i){let e=Tn+i;if(e<t.length)return t[e]}function sm(t,i,e,n=!0){let r=i[Ke];if(v8(r,i,t,e),n){let a=jy(e,t),s=i[Ht],l=s.parentNode(t[cs]);l!==null&&N6(r,t[di],s,i,l,a)}let o=i[sl];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function mI(t,i){let e=Zu(t,i);return e!==void 0&&Wf(e[Ke],e),e}function Zu(t,i){if(t.length<=Tn)return;let e=Tn+i,n=t[e];if(n){let r=n[ls];r!==null&&r!==t&&Ax(r,n),i>0&&(t[e-1][Fr]=n[Fr]);let o=Iu(t,Tn+i);F6(n[Ke],n);let a=o[Oo];a!==null&&a.detachView(o[Ke]),n[Kn]=null,n[Fr]=null,n[lt]&=-129}return n}function v8(t,i,e,n){let r=Tn+n,o=e.length;n>0&&(e[r-1][Fr]=i),n<o-Tn?(i[Fr]=e[r],Sb(e,Tn+n,i)):(e.push(i),i[Fr]=null),i[Kn]=e;let a=i[ls];a!==null&&e!==a&&hI(a,i);let s=i[Oo];s!==null&&s.insertView(t),Jp(i),i[lt]|=128}function hI(t,i){let e=t[dl],n=i[Kn];if(pa(n))t[lt]|=2;else{let r=n[Kn][yi];i[yi]!==r&&(t[lt]|=2)}e===null?t[dl]=[i]:e.push(i)}var gs=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let i=this._lView,e=i[Ke];return Qu(e,i,e.firstChild,[])}constructor(i,e){this._lView=i,this._cdRefInjectingView=e}get context(){return this._lView[Fn]}set context(i){this._lView[Fn]=i}get destroyed(){return ul(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let i=this._lView[Kn];if(Nr(i)){let e=i[Ou],n=e?e.indexOf(this):-1;n>-1&&(Zu(i,n),Iu(e,n))}this._attachedToViewContainer=!1}Wf(this._lView[Ke],this._lView)}onDestroy(i){ef(this._lView,i)}markForCheck(){jx(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[lt]&=-129}reattach(){Jp(this._lView),this._lView[lt]|=128}detectChanges(){this._lView[lt]|=1024,aI(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=Ic(this._lView),e=this._lView[ls];e!==null&&!i&&Ax(e,this._lView),zT(this._lView[Ke],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=i;let e=Ic(this._lView),n=this._lView[ls];n!==null&&!e&&hI(n,this._lView),Jp(this._lView)}};var Lt=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=b8;constructor(e,n,r){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let o=am(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new gs(o)}}return t})();function b8(){return Yf(Nn(),We())}function Yf(t,i){return t.type&4?new Lt(i,t,$c(t,i)):null}function pI(t,i,e){let n=i.insertBeforeIndex,r=Array.isArray(n)?n[0]:n;return r===null?$T(t,i,e):pr(e[r])}function fI(t,i,e,n,r){let o=i.insertBeforeIndex;if(Array.isArray(o)){let a=n,s=null;if(i.type&3||(s=a,a=r),a!==null&&i.componentOffset===-1)for(let l=1;l<o.length;l++){let c=e[o[l]];zc(t,a,c,s,!1)}}}function Wc(t,i,e,n,r){let o=t.data[i];if(o===null)o=Hx(t,i,e,n,r),Lk()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=n,o.attrs=r;let a=Ac();o.injectorIndex=a===null?-1:a.injectorIndex}return fa(o,!0),o}function Hx(t,i,e,n,r){let o=Gb(),a=qb(),s=a?o:o&&o.parent,l=t.data[i]=x8(t,s,e,i,n,r);return y8(t,l,o,a),l}function y8(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function x8(t,i,e,n,r,o){let a=i?i.injectorIndex:-1,s=0;return $b()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,namespace:ey(),attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function gI(t,i){if(t.push(i),t.length>1)for(let e=t.length-2;e>=0;e--){let n=t[e];_I(n)||C8(n,i)&&w8(n)===null&&E8(n,i.index)}}function _I(t){return!(t.type&64)}function C8(t,i){return _I(i)||t.index>i.index}function w8(t){let i=t.insertBeforeIndex;return Array.isArray(i)?i[0]:i}function E8(t,i){let e=t.insertBeforeIndex;Array.isArray(e)?e[0]=i:(WT(pI,fI),t.insertBeforeIndex=i)}function D8(t,i,e){let n=t.data[i];n===null?t.data[i]=e:n.value=e}function S8(t,i){let e=t.insertBeforeIndex;e===null?(WT(pI,fI),e=t.insertBeforeIndex=[null,i]):(ck(Array.isArray(e),!0,"Expecting array here"),e.push(i))}function k8(t,i,e){let n=Hx(t,e,64,null,null);return gI(i,n),n}function M8(t,i){let e=i[t.currentCaseLViewIndex];return e===null?e:e<0?~e:e}function T8(t,i,e){return t|i<<17|e<<1}function I8(t){return t===-1}function vI(t,i,e){t.index=0;let n=M8(i,e);n!==null?t.removes=i.remove[n]:t.removes=ci}function $y(t){if(t.index<t.removes.length){let i=t.removes[t.index++];if(i>0)return t.lView[i];{t.stack.push(t.index,t.removes);let e=~i,n=t.lView[Ke].data[e];return vI(t,n,t.lView),$y(t)}}else return t.stack.length===0?(t.lView=void 0,null):(t.removes=t.stack.pop(),t.index=t.stack.pop(),$y(t))}function A8(){let t={stack:[],index:-1};function i(e,n){for(t.lView=n;t.stack.length;)t.stack.pop();return vI(t,e.value,n),$y.bind(null,t)}return i}var R8=()=>{};function O8(t,i,e,n){R8(t,i,e,n)}function P8(t){let i=t[Ob]??[],n=t[Kn][Ht],r=[];for(let o of i)o.data[fT]!==void 0?r.push(o):F8(o,n);t[Ob]=r}function F8(t,i){let e=0,n=t.firstChild;if(n){let r=t.data[pT];for(;e<r;){let o=n.nextSibling;Cx(i,n,!1),n=o,e++}}}var N8=()=>null,L8=()=>null;function Df(t,i){return N8(t,i)}function bI(t,i,e){return L8(t,i,e)}var yI=class{},An=class{},dt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>B8()}return t})();function B8(){let t=We(),i=Nn(),e=Lr(i.index,t);return(pa(e)?e:t)[Ht]}var xI=(()=>{class t{static \u0275prov=Be({token:t,providedIn:"root",factory:()=>null})}return t})();function CI(t){return t.debugInfo?.className||t.type.name||null}var bf={},Sf=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let r=this.injector.get(i,bf,n);return r!==bf||e===bf?r:this.parentInjector.get(i,e,n)}};function $x(t){return Kf(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function wI(t,i){if(Array.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{let e=t[Symbol.iterator](),n;for(;!(n=e.next()).done;)i(n.value)}}function Kf(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Xf(t,i,e){return t[i]=e}function z8(t,i){return t[i]}function Pi(t,i,e){if(e===ri)return!1;let n=t[i];return Object.is(n,e)?!1:(t[i]=e,!0)}function Ux(t,i,e,n){let r=Pi(t,i,e);return Pi(t,i+1,n)||r}function EI(t,i,e,n,r){let o=Ux(t,i,e,n);return Pi(t,i+2,r)||o}function gl(t,i,e){return function n(r){let o=n.__ngNativeEl__;o!==void 0&&I5(r,o);let a=No(t)?Lr(t.index,i):i;jx(a,5);let s=i[Fn],l=yM(i,s,e,r),c=n.__ngNextListenerFn__;for(;c;)l=yM(i,s,c,r)&&l,c=c.__ngNextListenerFn__;return l}}function yM(t,i,e,n){let r=nt(null);try{return Kt($t.OutputStart,i,e),e(n)!==!1}catch(o){return t8(t,o),!1}finally{Kt($t.OutputEnd,i,e),nt(r)}}function Wx(t,i,e,n,r,o,a,s){let l=Tc(t),c=!1,d=null;if(!n&&l&&(d=j8(i,e,o,t.index)),d!==null){let h=d.__ngLastListenerFn__||d;h.__ngNextListenerFn__=a,d.__ngLastListenerFn__=a,c=!0}else{let h=Oi(t,e),b=n?n(h):h;R5(e,b,o,s),n||(s.__ngNativeEl__=h);let f=r.listen(b,o,s);if(!V8(o)){let _=n?y=>n(pr(y[t.index])):t.index;DI(_,i,e,o,s,f,!1)}}return c}function V8(t){return t.startsWith("animation")||t.startsWith("transition")}function j8(t,i,e,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let a=r[o];if(a===e&&r[o+1]===n){let s=i[kc],l=r[o+2];return s&&s.length>l?s[l]:null}typeof a=="string"&&(o+=2)}return null}function DI(t,i,e,n,r,o,a){let s=i.firstCreatePass?jb(i):null,l=Vb(e),c=l.length;l.push(r,o),s&&s.push(n,t,c,(c+1)*(a?-1:1))}function xM(t,i,e,n,r){let o=null,a=null,s=null,l=!1,c=t.directiveToIndex.get(e.type);if(typeof c=="number"?o=c:[o,a,s]=c,a!==null&&s!==null&&t.hostDirectiveOutputs?.hasOwnProperty(n)){let d=t.hostDirectiveOutputs[n];for(let h=0;h<d.length;h+=2){let b=d[h];if(b>=a&&b<=s)l=!0,kf(t,i,b,d[h+1],n,r);else if(b>s)break}}return e.outputs.hasOwnProperty(n)&&(l=!0,kf(t,i,o,n,n,r)),l}function kf(t,i,e,n,r,o){let a=i[e],s=i[Ke],c=s.data[e].outputs[n],h=a[c].subscribe(o);DI(t.index,s,i,r,o,h,!0)}function Se(){H8()}function H8(){let t=We(),i=Yt(),e=Nn();if(i.firstCreatePass&&U8(i,e),e.controlDirectiveIndex===-1)return;er("NgSignalForms");let n=t[e.controlDirectiveIndex];i.data[e.controlDirectiveIndex].controlDef.create(n,new Mf(t,i,e))}function ke(){$8()}function $8(){let t=We(),i=Yt(),e=us();if(e.controlDirectiveIndex===-1)return;let n=i.data[e.controlDirectiveIndex].controlDef,r=t[e.controlDirectiveIndex];n.update(r,new Mf(t,i,e))}var Mf=class{lView;tView;tNode;hasPassThrough;constructor(i,e,n){this.lView=i,this.tView=e,this.tNode=n,this.hasPassThrough=!!(n.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Oi(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(i,e){let n=this.tView.data[this.tNode.customControlIndex];xM(this.tNode,this.lView,n,i,gl(this.tNode,this.lView,e))}listenToCustomControlModel(i){let e=this.tNode.flags&1024?"valueChange":"checkedChange",n=this.tView.data[this.tNode.customControlIndex];xM(this.tNode,this.lView,n,e,gl(this.tNode,this.lView,i))}listenToDom(i,e){Wx(this.tNode,this.tView,this.lView,void 0,this.lView[Ht],i,e,gl(this.tNode,this.lView,e))}setInputOnDirectives(i,e){let n=this.tNode.inputs?.[i],r=this.tNode.hostDirectiveInputs?.[i];if(!n&&!r)return!1;let o=!1;if(n)for(let a of n){if(a===this.tNode.controlDirectiveIndex)continue;let s=this.tView.data[a],l=this.lView[a];vl(s,l,i,e),o=!0}if(r)for(let a=0;a<r.length;a+=2){let s=r[a];if(s===this.tNode.controlDirectiveIndex)continue;let l=r[a+1],c=this.tView.data[s],d=this.lView[s];vl(c,d,l,e),o=!0}return o}setCustomControlModelInput(i){let e=this.tView.data[this.tNode.customControlIndex],n=this.tNode.flags&1024?"value":"checked";n8(this.tNode,this.tView,this.lView,e,n,i)}customControlHasInput(i){if(this.tNode.customControlIndex===-1)return!1;let e=this.tView.data[this.tNode.customControlIndex];return(e.signalFormsInputPresence??=this._buildCustomControlInputCache(e))[i]===!0}_buildCustomControlInputCache(i){let e={};for(let n in i.inputs)e[n]=!0;if(i.hostDirectives!==null){let n=[...i.hostDirectives];for(;n.length>0;){let r=n.shift();if(typeof r!="function"){for(let a in r.inputs)e[r.inputs[a]]=!0;let o=CM(r.directive);o!==null&&n.push(...o);continue}for(let o of r()){if(typeof o=="function")continue;if(o.inputs)for(let s=0;s<o.inputs.length;s+=2){let l=o.inputs[s+1]||o.inputs[s];e[l]=!0}let a=CM(o.directive);a!==null&&n.push(...a)}}}return e}};function CM(t){return typeof t=="function"&&"\u0275dir"in t?t.\u0275dir.hostDirectives??null:null}function U8(t,i,e){for(let r=i.directiveStart;r<i.directiveEnd;r++)if(t.data[r].controlDef){i.controlDirectiveIndex=r;break}if(i.controlDirectiveIndex===-1)return;let n=t.data[i.controlDirectiveIndex].controlDef;if(n.passThroughInput&&(i.inputs?.[n.passThroughInput]?.length??0)>1){i.flags|=4096;return}W8(t,i)}function W8(t,i){for(let e=i.directiveStart;e<i.directiveEnd;e++){let n=t.data[e];if(!(i.directiveToIndex&&!i.directiveToIndex.has(n.type))){if(wM(n,"value")){i.flags|=1024,i.customControlIndex=e;return}if(wM(n,"checked")){i.flags|=2048,i.customControlIndex=e;return}}}if(i.hostDirectiveInputs!==null&&i.hostDirectiveOutputs!==null&&i.directiveToIndex!==null){let e=(n,r)=>{let o=i.hostDirectiveInputs[n],a=i.hostDirectiveOutputs[n+"Change"];if(!o||!a)return!1;for(let s=0;s<o.length;s+=2){let l=o[s];for(let c=0;c<a.length;c+=2){let d=a[c];if(l===d)for(let h of i.directiveToIndex.values()){if(!Array.isArray(h))continue;let[b,f,_]=h;if(l>=f&&l<=_)return i.flags|=r,i.customControlIndex=b,!0}}}return!1};if(e("value",1024)||e("checked",2048))return}}function wM(t,i){return G8(t,i)&&q8(t,i+"Change")}function G8(t,i){return i in t.inputs}function q8(t,i){return i in t.outputs}var Uy=Symbol("BINDING");var xl=new z("");function Tf(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,o=0;if(i!==null)for(let a=0;a<i.length;a++){let s=i[a];if(typeof s=="number")o=s;else if(o==1)r=Hp(r,s);else if(o==2){let l=s,c=i[++a];n=Hp(n,l+": "+c+";")}}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=r:t.classesWithoutHost=r}function Z(t,i=0){let e=We();if(e===null)return we(t,i);let n=Nn();return oT(n,e,Yn(t),i)}function Ca(){let t="invalid";throw new Error(t)}function SI(t,i,e,n,r){let o=n===null?null:{"":-1},a=r(t,e);if(a!==null){let s=a,l=null,c=null;for(let d of a)if(d.resolveHostDirectives!==null){[s,l,c]=d.resolveHostDirectives(a);break}Y8(t,i,e,s,o,l,c)}o!==null&&n!==null&&Q8(e,n,o)}function Q8(t,i,e){let n=t.localNames=[];for(let r=0;r<i.length;r+=2){let o=e[i[r+1]];if(o==null)throw new ee(-301,!1);n.push(i[r],o)}}function Z8(t,i,e){i.componentOffset=e,(t.components??=[]).push(i.index)}function Y8(t,i,e,n,r,o,a){let s=n.length,l=null;for(let b=0;b<s;b++){let f=n[b];l===null&&eo(f)&&(l=f,Z8(t,e,b)),xy(Ef(e,i),t,f.type)}nB(e,t.data.length,s),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let b=0;b<s;b++){let f=n[b];f.providersResolver&&f.providersResolver(f)}let c=!1,d=!1,h=rm(t,i,s,null);s>0&&(e.directiveToIndex=new Map);for(let b=0;b<s;b++){let f=n[b];if(e.mergedAttrs=Lc(e.mergedAttrs,f.hostAttrs),X8(t,e,i,h,f),tB(h,f,r),a!==null&&a.has(f)){let[y,C]=a.get(f);e.directiveToIndex.set(f.type,[h,y+e.directiveStart,C+e.directiveStart])}else(o===null||!o.has(f))&&e.directiveToIndex.set(f.type,h);f.contentQueries!==null&&(e.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(e.flags|=64);let _=f.type.prototype;!c&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),c=!0),!d&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),d=!0),h++}K8(t,e,o)}function K8(t,i,e){for(let n=i.directiveStart;n<i.directiveEnd;n++){let r=t.data[n];if(e===null||!e.has(r))EM(0,i,r,n),EM(1,i,r,n),SM(i,n,!1);else{let o=e.get(r);DM(0,i,o,n),DM(1,i,o,n),SM(i,n,!0)}}}function EM(t,i,e,n){let r=t===0?e.inputs:e.outputs;for(let o in r)if(r.hasOwnProperty(o)){let a;t===0?a=i.inputs??={}:a=i.outputs??={},a[o]??=[],a[o].push(n),kI(i,o)}}function DM(t,i,e,n){let r=t===0?e.inputs:e.outputs;for(let o in r)if(r.hasOwnProperty(o)){let a=r[o],s;t===0?s=i.hostDirectiveInputs??={}:s=i.hostDirectiveOutputs??={},s[a]??=[],s[a].push(n,o),kI(i,a)}}function kI(t,i){i==="class"?t.flags|=8:i==="style"&&(t.flags|=16)}function SM(t,i,e){let{attrs:n,inputs:r,hostDirectiveInputs:o}=t;if(n===null||!e&&r===null||e&&o===null||Sx(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let a=null,s=0;for(;s<n.length;){let l=n[s];if(l===0){s+=4;continue}else if(l===5){s+=2;continue}else if(typeof l=="number")break;if(!e&&r.hasOwnProperty(l)){let c=r[l];for(let d of c)if(d===i){a??=[],a.push(l,n[s+1]);break}}else if(e&&o.hasOwnProperty(l)){let c=o[l];for(let d=0;d<c.length;d+=2)if(c[d]===i){a??=[],a.push(c[d+1],n[s+1]);break}}s+=2}t.initialInputs??=[],t.initialInputs.push(a)}function X8(t,i,e,n,r){t.data[n]=r;let o=r.factory||(r.factory=rs(r.type,!0)),a=new _l(o,eo(r),Z,null);t.blueprint[n]=a,e[n]=a,J8(t,i,n,rm(t,e,r.hostVars,ri),r)}function J8(t,i,e,n,r){let o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;a===null&&(a=t.hostBindingOpCodes=[]);let s=~i.index;eB(a)!=s&&a.push(s),a.push(e,n,o)}}function eB(t){let i=t.length;for(;i>0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function tB(t,i,e){if(e){if(i.exportAs)for(let n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;eo(i)&&(e[""]=t)}}function nB(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function Gx(t,i,e,n,r,o,a,s){let l=i[Ke],c=l.consts,d=Ki(c,a),h=Wc(l,t,e,n,d);return o&&SI(l,i,h,Ki(c,s),r),h.mergedAttrs=Lc(h.mergedAttrs,h.attrs),h.attrs!==null&&Tf(h,h.attrs,!1),h.mergedAttrs!==null&&Tf(h,h.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,h),h}function qx(t,i){YM(t,i),Pb(i)&&t.queries.elementEnd(i)}function iB(t,i,e,n,r,o){let a=i.consts,s=Ki(a,r),l=Wc(i,t,e,n,s);if(l.mergedAttrs=Lc(l.mergedAttrs,l.attrs),o!=null){let c=Ki(a,o);l.localNames=[];for(let d=0;d<c.length;d+=2)l.localNames.push(c[d],-1)}return l.attrs!==null&&Tf(l,l.attrs,!1),l.mergedAttrs!==null&&Tf(l,l.mergedAttrs,!0),i.queries!==null&&i.queries.elementStart(i,l),l}var MI=typeof ShadowRoot<"u",rB=typeof Document<"u";function oB(t){return Object.keys(t).map(i=>{let[e,n,r]=t[i],o={propName:e,templateName:i,isSignal:(n&qf.SignalBased)!==0};return r&&(o.transform=r),o})}function aB(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function sB(t,i,e){let n=i instanceof Zt?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new Sf(e,n):e}function lB(t){let i=t.get(An,null);if(i===null)throw new ee(407,!1);let e=t.get(xI,null),n=t.get(Ao,null),r=t.get(oo,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:r}}function cB(t,i){let e=TI(t);return xx(i,e,e==="svg"?Fb:e==="math"?kk:null)}function dB(t){if(t?.toLowerCase()==="script")throw new ee(905,!1)}function TI(t){return(t.selectors[0][0]||"div").toLowerCase()}var bl=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=oB(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=aB(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=x6(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,r,o,a){Kt($t.DynamicComponentStart);let s=nt(null);try{let l=this.componentDef,c=sB(l,r||this.ngModule,i),d=lB(c),h=d.tracingService;return h&&h.componentCreate?h.componentCreate(CI(l),()=>this.createComponentRef(d,c,e,n,o,a)):this.createComponentRef(d,c,e,n,o,a)}finally{nt(s)}}createComponentRef(i,e,n,r,o,a){let s=this.componentDef,l=uB(r,s,a,o),c=i.rendererFactory.createRenderer(null,s),d=r?G6(c,r,s.encapsulation,e):cB(s,c);dB(d?.tagName);let h=e.get(xl,null),b=mB(d,()=>e.get(je,null)??Bf());h&&h.addHost(b);let f=a?.some(kM)||o?.some(C=>typeof C!="function"&&C.bindings.some(kM)),_=Fx(null,l,null,512|QT(s),null,null,i,c,e,null,vT(d,e,!0));h&&MI&&b instanceof ShadowRoot&&ef(_,()=>{h.removeHost(b)}),_[an]=d,of(_);let y=null;try{let C=Gx(an,_,2,"#host",()=>l.directiveRegistry,!0,0);IT(c,d,C),Bc(d,_),Qf(l,_,C),px(l,C,_),qx(l,C),n!==void 0&&pB(C,this.ngContentSelectors,n),y=Lr(C.index,_),_[Fn]=y[Fn],Vx(l,_,null)}catch(C){throw y!==null&&wy(y),wy(_),C}finally{Kt($t.DynamicComponentEnd),af()}return new If(this.componentType,_,!!f)}};function uB(t,i,e,n){let r=t?["ng-version","22.0.6"]:C6(i.selectors[0]),o=null,a=null,s=0;if(e)for(let d of e)s+=d[Uy].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(n)for(let d=0;d<n.length;d++){let h=n[d];if(typeof h!="function")for(let b of h.bindings){s+=b[Uy].requiredVars;let f=d+1;b.create&&(b.targetIdx=f,(o??=[]).push(b)),b.update&&(b.targetIdx=f,(a??=[]).push(b))}}let l=[i];if(n)for(let d of n){let h=typeof d=="function"?d:d.type,b=Up(h);l.push(b)}return Px(0,null,hB(o,a),1,s,l,null,null,null,[r],null)}function mB(t,i){let e=t.getRootNode?.();return rB&&e instanceof Document?e.head:e&&MI&&e instanceof ShadowRoot?e:i().head}function hB(t,i){return!t&&!i?null:e=>{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function kM(t){let i=t[Uy].kind;return i==="input"||i==="twoWay"}var If=class extends yI{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Kp(e[Ke],an),this.location=$c(this._tNode,e),this.instance=Lr(this._tNode.index,e)[Fn],this.hostView=this.changeDetectorRef=new gs(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let r=this._rootLView,o=Zf(n,r[Ke],r,i,e);this.previousInputValues.set(i,e);let a=Lr(n.index,r);jx(a,1)}get injector(){return new ps(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function pB(t,i,e){let n=t.projection=[];for(let r=0;r<i.length;r++){let o=e[r];n.push(o!=null&&o.length?Array.from(o):null)}}var Xt=(()=>{class t{static __NG_ELEMENT_ID__=fB}return t})();function fB(){let t=Nn();return II(t,We())}var Wy=class t extends Xt{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return $c(this._hostTNode,this._hostLView)}get injector(){return new ps(this._hostTNode,this._hostLView)}get parentInjector(){let i=dx(this._hostTNode,this._hostLView);if(JM(i)){let e=Cf(i,this._hostLView),n=xf(i),r=e[Ke].data[n+8];return new ps(r,e)}else return new ps(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=MM(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-Tn}createEmbeddedView(i,e,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let a=Df(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,Vc(this._hostTNode,a)),s}createComponent(i,e,n,r,o,a,s){let l,c=e||{};l=c.index,n=c.injector,r=c.projectableNodes,o=c.environmentInjector||c.ngModuleRef,a=c.directives,s=c.bindings;let d=new bl(ha(i)),h=n||this.parentInjector;if(!o&&d.ngModule==null){let D=this.parentInjector.get(Zt,null);D&&(o=D)}let b=ha(d.componentType??{}),f=Df(this._lContainer,b?.id??null),_=f?.firstChild??null,y=d.create(h,r,_,o,a,s);return this.insertImpl(y.hostView,l,Vc(this._hostTNode,f)),y}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(Tk(r)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=r[Kn],c=new t(l,l[di],l[Kn]);c.detach(c.indexOf(i))}}let o=this._adjustIndex(e),a=this._lContainer;return sm(a,r,o,n),i.attachToViewContainerRef(),Sb(dy(a),o,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=MM(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Zu(this._lContainer,e);n&&(Iu(dy(this._lContainer),e),Wf(n[Ke],n))}detach(i){let e=this._adjustIndex(i,-1),n=Zu(this._lContainer,e);return n&&Iu(dy(this._lContainer),e)!=null?new gs(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function MM(t){return t[Ou]}function dy(t){return t[Ou]||(t[Ou]=[])}function II(t,i){let e,n=i[t.index];return Nr(n)?e=n:(e=dI(n,i,null,t),i[t.index]=e,Nx(i,e)),_B(e,i,t,n),new Wy(e,t,i)}function gB(t,i){let e=t[Ht],n=e.createComment(""),r=Oi(i,t),o=e.parentNode(r);return zc(e,o,n,e.nextSibling(r),!1),n}var _B=yB,vB=()=>!1;function bB(t,i,e){return vB(t,i,e)}function yB(t,i,e,n){if(t[cs])return;let r;e.type&8?r=pr(n):r=gB(i,e),t[cs]=r}var Gy=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},qy=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let o=0;o<n;o++){let a=e.getByIndex(o),s=this.queries[a.indexInDeclarationView];r.push(s.clone())}return new t(r)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}finishViewCreation(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let e=0;e<this.queries.length;e++)Zx(i,e).matches!==null&&this.queries[e].setDirty()}},Af=class{flags;read;predicate;constructor(i,e,n=null){this.flags=e,this.read=n,typeof i=="string"?this.predicate=DB(i):this.predicate=i}},Qy=class t{queries;constructor(i=[]){this.queries=i}elementStart(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let e=null;for(let n=0;n<this.length;n++){let r=e!==null?e.length:0,o=this.getByIndex(n).embeddedTView(i,r);o&&(o.indexInDeclarationView=n,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}},Zy=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(i,e=-1){this.metadata=i,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new t(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,n=i.parent;for(;n!==null&&n.type&8&&n.index!==e;)n=n.parent;return e===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(i,e,xB(e,o)),this.matchTNodeWithReadOption(i,e,vf(e,i,o,!1,!1))}else n===Lt?e.type&4&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,vf(e,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===pe||r===Xt||r===Lt&&e.type&4)this.addMatch(e.index,-2);else{let o=vf(e,i,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,n)}}addMatch(i,e){this.matches===null?this.matches=[i,e]:this.matches.push(i,e)}};function xB(t,i){let e=t.localNames;if(e!==null){for(let n=0;n<e.length;n+=2)if(e[n]===i)return e[n+1]}return null}function CB(t,i){return t.type&11?$c(t,i):t.type&4?Yf(t,i):null}function wB(t,i,e,n){return e===-1?CB(i,t):e===-2?EB(t,i,n):Gu(t,t[Ke],e,i)}function EB(t,i,e){if(e===pe)return $c(i,t);if(e===Lt)return Yf(i,t);if(e===Xt)return II(i,t)}function AI(t,i,e,n){let r=i[Oo].queries[n];if(r.matches===null){let o=t.data,a=e.matches,s=[];for(let l=0;a!==null&&l<a.length;l+=2){let c=a[l];if(c<0)s.push(null);else{let d=o[c];s.push(wB(i,d,a[l+1],e.metadata.read))}}r.matches=s}return r.matches}function Yy(t,i,e,n){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let a=AI(t,i,r,e);for(let s=0;s<o.length;s+=2){let l=o[s];if(l>0)n.push(a[s/2]);else{let c=o[s+1],d=i[-l];for(let h=Tn;h<d.length;h++){let b=d[h];b[ls]===b[Kn]&&Yy(b[Ke],b,c,n)}if(d[dl]!==null){let h=d[dl];for(let b=0;b<h.length;b++){let f=h[b];Yy(f[Ke],f,c,n)}}}}}return n}function Qx(t,i){return t[Oo].queries[i].queryList}function RI(t,i,e){let n=new jn((e&4)===4);return Rk(t,i,n,n.destroy),(i[Oo]??=new qy).queries.push(new Gy(n))-1}function OI(t,i,e){let n=Yt();return n.firstCreatePass&&(FI(n,new Af(t,i,e),-1),(i&2)===2&&(n.staticViewQueries=!0)),RI(n,We(),i)}function PI(t,i,e,n){let r=Yt();if(r.firstCreatePass){let o=Nn();FI(r,new Af(i,e,n),o.index),SB(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return RI(r,We(),e)}function DB(t){return t.split(",").map(i=>i.trim())}function FI(t,i,e){t.queries===null&&(t.queries=new Qy),t.queries.track(new Zy(i,e))}function SB(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function Zx(t,i){return t.queries.getByIndex(i)}function NI(t,i){let e=t[Ke],n=Zx(e,i);return n.crossesNgTemplate?Yy(e,t,i,[]):AI(e,t,n,i)}function LI(t,i,e){let n,r=uu(()=>{n._dirtyCounter();let o=kB(n,t);if(i&&o===void 0)throw new ee(-951,!1);return o});return n=r[Pn],n._dirtyCounter=Q(0),n._flatValue=void 0,r}function Yx(t){return LI(!0,!1,t)}function Kx(t){return LI(!0,!0,t)}function BI(t,i){let e=t[Pn];e._lView=We(),e._queryIndex=i,e._queryList=Qx(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function kB(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[lt]&4)return i?void 0:ci;let r=Qx(e,n),o=NI(e,n);return r.reset(o,lT),i?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function wa(t){return!!t&&typeof t.then=="function"}function Jf(t){return!!t&&typeof t.subscribe=="function"}var zo=class{},eg=class{};var Rf=class extends zo{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(i,e,n,r=!0){super(),this.ngModuleType=i,this._parent=e;let o=uk(i);this._bootstrapComponents=d6(o.bootstrap),this._r3Injector=ty(i,e,[{provide:zo,useValue:this},...n],Mu(i),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Of=class extends eg{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Rf(this.moduleType,i,[])}};var Yu=class extends zo{injector;instance=null;constructor(i){super();let e=new rl([...i.providers,{provide:zo,useValue:this}],i.parent||Sc(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function Gc(t,i,e=null){return new Yu({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var MB=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=Mb(!1,e.type),r=n.length>0?Gc([n],this._injector,""):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Be({token:t,providedIn:"environment",factory:()=>new t(we(Zt))})}return t})();function q(t){return Xu(()=>{let i=zI(t),e=Xe(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==ux.Eager,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?r=>r.get(MB).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||io.Emulated,styles:t.styles||ci,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&er("NgStandalone"),VI(e);let n=t.dependencies;return e.directiveDefs=TM(n,TB),e.pipeDefs=TM(n,mk),e.id=RB(e),e})}function TB(t){return ha(t)||Up(t)}function Ce(t){return Xu(()=>({type:t.type,bootstrap:t.bootstrap||ci,declarations:t.declarations||ci,imports:t.imports||ci,exports:t.exports||ci,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function IB(t,i){if(t==null)return as;let e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=qf.None,l=null),e[o]=[n,s,l],i[o]=a}return e}function AB(t){if(t==null)return as;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Y(t){return Xu(()=>{let i=zI(t);return VI(i),i})}function qc(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function zI(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||as,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ci,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:IB(t.inputs,i),outputs:AB(t.outputs),debugInfo:null}}function VI(t){t.features?.forEach(i=>i(t))}function TM(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let r of e){let o=i(r);o!==null&&n.push(o)}return n}:null}function RB(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of n.join("|"))i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}var Xx=new z("");function Qc(t){return Kr([{provide:Xx,multi:!0,useValue:t}])}var Jx=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=g(Xx,{optional:!0})??[];injector=g(ze);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=Xn(this.injector,r);if(wa(o))e.push(o);else if(Jf(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function lm(t){return i=>{i.controlDef={create:(e,n)=>{e?.\u0275ngControlCreate(n)},update:(e,n)=>{e?.\u0275ngControlUpdate?.(n)},passThroughInput:t}}}function eC(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=OB,e.hostDirectives=n?t.map(Ky):[t]):n?e.hostDirectives.unshift(...t.map(Ky)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function OB(t){let i=[],e=!1,n=null,r=null;for(let o=0;o<t.length;o++){let a=t[o];if(a.hostDirectives!==null){let s=i.length;n??=new Map,r??=new Map,jI(a,i,n,t),r.set(a,[s,i.length-1])}o===0&&eo(a)&&(e=!0,i.push(a))}for(let o=e?1:0;o<t.length;o++)i.push(t[o]);return n!==null&&n.forEach((o,a)=>{PB(a.declaredInputs,o.inputs)}),[i,n,r]}function jI(t,i,e,n){if(t.hostDirectives!==null)for(let r of t.hostDirectives)if(typeof r=="function"){let o=r();for(let a of o)IM(Ky(a),i,e,n)}else IM(r,i,e,n)}function IM(t,i,e,n){let r=Up(t.directive);if(jI(r,i,e,n),e.has(r)){let o=e.get(r);AM(o,t.inputs,"input"),AM(o,t.outputs,"output")}else n.includes(r)||(e.set(r,t),i.push(r))}function AM(t,i,e){let n=e==="input"?t.inputs:t.outputs;Object.keys(i).forEach(r=>{let o=i[r];(!n.hasOwnProperty(r)||n[r]===o)&&(n[r]=o)})}function Ky(t){return typeof t=="function"?{directive:Yn(t),inputs:{},outputs:{}}:{directive:Yn(t.directive),inputs:RM(t.inputs),outputs:RM(t.outputs)}}function RM(t){let i={};if(t!==void 0&&t.length>0)for(let e=0;e<t.length;e+=2)i[t[e]]=t[e+1];return i}function PB(t,i){for(let e in i)if(i.hasOwnProperty(e)){let n=i[e],r=t[e];t[n]=r}}function FB(t){return Object.getPrototypeOf(t.prototype).constructor}function Ee(t){let i=FB(t.type),e=!0,n=[t];for(;i;){let r;if(eo(t))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new ee(903,!1);r=i.\u0275dir}if(r){if(e){n.push(r);let a=t;a.inputs=uy(t.inputs),a.declaredInputs=uy(t.declaredInputs),a.outputs=uy(t.outputs);let s=r.hostBindings;s&&VB(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&BB(t,l),c&&zB(t,c),NB(t,r),lk(t.outputs,r.outputs),eo(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a<o.length;a++){let s=o[a];s&&s.ngInherit&&s(t),s===Ee&&(e=!1)}}i=Object.getPrototypeOf(i)}LB(n)}function NB(t,i){for(let e in i.inputs){if(!i.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let n=i.inputs[e];n!==void 0&&(t.inputs[e]=n,t.declaredInputs[e]=i.declaredInputs[e])}}function LB(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Lc(r.hostAttrs,e=Lc(e,r.hostAttrs))}}function uy(t){return t===as?{}:t===ci?[]:t}function BB(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function zB(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,o)=>{i(n,r,o),e(n,r,o)}:t.contentQueries=i}function VB(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function HI(t,i,e,n,r,o,a,s){if(e.firstCreatePass){t.mergedAttrs=Lc(t.mergedAttrs,t.attrs);let d=t.tView=Px(2,t,r,o,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),d.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fa(t,!1);let l=HB(e,i,t,n);Bu()&&Rx(e,i,l,t),Bc(l,i);let c=dI(l,i,l,t);i[n+an]=c,Nx(i,c),bB(c,t,i)}function jB(t,i,e,n,r,o,a,s,l,c,d){let h=e+an,b;return i.firstCreatePass?(b=Wc(i,h,4,a||null,s||null),tf()&&SI(i,t,b,Ki(i.consts,c),Lx),YM(i,b)):b=i.data[h],HI(b,t,i,e,n,r,o,l),Tc(b)&&Qf(i,t,b),c!=null&&om(t,b,d),b}function jc(t,i,e,n,r,o,a,s,l,c,d){let h=e+an,b;if(i.firstCreatePass){if(b=Wc(i,h,4,a||null,s||null),c!=null){let f=Ki(i.consts,c);b.localNames=[];for(let _=0;_<f.length;_+=2)b.localNames.push(f[_],-1)}}else b=i.data[h];return HI(b,t,i,e,n,r,o,l),c!=null&&om(t,b,d),b}function ot(t,i,e,n,r,o,a,s){let l=We(),c=Yt(),d=Ki(c.consts,o);return jB(l,c,t,i,e,n,r,d,void 0,a,s),ot}function _s(t,i,e,n,r,o,a,s){let l=We(),c=Yt(),d=Ki(c.consts,o);return jc(l,c,t,i,e,n,r,d,void 0,a,s),_s}var HB=$B;function $B(t,i,e,n){return Rc(!0),i[Ht].createComment("")}var tg=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var tC=new z("");var Zc=new z("");function $I(){zv(()=>{let t="";throw new ee(600,t)})}var UB=10;var Ni=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(Xi);afterRenderManager=g($f);zonelessEnabled=g(zu);rootEffectScheduler=g(cf);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ce;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(_a);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Le(e=>!e))}constructor(){g(oo,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=g(Zt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,r=ze.NULL){return this._injector.get(De).run(()=>{if(Kt($t.BootstrapComponentStart),!this._injector.get(Jx).done){let D="";throw new ee(405,D)}let s=ha(e),l=this._injector.get(zo),c=new bl(s,l);this.componentTypes.push(e);let{hostElement:d,directives:h,bindings:b}=WB(n),f=d||c.selector,_=c.create(r,[],f,l.injector,h,b),y=_.location.nativeElement,C=_.injector.get(tC,null);return C?.registerApplication(y),_.onDestroy(()=>{this.detachView(_.hostView),Uu(this.components,_),C?.unregisterApplication(y)}),this._loadComponent(_),Kt($t.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Kt($t.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Hf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Kt($t.ChangeDetectionEnd),new ee(101,!1);let e=nt(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,nt(e),this.afterTick.next(),Kt($t.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(An,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++<UB;){Kt($t.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Kt($t.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let e=!1;if(this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r}of this.allViews){if(!n&&!Fu(r))continue;let o=n&&!this.zonelessEnabled?0:1;aI(r,o),e=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}e||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>Fu(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Uu(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(Zc,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Uu(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ee(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function WB(t){return t===void 0||typeof t=="string"||t instanceof Element?{hostElement:t}:t}function Uu(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Yc(t,i){let e=We(),n=Lo();if(Pi(e,n,i)){let r=Yt(),o=us();if(Zf(o,r,e,t,i))No(o)&&JT(e,o.index);else{let s=Oi(o,e);eI(e[Ht],s,null,o.value,t,i,null)}}return Yc}function he(t,i,e,n){let r=We(),o=Lo();if(Pi(r,o,i)){let a=Yt(),s=us();J6(s,r,t,i,e,n)}return he}var Xy=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),r=Math.max(i,e),o=this.detach(r);if(r-n>1){let a=this.detach(n);this.attach(n,o),this.attach(r,a)}else this.attach(n,o)}move(i,e){this.attach(e,this.detach(i))}};function my(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0}function GB(t,i,e,n){let r,o,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){nt(n);let c=i.length-1;for(nt(null);a<=s&&a<=c;){let d=t.at(a),h=i[a],b=my(a,d,a,h,e);if(b!==0){b<0&&t.updateValue(a,h),a++;continue}let f=t.at(s),_=i[c],y=my(s,f,c,_,e);if(y!==0){y<0&&t.updateValue(s,_),s--,c--;continue}let C=e(a,d),D=e(s,f),k=e(a,h);if(Object.is(k,D)){let T=e(c,_);Object.is(T,C)?(t.swap(a,s),t.updateValue(s,_),c--,s--):t.move(s,a),t.updateValue(a,h),a++;continue}if(r??=new Pf,o??=PM(t,a,s,e),Jy(t,r,a,k))t.updateValue(a,h),a++,s++;else if(o.has(k))r.set(C,t.detach(a)),s--;else{let T=t.create(a,i[a]);t.attach(a,T),a++,s++}}for(;a<=c;)OM(t,r,e,a,i[a]),a++}else if(i!=null){nt(n);let c=i[Symbol.iterator]();nt(null);let d=c.next();for(;!d.done&&a<=s;){let h=t.at(a),b=d.value,f=my(a,h,a,b,e);if(f!==0)f<0&&t.updateValue(a,b),a++,d=c.next();else{r??=new Pf,o??=PM(t,a,s,e);let _=e(a,b);if(Jy(t,r,a,_))t.updateValue(a,b),a++,s++,d=c.next();else if(!o.has(_))t.attach(a,t.create(a,b)),a++,s++,d=c.next();else{let y=e(a,h);r.set(y,t.detach(a)),s--}}}for(;!d.done;)OM(t,r,e,t.length,d.value),d=c.next()}for(;a<=s;)t.destroy(t.detach(s--));r?.forEach(c=>{t.destroy(c)})}function Jy(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function OM(t,i,e,n,r){if(Jy(t,i,n,e(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o)}}function PM(t,i,e,n){let r=new Set;for(let o=i;o<=e;o++)r.add(n(o,t.at(o)));return r}var Pf=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),i(n,e)}}};function A(t,i,e,n,r,o,a,s){er("NgControlFlow");let l=We(),c=Yt(),d=Ki(c.consts,o);return jc(l,c,t,i,e,n,r,d,256,a,s),nC}function nC(t,i,e,n,r,o,a,s){er("NgControlFlow");let l=We(),c=Yt(),d=Ki(c.consts,o);return jc(l,c,t,i,e,n,r,d,512,a,s),nC}function R(t,i){er("NgControlFlow");let e=We(),n=Lo(),r=e[n]!==ri?e[n]:-1,o=r!==-1?Ff(e,an+r):void 0,a=0;if(Pi(e,n,t)){let s=nt(null);try{if(o!==void 0&&mI(o,a),t!==-1){let l=an+t,c=Ff(e,l),d=ix(e[Ke],l),h=bI(c,d,e),b=am(e,d,i,{dehydratedView:h});sm(c,b,a,Vc(d,h))}}finally{nt(s)}}else if(o!==void 0){let s=uI(o,a);s!==void 0&&(s[Fn]=i)}}var ex=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Tn}};function ao(t){return t}function Rn(t,i){return i}var tx=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function Je(t,i,e,n,r,o,a,s,l,c,d,h,b){er("NgControlFlow");let f=We(),_=Yt(),y=l!==void 0,C=We(),D=s?a.bind(C[yi][Fn]):a,k=new tx(y,D);C[an+t]=k,jc(f,_,t+1,i,e,n,r,Ki(_.consts,o),256),y&&jc(f,_,t+2,l,c,d,h,Ki(_.consts,b),512)}var nx=class extends Xy{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-Tn}at(i){return this.getLView(i)[Fn].$implicit}attach(i,e){let n=e[sl];this.needsIndexUpdate||=i!==this.length,sm(this.lContainer,e,i,Vc(this.templateTNode,n)),qB(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,QB(this.lContainer,i),ZB(this.lContainer,i)}create(i,e){let n=Df(this.lContainer,this.templateTNode.tView.ssrId);return am(this.hostLView,this.templateTNode,new ex(this.lContainer,e,i),{dehydratedView:n})}destroy(i){Wf(i[Ke],i)}updateValue(i,e){this.getLView(i)[Fn].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i<this.length;i++)this.getLView(i)[Fn].$index=i}getLView(i){return YB(this.lContainer,i)}};function et(t){let i=nt(null),e=Br();try{let n=We(),r=n[Ke],o=n[e],a=e+1,s=Ff(n,a);if(o.liveCollection===void 0){let c=ix(r,a);o.liveCollection=new nx(s,n,c)}else o.liveCollection.reset();let l=o.liveCollection;if(GB(l,t,o.trackByFn,i),l.updateIndexes(),o.hasEmptyBlock){let c=Lo(),d=l.length===0;if(Pi(n,c,d)){let h=e+2,b=Ff(n,h);if(d){let f=ix(r,h),_=bI(b,f,n),y=am(n,f,void 0,{dehydratedView:_});sm(b,y,0,Vc(f,_))}else r.firstUpdatePass&&P8(b),mI(b,0)}}}finally{nt(i)}}function Ff(t,i){return t[i]}function qB(t,i){if(t.length<=Tn)return;let e=Tn+i,n=t[e],r=n?n[Fo]:void 0;if(n&&r&&r.detachedLeaveAnimationFns&&r.detachedLeaveAnimationFns.length>0){let o=n[Ro];T6(o,r),fs.delete(n[Po]),r.detachedLeaveAnimationFns=void 0}}function QB(t,i){if(t.length<=Tn)return;let e=Tn+i,n=t[e],r=n?n[Fo]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function ZB(t,i){return Zu(t,i)}function YB(t,i){return uI(t,i)}function ix(t,i){return Kp(t,i)}function S(t,i,e){let n=We(),r=Lo();if(Pi(n,r,i)){let o=Yt(),a=us();KT(a,n,t,i,n[Ht],e)}return S}function rx(t,i,e,n,r){Zf(i,t,e,r?"class":"style",n)}function p(t,i,e,n){let r=We(),o=r[Ke],a=t+an,s=o.firstCreatePass?Gx(a,r,2,i,Lx,tf(),e,n):o.data[a];if(No(s)){let l=r[Jr].tracingService;if(l&&l.componentCreate){let c=o.data[s.directiveStart+s.componentOffset];return l.componentCreate(CI(c),()=>(FM(t,i,r,s,n),p))}}return FM(t,i,r,s,n),p}function FM(t,i,e,n,r){if(Bx(n,e,t,i,UI),Tc(n)){let o=e[Ke];Qf(o,e,n),px(o,n,e)}r!=null&&om(e,n)}function m(){let t=Yt(),i=Nn(),e=zx(i);return t.firstCreatePass&&qx(t,e),Ub(e)&&Wb(),Hb(),e.classesWithoutHost!=null&&m5(e)&&rx(t,e,We(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&h5(e)&&rx(t,e,We(),e.stylesWithoutHost,!1),m}function U(t,i,e,n){return p(t,i,e,n),m(),U}function kt(t,i,e,n){let r=We(),o=r[Ke],a=t+an,s=o.firstCreatePass?iB(a,o,2,i,e,n):o.data[a];return Bx(s,r,t,i,UI),n!=null&&om(r,s),kt}function Mt(){let t=Nn(),i=zx(t);return Ub(i)&&Wb(),Hb(),Mt}function yn(t,i,e,n){return kt(t,i,e,n),Mt(),yn}var UI=(t,i,e,n,r)=>(Rc(!0),xx(i[Ht],n,ey()));function xn(t,i,e){let n=We(),r=n[Ke],o=t+an,a=r.firstCreatePass?Gx(o,n,8,"ng-container",Lx,tf(),i,e):r.data[o];if(Bx(a,n,t,"ng-container",KB),Tc(a)){let s=n[Ke];Qf(s,n,a),px(s,a,n)}return e!=null&&om(n,a),xn}function Cn(){let t=Yt(),i=Nn(),e=zx(i);return t.firstCreatePass&&qx(t,e),Cn}function Jt(t,i,e){return xn(t,i,e),Cn(),Jt}var KB=(t,i,e,n,r)=>(Rc(!0),MT(i[Ht],""));function be(){return We()}function en(t,i,e){let n=We(),r=Lo();if(Pi(n,r,i)){let o=Yt(),a=us();XT(a,n,t,i,n[Ht],e)}return en}var Vu=void 0;function XB(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var JB=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],Vu,[["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"]],Vu,[["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\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Vu,Vu,Vu],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",XB],hy=Object.create(null);function tr(t){let i=ez(t),e=NM(i);if(e)return e;let n=i.split("-")[0];if(e=NM(n),e)return e;if(n==="en")return JB;throw new ee(701,!1)}function NM(t){if(!(t in hy)){let i=Pr.ng&&Pr.ng.common&&Pr.ng.common.locales&&Pr.ng.common.locales[t];return i!==void 0&&(hy[t]=i),i}return hy[t]}var Ln={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function ez(t){return t.toLowerCase().replace(/_/g,"-")}var cm="en-US";var tz={marker:"element"},nz={marker:"ICU"},ba=(function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t})(ba||{}),iz=cm;function WI(t){typeof t=="string"&&(iz=t.toLowerCase().replace(/_/g,"-"))}function rz(t,i,e){let n=t[Ht];switch(e){case Node.COMMENT_NODE:return MT(n,i);case Node.TEXT_NODE:return kT(n,i);case Node.ELEMENT_NODE:return xx(n,i,null)}}var oz=(t,i,e,n)=>(Rc(!0),rz(t,e,n));function az(t,i,e,n){let r=t[Ht];for(let o=0;o<i.length;o++){let a=i[o++],s=i[o],l=(a&ba.COMMENT)===ba.COMMENT,c=(a&ba.APPEND_EAGERLY)===ba.APPEND_EAGERLY,d=a>>>ba.SHIFT,h=t[d],b=!1;h===null&&(h=t[d]=oz(t,d,s,l?Node.COMMENT_NODE:Node.TEXT_NODE),b=Bu()),c&&e!==null&&b&&zc(r,e,h,n,!1)}}var Nf=/�(\d+):?\d*�/gi;var sz=/�(\d+)�/,GI=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,Wu="\uFFFD",lz=/�\/?\*(\d+:\d+)�/gi,cz=/�(\/?[#*]\d+):?\d*�/gi,dz=/\uE500/g;function uz(t){return t.replace(dz," ")}function mz(t,i,e,n,r,o){let a=Ac(),s=[],l=[],c=[[]],d=[[]];r=pz(r,o);let h=uz(r).split(cz);for(let b=0;b<h.length;b++){let f=h[b];if((b&1)===0){let _=ax(f);for(let y=0;y<_.length;y++){let C=_[y];if((y&1)===0){let D=C;D!==""&&hz(d[0],t,a,c[0],s,l,e,D)}else{let D=C;if(typeof D!="object")throw new Error(`Unable to parse ICU expression in "${r}" message.`);let T=qI(t,a,c[0],e,s,"",!0).index;ZI(d[0],t,e,l,i,D,T)}}}else{let _=f.charCodeAt(0)===47,y=f.charCodeAt(_?1:0),C=an+Number.parseInt(f.substring(_?2:1));if(_)c.shift(),d.shift(),fa(Ac(),!1);else{let D=k8(t,c[0],C);c.unshift([]),fa(D,!0);let k={kind:2,index:C,children:[],type:y===35?0:1};d[0].push(k),d.unshift(k.children)}}}t.data[n]={create:s,update:l,ast:d[0],parentTNodeIndex:i}}function qI(t,i,e,n,r,o,a){let s=rm(t,n,1,null),l=s<<ba.SHIFT,c=Ac();i===c&&(c=null),c===null&&(l|=ba.APPEND_EAGERLY),a&&(l|=ba.COMMENT,w6(A8)),r.push(l,o===null?"":o);let d=Hx(t,s,a?32:1,o===null?"":o,null);gI(e,d);let h=d.index;return fa(d,!1),c!==null&&i!==c&&S8(c,h),d}function hz(t,i,e,n,r,o,a,s){let l=s.match(Nf),d=qI(i,e,n,a,r,l?null:s,!1).index;l&&ox(o,s,d,null,0,null),t.push({kind:0,index:d})}function ox(t,i,e,n,r,o){let a=t.length,s=a+1;t.push(null,null);let l=a+2,c=i.split(Nf),d=0;for(let h=0;h<c.length;h++){let b=c[h];if(h&1){let f=r+parseInt(b,10);t.push(-1-f),d=d|QI(f)}else b!==""&&t.push(b)}return t.push(e<<2|(n?1:0)),n&&t.push(n,o),t[a]=d,t[s]=t.length-l,d}function QI(t){return 1<<Math.min(t,31)}function LM(t){let i,e="",n=0,r=!1,o;for(;(i=lz.exec(t))!==null;)r?i[0]===`${Wu}/*${o}${Wu}`&&(n=i.index,r=!1):(e+=t.substring(n,i.index+i[0].length),o=i[1],r=!0);return e+=t.slice(n),e}function pz(t,i){if(I8(i))return LM(t);{let e=t.indexOf(`:${i}${Wu}`)+2+i.toString().length,n=t.search(new RegExp(`${Wu}\\/\\*\\d+:${i}${Wu}`));return LM(t.substring(e,n))}}function ZI(t,i,e,n,r,o,a){let s=0,l={type:o.type,currentCaseLViewIndex:rm(i,e,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};vz(n,o,a),D8(i,a,l);let c=o.values,d=[];for(let h=0;h<c.length;h++){let b=c[h],f=[];for(let y=0;y<b.length;y++){let C=b[y];if(typeof C!="string"){let D=f.push(C)-1;b[y]=`<!--\uFFFD${D}\uFFFD-->`}}let _=[];d.push(_),s=gz(_,i,l,e,n,r,o.cases[h],b.join(""),f)|s}s&&bz(n,s,a),t.push({kind:3,index:a,cases:d,currentCaseLViewIndex:l.currentCaseLViewIndex})}function fz(t){let i=[],e=[],n=1,r=0;t=t.replace(GI,function(a,s,l){return l==="select"?n=0:n=1,r=parseInt(s.slice(1),10),""});let o=ax(t);for(let a=0;a<o.length;){let s=o[a++].trim();n===1&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&i.push(s);let l=ax(o[a++]);i.length>e.length&&e.push(l)}return{type:n,mainBinding:r,cases:i,values:e}}function ax(t){if(!t)return[];let i=0,e=[],n=[],r=/[{}]/g;r.lastIndex=0;let o;for(;o=r.exec(t);){let s=o.index;if(o[0]=="}"){if(e.pop(),e.length==0){let l=t.substring(i,s);GI.test(l)?n.push(fz(l)):n.push(l),i=s+1}}else{if(e.length==0){let l=t.substring(i,s);n.push(l),i=s+1}e.push("{")}}let a=t.substring(i);return n.push(a),n}function gz(t,i,e,n,r,o,a,s,l){let c=[],d=[],h=[];e.cases.push(a),e.create.push(c),e.remove.push(d),e.update.push(h);let f=xT(Bf()).getInertBodyElement(s),_=Ny(f)||f;return _?YI(t,i,e,n,r,c,d,h,_,o,l,0):0}function YI(t,i,e,n,r,o,a,s,l,c,d,h){let b=0,f=l.firstChild;for(;f;){let _=rm(i,n,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:let y=f,C=y.tagName.toLowerCase();if(Oy.hasOwnProperty(C)){py(o,tz,C,c,_),i.data[_]=C;let F=y.attributes;for(let B=0;B<F.length;B++){let V=F.item(B),ne=V.name.toLowerCase(),Re=!!V.value.match(Nf),P=y.namespaceURI,re=P==="http://www.w3.org/2000/svg"?`:svg:${C}`:P==="http://www.w3.org/1998/Math/MathML"?`:math:${C}`:C;if(Re)Py.hasOwnProperty(ne)&&ox(s,V.value,_,V.name,0,VM(ne,re));else if(Py[ne]){let w=V.value;VM(ne,re)?zM(o,_,V.name,"unsafe:blocked"):zM(o,_,V.name,w)}}let L={kind:1,index:_,children:[]};t.push(L),b=YI(L.children,i,e,n,r,o,a,s,f,_,d,h+1)|b,BM(a,_,h)}break;case Node.TEXT_NODE:let D=f.textContent||"",k=D.match(Nf);py(o,null,k?"":D,c,_),BM(a,_,h),k&&(b=ox(s,D,_,null,0,null)|b),t.push({kind:0,index:_});break;case Node.COMMENT_NODE:let T=sz.exec(f.textContent||"");if(T){let F=parseInt(T[1],10),L=d[F];py(o,nz,"",c,_),ZI(t,i,n,r,c,L,_),_z(a,_,h)}break}f=f.nextSibling}return b}function BM(t,i,e){e===0&&t.push(i)}function _z(t,i,e){e===0&&(t.push(~i),t.push(i))}function vz(t,i,e){t.push(QI(i.mainBinding),2,-1-i.mainBinding,e<<2|2)}function bz(t,i,e){t.push(i,1,e<<2|3)}function py(t,i,e,n,r){i!==null&&t.push(i),t.push(e,r,T8(0,n,r))}function zM(t,i,e,n){t.push(i<<1|1,e,n)}function yz(t,i=!0){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1){if(i)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,e),t.slice(e+1)]}function VM(t,i){let e;if(i){let[n,r]=yz(i,!1);e=fM(r,t,n)}else e=fM("*",t);switch(e){case At.HTML:return nm;case At.STYLE:return RT;case At.SCRIPT:return OT;case At.URL:return Uc;case At.RESOURCE_URL:return wx;case At.ATTRIBUTE_NO_BINDING:return PT;default:return null}}function KI(t,i,e=-1){let n=Yt(),r=We(),o=an+t,a=Ki(n.consts,i),s=Ac();if(n.firstCreatePass&&mz(n,s===null?0:s.index,r,o,a,e),n.type===2){let b=r[yi];b[lt]|=32}else r[lt]|=32;let l=n.data[o],c=s===r[di]?null:s,d=jT(n,c,r),h=s&&s.type&8?r[s.index]:null;O8(r,o,s,e),az(r,l.create,d,h),Kb(!0)}function XI(){Kb(!1)}function vs(t,i,e){KI(t,i,e),XI()}function N(t,i,e){let n=We(),r=Yt(),o=Nn();return JI(r,n,n[Ht],o,t,i,e),N}function Ea(t,i,e){let n=We(),r=Yt(),o=Nn();return(o.type&3||e)&&Wx(o,r,n,e,n[Ht],t,i,gl(o,n,i)),Ea}function JI(t,i,e,n,r,o,a){let s=!0,l=null;if((n.type&3||a)&&(l??=gl(n,i,o),Wx(n,t,i,a,e,r,o,l)&&(s=!1)),s){let c=n.outputs?.[r],d=n.hostDirectiveOutputs?.[r];if(d&&d.length)for(let h=0;h<d.length;h+=2){let b=d[h],f=d[h+1];l??=gl(n,i,o),kf(n,i,b,f,r,l)}if(c&&c.length)for(let h of c)l??=gl(n,i,o),kf(n,i,h,r,r,l)}}function E(t=1){return Uk(t)}function xz(t,i){let e=null,n=g6(t);for(let r=0;r<i.length;r++){let o=i[r];if(o==="*"){e=r;continue}if(n===null?NT(t,o,!0):b6(n,o))return r}return e}function tt(t){let i=We()[yi][di];if(!i.projection){let e=t?t.length:1,n=i.projection=vk(e,null),r=n.slice(),o=i.child;for(;o!==null;){if(o.type!==128){let a=t?xz(o,t):0;a!==null&&(r[a]?r[a].projectionNext=o:n[a]=o,r[a]=o)}o=o.next}}}function Me(t,i=0,e,n,r,o){let a=We(),s=Yt(),l=n?t+1:null;l!==null&&jc(a,s,l,n,r,o,null,e);let c=Wc(s,an+t,16,null,e||null);c.projection===null&&(c.projection=i),Qb();let h=!a[sl]||$b();a[yi][di].projection[c.projection]===null&&l!==null?Cz(a,s,l):h&&!Vf(c)&&V6(s,a,c)}function Cz(t,i,e){let n=an+e,r=i.data[n],o=t[n],a=Df(o,r.tView.ssrId),s=am(t,r,void 0,{dehydratedView:a});sm(o,s,0,Vc(r,a))}function jt(t,i,e,n){return PI(t,i,e,n),jt}function Qe(t,i,e){return OI(t,i,e),Qe}function K(t){let i=We(),e=Yt(),n=rf();Lu(n+1);let r=Zx(e,n);if(t.dirty&&Mk(i)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=NI(i,n);t.reset(o,lT),t.notifyOnChanges()}return!0}return!1}function X(){return Qx(We(),rf())}function ng(t,i,e,n,r){return BI(i,PI(t,e,n,r)),ng}function ig(t,i,e,n){return BI(t,OI(i,e,n)),ig}function rg(t=1){Lu(rf()+t)}function pn(t){let i=Fk();return Pu(i,an+t)}function ff(t,i){return t<<17|i<<2}function yl(t){return t>>17&32767}function wz(t){return(t&2)==2}function Ez(t,i){return t&131071|i<<17}function sx(t){return t|2}function Hc(t){return(t&131068)>>2}function fy(t,i){return t&-131069|i<<2}function Dz(t){return(t&1)===1}function lx(t){return t|1}function Sz(t,i,e,n,r,o){let a=o?i.classBindings:i.styleBindings,s=yl(a),l=Hc(a);t[n]=e;let c=!1,d;if(Array.isArray(e)){let h=e;d=h[1],(d===null||Dc(h,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let b=yl(t[s+1]);t[n+1]=ff(b,s),b!==0&&(t[b+1]=fy(t[b+1],n)),t[s+1]=Ez(t[s+1],n)}else t[n+1]=ff(s,0),s!==0&&(t[s+1]=fy(t[s+1],n)),s=n;else t[n+1]=ff(l,0),s===0?s=n:t[l+1]=fy(t[l+1],n),l=n;c&&(t[n+1]=sx(t[n+1])),jM(t,d,n,!0),jM(t,d,n,!1),kz(i,d,t,n,o),a=ff(s,l),o?i.classBindings=a:i.styleBindings=a}function kz(t,i,e,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof i=="string"&&Dc(o,i)>=0&&(e[n+1]=lx(e[n+1]))}function jM(t,i,e,n){let r=t[e+1],o=i===null,a=n?yl(r):Hc(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];Mz(l,i)&&(s=!0,t[a+1]=n?lx(c):sx(c)),a=n?yl(c):Hc(c)}s&&(t[e+1]=n?sx(r):lx(r))}function Mz(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Dc(t,i)>=0:!1}var no={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tz(t){return t.substring(no.key,no.keyEnd)}function Iz(t){return Az(t),e2(t,t2(t,0,no.textEnd))}function e2(t,i){let e=no.textEnd;return e===i?-1:(i=no.keyEnd=Rz(t,no.key=i,e),t2(t,i,e))}function Az(t){no.key=0,no.keyEnd=0,no.value=0,no.valueEnd=0,no.textEnd=t.length}function t2(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function Rz(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return i}function In(t,i,e){return n2(t,i,e,!1),In}function ue(t,i){return n2(t,i,null,!0),ue}function Ut(t){Pz(Vz,Oz,t,!0)}function Oz(t,i){for(let e=Iz(i);e>=0;e=e2(i,e))Qp(t,Tz(i),!0)}function n2(t,i,e,n){let r=We(),o=Yt(),a=Nu(2);if(o.firstUpdatePass&&r2(o,t,a,n),i!==ri&&Pi(r,a,i)){let s=o.data[Br()];o2(o,s,r,r[Ht],t,r[a+1]=Hz(i,e),n,a)}}function Pz(t,i,e,n){let r=Yt(),o=Nu(2);r.firstUpdatePass&&r2(r,null,o,n);let a=We();if(e!==ri&&Pi(a,o,e)){let s=r.data[Br()];if(a2(s,n)&&!i2(r,o)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Hp(l,e||"")),rx(r,s,a,e,n)}else jz(r,s,a,a[Ht],a[o+1],a[o+1]=zz(t,i,e),n,o)}}function i2(t,i){return i>=t.expandoStartIndex}function r2(t,i,e,n){let r=t.data;if(r[e+1]===null){let o=r[Br()],a=i2(t,e);a2(o,n)&&i===null&&!a&&(i=!1),i=Fz(r,o,i,n),Sz(r,o,i,e,a,n)}}function Fz(t,i,e,n){let r=Vk(t),o=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=gy(null,t,i,e,n),e=Ku(e,i.attrs,n),o=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==r)if(e=gy(r,t,i,e,n),o===null){let l=Nz(t,i,n);l!==void 0&&Array.isArray(l)&&(l=gy(null,t,i,l[1],n),l=Ku(l,i.attrs,n),Lz(t,i,n,l))}else o=Bz(t,i,n)}return o!==void 0&&(n?i.residualClasses=o:i.residualStyles=o),e}function Nz(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Hc(n)!==0)return t[yl(n)]}function Lz(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[yl(r)]=n}function Bz(t,i,e){let n,r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o<r;o++){let a=t[o].hostAttrs;n=Ku(n,a,e)}return Ku(n,i.attrs,e)}function gy(t,i,e,n,r){let o=null,a=e.directiveEnd,s=e.directiveStylingLast;for(s===-1?s=e.directiveStart:s++;s<a&&(o=i[s],n=Ku(n,o.hostAttrs,r),o!==t);)s++;return t!==null&&(e.directiveStylingLast=s),n}function Ku(t,i,e){let n=e?1:2,r=-1;if(i!==null)for(let o=0;o<i.length;o++){let a=i[o];typeof a=="number"?r=a:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Qp(t,a,e?!0:i[++o]))}return t===void 0?null:t}function zz(t,i,e){if(e==null||e==="")return ci;let n=[],r=Fi(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(r instanceof Set)for(let o of r)t(n,o,!0);else if(typeof r=="object")for(let o in r)Object.hasOwn(r,o)&&t(n,o,r[o]);else typeof r=="string"&&i(n,r);return n}function Vz(t,i,e){let n=String(i);n!==""&&!n.includes(" ")&&Qp(t,n,e)}function jz(t,i,e,n,r,o,a,s){r===ri&&(r=ci);let l=0,c=0,d=0<r.length?r[0]:null,h=0<o.length?o[0]:null;for(;d!==null||h!==null;){let b=l<r.length?r[l+1]:void 0,f=c<o.length?o[c+1]:void 0,_=null,y;d===h?(l+=2,c+=2,b!==f&&(_=h,y=f)):h===null||d!==null&&d<h?(l+=2,_=d):(c+=2,_=h,y=f),_!==null&&o2(t,i,e,n,_,y,a,s),d=l<r.length?r[l]:null,h=c<o.length?o[c]:null}}function o2(t,i,e,n,r,o,a,s){if(!(i.type&3))return;let l=t.data,c=l[s+1],d=Dz(c)?HM(l,i,e,r,Hc(c),a):void 0;if(!Lf(d)){Lf(o)||wz(c)&&(o=HM(l,null,e,r,s,a));let h=Nb(Br(),e);H6(n,a,h,r,o)}}function HM(t,i,e,n,r,o){let a=i===null,s;for(;r>0;){let l=t[r],c=Array.isArray(l),d=c?l[1]:l,h=d===null,b=e[r+1];b===ri&&(b=h?ci:void 0);let f=h?Zp(b,n):d===n?b:void 0;if(c&&!Lf(f)&&(f=Zp(l,n)),Lf(f)&&(s=f,a))return s;let _=t[r+1];r=a?yl(_):Hc(_)}if(i!==null){let l=o?i.residualClasses:i.residualStyles;l!=null&&(s=Zp(l,n))}return s}function Lf(t){return t!==void 0}function Hz(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Mu(Fi(t)))),t}function a2(t,i){return(t.flags&(i?8:16))!==0}function v(t,i=""){let e=We(),n=Yt(),r=t+an,o=n.firstCreatePass?Wc(n,r,1,i,null):n.data[r],a=$z(n,e,o,i);e[r]=a,Bu()&&Rx(n,e,a,o),fa(o,!1)}var $z=(t,i,e,n)=>(Rc(!0),kT(i[Ht],n));function s2(t,i,e,n=""){return Pi(t,Lo(),e)?i+Or(e)+n:ri}function l2(t,i,e,n,r,o=""){let a=Yb(),s=Ux(t,a,e,r);return Nu(2),s?i+Or(e)+n+Or(r)+o:ri}function Uz(t,i,e,n,r,o,a,s=""){let l=Yb(),c=EI(t,l,e,r,a);return Nu(3),c?i+Or(e)+n+Or(r)+o+Or(a)+s:ri}function M(t){return oe("",t),M}function oe(t,i,e){let n=We(),r=s2(n,t,i,e);return r!==ri&&iC(n,Br(),r),oe}function Cl(t,i,e,n,r){let o=We(),a=l2(o,t,i,e,n,r);return a!==ri&&iC(o,Br(),a),Cl}function dm(t,i,e,n,r,o,a){let s=We(),l=Uz(s,t,i,e,n,r,o,a);return l!==ri&&iC(s,Br(),l),dm}function iC(t,i,e){let n=Nb(i,t);J5(t[Ht],n,e)}function Li(t,i,e){df(i)&&(i=i());let n=We(),r=Lo();if(Pi(n,r,i)){let o=Yt(),a=us();KT(a,n,t,i,n[Ht],e)}return Li}function nr(t,i){let e=df(t);return e&&t.set(i),e}function Bi(t,i){let e=We(),n=Yt(),r=Nn();return JI(n,e,e[Ht],r,t,i),Bi}function Ve(t){return Pi(We(),Lo(),t)?Or(t):ri}function ui(t,i,e=""){return s2(We(),t,i,e)}function rC(t,i,e,n,r=""){return l2(We(),t,i,e,n,r)}function $M(t,i,e){let n=Yt();n.firstCreatePass&&c2(i,n.data,n.blueprint,eo(t),e)}function c2(t,i,e,n,r){if(t=Yn(t),Array.isArray(t))for(let o=0;o<t.length;o++)c2(t[o],i,e,n,r);else{let o=Yt(),a=We(),s=Nn(),l=il(t)?t:Yn(t.provide),c=Ib(t),d=s.providerIndexes&1048575,h=s.directiveStart,b=s.providerIndexes>>20;if(il(t)||!t.multi){let f=new _l(c,r,Z,null),_=vy(l,i,r?d:d+b,h);_===-1?(xy(Ef(s,a),o,l),_y(o,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(f),a.push(f)):(e[_]=f,a[_]=f)}else{let f=vy(l,i,d+b,h),_=vy(l,i,d,d+b),y=f>=0&&e[f],C=_>=0&&e[_];if(r&&!C||!r&&!y){xy(Ef(s,a),o,l);let D=qz(r?Gz:Wz,e.length,r,n,c,t);!r&&C&&(e[_].providerFactory=D),_y(o,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else{let D=d2(e[r?_:f],c,!r&&n);_y(o,t,f>-1?f:_,D)}!r&&n&&C&&e[_].componentProviders++}}}function _y(t,i,e,n){let r=il(i),o=Ek(i);if(r||o){let l=(o?Yn(i.useClass):i).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let d=c.indexOf(e);d===-1?c.push(e,[n,l]):c[d+1].push(n,l)}else c.push(e,l)}}}function d2(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function vy(t,i,e,n){for(let r=e;r<n;r++)if(i[r]===t)return r;return-1}function Wz(t,i,e,n,r){return cx(this.multi,[])}function Gz(t,i,e,n,r){let o=this.multi,a;if(this.providerFactory){let s=this.providerFactory.componentProviders,l=Gu(n,n[Ke],this.providerFactory.index,r);a=l.slice(0,s),cx(o,a);for(let c=s;c<l.length;c++)a.push(l[c])}else a=[],cx(o,a);return a}function cx(t,i){for(let e=0;e<t.length;e++){let n=t[e];i.push(n())}return i}function qz(t,i,e,n,r,o){let a=new _l(t,e,Z,null);return a.multi=[],a.index=i,a.componentProviders=0,d2(a,r,n&&!e),a}function He(t,i){return e=>{e.providersResolver=(n,r)=>$M(n,r?r(t):t,!1),i&&(e.viewProvidersResolver=(n,r)=>$M(n,r?r(i):i,!0))}}function Bn(t,i){let e=hl()+t,n=We();return n[e]===ri?Xf(n,e,i()):z8(n,e)}function tn(t,i,e){return u2(We(),hl(),t,i,e)}function um(t,i,e,n,r){return m2(We(),hl(),t,i,e,n,r)}function oC(t,i){let e=t[i];return e===ri?void 0:e}function u2(t,i,e,n,r,o){let a=i+e;return Pi(t,a,r)?Xf(t,a+1,o?n.call(o,r):n(r)):oC(t,a+1)}function Qz(t,i,e,n,r,o,a){let s=i+e;return Ux(t,s,r,o)?Xf(t,s+2,a?n.call(a,r,o):n(r,o)):oC(t,s+2)}function m2(t,i,e,n,r,o,a,s){let l=i+e;return EI(t,l,r,o,a)?Xf(t,l+3,s?n.call(s,r,o,a):n(r,o,a)):oC(t,l+3)}function fr(t,i){let e=Yt(),n,r=t+an;e.firstCreatePass?(n=Zz(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let o=n.factory||(n.factory=rs(n.type,!0)),a,s=Ri(Z);try{let l=wf(!1),c=o();return wf(l),Lb(e,We(),r,c),c}finally{Ri(s)}}function Zz(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function og(t,i,e){let n=t+an,r=We(),o=Pu(r,n);return sC(r,n)?u2(r,hl(),i,o.transform,e,o):o.transform(e)}function Vo(t,i,e,n){let r=t+an,o=We(),a=Pu(o,r);return sC(o,r)?Qz(o,hl(),i,a.transform,e,n,a):a.transform(e,n)}function aC(t,i,e,n,r){let o=t+an,a=We(),s=Pu(a,o);return sC(a,o)?m2(a,hl(),i,s.transform,e,n,r,s):s.transform(e,n,r)}function sC(t,i){return t[Ke].data[i].pure}function Da(t,i){return Yf(t,i)}var h2=(()=>{class t{applicationErrorHandler=g(Xi);appRef=g(Ni);taskService=g(_a);ngZone=g(De);zonelessEnabled=g(zu);tracing=g(oo,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ye;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Su):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(ay,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?Qk:ny;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Su+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function lC(){return er("NgZoneless"),Kr([...cC(),[]])}function cC(){return[{provide:Ao,useExisting:h2},{provide:De,useClass:ku},{provide:zu,useValue:!0}]}var dC=(()=>{class t{compileModuleSync(e){return new Of(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function Yz(){return typeof $localize<"u"&&$localize.locale||cm}var Kc=new z("",{factory:()=>g(Kc,{optional:!0,skipSelf:!0})||Yz()});var ag=class{destroyed=!1;listeners=null;errorHandler=g(bi,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=g(Jn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(i){if(this.destroyed)throw new ee(953,!1);return(this.listeners??=[]).push(i),{unsubscribe:()=>{let e=this.listeners?this.listeners.indexOf(i):-1;e>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[e]=null):this.listeners.splice(e,1))}}}emit(i){if(this.destroyed){console.warn(Rr(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let e=nt(null);try{for(let n of this.listeners)try{n!==null&&n(i)}catch(r){this.errorHandler?.handleError(r)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&Kz(this.listeners)),nt(e),this.isEmitting=!1}}};function Kz(t){let i=t.length-1;for(;i>-1;)t[i]===null&&t.splice(i,1),i--}function Wt(t,i){return uu(t,i?.equal)}function Rt(t){return kS(t)}var Xz=t=>t;function uC(t,i){if(typeof t=="function"){let e=Uv(t,Xz,i?.equal);return p2(e,i?.debugName)}else{let e=Uv(t.source,t.computation,t.equal);return p2(e,t.debugName)}}function p2(t,i){let e=t[Pn],n=t;return n.set=r=>DS(e,r),n.update=r=>SS(e,r),n.asReadonly=sf.bind(t),n}var C2=Symbol("InputSignalNode#UNSET"),uV=Xe(G({},mu),{transformFn:void 0,applyValueToInputSignal(t,i){qs(t,i)}});function w2(t,i){let e=Object.create(uV);e.value=t,e.transformFn=i?.transform;function n(){if(Qa(e),e.value===C2){let r=null;throw new ee(-950,r)}return e.value}return n[Pn]=e,n}var ei=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Ju(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},E2=(()=>{let t=new z("");return t.__NG_ELEMENT_ID__=i=>{let e=Nn();if(e===null)throw new ee(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ee(-204,!1)},t})();function wC(t){return mV(t)?t.default:t}function mV(t){return t&&typeof t=="object"&&"default"in t}function hm(t){return new ag}function f2(t,i){return w2(t,i)}function hV(t){return w2(C2,t)}var Dt=(f2.required=hV,f2);function g2(t,i){return Yx(i)}function pV(t,i){return Kx(i)}var pm=(g2.required=pV,g2);function _2(t,i){return Yx(i)}function fV(t,i){return Kx(i)}var D2=(_2.required=fV,_2);var gV=1e4;var M0e=gV-1e3;var hC=class{supports(i){return $x(i)}create(i){return new pC(i)}},_V=(t,i)=>i,pC=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||_V}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){let a=!n||e&&e.currentIndex<v2(n,r,o)?e:n,s=v2(a,r,o),l=a.currentIndex;if(a===n)r--,n=n._nextRemoved;else if(e=e._next,a.previousIndex==null)r++;else{o||(o=[]);let c=s-r,d=l-r;if(c!=d){for(let b=0;b<c;b++){let f=b<o.length?o[b]:o[b]=0,_=f+b;d<=_&&_<c&&(o[b]=f+1)}let h=a.previousIndex;o[h]=d-c}}s!==l&&i(a,s,l)}}forEachPreviousItem(i){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e)}forEachMovedItem(i){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)i(e)}diff(i){if(i==null&&(i=[]),!$x(i))throw new ee(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let e=this._itHead,n=!1,r,o,a;if(Array.isArray(i)){this.length=i.length;for(let s=0;s<this.length;s++)o=i[s],a=this._trackByFn(s,o),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,o,a,s),n=!0):(n&&(e=this._verifyReinsertion(e,o,a,s)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,wI(i,s=>{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return i===null?o=this._itTail:(o=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new fC(e,n),o,r)),i}_verifyReinsertion(i,e,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let r=i._prevRemoved,o=i._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let r=e===null?this._itHead:e._next;return i._next=r,i._prev=e,r===null?this._itTail=i:r._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new lg),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new lg),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},fC=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},gC=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},lg=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new gC,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function v2(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n<e.length&&(r=e[n]),n+i+r}var _C=class{supports(i){return i instanceof Map||Kf(i)}create(){return new vC}},vC=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(i){let e;for(e=this._mapHead;e!==null;e=e._next)i(e)}forEachPreviousItem(i){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)i(e)}forEachChangedItem(i){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e)}diff(i){if(!i)i=new Map;else if(!(i instanceof Map||Kf(i)))throw new ee(900,!1);return this.check(i)?this:null}check(i){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;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(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let r=this._records.get(i);this._maybeAddToChanges(r,e);let o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}let n=new bC(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},bC=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function b2(){return new Xc([new hC])}var Xc=(()=>{class t{factories;static \u0275prov=Be({token:t,providedIn:"root",factory:b2});constructor(e){this.factories=e}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=g(t,{optional:!0,skipSelf:!0});return t.create(e,n||b2())}}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new ee(901,!1)}}return t})();function y2(){return new EC([new _C])}var EC=(()=>{class t{static \u0275prov=Be({token:t,providedIn:"root",factory:y2});factories;constructor(e){this.factories=e}static create(e,n){if(n){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=g(t,{optional:!0,skipSelf:!0});return t.create(e,n||y2())}}}find(e){let n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ee(901,!1)}}return t})(),Ge=(()=>{class t{static __NG_ELEMENT_ID__=vV}return t})();function vV(t){return bV(Nn(),We(),(t&16)===16)}function bV(t,i,e){if(No(t)&&!e){let n=Lr(t.index,i);return new gs(n,n)}else if(t.type&175){let n=i[yi];return new gs(n,i)}return null}var yC=new z(""),yV=new z("");function mm(t){return!t.moduleRef}function xV(t){let i=mm(t)?t.r3Injector:t.moduleRef.injector,e=i.get(De);return e.run(()=>{mm(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xi),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:n})}),mm(t)){let o=()=>i.destroy(),a=t.platformInjector.get(yC);a.add(o),i.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(yC);a.add(o),t.moduleRef.onDestroy(()=>{Uu(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return wV(n,e,()=>{let o=i.get(_a),a=o.add(),s=i.get(Jx);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Kc,cm);if(WI(l||cm),!i.get(yV,!0))return mm(t)?i.get(Ni):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(mm(t)){let d=i.get(Ni);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return CV?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{o.remove(a)})})})}var CV;function wV(t,i,e){try{let n=e();return wa(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var sg=null;function EV(t=[],i){return ze.create({name:i,providers:[{provide:Ru,useValue:"platform"},{provide:yC,useValue:new Set([()=>sg=null])},...t]})}function DV(t=[]){if(sg)return sg;let i=EV(t);return sg=i,$I(),SV(i),i}function SV(t){let i=t.get(lf,null);Xn(t,()=>{i?.forEach(e=>e())})}function S2(t){let{rootComponent:i,appProviders:e,platformProviders:n,platformRef:r}=t;Kt($t.BootstrapApplicationStart);try{let o=r?.injector??DV(n),a=[cC(),Yk,...e||[]],s=new Yu({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return xV({r3Injector:s.injector,platformInjector:o,rootComponent:i})}catch(o){return Promise.reject(o)}finally{Kt($t.BootstrapApplicationEnd)}}function te(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function gt(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var mC=Symbol("NOT_SET"),k2=new Set,kV=Xe(G({},mu),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:mC,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==mC&&!pc(this))return this.signal;try{for(let r of this.cleanup??k2)r()}finally{this.cleanup?.clear()}let i=[];t!==void 0&&i.push(t),i.push(this.registerCleanupFn);let e=la(this),n;try{n=this.userFn.apply(null,i)}finally{Za(this,e)}return(this.value===mC||!this.equal(this.value,n))&&(this.value=n,this.version++),this.signal}}),xC=class extends qu{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(i,e,n,r,o,a=null){super(i,[void 0,void 0,void 0,void 0],n,!1,o.get(Jn),a),this.scheduler=r;for(let s of Mx){let l=e[s];if(l===void 0)continue;let c=Object.create(kV);c.sequence=this,c.phase=s,c.userFn=l,c.dirty=!0,c.signal=()=>(Qa(c),c.value),c.signal[Pn]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??k2)e()}finally{Ya(i)}}};function cg(t,i){let e=i?.injector??g(ze),n=e.get(Ao),r=e.get($f),o=e.get(oo,null,{optional:!0});r.impl??=e.get(Tx);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(Oc,null,{optional:!0}),l=new xC(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,o?.snapshot(null));return r.impl.register(l),l}function dg(t,i){let e=ha(t),n=i.elementInjector||Sc();return new bl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function M2(t){let i=ha(t);if(!i)return null;let e=new bl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var T2=null;function jr(){return T2}function DC(t){T2??=t}var fm=class{},ka=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:()=>g(I2),providedIn:"platform"})}return t})(),SC=new z(""),I2=(()=>{class t extends ka{_location;_history;_doc=g(je);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jr().getBaseHref(this._doc)}onPopState(e){let n=jr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=jr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function ug(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function A2(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function so(t){return t&&t[0]!=="?"?`?${t}`:t}var lo=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:()=>g(hg),providedIn:"root"})}return t})(),mg=new z(""),hg=(()=>{class t extends lo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??g(je).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ug(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+so(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+so(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+so(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(ka),we(mg,8))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var jo=(()=>{class t{_subject=new ce;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=IV(A2(R2(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+so(n))}normalize(e){return t.stripTrailingSlash(TV(this._basePath,R2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+so(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+so(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=so;static joinWithSlash=ug;static stripTrailingSlash=A2;static \u0275fac=function(n){return new(n||t)(we(lo))};static \u0275prov=Be({token:t,factory:()=>MV(),providedIn:"root"})}return t})();function MV(){return new jo(we(lo))}function TV(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function R2(t){return t.replace(/\/index\.html$/,"")}function IV(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var FC=(()=>{class t extends lo{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=ug(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+so(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+so(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(ka),we(mg,8))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})();var NC=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(NC||{});var Ci=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Ci||{}),sn=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(sn||{}),ir=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(ir||{}),rr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function N2(t){return tr(t)[Ln.LocaleId]}function L2(t,i,e){let n=tr(t),r=[n[Ln.DayPeriodsFormat],n[Ln.DayPeriodsStandalone]],o=Hr(r,i);return Hr(o,e)}function B2(t,i,e){let n=tr(t),r=[n[Ln.DaysFormat],n[Ln.DaysStandalone]],o=Hr(r,i);return Hr(o,e)}function z2(t,i,e){let n=tr(t),r=[n[Ln.MonthsFormat],n[Ln.MonthsStandalone]],o=Hr(r,i);return Hr(o,e)}function V2(t,i){let n=tr(t)[Ln.Eras];return Hr(n,i)}function gm(t,i){let e=tr(t);return Hr(e[Ln.DateFormat],i)}function _m(t,i){let e=tr(t);return Hr(e[Ln.TimeFormat],i)}function vm(t,i){let n=tr(t)[Ln.DateTimeFormat];return Hr(n,i)}function Ho(t,i){let e=tr(t),n=e[Ln.NumberSymbols][i];if(typeof n>"u"){if(i===rr.CurrencyDecimal)return e[Ln.NumberSymbols][rr.Decimal];if(i===rr.CurrencyGroup)return e[Ln.NumberSymbols][rr.Group]}return n}function j2(t,i){return tr(t)[Ln.NumberFormats][i]}function H2(t){if(!t[Ln.ExtraData])throw new ee(2303,!1)}function $2(t){let i=tr(t);return H2(i),(i[Ln.ExtraData][2]||[]).map(n=>typeof n=="string"?kC(n):[kC(n[0]),kC(n[1])])}function U2(t,i,e){let n=tr(t);H2(n);let r=[n[Ln.ExtraData][0],n[Ln.ExtraData][1]],o=Hr(r,i)||[];return Hr(o,e)||[]}function Hr(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new ee(2304,!1)}function kC(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}var AV=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pg={},RV=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,OV=256;function W2(t,i,e,n){let r=$V(t);PV(i),i=Ma(e,i)||i;let a=[],s;for(;i;)if(s=RV.exec(i),s){a=a.concat(s.slice(1));let d=a.pop();if(!d)break;i=d}else{a.push(i);break}let l=r.getTimezoneOffset();n&&(l=q2(n,l),r=HV(r,n));let c="";return a.forEach(d=>{let h=VV(d);c+=h?h(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function PV(t){if(t.length>OV)throw new ee(2300,!1)}function bg(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Ma(t,i){let e=N2(t);if(pg[e]??={},pg[e][i])return pg[e][i];let n="";switch(i){case"shortDate":n=gm(t,ir.Short);break;case"mediumDate":n=gm(t,ir.Medium);break;case"longDate":n=gm(t,ir.Long);break;case"fullDate":n=gm(t,ir.Full);break;case"shortTime":n=_m(t,ir.Short);break;case"mediumTime":n=_m(t,ir.Medium);break;case"longTime":n=_m(t,ir.Long);break;case"fullTime":n=_m(t,ir.Full);break;case"short":let r=Ma(t,"shortTime"),o=Ma(t,"shortDate");n=fg(vm(t,ir.Short),[r,o]);break;case"medium":let a=Ma(t,"mediumTime"),s=Ma(t,"mediumDate");n=fg(vm(t,ir.Medium),[a,s]);break;case"long":let l=Ma(t,"longTime"),c=Ma(t,"longDate");n=fg(vm(t,ir.Long),[l,c]);break;case"full":let d=Ma(t,"fullTime"),h=Ma(t,"fullDate");n=fg(vm(t,ir.Full),[d,h]);break}return n&&(pg[e][i]=n),n}function fg(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return Object.hasOwn(i,n)?i[n]:e})),t}function co(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length<i;)a="0"+a;return n&&(a=a.slice(a.length-i)),o+a}function FV(t,i){return co(t,3).substring(0,i)}function Hn(t,i,e=0,n=!1,r=!1){return function(o,a){let s=NV(t,o);if((e>0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return FV(s,i);let l=Ho(a,rr.MinusSign);return co(s,i,l,n,r)}}function NV(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new ee(2301,!1)}}function _n(t,i,e=Ci.Format,n=!1){return function(r,o){return LV(r,o,t,i,e,n)}}function LV(t,i,e,n,r,o){switch(e){case 2:return z2(i,r,n)[t.getMonth()];case 1:return B2(i,r,n)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=$2(i),d=U2(i,r,n),h=c.findIndex(b=>{if(Array.isArray(b)){let[f,_]=b,y=a>=f.hours&&s>=f.minutes,C=a<_.hours||a===_.hours&&s<_.minutes;if(f.hours<_.hours){if(y&&C)return!0}else if(y||C)return!0}else if(b.hours===a&&b.minutes===s)return!0;return!1});if(h!==-1)return d[h]}return L2(i,r,n)[a<12?0:1];case 3:return V2(i,n)[t.getFullYear()<=0?0:1];default:let l=e;throw new ee(2302,!1)}}function gg(t){return function(i,e,n){let r=-1*n,o=Ho(e,rr.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+co(a,2,o)+co(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+co(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+co(a,2,o)+":"+co(Math.abs(r%60),2,o);case 3:return n===0?"Z":(r>=0?"+":"")+co(a,2,o)+":"+co(Math.abs(r%60),2,o);default:throw new ee(2310,!1)}}}var BV=0,vg=4;function zV(t){let i=bg(t,BV,1).getDay();return bg(t,0,1+(i<=vg?vg:vg+7)-i)}function G2(t){let i=t.getDay(),e=i===0?-3:vg-i;return bg(t.getFullYear(),t.getMonth(),t.getDate()+e)}function MC(t,i=!1){return function(e,n){let r;if(i){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=G2(e),a=zV(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return co(r,t,Ho(n,rr.MinusSign))}}function _g(t,i=!1){return function(e,n){let o=G2(e).getFullYear();return co(o,t,Ho(n,rr.MinusSign),i)}}var TC={};function VV(t){if(TC[t])return TC[t];let i;switch(t){case"G":case"GG":case"GGG":i=_n(3,sn.Abbreviated);break;case"GGGG":i=_n(3,sn.Wide);break;case"GGGGG":i=_n(3,sn.Narrow);break;case"y":i=Hn(0,1,0,!1,!0);break;case"yy":i=Hn(0,2,0,!0,!0);break;case"yyy":i=Hn(0,3,0,!1,!0);break;case"yyyy":i=Hn(0,4,0,!1,!0);break;case"Y":i=_g(1);break;case"YY":i=_g(2,!0);break;case"YYY":i=_g(3);break;case"YYYY":i=_g(4);break;case"M":case"L":i=Hn(1,1,1);break;case"MM":case"LL":i=Hn(1,2,1);break;case"MMM":i=_n(2,sn.Abbreviated);break;case"MMMM":i=_n(2,sn.Wide);break;case"MMMMM":i=_n(2,sn.Narrow);break;case"LLL":i=_n(2,sn.Abbreviated,Ci.Standalone);break;case"LLLL":i=_n(2,sn.Wide,Ci.Standalone);break;case"LLLLL":i=_n(2,sn.Narrow,Ci.Standalone);break;case"w":i=MC(1);break;case"ww":i=MC(2);break;case"W":i=MC(1,!0);break;case"d":i=Hn(2,1);break;case"dd":i=Hn(2,2);break;case"c":case"cc":i=Hn(7,1);break;case"ccc":i=_n(1,sn.Abbreviated,Ci.Standalone);break;case"cccc":i=_n(1,sn.Wide,Ci.Standalone);break;case"ccccc":i=_n(1,sn.Narrow,Ci.Standalone);break;case"cccccc":i=_n(1,sn.Short,Ci.Standalone);break;case"E":case"EE":case"EEE":i=_n(1,sn.Abbreviated);break;case"EEEE":i=_n(1,sn.Wide);break;case"EEEEE":i=_n(1,sn.Narrow);break;case"EEEEEE":i=_n(1,sn.Short);break;case"a":case"aa":case"aaa":i=_n(0,sn.Abbreviated);break;case"aaaa":i=_n(0,sn.Wide);break;case"aaaaa":i=_n(0,sn.Narrow);break;case"b":case"bb":case"bbb":i=_n(0,sn.Abbreviated,Ci.Standalone,!0);break;case"bbbb":i=_n(0,sn.Wide,Ci.Standalone,!0);break;case"bbbbb":i=_n(0,sn.Narrow,Ci.Standalone,!0);break;case"B":case"BB":case"BBB":i=_n(0,sn.Abbreviated,Ci.Format,!0);break;case"BBBB":i=_n(0,sn.Wide,Ci.Format,!0);break;case"BBBBB":i=_n(0,sn.Narrow,Ci.Format,!0);break;case"h":i=Hn(3,1,-12);break;case"hh":i=Hn(3,2,-12);break;case"H":i=Hn(3,1);break;case"HH":i=Hn(3,2);break;case"m":i=Hn(4,1);break;case"mm":i=Hn(4,2);break;case"s":i=Hn(5,1);break;case"ss":i=Hn(5,2);break;case"S":i=Hn(6,1);break;case"SS":i=Hn(6,2);break;case"SSS":i=Hn(6,3);break;case"Z":case"ZZ":case"ZZZ":i=gg(0);break;case"ZZZZZ":i=gg(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=gg(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=gg(2);break;default:return null}return TC[t]=i,i}function q2(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function jV(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function HV(t,i,e){let r=t.getTimezoneOffset(),o=q2(i,r);return jV(t,-1*(o-r))}function $V(t){if(O2(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(s=>+s);return bg(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(AV))return UV(n)}let i=new Date(t);if(!O2(i))throw new ee(2311,!1);return i}function UV(t){let i=new Date(0),e=0,n=0,r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(i,a,s,l,c),i}function O2(t){return t instanceof Date&&!isNaN(t.valueOf())}var WV=/^(\d+)?\.((\d+)(-(\d+))?)?$/,P2=22,yg=".",bm="0",GV=";",qV=",",IC="#";function QV(t,i,e,n,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=Ho(e,rr.Infinity);else{let c=KV(t);a&&(c=YV(c));let d=i.minInt,h=i.minFrac,b=i.maxFrac;if(o){let k=o.match(WV);if(k===null)throw new ee(2306,!1);let T=k[1],F=k[3],L=k[5];T!=null&&(d=AC(T)),F!=null&&(h=AC(F)),L!=null?b=AC(L):F!=null&&h>b&&(b=h);let B=100;if(d>B||h>B||b>B)throw new ee(2306,!1)}XV(c,h,b);let f=c.digits,_=c.integerLen,y=c.exponent,C=[];for(l=f.every(k=>!k);_<d;_++)f.unshift(0);for(;_<0;_++)f.unshift(0);_>0?C=f.splice(_,f.length):(C=f,f=[0]);let D=[];for(f.length>=i.lgSize&&D.unshift(f.splice(-i.lgSize,f.length).join(""));f.length>i.gSize;)D.unshift(f.splice(-i.gSize,f.length).join(""));f.length&&D.unshift(f.join("")),s=D.join(Ho(e,n)),C.length&&(s+=Ho(e,r)+C.join("")),y&&(s+=Ho(e,rr.Exponential)+"+"+y)}return t<0&&!l?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Q2(t,i,e){let n=j2(i,NC.Decimal),r=ZV(n,Ho(i,rr.MinusSign));return QV(t,r,i,rr.Group,rr.Decimal,e)}function ZV(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(GV),r=n[0],o=n[1],a=r.indexOf(yg)!==-1?r.split(yg):[r.substring(0,r.lastIndexOf(bm)+1),r.substring(r.lastIndexOf(bm)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(IC));for(let d=0;d<l.length;d++){let h=l.charAt(d);h===bm?e.minFrac=e.maxFrac=d+1:h===IC?e.maxFrac=d+1:e.posSuf+=h}let c=s.split(qV);if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let d=r.length-e.posPre.length-e.posSuf.length,h=o.indexOf(IC);e.negPre=o.substring(0,h).replace(/'/g,""),e.negSuf=o.slice(h+d).replace(/'/g,"")}else e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}function YV(t){if(t.digits[0]===0)return t;let i=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(i===0?t.digits.push(0,0):i===1&&t.digits.push(0),t.integerLen+=2),t}function KV(t){let i=Math.abs(t)+"",e=0,n,r,o,a,s;for((r=i.indexOf(yg))>-1&&(i=i.replace(yg,"")),(o=i.search(/e/i))>0?(r<0&&(r=o),r+=+i.slice(o+1),i=i.substring(0,o)):r<0&&(r=i.length),o=0;i.charAt(o)===bm;o++);if(o===(s=i.length))n=[0],r=1;else{for(s--;i.charAt(s)===bm;)s--;for(r-=o,n=[],a=0;o<=s;o++,a++)n[a]=Number(i.charAt(o))}return r>P2&&(n=n.splice(0,P2-1),e=r-1,r=1),{digits:n,exponent:e,integerLen:r}}function XV(t,i,e){if(i>e)throw new ee(2307,!1);let n=t.digits,r=n.length-t.integerLen,o=Math.min(Math.max(i,r),e),a=o+t.integerLen,s=n[a];if(a>0){n.splice(Math.max(t.integerLen,a));for(let h=a;h<n.length;h++)n[h]=0}else{r=Math.max(0,r),t.integerLen=1,n.length=Math.max(1,a=o+1),n[0]=0;for(let h=1;h<a;h++)n[h]=0}if(s>=5)if(a-1<0){for(let h=0;h>a;h--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;r<Math.max(0,o);r++)n.push(0);let l=o!==0,c=i+t.integerLen,d=n.reduceRight(function(h,b,f,_){return b=b+h,_[f]=b<10?b:b-10,l&&(_[f]===0&&f>=c?_.pop():l=!1),b>=10?1:0},0);d&&(n.unshift(d),t.integerLen++)}function AC(t){let i=parseInt(t);if(isNaN(i))throw new ee(2305,!1);return i}var RC=/\s+/,F2=[],ym=(()=>{class t{_ngEl;_renderer;initialClasses=F2;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(RC):F2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(RC):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(RC).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||t)(Z(pe),Z(dt))};static \u0275dir=Y({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var uo=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,r){this._ngEl=e,this._differs=n,this._renderer=r}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[r,o]=e.split("."),a=r.indexOf("-")===-1?void 0:ro.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${n}${o}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(Z(pe),Z(EC),Z(dt))};static \u0275dir=Y({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),bs=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(ze);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||t)(Z(Xt))};static \u0275dir=Y({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Et]})}return t})();function xg(t,i){return new ee(2100,!1)}var OC=class{createSubscription(i,e,n){return Rt(()=>i.subscribe({next:e,error:n}))}dispose(i){Rt(()=>i.unsubscribe())}},PC=class{createSubscription(i,e,n){return i.then(r=>e?.(r),r=>n?.(r)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},JV=new PC,ej=new OC,Cg=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g(Xi);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(wa(e))return JV;if(Jf(e))return ej;throw xg(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(Z(Ge,16))};static \u0275pipe=qc({name:"async",type:t,pure:!1})}return t})();var tj="mediumDate",Z2=new z(""),Y2=new z(""),Jc=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,o){if(e==null||e===""||e!==e)return null;try{let a=n??this.defaultOptions?.dateFormat??tj,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return W2(e,a,o||this.locale,s)}catch(a){throw xg(t,a.message)}}static \u0275fac=function(n){return new(n||t)(Z(Kc,16),Z(Z2,24),Z(Y2,24))};static \u0275pipe=qc({name:"date",type:t,pure:!0})}return t})();var LC=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,n,r){if(!nj(e))return null;r||=this._locale;try{let o=ij(e);return Q2(o,r,n)}catch(o){throw xg(t,o.message)}}static \u0275fac=function(n){return new(n||t)(Z(Kc,16))};static \u0275pipe=qc({name:"number",type:t,pure:!0})}return t})();function nj(t){return!(t==null||t===""||t!==t)}function ij(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new ee(2309,!1);return t}var BC=(()=>{class t{transform(e,n,r){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw xg(t,e);return e.slice(n,r)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=qc({name:"slice",type:t,pure:!1})}return t})();var zi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();function xm(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[r,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}var rj=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),zC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=we(rj),r},providedIn:"root"})}return t})();var jC="browser";function K2(t){return t===jC}var HC=(()=>{class t{static \u0275prov=Be({token:t,providedIn:"root",factory:()=>new VC(g(je),window)})}return t})(),VC=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Xe(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=aj(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch{console.warn(Rr(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Xe(G({},e),{left:r-a[0],top:o-a[1]}))}};function aj(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(i)||o.querySelector(`[name="${CSS.escape(i)}"]`);if(a)return a}r=n.nextNode()}}return null}var Cm=class{_doc;constructor(i){this._doc=i}manager},wg=(()=>{class t extends Cm{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r,o){return e.addEventListener(n,r,o),()=>this.removeEventListener(e,n,r,o)}removeEventListener(e,n,r,o){return e.removeEventListener(n,r,o)}static \u0275fac=function(n){return new(n||t)(we(je))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})(),Sg=new z(""),GC=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let r=e.filter(a=>!(a instanceof wg));this._plugins=r.slice().reverse();let o=e.find(a=>a instanceof wg);o&&this._plugins.push(o)}addEventListener(e,n,r,o){return this._findPluginFor(n).addEventListener(e,n,r,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new ee(-5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(Sg),we(De))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})(),$C="ng-app-id";function J2(t){for(let i of t)i.remove()}function eA(t,i){let e=i.createElement("style");return e.textContent=t,e}function sj(t,i,e,n){let r=t.head?.querySelectorAll(`style[${$C}="${i}"],link[${$C}="${i}"]`);if(!r||r.length===0)return!1;for(let o of r)o.removeAttribute($C),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]});return!0}function WC(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var qC=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,sj(e,n,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,eA);n?.forEach(r=>this.addUsage(r,this.external,WC))}removeStyles(e,n){for(let r of e)this.removeUsage(r,this.inline);n?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,n,r){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,n){let r=n.get(e);r&&(r.usage--,r.usage<=0&&(J2(r.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])J2(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,eA(n,this.doc)));for(let[n,{elements:r}]of this.external)r.push(this.addElement(e,WC(n,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let n of[...this.inline.values(),...this.external.values()]){let r=[];for(let o of n.elements)o.parentNode===e?o.remove():r.push(o);n.elements=r}}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(je),we(va),we(fl,8),we(pl))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})(),UC={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/Math/MathML"},QC=/%COMP%/g;var nA="%COMP%",lj=`_nghost-${nA}`,cj=`_ngcontent-${nA}`,dj=!0,uj=new z("",{factory:()=>dj});function mj(t){return cj.replace(QC,t)}function hj(t){return lj.replace(QC,t)}function iA(t,i){return i.map(e=>e.replace(QC,t))}var Dm=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,r,o,a,s,l=null,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.defaultRenderer=new wm(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,n);return r instanceof Dg?r.applyToHost(e):r instanceof Em&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,o=r.get(n.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.tracingService;switch(n.encapsulation){case io.Emulated:o=new Dg(l,c,n,this.appId,d,a,s,h);break;case io.ShadowDom:return new Eg(l,e,n,a,s,this.nonce,h,c);case io.ExperimentalIsolatedShadowDom:return new Eg(l,e,n,a,s,this.nonce,h);default:o=new Em(l,c,n,d,a,s,h);break}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(GC),we(xl),we(va),we(uj),we(je),we(De),we(fl),we(oo,8))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})(),wm=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=r}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(UC[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(tA(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(tA(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ee(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let o=UC[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=UC[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(ro.DashCase|ro.Important)?i.style.setProperty(e,n,r&ro.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&ro.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,r){if(typeof i=="string"&&(i=jr().getGlobalEventTarget(this.doc,i),!i))throw new ee(-5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(i,e,o)),this.eventManager.addEventListener(i,e,o,r)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function tA(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Eg=class extends wm{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,r,o,a,s,l){super(i,r,o,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let c=n.styles;c=iA(n.id,c);for(let h of c){let b=document.createElement("style");a&&b.setAttribute("nonce",a),b.textContent=h,this.shadowRoot.appendChild(b)}let d=n.getExternalStyles?.();if(d)for(let h of d){let b=WC(h,r);a&&b.setAttribute("nonce",a),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Em=class extends wm{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,o,a,s,l){super(i,o,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let c=n.styles;this.styles=l?iA(l,c):c,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&fs.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Dg=class extends Em{contentAttr;hostAttr;constructor(i,e,n,r,o,a,s,l){let c=r+"-"+n.id;super(i,e,n,o,a,s,l,c),this.contentAttr=mj(c),this.hostAttr=hj(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var kg=class t extends fm{supportsDOMEvents=!0;static makeCurrent(){DC(new t)}onAndCancel(i,e,n,r){return i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=pj();return e==null?null:fj(e)}resetBaseElement(){Sm=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return xm(document.cookie,i)}},Sm=null;function pj(){return Sm=Sm||document.head.querySelector("base"),Sm?Sm.getAttribute("href"):null}function fj(t){return new URL(t,document.baseURI).pathname}var rA=["alt","control","meta","shift"],gj={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_j={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},oA=(()=>{class t extends Cm{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r,o){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jr().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),rA.forEach(c=>{let d=n.indexOf(c);d>-1&&(n.splice(d,1),a+=c+".")}),a+=o,n.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let r=gj[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),rA.forEach(a=>{if(a!==r){let s=_j[a];s(e)&&(o+=a+".")}}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(je))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})();async function ZC(t,i,e){let n=G({rootComponent:t},vj(i,e));return S2(n)}function vj(t,i){return{platformRef:i?.platformRef,appProviders:[...wj,...t?.providers??[]],platformProviders:Cj}}function bj(){kg.makeCurrent()}function yj(){return new bi}function xj(){return mx(document),document}var Cj=[{provide:pl,useValue:jC},{provide:lf,useValue:bj,multi:!0},{provide:je,useFactory:xj}];var wj=[{provide:Ru,useValue:"root"},{provide:bi,useFactory:yj},{provide:Sg,useClass:wg,multi:!0},{provide:Sg,useClass:oA,multi:!0},Dm,{provide:xl,useClass:qC},{provide:qC,useExisting:xl},GC,{provide:An,useExisting:Dm},[]];var Dn=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(`
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=i.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Tg=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},Ig=class{encodeKey(i){return aA(i)}encodeValue(i){return aA(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function Ej(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var Dj=/%(\d[a-f0-9])/gi,Sj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function aA(t){return encodeURIComponent(t).replace(Dj,(i,e)=>Sj[e]??i)}function Mg(t){return`${t}`}var Ta=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Ig,i.fromString){if(i.fromObject)throw new ee(2805,!1);this.map=Ej(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Mg):[Mg(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Mg(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(Mg(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function kj(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function sA(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function lA(t){return typeof Blob<"u"&&t instanceof Blob}function cA(t){return typeof FormData<"u"&&t instanceof FormData}function Mj(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var km="Content-Type",Ag="Accept",mA="text/plain",hA="application/json",pA=`${hA}, ${mA}, */*`,ed=class t{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let o;if(kj(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o){if(this.reportProgress=!!o.reportProgress,this.reportUploadProgress=!!o.reportUploadProgress,this.reportDownloadProgress=!!o.reportDownloadProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new ee(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer!==void 0&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new Dn,this.context??=new Tg,!this.params)this.params=new Ta,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e,l="",c=e.indexOf("#");c!==-1&&(l=e.substring(c),s=e.substring(0,c));let d=s.indexOf("?"),h=d===-1?"?":d<s.length-1?"&":"";this.urlWithParams=s+h+a+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||sA(this.body)||lA(this.body)||cA(this.body)||Mj(this.body)?this.body:this.body instanceof Ta?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||cA(this.body)?null:lA(this.body)?this.body.type||null:sA(this.body)?null:typeof this.body=="string"?mA:this.body instanceof Ta?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?hA:null}clone(i={}){let e=i.method||this.method,n=i.url||this.url,r=i.responseType||this.responseType,o=i.keepalive??this.keepalive,a=i.priority||this.priority,s=i.cache||this.cache,l=i.mode||this.mode,c=i.redirect||this.redirect,d=i.credentials||this.credentials,h=i.referrer??this.referrer,b=i.integrity||this.integrity,f=i.referrerPolicy||this.referrerPolicy,_=i.transferCache??this.transferCache,y=i.timeout??this.timeout,C=i.body!==void 0?i.body:this.body,D=i.withCredentials??this.withCredentials,k=i.reportProgress??this.reportProgress,T=i.reportUploadProgress??this.reportUploadProgress,F=i.reportDownloadProgress??this.reportDownloadProgress,L=i.headers||this.headers,B=i.params||this.params,V=i.context??this.context;return i.setHeaders!==void 0&&(L=Object.keys(i.setHeaders).reduce((ne,Re)=>ne.set(Re,i.setHeaders[Re]),L)),i.setParams&&(B=Object.keys(i.setParams).reduce((ne,Re)=>ne.set(Re,i.setParams[Re]),B)),new t(e,n,C,{params:B,headers:L,context:V,reportProgress:k,reportUploadProgress:T,reportDownloadProgress:F,responseType:r,withCredentials:D,transferCache:_,keepalive:o,cache:s,priority:a,timeout:y,mode:l,redirect:c,credentials:d,referrer:h,integrity:b,referrerPolicy:f})}},Ia=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Ia||{}),td=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Dn,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},Mm=class t extends td{constructor(i={}){super(i)}type=Ia.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},nd=class t extends td{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Ia.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},$o=class extends td{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},fA=200,Tj=204;var Ij=/^\)\]\}',?\n/,Tve=1024*1024,gA=new z("",{factory:()=>null}),Rg=(()=>{class t{fetchImpl=g(KC,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=g(De);destroyRef=g(Jn);maxResponseSize=g(gA);handle(e){return new it(n=>{let r=new AbortController;this.doRequest(e,r.signal,n).then(XC,a=>n.error(new $o({error:a})));let o;return e.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{r.signal.aborted||r.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{o!==void 0&&clearTimeout(o),r.abort()}})}async doRequest(e,n,r){let o=this.createRequestInit(e),a;try{let C=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,G({signal:n},o)));Aj(C),r.next({type:Ia.Sent}),a=await C}catch(C){r.error(new $o({error:C,status:C.status??0,statusText:C.statusText,url:e.urlWithParams,headers:C.headers}));return}let s=new Dn(a.headers),l=a.statusText,c=a.url||e.urlWithParams,d=a.status,h=null,b=e.reportProgress||e.reportDownloadProgress;if(b&&r.next(new Mm({headers:s,status:d,statusText:l,url:c})),a.body){let C=a.headers.get("content-length"),D=C!==null?Number(C):NaN;this.maxResponseSize!==null&&Number.isFinite(D)&&D>this.maxResponseSize&&dA(this.maxResponseSize);let k=[],T=a.body.getReader(),F=0,L,B,V=typeof Zone<"u"&&Zone.current,ne=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await T.cancel(),ne=!0;break}let{done:P,value:re}=await T.read();if(P)break;if(k.push(re),F+=re.length,this.maxResponseSize!==null&&F>this.maxResponseSize&&(await T.cancel(),dA(this.maxResponseSize)),b){B=e.responseType==="text"?(B??"")+(L??=new TextDecoder).decode(re,{stream:!0}):void 0;let w=()=>r.next({type:Ia.DownloadProgress,total:Number.isFinite(D)?D:void 0,loaded:F,partialText:B});V?V.run(w):w()}}}),ne){r.complete();return}let Re=this.concatChunks(k,F);try{let P=a.headers.get(km)??"";h=this.parseBody(e,Re,P,d)}catch(P){r.error(new $o({error:P,headers:new Dn(a.headers),status:a.status,statusText:a.statusText,url:a.url||e.urlWithParams}));return}}d===0&&(d=h?fA:0);let f=d>=200&&d<300,_=a.redirected,y=a.type;f?(r.next(new nd({body:h,headers:s,status:d,statusText:l,url:c,redirected:_,responseType:y})),r.complete()):r.error(new $o({error:h,headers:s,status:d,statusText:l,url:c,redirected:_,responseType:y}))}parseBody(e,n,r,o){switch(e.responseType){case"json":let a=new TextDecoder().decode(n).replace(Ij,"");if(a==="")return null;try{return JSON.parse(a)}catch(s){if(o<200||o>=300)return a;throw s}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:r});case"arraybuffer":return n.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new ee(2824,!1);let n={},r;if(r=e.credentials,e.withCredentials&&(r="include"),e.headers.forEach((o,a)=>n[o]=a.join(",")),e.headers.has(Ag)||(n[Ag]=pA),!e.headers.has(km)){let o=e.detectContentTypeHeader();o!==null&&(n[km]=o)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:r,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,n){let r=new Uint8Array(n),o=0;for(let a of e)r.set(a,o),o+=a.length;return r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),KC=class{};function XC(){}function Aj(t){t.then(XC,XC)}function dA(t){throw new ee(-2825,!1)}function _A(t,i){return i(t)}function Rj(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function Oj(t,i,e){return(n,r)=>Xn(e,()=>i(n,o=>t(o,r)))}var vA=new z(""),e1=new z("",{factory:()=>[]}),bA=new z(""),t1=new z("",{factory:()=>!0});function Pj(){let t=null;return(i,e)=>{t===null&&(t=(g(vA,{optional:!0})??[]).reduceRight(Rj,_A));let n=g(Pc);if(g(t1)){let o=n.add();return t(i,e).pipe(is(o))}else return t(i,e)}}var Pg=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=we(Rg),r},providedIn:"root"})}return t})();var Og=(()=>{class t{backend;injector;chain=null;pendingTasks=g(Pc);contributeToStability=g(t1);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(e1),...this.injector.get(bA,[])]));this.chain=n.reduceRight((r,o)=>Oj(r,o,this.injector),_A)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(is(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(Pg),we(Zt))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),n1=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=we(Og),r},providedIn:"root"})}return t})();function YC(t,i){return G({body:i},t)}var oi=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof ed)o=e;else{let l;r.headers instanceof Dn?l=r.headers:l=new Dn(r.headers);let c;r.params&&(r.params instanceof Ta?c=r.params:c=new Ta({fromObject:r.params})),o=new ed(e,n,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,reportUploadProgress:r.reportUploadProgress,reportDownloadProgress:r.reportDownloadProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,referrerPolicy:r.referrerPolicy,integrity:r.integrity,timeout:r.timeout})}let a=Ne(o).pipe(ns(l=>this.handler.handle(l)));if(e instanceof ed||r.observe==="events")return a;let s=a.pipe(ct(l=>l instanceof nd));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Le(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ee(2806,!1);return l.body}));case"blob":return s.pipe(Le(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ee(2807,!1);return l.body}));case"text":return s.pipe(Le(l=>{if(l.body!==null&&typeof l.body!="string")throw new ee(2808,!1);return l.body}));default:return s.pipe(Le(l=>l.body))}case"response":return s;default:throw new ee(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Ta().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,YC(r,n))}post(e,n,r={}){return this.request("POST",e,YC(r,n))}put(e,n,r={}){return this.request("PUT",e,YC(r,n))}static \u0275fac=function(n){return new(n||t)(we(n1))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Fj=/^\)\]\}',?\n/;var JC=(()=>{class t{xhrFactory;tracingService=g(oo,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ee(-2800,!1);let n=this.xhrFactory;return Ne(null).pipe(rn(()=>new it(o=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((k,T)=>a.setRequestHeader(k,T.join(","))),e.headers.has(Ag)||a.setRequestHeader(Ag,pA),!e.headers.has(km)){let k=e.detectContentTypeHeader();k!==null&&a.setRequestHeader(km,k)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let k=e.responseType.toLowerCase();a.responseType=k!=="json"?k:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let k=a.statusText||"OK",T=new Dn(a.getAllResponseHeaders()),F=a.responseURL||e.url;return l=new Mm({headers:T,status:a.status,statusText:k,url:F}),l},d=this.maybePropagateTrace(()=>{let{headers:k,status:T,statusText:F,url:L}=c(),B=null;T!==Tj&&(B=typeof a.response>"u"?a.responseText:a.response),T===0&&(T=B?fA:0);let V=T>=200&&T<300;if(e.responseType==="json"&&typeof B=="string"){let ne=B;B=B.replace(Fj,"");try{B=B!==""?JSON.parse(B):null}catch(Re){B=ne,V&&(V=!1,B={error:Re,text:B})}}V?(o.next(new nd({body:B,headers:k,status:T,statusText:F,url:L||void 0})),o.complete()):o.error(new $o({error:B,headers:k,status:T,statusText:F,url:L||void 0}))}),h=this.maybePropagateTrace(k=>{let{url:T}=c(),F=new $o({error:k,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});o.error(F)}),b=h;e.timeout&&(b=this.maybePropagateTrace(k=>{let{url:T}=c(),F=new $o({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:T||void 0});o.error(F)}));let f=!1,_=this.maybePropagateTrace(k=>{f||(o.next(c()),f=!0);let T={type:Ia.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(T.total=k.total),e.responseType==="text"&&a.responseText&&(T.partialText=a.responseText),o.next(T)}),y=this.maybePropagateTrace(k=>{let T={type:Ia.UploadProgress,loaded:k.loaded};k.lengthComputable&&(T.total=k.total),o.next(T)});a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",b),a.addEventListener("abort",h);let C=e.reportProgress||e.reportUploadProgress,D=e.reportProgress||e.reportDownloadProgress;return D&&a.addEventListener("progress",_),C&&s!==null&&a.upload&&a.upload.addEventListener("progress",y),a.send(s),o.next({type:Ia.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",b),D&&a.removeEventListener("progress",_),C&&s!==null&&a.upload&&a.upload.removeEventListener("progress",y),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(zC))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nj=new z("",{factory:()=>!0}),Lj="XSRF-TOKEN",Bj=new z("",{factory:()=>Lj}),zj="X-XSRF-TOKEN",Vj=new z("",{factory:()=>zj}),jj=(()=>{class t{cookieName=g(Bj);doc=g(je);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xm(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),yA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=we(jj),r},providedIn:"root"})}return t})();function Hj(t,i){if(!g(Nj)||t.method==="GET"||t.method==="HEAD")return i(t);try{let r=g(ka).href,{origin:o}=new URL(r),{origin:a}=new URL(t.url,o);if(o!==a)return i(t)}catch{return i(t)}let e=g(yA).getToken(),n=g(Vj);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var Fg=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t[t.Xhr=7]="Xhr",t})(Fg||{});function xA(t,i){return{\u0275kind:t,\u0275providers:i}}function i1(...t){let i=[oi,Rg,Og,{provide:n1,useExisting:Og},{provide:Pg,useFactory:()=>g(Rg)},{provide:e1,useValue:Hj,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Kr(i)}var uA=new z("");function r1(){return xA(Fg.LegacyInterceptors,[{provide:uA,useFactory:Pj},{provide:e1,useExisting:uA,multi:!0}])}function o1(){return xA(Fg.Xhr,[JC,{provide:Pg,useExisting:JC}])}var Ng=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(je))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ys=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=we($j),r},providedIn:"root"})}return t})(),$j=(()=>{class t extends ys{_doc=g(je);sanitize(e,n){if(n==null)return null;switch(e){case At.NONE:return n;case At.HTML:return zr(n,"HTML")?Fi(n):jf(this._doc,String(n)).toString();case At.STYLE:return zr(n,"Style")?Fi(n):n;case At.SCRIPT:if(zr(n,"Script"))return Fi(n);throw new ee(5200,!1);case At.URL:return zr(n,"URL")?Fi(n):Uc(String(n));case At.RESOURCE_URL:if(zr(n,"ResourceURL"))return Fi(n);throw new ee(-5201,!1);default:throw new ee(5202,!1)}}bypassSecurityTrustHtml(e){return gx(e)}bypassSecurityTrustStyle(e){return _x(e)}bypassSecurityTrustScript(e){return vx(e)}bypassSecurityTrustUrl(e){return bx(e)}bypassSecurityTrustResourceUrl(e){return yx(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var bt="primary",Vm=Symbol("RouteTitle"),u1=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function El(t){return new u1(t)}function s1(t,i,e){for(let n=0;n<t.length;n++){let r=t[n],o=i[n];if(r[0]===":")e[r.substring(1)]=o;else if(r!==o.path)return!1}return!0}function AA(t,i,e){let n=e.path.split("/"),r=n.indexOf("**");if(r===-1){if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.length<t.length))return null;let l={},c=t.slice(0,n.length);return s1(n,c,l)?{consumed:c,posParams:l}:null}if(r!==n.lastIndexOf("**"))return null;let o=n.slice(0,r),a=n.slice(r+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!s1(o,t.slice(0,o.length),s)||!s1(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Hg(t){return new Promise((i,e)=>{t.pipe(da()).subscribe({next:n=>i(n),error:n=>e(n)})})}function Uj(t,i){if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!Uo(t[e],i[e]))return!1;return!0}function Uo(t,i){let e=t?m1(t):void 0,n=i?m1(i):void 0;if(!e||!n||e.length!=n.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!RA(t[r],i[r]))return!1;return!0}function m1(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function RA(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;let e=[...t].sort(),n=[...i].sort();return e.every((r,o)=>n[o]===r)}else return t===i}function Wj(t){return t.length>0?t[t.length-1]:null}function Sl(t){return Xs(t)?t:wa(t)?mn(Promise.resolve(t)):Ne(t)}function OA(t){return Xs(t)?Hg(t):Promise.resolve(t)}var Gj={exact:NA,subset:LA},PA={exact:qj,subset:Qj,ignored:()=>!0},FA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},h1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function wA(t,i,e){return Gj[e.paths](t.root,i.root,e.matrixParams)&&PA[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function qj(t,i){return Uo(t,i)}function NA(t,i,e){if(!wl(t.segments,i.segments)||!zg(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!NA(t.children[n],i.children[n],e))return!1;return!0}function Qj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>RA(t[e],i[e]))}function LA(t,i,e){return BA(t,i,i.segments,e)}function BA(t,i,e,n){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!wl(r,e)||i.hasChildren()||!zg(r,e,n))}else if(t.segments.length===e.length){if(!wl(t.segments,e)||!zg(t.segments,e,n))return!1;for(let r in i.children)if(!t.children[r]||!LA(t.children[r],i.children[r],n))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!wl(t.segments,r)||!zg(t.segments,r,n)||!t.children[bt]?!1:BA(t.children[bt],i,o,n)}}function zg(t,i,e){return i.every((n,r)=>PA[e](t[r].parameters,n.parameters))}var _r=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Gt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=El(this.queryParams),this._queryParamMap}toString(){return Kj.serialize(this)}},Gt=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vg(this)}},xs=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=El(this.parameters),this._parameterMap}toString(){return VA(this)}};function Zj(t,i){return wl(t,i)&&t.every((e,n)=>Uo(e.parameters,i[n].parameters))}function wl(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function Yj(t,i){let e=[];return Object.entries(t.children).forEach(([n,r])=>{n===bt&&(e=e.concat(i(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==bt&&(e=e.concat(i(r,n)))}),e}var ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:()=>new Ra})}return t})(),Ra=class{parse(i){let e=new f1(i);return new _r(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${Tm(i.root,!0)}`,n=eH(i.queryParams),r=typeof i.fragment=="string"?`#${Xj(i.fragment)}`:"";return`${e}${n}${r}`}},Kj=new Ra;function Vg(t){return t.segments.map(i=>VA(i)).join("/")}function Tm(t,i){if(!t.hasChildren())return Vg(t);if(i){let e=t.children[bt]?Tm(t.children[bt],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==bt&&n.push(`${r}:${Tm(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Yj(t,(n,r)=>r===bt?[Tm(t.children[bt],!1)]:[`${r}:${Tm(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[bt]!=null?`${Vg(t)}/${e[0]}`:`${Vg(t)}/(${e.join("//")})`}}function zA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lg(t){return zA(t).replace(/%3B/gi,";")}function Xj(t){return encodeURI(t)}function p1(t){return zA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jg(t){return decodeURIComponent(t)}function EA(t){return jg(t.replace(/\+/g,"%20"))}function VA(t){return`${p1(t.path)}${Jj(t.parameters)}`}function Jj(t){return Object.entries(t).map(([i,e])=>`;${p1(i)}=${p1(e)}`).join("")}function eH(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(r=>`${Lg(e)}=${Lg(r)}`).join("&"):`${Lg(e)}=${Lg(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var tH=/^[^\/()?;#]+/;function l1(t){let i=t.match(tH);return i?i[0]:""}var nH=/^[^\/()?;=#]+/;function iH(t){let i=t.match(nH);return i?i[0]:""}var rH=/^[^=?&#]+/;function oH(t){let i=t.match(rH);return i?i[0]:""}var aH=/^[^&#]+/;function sH(t){let i=t.match(aH);return i?i[0]:""}var f1=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ee(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(r[bt]=new Gt(e,n)),r}parseSegment(){let i=l1(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ee(4009,!1);return this.capture(i),new xs(jg(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=iH(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=l1(this.remaining);r&&(n=r,this.capture(n))}i[jg(e)]=jg(n)}parseQueryParam(i){let e=oH(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=sH(this.remaining);a&&(n=a,this.capture(n))}let r=EA(e),o=EA(n);if(Object.hasOwn(i,r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o)}else i[r]=o}parseParens(i,e){let n=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=l1(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new ee(4010,!1);let a;r.indexOf(":")>-1?(a=r.slice(0,r.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=bt);let s=this.parseChildren(e+1);n[a??bt]=Object.keys(s).length===1&&s[bt]?s[bt]:new Gt([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ee(4011,!1)}};function jA(t){return t.segments.length>0?new Gt([],{[bt]:t}):t}function HA(t){let i=Object.create(null);for(let[n,r]of Object.entries(t.children)){let o=HA(r);if(n===bt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))i[a]=s;else(o.segments.length>0||o.hasChildren())&&(i[n]=o)}let e=new Gt(t.segments,i);return lH(e)}function lH(t){if(t.numberOfChildren===1&&t.children[bt]){let i=t.children[bt];return new Gt(t.segments.concat(i.segments),i.children)}return t}function Cs(t){return t instanceof _r}function $A(t,i,e=null,n=null,r=new Ra){let o=UA(t);return WA(o,i,e,n,r)}function UA(t){let i;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c}let s=new Gt(o.url,a);return o===t&&(i=s),s}let n=e(t.root),r=jA(n);return i??r}function WA(t,i,e,n,r){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return c1(o,o,o,e,n,r);let a=cH(i);if(a.toRoot())return c1(o,o,new Gt([],{}),e,n,r);let s=dH(a,o,t),l=s.processChildren?Am(s.segmentGroup,s.index,a.commands):qA(s.segmentGroup,s.index,a.commands);return c1(o,s.segmentGroup,l,e,n,r)}function $g(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Om(t){return typeof t=="object"&&t!=null&&t.outlets}function DA(t,i,e){t||="\u0275";let n=new _r;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function c1(t,i,e,n,r,o){let a={};for(let[c,d]of Object.entries(n??{}))a[c]=Array.isArray(d)?d.map(h=>DA(c,h,o)):DA(c,d,o);let s;t===i?s=e:s=GA(t,i,e);let l=jA(HA(s));return new _r(l,a,r)}function GA(t,i,e){let n=Object.create(null);return Object.entries(t.children).forEach(([r,o])=>{o===i?n[r]=e:n[r]=GA(o,i,e)}),new Gt(t.segments,n)}var Ug=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&$g(n[0]))throw new ee(4003,!1);let r=n.find(Om);if(r&&r!==Wj(n))throw new ee(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function cH(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ug(!0,0,t);let i=0,e=!1,n=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new Ug(e,i,n)}var rd=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function dH(t,i,e){if(t.isAbsolute)return new rd(i,!0,0);if(!e)return new rd(i,!1,NaN);if(e.parent===null)return new rd(e,!0,0);let n=$g(t.commands[0])?0:1,r=e.segments.length-1+n;return uH(e,r,t.numberOfDoubleDots)}function uH(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ee(4005,!1);r=n.segments.length}return new rd(n,!1,r-o)}function mH(t){return Om(t[0])?t[0].outlets:{[bt]:t}}function qA(t,i,e){if(t??=new Gt([],{}),t.segments.length===0&&t.hasChildren())return Am(t,i,e);let n=hH(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new Gt(t.segments.slice(0,n.pathIndex),{});return o.children[bt]=new Gt(t.segments.slice(n.pathIndex),t.children),Am(o,0,r)}else return n.match&&r.length===0?new Gt(t.segments,{}):n.match&&!t.hasChildren()?g1(t,i,e):n.match?Am(t,0,r):g1(t,i,e)}function Am(t,i,e){if(e.length===0)return new Gt(t.segments,{});{let n=mH(e),r=Object.create(null);if(Object.keys(n).some(o=>o!==bt)&&t.children[bt]&&t.numberOfChildren===1&&t.children[bt].segments.length===0){let o=Am(t.children[bt],i,e);return new Gt(t.segments,o.children)}return Object.entries(n).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=qA(t.children[o],i,a))}),Object.entries(t.children).forEach(([o,a])=>{n[o]===void 0&&(r[o]=a)}),new Gt(t.segments,r)}}function hH(t,i,e){let n=0,r=i,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=e.length)return o;let a=t.segments[r],s=e[n];if(Om(s))break;let l=`${s}`,c=n<e.length-1?e[n+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!kA(l,c,a))return o;n+=2}else{if(!kA(l,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function g1(t,i,e){let n=t.segments.slice(0,i),r=0;for(;r<e.length;){let o=e[r];if(Om(o)){let l=pH(o.outlets);return new Gt(n,l)}if(r===0&&$g(e[0])){let l=t.segments[i];n.push(new xs(l.path,SA(e[0]))),r++;continue}let a=Om(o)?o.outlets[bt]:`${o}`,s=r<e.length-1?e[r+1]:null;a&&s&&$g(s)?(n.push(new xs(a,SA(s))),r+=2):(n.push(new xs(a,{})),r++)}return new Gt(n,{})}function pH(t){let i={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=g1(new Gt([],{}),0,n))}),i}function SA(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function kA(t,i,e){return t==e.path&&Uo(i,e.parameters)}var od="imperative",ti=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(ti||{}),vr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Wo=class extends vr{type=ti.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",r=null){super(i,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},or=class extends vr{urlAfterRedirects;type=ti.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wi=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(wi||{}),sd=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(sd||{}),$r=class extends vr{reason;code;type=ti.NavigationCancel;constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function QA(t){return t instanceof $r&&(t.code===wi.Redirect||t.code===wi.SupersededByNewNavigation)}var Go=class extends vr{reason;code;type=ti.NavigationSkipped;constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r}},Dl=class extends vr{error;target;type=ti.NavigationError;constructor(i,e,n,r){super(i,e),this.error=n,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pm=class extends vr{urlAfterRedirects;state;type=ti.RoutesRecognized;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wg=class extends vr{urlAfterRedirects;state;type=ti.GuardsCheckStart;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gg=class extends vr{urlAfterRedirects;state;shouldActivate;type=ti.GuardsCheckEnd;constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qg=class extends vr{urlAfterRedirects;state;type=ti.ResolveStart;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qg=class extends vr{urlAfterRedirects;state;type=ti.ResolveEnd;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zg=class{route;type=ti.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Yg=class{route;type=ti.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Kg=class{snapshot;type=ti.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xg=class{snapshot;type=ti.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jg=class{snapshot;type=ti.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},e0=class{snapshot;type=ti.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ld=class{routerEvent;position;anchor;scrollBehavior;type=ti.Scroll;constructor(i,e,n,r){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=r}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},cd=class{},Fm=class{},dd=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function fH(t){return!(t instanceof cd)&&!(t instanceof dd)&&!(t instanceof Fm)}var t0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new kl(this.rootInjector)}},kl=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new t0(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Zt))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),n0=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=_1(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=_1(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=v1(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return v1(i,this._root).map(e=>e.value)}};function _1(t,i){if(t===i.value)return i;for(let e of i.children){let n=_1(t,e);if(n)return n}return null}function v1(t,i){if(t===i.value)return[i];for(let e of i.children){let n=v1(t,e);if(n.length)return n.unshift(i),n}return[]}var gr=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function id(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var Nm=class extends n0{snapshot;constructor(i,e){super(i),this.snapshot=e,k1(this,i)}toString(){return this.snapshot.toString()}};function ZA(t,i){let e=gH(t,i),n=new qt([new xs("",{})]),r=new qt({}),o=new qt({}),a=new qt({}),s=new qt(""),l=new Vi(n,r,a,s,o,bt,t,e.root);return l.snapshot=e.root,new Nm(new gr(l,[]),e)}function gH(t,i){let e={},n={},r={},a=new ud([],e,r,"",n,bt,t,null,{},i);return new Lm("",new gr(a,[]))}var Vi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(i,e,n,r,o,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Le(c=>c[Vm]))??Ne(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}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.params.pipe(Le(i=>El(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Le(i=>El(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},_H="always";function S1(t,i,e){let n,{routeConfig:r}=t;return i!==null&&(e==="always"||r?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),r?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},r&&KA(r)&&(n.resolve[Vm]=r.title),n}var ud=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Vm]}constructor(i,e,n,r,o,a,s,l,c,d){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c,this._environmentInjector=d}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??=El(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=El(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},Lm=class extends n0{url;constructor(i,e){super(e),this.url=i,k1(this,e)}toString(){return YA(this._root)}};function k1(t,i){i.value._routerState=t,i.children.forEach(e=>k1(t,e))}function YA(t){let i=t.children.length>0?` { ${t.children.map(YA).join(", ")} } `:"";return`${t.value}${i}`}function d1(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Uo(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Uo(i.params,e.params)||t.paramsSubject.next(e.params),Uj(i.url,e.url)||t.urlSubject.next(e.url),Uo(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function b1(t,i){let e=Uo(t.params,i.params)&&Zj(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||b1(t.parent,i.parent))}function KA(t){return typeof t.title=="string"||t.title===null}var XA=new z(""),jm=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=bt;activateEvents=new le;deactivateEvents=new le;attachEvents=new le;detachEvents=new le;routerOutletData=Dt();parentContexts=g(kl);location=g(Xt);changeDetector=g(Ge);inputBinder=g(Hm,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ee(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ee(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ee(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ee(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new y1(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Et]})}return t})(),y1=class{route;childContexts;parent;outletData;constructor(i,e,n,r){this.route=i,this.childContexts=e,this.parent=n,this.outletData=r}get(i,e){return i===Vi?this.route:i===kl?this.childContexts:i===XA?this.outletData:this.parent.get(i,e)}},Hm=new z(""),JA=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,r=Zi([this.options.queryParams?n.queryParams:Ne({}),n.params,n.data]).pipe(rn(([o,a,s],l)=>(s=G(G(G({},o),a),s),l===0?Ne(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=M2(n.component);if(!a){this.unsubscribeFromRouteData(e);return}let s=this.outletSeenKeys.get(e);s||(s=new Set,this.outletSeenKeys.set(e,s));for(let c of Object.keys(o))s.add(c);let l=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:c}of a.inputs){let d=o[c];(d!==void 0||l==="alwaysUndefined"||s.has(c))&&e.activatedComponentRef.setInput(c,d)}});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(n){Ca()};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})(),M1=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,r){n&1&&U(0,"router-outlet")},dependencies:[jm],encapsulation:2,changeDetection:1})}return t})();function T1(t){let i=t.children&&t.children.map(T1),e=i?Xe(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==bt&&(e.component=M1),e}function vH(t,i,e){let n=new Set,r=Bm(t,i._root,e?e._root:void 0,n);return{newlyCreatedRoutes:n,state:new Nm(r,i)}}function Bm(t,i,e,n){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=i.value;let o=bH(t,i,e,n);return new gr(r,o)}else{if(t.shouldAttach(i.value)){let a=t.retrieve(i.value);if(a!==null){let s=a.route;return s.value._futureSnapshot=i.value,s.children=i.children.map(l=>Bm(t,l,void 0,n)),s}}let r=yH(i.value);n.add(r);let o=i.children.map(a=>Bm(t,a,void 0,n));return new gr(r,o)}}function bH(t,i,e,n){return i.children.map(r=>{for(let o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Bm(t,r,o,n);return Bm(t,r,void 0,n)})}function yH(t){return new Vi(new qt(t.url),new qt(t.params),new qt(t.queryParams),new qt(t.fragment),new qt(t.data),t.outlet,t.component,t)}var md=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},eR="ngNavigationCancelingError";function i0(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Cs(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=tR(!1,wi.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r}function tR(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[eR]=!0,e.cancellationCode=i,e}function xH(t){return nR(t)&&Cs(t.url)}function nR(t){return!!t&&t[eR]}var x1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,r,o){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),d1(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let r=id(e);i.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(r===o)if(r.component){let a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=id(i);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=id(i);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null),i.value._localInjector?.destroy()}activateChildRoutes(i,e,n){let r=id(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new e0(o.value.snapshot))}),i.children.length&&this.forwardEvent(new Xg(i.value.snapshot))}activateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(d1(r),r===o)if(r.component){let a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(r.component){let a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let 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),d1(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},r0=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},ad=class{component;route;constructor(i,e){this.component=i,this.route=e}};function CH(t,i,e){let n=t._root,r=i?i._root:null;return Im(n,r,e,[n.value])}function wH(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function pd(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!vb(t)?t:i.get(t):n}function Im(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=id(i);return t.children.forEach(a=>{EH(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Rm(s,e.getContext(a),r)),r}function EH(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=DH(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new r0(n)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Im(t,i,s?s.children:null,n,r):Im(t,i,e,n,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ad(s.outlet.component,a))}else a&&Rm(i,s,r),r.canActivateChecks.push(new r0(n)),o.component?Im(t,null,s?s.children:null,n,r):Im(t,null,e,n,r);return r}function DH(t,i,e){if(typeof e=="function")return Xn(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!wl(t.url,i.url);case"pathParamsOrQueryParamsChange":return!wl(t.url,i.url)||!Uo(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!b1(t,i)||!Uo(t.queryParams,i.queryParams);default:return!b1(t,i)}}function Rm(t,i,e){let n=id(t),r=t.value;Object.entries(n).forEach(([o,a])=>{r.component?i?Rm(a,i.children.getContext(o),e):Rm(a,null,e):Rm(a,i,e)}),r.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new ad(i.outlet.component,r)):e.canDeactivateChecks.push(new ad(null,r)):e.canDeactivateChecks.push(new ad(null,r))}function $m(t){return typeof t=="function"}function SH(t){return typeof t=="boolean"}function kH(t){return t&&$m(t.canLoad)}function MH(t){return t&&$m(t.canActivate)}function TH(t){return t&&$m(t.canActivateChild)}function IH(t){return t&&$m(t.canDeactivate)}function AH(t){return t&&$m(t.canMatch)}function iR(t){return t instanceof Js||t?.name==="EmptyError"}var Bg=Symbol("INITIAL_VALUE");function hd(){return rn(t=>Zi(t.map(i=>i.pipe(mt(1),It(Bg)))).pipe(Le(i=>{for(let e of i)if(e!==!0){if(e===Bg)return Bg;if(e===!1||RH(e))return e}return!0}),ct(i=>i!==Bg),mt(1)))}function RH(t){return Cs(t)||t instanceof md}function rR(t){return t.aborted?Ne(void 0).pipe(mt(1)):new it(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function oR(t){return Ue(rR(t))}function OH(t){return li(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return o.length===0&&r.length===0?Ne(Xe(G({},i),{guardsResult:!0})):PH(o,e,n).pipe(li(a=>a&&SH(a)?FH(e,r,t):Ne(a)),Le(a=>Xe(G({},i),{guardsResult:a})))})}function PH(t,i,e){return mn(t).pipe(li(n=>VH(n.component,n.route,e,i)),da(n=>n!==!0,!0))}function FH(t,i,e){return mn(i).pipe(ns(n=>es(LH(n.route.parent,e),NH(n.route,e),zH(t,n.path),BH(t,n.route))),da(n=>n!==!0,!0))}function NH(t,i){return t!==null&&i&&i(new Jg(t)),Ne(!0)}function LH(t,i){return t!==null&&i&&i(new Kg(t)),Ne(!0)}function BH(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Ne(!0);let n=e.map(r=>Yr(()=>{let o=i._environmentInjector,a=pd(r,o),s=MH(a)?a.canActivate(i,t):Xn(o,()=>a(i,t));return Sl(s).pipe(da())}));return Ne(n).pipe(hd())}function zH(t,i){let e=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>wH(o)).filter(o=>o!==null).map(o=>Yr(()=>{let a=o.guards.map(s=>{let l=o.node._environmentInjector,c=pd(s,l),d=TH(c)?c.canActivateChild(e,t):Xn(l,()=>c(e,t));return Sl(d).pipe(da())});return Ne(a).pipe(hd())}));return Ne(r).pipe(hd())}function VH(t,i,e,n){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return Ne(!0);let o=r.map(a=>{let s=i._environmentInjector,l=pd(a,s),c=IH(l)?l.canDeactivate(t,i,e,n):Xn(s,()=>l(t,i,e,n));return Sl(c).pipe(da())});return Ne(o).pipe(hd())}function jH(t,i,e,n,r){let o=i.canLoad;if(o===void 0||o.length===0)return Ne(!0);let a=o.map(s=>{let l=pd(s,t),c=kH(l)?l.canLoad(i,e):Xn(t,()=>l(i,e)),d=Sl(c);return r?d.pipe(oR(r)):d});return Ne(a).pipe(hd(),aR(n))}function aR(t){return Yv(Zn(i=>{if(typeof i!="boolean")throw i0(t,i)}),Le(i=>i===!0))}function HH(t,i,e,n,r,o){let a=i.canMatch;if(!a||a.length===0)return Ne(!0);let s=a.map(l=>{let c=pd(l,t),d=AH(c)?c.canMatch(i,e,r):Xn(t,()=>c(i,e,r));return Sl(d).pipe(oR(o))});return Ne(s).pipe(hd(),aR(n))}var Aa=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},zm=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function $H(t){throw new ee(4e3,!1)}function UH(t){throw tR(!1,wi.GuardRejected)}var C1=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}async lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return n;if(r.numberOfChildren>1||!r.children[bt])throw $H(`${i.redirectTo}`);r=r.children[bt]}}async applyRedirectCommands(i,e,n,r,o){let a=await WH(e,r,o);if(a instanceof _r)throw new zm(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new zm(s);return s}applyRedirectCreateUrlTree(i,e,n,r){let o=this.createSegmentGroup(i,e.root,n,r);return new _r(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);n[r]=e[s]}else n[r]=o}),n}createSegmentGroup(i,e,n,r){let o=this.createSegments(i,e.segments,n,r),a=Object.create(null);return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,r)}),new Gt(o,a)}createSegments(i,e,n,r){return e.map(o=>o.path[0]===":"?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){let r=n[e.path.substring(1)];if(!r)throw new ee(4001,!1);return r}findOrReturn(i,e){let n=0;for(let r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}};function WH(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Hg(Sl(Xn(e,()=>n(i))))}function GH(t,i){return t.providers&&!t._injector&&(t._injector=Gc(t.providers,i,`Route: ${t.path}`)),t._injector??i}function mo(t){return t.outlet||bt}function qH(t,i){let e=t.filter(n=>mo(n)===i);return e.push(...t.filter(n=>mo(n)!==i)),e}var w1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sR(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function QH(t,i,e,n,r,o,a){let s=lR(t,i,e);if(!s.matched)return Ne(s);let l=sR(o(s));return n=GH(i,n),HH(n,i,e,r,l,a).pipe(Le(c=>c===!0?s:G({},w1)))}function lR(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},w1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(i.matcher||AA)(e,t,i);if(!r)return G({},w1);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?G(G({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function MA(t,i,e,n,r){return e.length>0&&KH(t,e,n,r)?{segmentGroup:new Gt(i,YH(n,new Gt(e,t.children))),slicedSegments:[]}:e.length===0&&XH(t,e,n)?{segmentGroup:new Gt(t.segments,ZH(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Gt(t.segments,t.children),slicedSegments:e}}function ZH(t,i,e,n){let r={};for(let o of e)if(a0(t,i,o)&&!n[mo(o)]){let a=new Gt([],{});r[mo(o)]=a}return G(G({},n),r)}function YH(t,i){let e={};e[bt]=i;for(let n of t)if(n.path===""&&mo(n)!==bt){let r=new Gt([],{});e[mo(n)]=r}return e}function KH(t,i,e,n){return e.some(r=>!a0(t,i,r)||!(mo(r)!==bt)?!1:!(n!==void 0&&mo(r)===n))}function XH(t,i,e){return e.some(n=>a0(t,i,n))}function a0(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function JH(t,i,e){return i.length===0&&!t.children[e]}var E1=class{};async function e9(t,i,e,n,r,o,a,s){return new D1(t,i,e,n,r,a,o,s).recognize()}var t9=31,D1=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,r,o,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new C1(this.urlSerializer,this.urlTree)}noMatchError(i){return new ee(4002,`'${i.segmentGroup}'`)}async recognize(){let i=MA(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=await this.match(i),r=new gr(n,e),o=new Lm("",r),a=$A(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(i){let e=new ud([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),bt,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,i,bt,e),rootSnapshot:e}}catch(n){if(n instanceof zm)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Aa?this.noMatchError(n):n}}async processSegmentGroup(i,e,n,r,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,o);let a=await this.processSegment(i,e,n,n.segments,r,!0,o);return a instanceof gr?[a]:[]}async processChildren(i,e,n,r){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let a=[];for(let l of o){let c=n.children[l],d=qH(e,l),h=await this.processSegmentGroup(i,d,c,l,r);a.push(...h)}let s=cR(a);return n9(s),s}async processSegment(i,e,n,r,o,a,s){for(let l of e)try{return await this.processSegmentAgainstRoute(l._injector??i,e,l,n,r,o,a,s)}catch(c){if(c instanceof Aa||iR(c))continue;throw c}if(JH(n,r,o))return new E1;throw new Aa(n)}async processSegmentAgainstRoute(i,e,n,r,o,a,s,l){if(mo(n)!==a&&(a===bt||!a0(r,o,n)))throw new Aa(r);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,r,n,o,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,r,e,n,o,a,l);throw new Aa(r)}async expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:h,remainingSegments:b}=lR(e,r,o);if(!l)throw new Aa(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>t9&&(this.allowRedirects=!1));let f=this.createSnapshot(i,r,o,c,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let _=await this.applyRedirects.applyRedirectCommands(d,r.redirectTo,h,sR(f),i),y=await this.applyRedirects.lineralizeSegments(r,_);return this.processSegment(i,n,e,y.concat(b),a,!1,s)}createSnapshot(i,e,n,r,o){let a=new ud(n,r,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,r9(e),mo(e),e.component??e._loadedComponent??null,e,o9(e),i),s=S1(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}async matchSegmentAgainstRoute(i,e,n,r,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=T=>this.createSnapshot(i,n,T.consumedSegments,T.parameters,a),l=await Hg(QH(e,n,r,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new Aa(e);i=n._injector??i;let{routes:c}=await this.getChildConfig(i,n,r),d=n._loadedInjector??i,{parameters:h,consumedSegments:b,remainingSegments:f}=l,_=this.createSnapshot(i,n,b,h,a),{segmentGroup:y,slicedSegments:C}=MA(e,b,f,c,o);if(C.length===0&&y.hasChildren()){let T=await this.processChildren(d,c,y,_);return new gr(_,T)}if(c.length===0&&C.length===0)return new gr(_,[]);let D=mo(n)===o,k=await this.processSegment(d,c,y,C,D?bt:o,!0,_);return new gr(_,k instanceof gr?[k]:[])}async getChildConfig(i,e,n){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await Hg(jH(i,e,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(i,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw UH(e)}return{routes:[],injector:i}}};function n9(t){t.sort((i,e)=>i.value.outlet===bt?-1:e.value.outlet===bt?1:i.value.outlet.localeCompare(e.value.outlet))}function i9(t){let i=t.value.routeConfig;return i&&i.path===""}function cR(t){let i=[],e=new Set;for(let n of t){if(!i9(n)){i.push(n);continue}let r=i.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):i.push(n)}for(let n of e){let r=cR(n.children);i.push(new gr(n.value,r))}return i.filter(n=>!e.has(n))}function r9(t){return t.data||{}}function o9(t){return t.resolve||{}}function a9(t,i,e,n,r,o,a){return li(async s=>{let{state:l,tree:c}=await e9(t,i,e,n,s.extractedUrl,r,o,a);return Xe(G({},s),{targetSnapshot:l,urlAfterRedirects:c})})}function s9(t){return li(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Ne(i);let r=new Set(n.map(s=>s.route)),o=new Set;for(let s of r)if(!o.has(s))for(let l of dR(s))o.add(l);let a=0;return mn(o).pipe(ns(s=>r.has(s)?l9(s,e,t):(s.data=S1(s,s.parent,t).resolve,Ne(void 0))),Zn(()=>a++),Rp(1),li(s=>a===o.size?Ne(i):vn))})}function dR(t){let i=t.children.map(e=>dR(e)).flat();return[t,...i]}function l9(t,i,e){let n=t.routeConfig,r=t._resolve;return n?.title!==void 0&&!KA(n)&&(r[Vm]=n.title),Yr(()=>(t.data=S1(t,t.parent,e).resolve,c9(r,t,i).pipe(Le(o=>(t._resolvedData=o,t.data=G(G({},t.data),o),null)))))}function c9(t,i,e){let n=m1(t);if(n.length===0)return Ne({});let r={};return mn(n).pipe(li(o=>d9(t[o],i,e).pipe(da(),Zn(a=>{if(a instanceof md)throw i0(new Ra,a);r[o]=a}))),Rp(1),Le(()=>r),Yi(o=>iR(o)?vn:bu(o)))}function d9(t,i,e){let n=i._environmentInjector,r=pd(t,n),o=r.resolve?r.resolve(i,e):Xn(n,()=>r(i,e));return Sl(o)}function TA(t){return rn(i=>{let e=t(i);return e?mn(e).pipe(Le(()=>i)):Ne(i)})}var I1=(()=>{class t{buildTitle(e){let n,r=e.root;for(;r!==void 0;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===bt);return n}getResolvedTitleForRoute(e){return e.data[Vm]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:()=>g(uR)})}return t})(),uR=(()=>{class t extends I1{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(Ng))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Es=new z("",{factory:()=>({})}),Ml=new z(""),s0=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(dC);async loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=(async()=>{try{let o=await OA(Xn(e,()=>n.loadComponent())),a=await hR(wC(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let r=(async()=>{try{let o=await mR(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();async function mR(t,i,e,n){let r=await OA(Xn(e,()=>t.loadChildren())),o=await hR(wC(r)),a;o instanceof eg||Array.isArray(o)?a=o:a=await i.compileModuleAsync(o),n&&n(t);let s,l,c=!1,d;return Array.isArray(a)?(l=a,c=!0):(s=a.create(e).injector,d=a,l=s.get(Ml,[],{optional:!0,self:!0}).flat()),{routes:l.map(T1),injector:s,factory:d}}async function hR(t){return t}var l0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:()=>g(u9)})}return t})(),u9=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),A1=new z(""),R1=new z("");function pR(t,i,e){let n=t.get(R1),r=t.get(je);if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c}),s=r.startViewTransition(()=>(o(),m9(t)));s.updateCallbackDone.catch(c=>{}),s.ready.catch(c=>{}),s.finished.catch(c=>{});let{onViewTransitionCreated:l}=n;return l&&Xn(t,()=>l({transition:s,from:i,to:e})),a}function m9(t){return new Promise(i=>{Bt({read:()=>setTimeout(i)},{injector:t})})}var fR=new z(""),h9=()=>{},O1=new z(""),c0=(()=>{class t{currentNavigation=Q(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Q(null);events=new ce;transitionAbortWithErrorSubject=new ce;configLoader=g(s0);environmentInjector=g(Zt);destroyRef=g(Jn);urlSerializer=g(ws);rootContexts=g(kl);location=g(jo);inputBindingEnabled=g(Hm,{optional:!0})!==null;titleStrategy=g(I1);options=g(Es,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||_H;urlHandlingStrategy=g(l0);createViewTransition=g(A1,{optional:!0});navigationErrorHandler=g(O1,{optional:!0});activatedRouteInjectorFeature=g(fR,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Ne(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new Zg(r)),n=r=>this.events.next(new Yg(r));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;Rt(()=>{this.transitions?.next(Xe(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new qt(null),this.transitions.pipe(ct(n=>n!==null),rn(n=>{let r=!0,o=!1,a=new AbortController,s=()=>!o&&this.currentTransition?.id===n.id;return Ne(n).pipe(rn(l=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",wi.SupersededByNewNavigation),vn;this.currentTransition=n;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:c?Xe(G({},c),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:l.routesRecognizeHandler,beforeActivateHandler:l.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&h!=="reload")return this.events.next(new Go(l.id,this.urlSerializer.serialize(l.rawUrl),"",sd.IgnoredSameUrlNavigation)),l.resolve(!1),vn;if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Ne(l).pipe(rn(b=>(this.events.next(new Wo(b.id,this.urlSerializer.serialize(b.extractedUrl),b.source,b.restoredState)),b.id!==this.navigationId?vn:Promise.resolve(b))),a9(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Zn(b=>{n.targetSnapshot=b.targetSnapshot,n.urlAfterRedirects=b.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=b.urlAfterRedirects,f)),this.events.next(new Fm)}),rn(b=>mn(n.routesRecognizeHandler.deferredHandle??Ne(void 0)).pipe(Le(()=>b))),Zn(()=>{let b=new Pm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(b)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:b,extractedUrl:f,source:_,restoredState:y,extras:C}=l,D=new Wo(b,this.urlSerializer.serialize(f),_,y);this.events.next(D);let k=ZA(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Xe(G({},l),{targetSnapshot:k,urlAfterRedirects:f,extras:Xe(G({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(T=>(T.finalUrl=f,T)),Ne(n)}else return this.events.next(new Go(l.id,this.urlSerializer.serialize(l.extractedUrl),"",sd.IgnoredByUrlHandlingStrategy)),l.resolve(!1),vn}),Le(l=>{let c=new Wg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);return this.events.next(c),this.currentTransition=n=Xe(G({},l),{guards:CH(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),n}),OH(l=>this.events.next(l)),rn(l=>{if(n.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw i0(this.urlSerializer,l.guardsResult);let c=new Gg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);if(this.events.next(c),!s())return vn;if(!l.guardsResult)return this.cancelNavigationTransition(l,"",wi.GuardRejected),vn;if(l.guards.canActivateChecks.length===0)return Ne(l);let d=new qg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);if(this.events.next(d),!s())return vn;let h=!1;return Ne(l).pipe(s9(this.paramsInheritanceStrategy),Zn({next:()=>{h=!0;let b=new Qg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(b)},complete:()=>{h||this.cancelNavigationTransition(l,"",wi.NoDataFromResolver)}}))}),TA(l=>{let c=h=>{let b=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let f=h._environmentInjector;b.push(this.configLoader.loadComponent(f,h.routeConfig).then(_=>{h.component=_}))}for(let f of h.children)b.push(...c(f));return b},d=c(l.targetSnapshot.root);return d.length===0?Ne(l):mn(Promise.all(d).then(()=>l))}),rn(l=>{let{newlyCreatedRoutes:c,state:d}=vH(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=n=l=Xe(G({},l),{targetRouterState:d,newlyCreatedRoutes:c}),this.currentNavigation.update(h=>(h.targetRouterState=d,h)),Ne(l)}),this.activatedRouteInjectorFeature?.operator()??(l=>l),TA(()=>this.afterPreactivation()),rn(()=>{let{currentSnapshot:l,targetSnapshot:c}=n,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?mn(d).pipe(Le(()=>n)):Ne(n)}),mt(1),rn(l=>{r=!1,this.events.next(new cd);let c=n.beforeActivateHandler.deferredHandle;return c?mn(c.then(()=>l)):Ne(l)}),Zn(l=>{new x1(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),l.newlyCreatedRoutes?.clear(),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=h9,c)),this.lastSuccessfulNavigation.set(Rt(this.currentNavigation)),this.events.next(new or(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0))}),Ue(rR(a.signal).pipe(ct(()=>!o&&r),Zn(()=>{this.cancelNavigationTransition(n,a.signal.reason+"",wi.Aborted)}))),Zn({complete:()=>{o=!0}}),Ue(this.transitionAbortWithErrorSubject.pipe(Zn(l=>{throw l}))),is(()=>{a.abort(),o||this.cancelNavigationTransition(n,"",wi.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Yi(l=>{if(o=!0,IA(n),this.destroyed)return n.resolve(!1),vn;if(nR(l))this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),l.message,l.cancellationCode)),xH(l)?this.events.next(new dd(l.url,l.navigationBehaviorOptions)):n.resolve(!1);else{let c=new Dl(n.id,this.urlSerializer.serialize(n.extractedUrl),l,n.targetSnapshot??void 0);try{let d=Xn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof md){let{message:h,cancellationCode:b}=i0(this.urlSerializer,d);this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),h,b)),this.events.next(new dd(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(d){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(d)}}return vn}))}))}cancelNavigationTransition(e,n,r){IA(e);let o=new $r(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=Rt(this.currentNavigation),r=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==r?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function p9(t){return t!==od}function IA(t){if(t.newlyCreatedRoutes)for(let i of t.newlyCreatedRoutes)i._localInjector?.destroy()}var gR=new z("");var _R=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:()=>g(f9)})}return t})(),o0=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},f9=(()=>{class t extends o0{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{urlSerializer=g(ws);options=g(Es,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(jo);urlHandlingStrategy=g(l0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new _r;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=r??o;return a instanceof _r?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:r}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,r),this.routerState=e):this.rawUrlTree=r}routerState=ZA(null,g(Zt));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:()=>g(g9)})}return t})(),g9=(()=>{class t extends d0{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Wo?this.updateStateMemento():e instanceof Go?this.commitTransition(n):e instanceof Pm?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof cd?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof $r&&!QA(e)?this.restoreHistory(n):e instanceof Dl?this.restoreHistory(n,!0):e instanceof or&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:r,id:o}=n,{replaceUrl:a,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,c=G(G({},s),this.generateNgRouterState(o,l,n));this.location.replaceState(e,"",c)}else{let l=G(G({},s),this.generateNgRouterState(o,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,r){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(r)):G({navigationId:e},this.routerUrlState(r))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function u0(t,i){t.events.pipe(ct(e=>e instanceof or||e instanceof $r||e instanceof Dl||e instanceof Go),Le(e=>e instanceof or||e instanceof Go?0:(e instanceof $r?e.code===wi.Redirect||e.code===wi.SupersededByNewNavigation:!1)?2:1),ct(e=>e!==2),mt(1)).subscribe(()=>{i()})}var mi=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(tg);stateManager=g(d0);options=g(Es,{optional:!0})||{};pendingTasks=g(_a);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(c0);urlSerializer=g(ws);location=g(jo);urlHandlingStrategy=g(l0);injector=g(Zt);_events=new ce;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(_R);injectorCleanup=g(gR,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Ml,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Hm,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ye;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let r=this.navigationTransitions.currentTransition,o=Rt(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof $r&&n.code!==wi.Redirect&&n.code!==wi.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof or)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof dd){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,r.currentRawUrl),l=G({scroll:r.extras.scroll,browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||p9(r.source)},a);this.scheduleNavigation(s,od,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}fH(n)&&this._events.next(n)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),od,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,r,o)=>{this.navigateToSyncWithBrowser(e,r,n,o)})}navigateToSyncWithBrowser(e,n,r,o){let a=r?.navigationId?r:null,s=r?.\u0275routerUrl??e;if(r?.\u0275routerUrl&&(o=Xe(G({},o),{browserUrl:e})),r){let c=G({},r);delete c.navigationId,delete c.\u0275routerPageId,delete c.\u0275routerUrl,Object.keys(c).length!==0&&(o.state=c)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,o).catch(c=>{this.disposed||this.injector.get(Xi)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Rt(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(T1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=G(G({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let b=r?r.snapshot:this.routerState.snapshot.root;h=UA(b)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return WA(h,e,d,c??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let r=Cs(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,od,null,n)}navigate(e,n={skipLocationChange:!1}){return _9(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Rr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let r;if(n===!0?r=G({},FA):n===!1?r=G({},h1):r=G(G({},h1),n),Cs(e))return wA(this.currentUrlTree,e,r);let o=this.parseUrl(e);return wA(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((n,[r,o])=>(o!=null&&(n[r]=o),n),{})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((h,b)=>{s=h,l=b});let d=this.pendingTasks.add();return u0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function _9(t){for(let i=0;i<t.length;i++)if(t[i]==null)throw new ee(4008,!1)}var b9=(()=>{class t{router=g(mi);stateManager=g(d0);fragment=Q("");queryParams=Q({});path=Q("");serializer=g(ws);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof or&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:r}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(r),this.path.set(this.serializer.serialize(new _r(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Ds=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new ei("href"),{optional:!0});reactiveHref=uC(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Rt(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Rt(this._target)}_target=Q(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Rt(this._queryParams)}_queryParams=Q(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Rt(this._fragment)}_fragment=Q(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Rt(this._queryParamsHandling)}_queryParamsHandling=Q(void 0);set state(e){this._state.set(e)}get state(){return Rt(this._state)}_state=Q(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Rt(this._info)}_info=Q(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Rt(this._relativeTo)}_relativeTo=Q(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Rt(this._preserveFragment)}_preserveFragment=Q(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Rt(this._skipLocationChange)}_skipLocationChange=Q(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Rt(this._replaceUrl)}_replaceUrl=Q(!1);browserUrl=Dt(void 0);isAnchorElement;onChanges=new ce;applicationErrorHandler=g(Xi);options=g(Es,{optional:!0});reactiveRouterState=g(b9);constructor(e,n,r,o,a,s){this.router=e,this.route=n,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Q(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Cs(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,r,o,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l=this.browserUrl(),c=G({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},l!==void 0&&{browserUrl:l});return this.router.navigateByUrl(s,c)?.catch(d=>{this.applicationErrorHandler(d)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let r=this.renderer,o=this.el.nativeElement;n!==null?r.setAttribute(o,e,n):r.removeAttribute(o,e)}_urlTree=Wt(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r==="preserve"||r==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Cs(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return Rt(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(Z(mi),Z(Vi),Ju("tabindex"),Z(dt),Z(pe),Z(lo))};static \u0275dir=Y({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,r){n&1&&N("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&he("href",r.reactiveHref(),Ex)("target",r._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",te],skipLocationChange:[2,"skipLocationChange","skipLocationChange",te],replaceUrl:[2,"replaceUrl","replaceUrl",te],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Et]})}return t})();var Um=class{};var vR=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,r,o){this.router=e,this.injector=n,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ct(e=>e instanceof or),ns(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let r=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Gc(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return mn(r).pipe(Ja())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Ne(null);let r;n.loadChildren&&n.canLoad===void 0?r=mn(this.loader.loadChildren(e,n)):r=Ne(null);let o=r.pipe(li(a=>a===null?Ne(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return mn([o,a]).pipe(Ja())}else return o})}static \u0275fac=function(n){return new(n||t)(we(mi),we(Zt),we(Um),we(s0))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bR=new z(""),y9=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=od;restoredId=0;store={};isHydrating=g(hx,{optional:!0})??!1;urlSerializer=g(ws);zone=g(De);viewportScroller=g(HC);transitions=g(c0);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(Ni).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Wo?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof or?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Go&&e.code===sd.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof ld)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let r=Rt(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new ld(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,r))})})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Ca()};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})();function F1(t,...i){return Kr([{provide:Ml,multi:!0,useValue:t},{provide:Vi,useFactory:yR},{provide:Zc,multi:!0,useFactory:xR},i.map(e=>e.\u0275providers)])}function yR(){return g(mi).routerState.root}function Wm(t,i){return{\u0275kind:t,\u0275providers:i}}function xR(){let t=g(ze);return i=>{let e=t.get(Ni);if(i!==e.components[0])return;let n=t.get(mi),r=t.get(CR);t.get(N1)===1&&n.initialNavigation(),t.get(DR,null,{optional:!0})?.setUpPreloading(),t.get(bR,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var CR=new z("",{factory:()=>new ce}),N1=new z("",{factory:()=>1});function wR(){let t=[{provide:zf,useValue:!0},{provide:N1,useValue:0},Qc(()=>{let i=g(ze);return i.get(SC,Promise.resolve()).then(()=>new Promise(n=>{let r=i.get(mi),o=i.get(CR);u0(r,()=>{n(!0)}),i.get(c0).afterPreactivation=()=>(n(!0),o.closed?Ne(void 0):o),r.initialNavigation()}))})];return Wm(2,t)}function ER(){let t=[Qc(()=>{g(mi).setUpLocationChangeListener()}),{provide:N1,useValue:2}];return Wm(3,t)}var DR=new z("");function SR(t){return Wm(0,[{provide:DR,useExisting:vR},{provide:Um,useExisting:t}])}function kR(t={}){return Wm(8,[{provide:Hm,useFactory:()=>new JA(t)}])}function MR(t){er("NgRouterViewTransitions");let i=[{provide:A1,useValue:pR},{provide:R1,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Wm(9,i)}var TR=[jo,{provide:ws,useClass:Ra},mi,kl,{provide:Vi,useFactory:yR},s0],m0=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[TR,[],{provide:Ml,multi:!0,useValue:e},[],n?.errorHandler?{provide:O1,useValue:n.errorHandler}:[],{provide:Es,useValue:n||{}},n?.useHash?C9():w9(),x9(),n?.preloadingStrategy?SR(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?E9(n):[],n?.bindToComponentInputs?kR(typeof n.bindToComponentInputs=="object"?n.bindToComponentInputs:{}).\u0275providers:[],n?.enableViewTransitions?MR().\u0275providers:[],D9()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ml,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();function x9(){return{provide:bR,useFactory:()=>{let t=g(HC),i=g(Es);return i.scrollOffset&&t.setOffset(i.scrollOffset),new y9(i)}}}function C9(){return{provide:lo,useClass:FC}}function w9(){return{provide:lo,useClass:hg}}function E9(t){return[t.initialNavigation==="disabled"?ER().\u0275providers:[],t.initialNavigation==="enabledBlocking"?wR().\u0275providers:[]]}var P1=new z("");function D9(){return[{provide:P1,useFactory:xR},{provide:Zc,multi:!0,useExisting:P1}]}var yt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(yt||{}),Ur="*";function Gm(t,i){return{type:yt.Trigger,name:t,definitions:i,options:{}}}function qm(t,i=null){return{type:yt.Animate,styles:i,timings:t}}function AR(t,i=null){return{type:yt.Sequence,steps:t,options:i}}function ho(t){return{type:yt.Style,styles:t,offset:null}}function Ss(t,i,e){return{type:yt.State,name:t,styles:i,options:e}}function Qm(t,i,e=null){return{type:yt.Transition,expr:t,animation:i,options:e}}var qo=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Tl=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},fd="!";function RR(t){return new ee(3e3,!1)}function S9(){return new ee(3100,!1)}function k9(){return new ee(3101,!1)}function M9(t){return new ee(3001,!1)}function T9(t){return new ee(3003,!1)}function I9(t){return new ee(3004,!1)}function PR(t,i){return new ee(3005,!1)}function FR(){return new ee(3006,!1)}function NR(){return new ee(3007,!1)}function LR(t,i){return new ee(3008,!1)}function BR(t){return new ee(3002,!1)}function zR(t,i,e,n,r){return new ee(3010,!1)}function VR(){return new ee(3011,!1)}function jR(){return new ee(3012,!1)}function HR(){return new ee(3200,!1)}function $R(){return new ee(3202,!1)}function UR(){return new ee(3013,!1)}function WR(t){return new ee(3014,!1)}function GR(t){return new ee(3015,!1)}function qR(t){return new ee(3016,!1)}function QR(t,i){return new ee(3404,!1)}function A9(t){return new ee(3502,!1)}function ZR(t){return new ee(3503,!1)}function YR(){return new ee(3300,!1)}function KR(t){return new ee(3504,!1)}function XR(t){return new ee(3301,!1)}function JR(t,i){return new ee(3302,!1)}function eO(t){return new ee(3303,!1)}function tO(t,i){return new ee(3400,!1)}function nO(t){return new ee(3401,!1)}function iO(t){return new ee(3402,!1)}function rO(t,i){return new ee(3505,!1)}function Oa(t){switch(t.length){case 0:return new qo;case 1:return t[0];default:return new Tl(t)}}function V1(t,i,e=new Map,n=new Map){let r=[],o=[],a=-1,s=null;if(i.forEach(l=>{let c=l.get("offset"),d=c==a,h=d&&s||new Map;l.forEach((b,f)=>{let _=f,y=b;if(f!=="offset")switch(_=t.normalizePropertyName(_,r),y){case fd:y=e.get(f);break;case Ur:y=n.get(f);break;default:y=t.normalizeStyleValue(f,_,y,r);break}h.set(_,y)}),d||o.push(h),s=h,a=c}),r.length)throw A9(r);return o}function h0(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&L1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&L1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&L1(e,"destroy",t)));break}}function L1(t,i,e){let n=e.totalTime,r=!!e.disabled,o=p0(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o}function p0(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function ar(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function j1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var R9=typeof document>"u"?null:document.documentElement;function f0(t){let i=t.parentNode||t.host||null;return i===R9?null:i}function O9(t){return t.substring(1,6)=="ebkit"}var Il=null,OR=!1;function oO(t){Il||(Il=P9()||{},OR=Il.style?"WebkitAppearance"in Il.style:!1);let i=!0;return Il.style&&!O9(t)&&(i=t in Il.style,!i&&OR&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Il.style)),i}function P9(){return typeof document<"u"?document.body:null}function H1(t,i){for(;i;){if(i===t)return!0;i=f0(i)}return!1}function $1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var F9=1e3,U1="{{",N9="}}",W1="ng-enter",g0="ng-leave",Zm="ng-trigger",Ym=".ng-trigger",G1="ng-animating",_0=".ng-animating";function Qo(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:B1(parseFloat(i[1]),i[2])}function B1(t,i){return i==="s"?t*F9:t}function Km(t,i,e){return t.hasOwnProperty("duration")?t:B9(t,i,e)}var L9=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function B9(t,i,e){let n,r=0,o="";if(typeof t=="string"){let a=t.match(L9);if(a===null)return i.push(RR(t)),{duration:0,delay:0,easing:""};n=B1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(r=B1(parseFloat(s),a[4]));let l=a[5];l&&(o=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(S9()),a=!0),r<0&&(i.push(k9()),a=!0),a&&i.splice(s,0,RR(t))}return{duration:n,delay:r,easing:o}}function aO(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function po(t,i,e){i.forEach((n,r)=>{let o=v0(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n})}function ks(t,i){i.forEach((e,n)=>{let r=v0(n);t.style[r]=""})}function gd(t){return Array.isArray(t)?t.length==1?t[0]:AR(t):t}function sO(t,i,e){let n=i.params||{},r=q1(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(M9(o))})}var z1=new RegExp(`${U1}\\s*(.+?)\\s*${N9}`,"g");function q1(t){let i=[];if(typeof t=="string"){let e;for(;e=z1.exec(t);)i.push(e[1]);z1.lastIndex=0}return i}function _d(t,i,e){let n=`${t}`,r=n.replace(z1,(o,a)=>{let s=i[a];return s==null&&(e.push(T9(a)),s=""),s.toString()});return r==n?t:r}var z9=/-+([a-z0-9])/g;function v0(t){return t.replace(z9,(...i)=>i[1].toUpperCase())}function lO(t,i){return t===0||i===0}function cO(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;o<i.length;o++){let a=i[o];r.forEach(s=>a.set(s,b0(t,s)))}}return i}function sr(t,i,e){switch(i.type){case yt.Trigger:return t.visitTrigger(i,e);case yt.State:return t.visitState(i,e);case yt.Transition:return t.visitTransition(i,e);case yt.Sequence:return t.visitSequence(i,e);case yt.Group:return t.visitGroup(i,e);case yt.Animate:return t.visitAnimate(i,e);case yt.Keyframes:return t.visitKeyframes(i,e);case yt.Style:return t.visitStyle(i,e);case yt.Reference:return t.visitReference(i,e);case yt.AnimateChild:return t.visitAnimateChild(i,e);case yt.AnimateRef:return t.visitAnimateRef(i,e);case yt.Query:return t.visitQuery(i,e);case yt.Stagger:return t.visitStagger(i,e);default:throw I9(i.type)}}function b0(t,i){return window.getComputedStyle(t)[i]}var dw=(()=>{class t{validateStyleProperty(e){return oO(e)}containsElement(e,n){return H1(e,n)}getParentElement(e){return f0(e)}query(e,n,r){return $1(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],l){return new qo(r,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})(),Rl=class{static NOOP=new dw},Ol=class{};var V9=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"]),E0=class extends Ol{normalizePropertyName(i,e){return v0(i)}normalizeStyleValue(i,e,n,r){let o="",a=n.toString().trim();if(V9.has(e)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&r.push(PR(i,n))}return a+o}};var D0="*";function j9(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>H9(n,e,i)):e.push(t),e}function H9(t,i,e){if(t[0]==":"){let l=$9(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(GR(t)),i;let r=n[1],o=n[2],a=n[3];i.push(dO(r,a));let s=r==D0&&a==D0;o[0]=="<"&&!s&&i.push(dO(a,r))}function $9(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return i.push(qR(t)),"* => *"}}var y0=new Set(["true","1"]),x0=new Set(["false","0"]);function dO(t,i){let e=y0.has(t)||x0.has(t),n=y0.has(i)||x0.has(i);return(r,o)=>{let a=t==D0||t==r,s=i==D0||i==o;return!a&&e&&typeof r=="boolean"&&(a=r?y0.has(t):x0.has(t)),!s&&n&&typeof o=="boolean"&&(s=o?y0.has(i):x0.has(i)),a&&s}}var yO=":self",U9=new RegExp(`s*${yO}s*,?`,"g");function xO(t,i,e,n){return new J1(t).build(i,e,n)}var uO="",J1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let r=new ew(e);return this._resetContextStyleTimingState(r),sr(this,gd(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector=uO,i.collectedStyles=new Map,i.collectedStyles.set(uO,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0,o=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(FR()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==yt.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(s.type==yt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(NR())}),{type:yt.Trigger,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){let o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{q1(l).forEach(c=>{a.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(LR(i.name,[...o.values()]))}return{type:yt.State,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=sr(this,gd(i.animation),e),r=j9(i.expr,e.errors);return{type:yt.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Al(i.options)}}visitSequence(i,e){return{type:yt.Sequence,steps:i.steps.map(n=>sr(this,n,e)),options:Al(i.options)}}visitGroup(i,e){let n=e.currentTime,r=0,o=i.steps.map(a=>{e.currentTime=n;let s=sr(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:yt.Group,steps:o,options:Al(i.options)}}visitAnimate(i,e){let n=Q9(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:ho({});if(o.type==yt.Keyframes)r=this.visitKeyframes(o,e);else{let a=i.styles,s=!1;if(!a){s=!0;let c={};n.easing&&(c.easing=n.easing),a=ho(c)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,r=l}return e.currentAnimateTimings=null,{type:yt.Animate,timings:n,style:r,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of r)typeof s=="string"?s===Ur?n.push(s):e.errors.push(BR(s)):n.push(new Map(Object.entries(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(U1)>=0){o=!0;break}}}),{type:yt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),h=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(zR(l,d.startTime,d.endTime,o,r)),h=!1),o=d.startTime),h&&c.set(l,{startTime:o,endTime:r}),e.options&&sO(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:yt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(VR()),n;let r=1,o=0,a=[],s=!1,l=!1,c=0,d=i.steps.map(D=>{let k=this._makeStyleAst(D,e),T=k.offset!=null?k.offset:q9(k.styles),F=0;return T!=null&&(o++,F=k.offset=T),l=l||F<0||F>1,s=s||F<c,c=F,a.push(F),k});l&&e.errors.push(jR()),s&&e.errors.push(HR());let h=i.steps.length,b=0;o>0&&o<h?e.errors.push($R()):o==0&&(b=r/(h-1));let f=h-1,_=e.currentTime,y=e.currentAnimateTimings,C=y.duration;return d.forEach((D,k)=>{let T=b>0?k==f?1:b*k:a[k],F=T*C;e.currentTime=_+y.delay+F,y.duration=F,this._validateStyleAst(D,e),D.offset=T,n.styles.push(D)}),n}visitReference(i,e){return{type:yt.Reference,animation:sr(this,gd(i.animation),e),options:Al(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:yt.AnimateChild,options:Al(i.options)}}visitAnimateRef(i,e){return{type:yt.AnimateRef,animation:this.visitReference(i.animation,e),options:Al(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;let[o,a]=W9(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,ar(e.collectedStyles,e.currentQuerySelector,new Map);let s=sr(this,gd(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:yt.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Al(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(UR());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:Km(i.timings,e.errors,!0);return{type:yt.Stagger,animation:sr(this,gd(i.animation),e),timings:n,options:null}}};function W9(t){let i=!!t.split(/\s*,\s*/).find(e=>e==yO);return i&&(t=t.replace(U9,"")),t=t.replace(/@\*/g,Ym).replace(/@\w+/g,e=>Ym+"-"+e.slice(1)).replace(/:animating/g,_0),[t,i]}function G9(t){return t?G({},t):null}var ew=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function q9(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Q9(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Km(t,i).duration;return Q1(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Q1(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=Km(e,i);return Q1(r.duration,r.delay,r.easing)}function Al(t){return t?(t=G({},t),t.params&&(t.params=G9(t.params))):t={},t}function Q1(t,i,e){return{duration:t,delay:i,easing:e}}function uw(t,i,e,n,r,o,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Jm=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Z9=1,Y9=":enter",K9=new RegExp(Y9,"g"),X9=":leave",J9=new RegExp(X9,"g");function CO(t,i,e,n,r,o=new Map,a=new Map,s,l,c=[]){return new tw().buildKeyframes(t,i,e,n,r,o,a,s,l,c)}var tw=class{buildKeyframes(i,e,n,r,o,a,s,l,c,d=[]){c=c||new Jm;let h=new nw(i,e,c,r,o,d,[]);h.options=l;let b=l.delay?Qo(l.delay):0;h.currentTimeline.delayNextStep(b),h.currentTimeline.setStyles([a],null,h.errors,l),sr(this,n,h);let f=h.timelines.filter(_=>_.containsAnimation());if(f.length&&s.size){let _;for(let y=f.length-1;y>=0;y--){let C=f[y];if(C.element===e){_=C;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([s],null,h.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[uw(e,[],[],[],0,b,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let r of i){let o=r?.delay;if(o){let a=typeof o=="number"?o:Qo(_d(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime,a=n.duration!=null?Qo(n.duration):null,s=n.delay!=null?Qo(n.delay):null;return a!==0&&i.forEach(l=>{let c=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,c.duration+c.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),sr(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,r=e,o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==yt.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=S0);let a=Qo(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>sr(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],r=e.currentTimeline.currentTime,o=i.options&&i.options.delay?Qo(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);o&&s.delayNextStep(o),sr(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,r=e.params?_d(n,e.params,e.errors):n;return Km(r,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let o=i.style;o.type==yt.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?Qo(r.delay):0;o&&(e.previousNode.type===yt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=S0);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,d)=>{e.currentQueryIndex=d;let h=e.createSubContext(i.options,c);o&&h.delayNextStep(o),c===e.element&&(l=h.currentTimeline),sr(this,i.animation,h),h.currentTimeline.applyStylesToKeyframe();let b=h.currentTimeline.currentTime;a=Math.max(a,b)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;sr(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-h+(r.startTime-n.currentTimeline.startTime)}},S0={},nw=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=S0;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,r,o,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.currentTimeline=l||new k0(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,r=this.options;n.duration!=null&&(r.duration=Qo(n.duration)),n.delay!=null&&(r.delay=Qo(n.delay));let o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=_d(o[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){let r=e||this.element,o=new t(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(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=S0,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new iw(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let s=[];if(r&&s.push(this.element),i.length>0){i=i.replace(K9,"."+this._enterClassName),i=i.replace(J9,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,i,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),s.push(...c)}return!o&&s.length==0&&a.push(WR(e)),s}},k0=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Z9,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ur),this._currentKeyframe.set(e,Ur);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=e$(i,this._globalTimelineStyles);for(let[s,l]of a){let c=_d(l,o,n);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ur),this._updateStyle(s,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((d,h)=>{d===fd?i.add(h):d===Ur&&e.add(h)}),n||c.set("offset",l/this.duration),r.push(c)});let o=[...i.values()],a=[...e.values()];if(n){let s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l]}return uw(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},iw=class extends k0{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,r,o,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),o.push(l);let c=new Map(i[0]);c.set("offset",mO(s)),o.push(c);let d=i.length-1;for(let h=1;h<=d;h++){let b=new Map(i[h]),f=b.get("offset"),_=e+f*n;b.set("offset",mO(_/a)),o.push(b)}n=a,e=0,r="",i=o}return uw(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}};function mO(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function e$(t,i){let e=new Map,n;return t.forEach(r=>{if(r==="*"){n??=i.keys();for(let o of n)e.set(o,Ur)}else for(let[o,a]of r)e.set(o,a)}),e}function hO(t,i,e,n,r,o,a,s,l,c,d,h,b){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:b}}var Z1={},M0=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return t$(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return i!==void 0&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,s,l,c,d){let h=[],b=this.ast.options&&this.ast.options.params||Z1,f=s&&s.params||Z1,_=this.buildStyles(n,f,h),y=l&&l.params||Z1,C=this.buildStyles(r,y,h),D=new Set,k=new Map,T=new Map,F=r==="void",L={params:wO(y,b),delay:this.ast.options?.delay},B=d?[]:CO(i,e,this.ast.animation,o,a,_,C,L,c,h),V=0;return B.forEach(ne=>{V=Math.max(ne.duration+ne.delay,V)}),h.length?hO(e,this._triggerName,n,r,F,_,C,[],[],k,T,V,h):(B.forEach(ne=>{let Re=ne.element,P=ar(k,Re,new Set);ne.preStyleProps.forEach(w=>P.add(w));let re=ar(T,Re,new Set);ne.postStyleProps.forEach(w=>re.add(w)),Re!==e&&D.add(Re)}),hO(e,this._triggerName,n,r,F,_,C,B,[...D.values()],k,T,V))}};function t$(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}function wO(t,i){let e=G({},i);return Object.entries(t).forEach(([n,r])=>{r!=null&&(e[n]=r)}),e}var rw=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,r=wO(i,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=_d(a,r,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function n$(t,i,e){return new ow(t,i,e)}var ow=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new rw(r.style,o,n))}),pO(this.states,"true","1"),pO(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new M0(i,r,this.states))}),this.fallbackTransition=i$(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function i$(t,i,e){let n=[(a,s)=>!0],r={type:yt.Sequence,steps:[],options:null},o={type:yt.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new M0(t,o,i)}function pO(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var r$=new Jm,aw=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],r=[],o=xO(this._driver,e,n,r);if(n.length)throw ZR(n);this._animations.set(i,o)}_buildPlayer(i,e,n){let r=i.element,o=V1(this._normalizer,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let r=[],o=this._animations.get(i),a,s=new Map;if(o?(a=CO(this._driver,e,o,W1,g0,new Map,new Map,n,r$,r),a.forEach(d=>{let h=ar(s,d.element,new Map);d.postStyleProps.forEach(b=>h.set(b,null))})):(r.push(YR()),a=[]),r.length)throw KR(r);s.forEach((d,h)=>{d.forEach((b,f)=>{d.set(f,this._driver.computeStyle(h,f,Ur))})});let l=a.map(d=>{let h=s.get(d.element);return this._buildPlayer(d,new Map,h)}),c=Oa(l);return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw XR(i);return e}listen(i,e,n,r){let o=p0(e,"","","");return h0(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if(n=="register"){this.register(i,r[0]);return}if(n=="create"){let a=r[0]||{};this.create(i,e,a);return}let o=this._getPlayer(i);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(i);break}}},fO="ng-animate-queued",o$=".ng-animate-queued",Y1="ng-animate-disabled",a$=".ng-animate-disabled",s$="ng-star-inserted",l$=".ng-star-inserted",c$=[],EO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},d$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fo="__ng_removed",eh=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),r=n?i.value:i;if(this.value=m$(r),n){let o=i,{value:a}=o,s=lu(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r])})}}},Xm="void",K1=new eh(Xm),sw=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,Wr(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw JR(n,e);if(n==null||n.length==0)throw eO(e);if(!h$(n))throw tO(n,e);let o=ar(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);let s=ar(this._engine.statesByElement,i,new Map);return s.has(e)||(Wr(i,Zm),Wr(i,Zm+"-"+e),s.set(e,K1)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw nO(i);return e}trigger(i,e,n,r=!0){let o=this._getTrigger(e),a=new th(this.id,e,i),s=this._engine.statesByElement.get(i);s||(Wr(i,Zm),Wr(i,Zm+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),c=new eh(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=K1),!(c.value===Xm)&&l.value===c.value){if(!g$(l.params,c.params)){let y=[],C=o.matchStyles(l.value,l.params,y),D=o.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{ks(i,C),po(i,D)})}return}let b=ar(this._engine.playersByElement,i,[]);b.forEach(y=>{y.namespaceId==this.id&&y.triggerName==e&&y.queued&&y.destroy()});let f=o.matchTransition(l.value,c.value,i,c.params),_=!1;if(!f){if(!r)return;f=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:f,fromState:l,toState:c,player:a,isFallbackTransition:_}),_||(Wr(i,fO),a.onStart(()=>{vd(i,fO)})),a.onDone(()=>{let y=this.players.indexOf(a);y>=0&&this.players.splice(y,1);let C=this._engine.playersByElement.get(i);if(C){let D=C.indexOf(a);D>=0&&C.splice(D,1)}}),this.players.push(a),b.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,Ym,!0);n.forEach(r=>{if(r[fo])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){let o=this._engine.statesByElement.get(i),a=new Map;if(o){let s=[];if(o.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let d=this.trigger(i,c,Xm,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&Oa(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let r=new Set;e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||K1,d=new eh(Xm),h=new th(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{let o=i[fo];(!o||o===EO)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Wr(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=p0(o,n.triggerName,n.fromState.value,n.toState.value);l._data=i,h0(n.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{let o=n.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},lw=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new sw(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=r.get(s);if(l){let c=n.indexOf(l);n.splice(c+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(i,e,n,r){if(C0(e)){let o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!C0(e))return;let o=e[fo];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Wr(i,Y1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),vd(i,Y1))}removeNode(i,e,n){if(C0(e)){let r=i?this._fetchNamespace(i):null;r?r.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[fo]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return C0(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,Ym,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,_0,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Oa(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[fo];if(e&&e.setForRemoval){if(i[fo]=EO,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(Y1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,a$,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];Wr(r,s$)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,i)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?Oa(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw iO(i)}_flushAnimations(i,e){let n=new Jm,r=[],o=new Map,a=[],s=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(ge=>{d.add(ge);let J=this.driver.query(ge,o$,!0);for(let ye=0;ye<J.length;ye++)d.add(J[ye])});let h=this.bodyNode,b=Array.from(this.statesByElement.keys()),f=vO(b,this.collectedEnterElements),_=new Map,y=0;f.forEach((ge,J)=>{let ye=W1+y++;_.set(J,ye),ge.forEach(H=>Wr(H,ye))});let C=[],D=new Set,k=new Set;for(let ge=0;ge<this.collectedLeaveElements.length;ge++){let J=this.collectedLeaveElements[ge],ye=J[fo];ye&&ye.setForRemoval&&(C.push(J),D.add(J),ye.hasAnimation?this.driver.query(J,l$,!0).forEach(H=>D.add(H)):k.add(J))}let T=new Map,F=vO(b,Array.from(D));F.forEach((ge,J)=>{let ye=g0+y++;T.set(J,ye),ge.forEach(H=>Wr(H,ye))}),i.push(()=>{f.forEach((ge,J)=>{let ye=_.get(J);ge.forEach(H=>vd(H,ye))}),F.forEach((ge,J)=>{let ye=T.get(J);ge.forEach(H=>vd(H,ye))}),C.forEach(ge=>{this.processLeaveNode(ge)})});let L=[],B=[];for(let ge=this._namespaceList.length-1;ge>=0;ge--)this._namespaceList[ge].drainQueuedTransitions(e).forEach(ye=>{let H=ye.player,$=ye.element;if(L.push(H),this.collectedEnterElements.length){let ut=$[fo];if(ut&&ut.setForMove){if(ut.previousTriggersValues&&ut.previousTriggersValues.has(ye.triggerName)){let fn=ut.previousTriggersValues.get(ye.triggerName),zt=this.statesByElement.get(ye.element);if(zt&&zt.has(ye.triggerName)){let Ti=zt.get(ye.triggerName);Ti.value=fn,zt.set(ye.triggerName,Ti)}}H.destroy();return}}let Ze=!h||!this.driver.containsElement(h,$),Fe=T.get($),Te=_.get($),pt=this._buildInstruction(ye,n,Te,Fe,Ze);if(pt.errors&&pt.errors.length){B.push(pt);return}if(Ze){H.onStart(()=>ks($,pt.fromStyles)),H.onDestroy(()=>po($,pt.toStyles)),r.push(H);return}if(ye.isFallbackTransition){H.onStart(()=>ks($,pt.fromStyles)),H.onDestroy(()=>po($,pt.toStyles)),r.push(H);return}let Qn=[];pt.timelines.forEach(ut=>{ut.stretchStartingKeyframe=!0,this.disabledNodes.has(ut.element)||Qn.push(ut)}),pt.timelines=Qn,n.append($,pt.timelines);let Nt={instruction:pt,player:H,element:$};a.push(Nt),pt.queriedElements.forEach(ut=>ar(s,ut,[]).push(H)),pt.preStyleProps.forEach((ut,fn)=>{if(ut.size){let zt=l.get(fn);zt||l.set(fn,zt=new Set),ut.forEach((Ti,Ii)=>zt.add(Ii))}}),pt.postStyleProps.forEach((ut,fn)=>{let zt=c.get(fn);zt||c.set(fn,zt=new Set),ut.forEach((Ti,Ii)=>zt.add(Ii))})});if(B.length){let ge=[];B.forEach(J=>{ge.push(rO(J.triggerName,J.errors))}),L.forEach(J=>J.destroy()),this.reportError(ge)}let V=new Map,ne=new Map;a.forEach(ge=>{let J=ge.element;n.has(J)&&(ne.set(J,J),this._beforeAnimationBuild(ge.player.namespaceId,ge.instruction,V))}),r.forEach(ge=>{let J=ge.element;this._getPreviousPlayers(J,!1,ge.namespaceId,ge.triggerName,null).forEach(H=>{ar(V,J,[]).push(H),H.destroy()})});let Re=C.filter(ge=>bO(ge,l,c)),P=new Map;_O(P,this.driver,k,c,Ur).forEach(ge=>{bO(ge,l,c)&&Re.push(ge)});let w=new Map;f.forEach((ge,J)=>{_O(w,this.driver,new Set(ge),l,fd)}),Re.forEach(ge=>{let J=P.get(ge),ye=w.get(ge);P.set(ge,new Map([...J?.entries()??[],...ye?.entries()??[]]))});let de=[],st=[],_e={};a.forEach(ge=>{let{element:J,player:ye,instruction:H}=ge;if(n.has(J)){if(d.has(J)){ye.onDestroy(()=>po(J,H.toStyles)),ye.disabled=!0,ye.overrideTotalTime(H.totalTime),r.push(ye);return}let $=_e;if(ne.size>1){let Fe=J,Te=[];for(;Fe=Fe.parentNode;){let pt=ne.get(Fe);if(pt){$=pt;break}Te.push(Fe)}Te.forEach(pt=>ne.set(pt,$))}let Ze=this._buildAnimation(ye.namespaceId,H,V,o,w,P);if(ye.setRealPlayer(Ze),$===_e)de.push(ye);else{let Fe=this.playersByElement.get($);Fe&&Fe.length&&(ye.parentPlayer=Oa(Fe)),r.push(ye)}}else ks(J,H.fromStyles),ye.onDestroy(()=>po(J,H.toStyles)),st.push(ye),d.has(J)&&r.push(ye)}),st.forEach(ge=>{let J=o.get(ge.element);if(J&&J.length){let ye=Oa(J);ge.setRealPlayer(ye)}}),r.forEach(ge=>{ge.parentPlayer?ge.syncPlayerEvents(ge.parentPlayer):ge.destroy()});for(let ge=0;ge<C.length;ge++){let J=C[ge],ye=J[fo];if(vd(J,g0),ye&&ye.hasAnimation)continue;let H=[];if(s.size){let Ze=s.get(J);Ze&&Ze.length&&H.push(...Ze);let Fe=this.driver.query(J,_0,!0);for(let Te=0;Te<Fe.length;Te++){let pt=s.get(Fe[Te]);pt&&pt.length&&H.push(...pt)}}let $=H.filter(Ze=>!Ze.destroyed);$.length?p$(this,J,$):this.processLeaveNode(J)}return C.length=0,de.forEach(ge=>{this.players.push(ge),ge.onDone(()=>{ge.destroy();let J=this.players.indexOf(ge);this.players.splice(J,1)}),ge.play()}),de}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!o||o==Xm;s.forEach(c=>{c.queued||!l&&c.triggerName!=r||a.push(c)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,d=c!==o,h=ar(n,c,[]);this._getPreviousPlayers(c,d,a,s,e.toState).forEach(f=>{let _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),h.push(f)})}ks(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){let s=e.triggerName,l=e.element,c=[],d=new Set,h=new Set,b=e.timelines.map(_=>{let y=_.element;d.add(y);let C=y[fo];if(C&&C.removedBeforeQueried)return new qo(_.duration,_.delay);let D=y!==l,k=f$((n.get(y)||c$).map(V=>V.getRealPlayer())).filter(V=>{let ne=V;return ne.element?ne.element===y:!1}),T=o.get(y),F=a.get(y),L=V1(this._normalizer,_.keyframes,T,F),B=this._buildPlayer(_,L,k);if(_.subTimeline&&r&&h.add(y),D){let V=new th(i,s,y);V.setRealPlayer(B),c.push(V)}return B});c.forEach(_=>{ar(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>u$(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>Wr(_,G1));let f=Oa(b);return f.onDestroy(()=>{d.forEach(_=>vd(_,G1)),po(l,e.toStyles)}),h.forEach(_=>{ar(r,_,[]).push(f)}),f}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new qo(i.duration,i.delay)}},th=class{namespaceId;triggerName;element;_player=new qo;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>h0(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ar(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function u$(t,i,e){let n=t.get(i);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1)}n.length==0&&t.delete(i)}return n}function m$(t){return t??null}function C0(t){return t&&t.nodeType===1}function h$(t){return t=="start"||t=="done"}function gO(t,i){let e=t.style.display;return t.style.display=i??"none",e}function _O(t,i,e,n,r){let o=[];e.forEach(l=>o.push(gO(l)));let a=[];n.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let b=i.computeStyle(c,h,r);d.set(h,b),(!b||b.length==0)&&(c[fo]=d$,a.push(c))}),t.set(c,d)});let s=0;return e.forEach(l=>gO(l,o[s++])),a}function vO(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,r=new Set(i),o=new Map;function a(s){if(!s)return n;let l=o.get(s);if(l)return l;let c=s.parentNode;return e.has(c)?l=c:r.has(c)?l=n:l=a(c),o.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function Wr(t,i){t.classList?.add(i)}function vd(t,i){t.classList?.remove(i)}function p$(t,i,e){Oa(e).onDone(()=>t.processLeaveNode(i))}function f$(t){let i=[];return DO(t,i),i}function DO(t,i){for(let e=0;e<t.length;e++){let n=t[e];n instanceof Tl?DO(n.players,i):i.push(n)}}function g$(t,i){let e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!i.hasOwnProperty(o)||t[o]!==i[o])return!1}return!0}function bO(t,i,e){let n=e.get(t);if(!n)return!1;let r=i.get(t);return r?n.forEach(o=>r.add(o)):i.set(t,n),e.delete(t),!0}var bd=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new lw(i.body,e,n),this._timelineEngine=new aw(i.body,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(i,e,n,r,o){let a=i+"-"+r,s=this._triggerCache[a];if(!s){let l=[],c=[],d=xO(this._driver,o,l,c);if(l.length)throw QR(r,l);s=n$(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if(n.charAt(0)=="@"){let[o,a]=j1(n),s=r;this._timelineEngine.command(o,e,a,s)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if(n.charAt(0)=="@"){let[a,s]=j1(n);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function _$(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=X1(i[0]),i.length>1&&(n=X1(i[i.length-1]))):i instanceof Map&&(e=X1(i)),e||n?new v$(t,e,n):null}var v$=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&po(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(po(this._element,this._initialStyles),this._endStyles&&(po(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ks(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ks(this._element,this._endStyles),this._endStyles=null),po(this._element,this._initialStyles),this._state=3)}}return t})();function X1(t){let i=null;return t.forEach((e,n)=>{b$(n)&&(i=i||new Map,i.set(n,e))}),i}function b$(t){return t==="display"||t==="position"}var T0=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=r,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let r=this._convertKeyframesToObject(e);try{return i.animate(r,n)}catch{return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&i.set(r,this._finished?n:b0(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},I0=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return H1(i,e)}getParentElement(i){return f0(i)}query(i,e,n){return $1(i,e,n)}computeStyle(i,e,n){return b0(i,e)}animate(i,e,n,r,o,a=[]){let s=r==0?"both":"forwards",l={duration:n,delay:r,fill:s};o&&(l.easing=o);let c=new Map,d=a.filter(f=>f instanceof T0);lO(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((_,y)=>c.set(y,_))});let h=aO(e).map(f=>new Map(f));h=cO(i,h,c);let b=_$(i,h);return new T0(i,h,l,b)}};var w0="@",SO="@.disabled",A0=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n,r){if(r){this.delegate.removeChild(i,e,n,r);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==w0&&e==SO?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,r){return this.delegate.listen(i,e,n,r)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},cw=class extends A0{factory;constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==w0?e.charAt(1)=="."&&e==SO?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,r){if(e.charAt(0)==w0){let o=y$(i),a=e.slice(1),s="";return a.charAt(0)!=w0&&([a,s]=x$(a)),this.engine.listen(this.namespaceId,o,a,s,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l)})}return this.delegate.listen(i,e,n,r)}};function y$(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function x$(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var R0=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(i,e){let r=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let h=()=>c.delete(r);d=new A0("",r,this.engine,h),c.set(r,d)}return d}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(o,a,i,c.name,c)};return e.data.animation.forEach(s),new cw(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&i<this._microtaskId){this._zone.run(()=>e(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),r.push([e,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var w$=(()=>{class t extends bd{constructor(e,n,r){super(e,n,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(je),we(Rl),we(Ol))};static \u0275prov=Be({token:t,factory:t.\u0275fac})}return t})();function E$(){return new E0}function D$(){return new R0(g(Dm),g(bd),g(De))}var kO=[{provide:Ol,useFactory:E$},{provide:bd,useClass:w$},{provide:An,useFactory:D$}],Aye=[{provide:Rl,useClass:dw},{provide:ms,useValue:"NoopAnimations"},...kO],S$=[{provide:Rl,useFactory:()=>new I0},{provide:ms,useFactory:()=>"BrowserAnimations"},...kO];function MO(){return er("NgEagerAnimations"),[...S$]}var NO=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(Z(dt),Z(pe))};static \u0275dir=Y({type:t})}return t})(),LO=(()=>{class t extends NO{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,features:[Ee]})}return t})(),br=new z("");var k$={provide:br,useExisting:on(()=>Ei),multi:!0};function M$(){let t=jr()?jr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var T$=new z(""),Ei=(()=>{class t extends NO{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!M$())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(Z(dt),Z(pe),Z(T$,8))};static \u0275dir=Y({type:t,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&N("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[He([k$]),Ee]})}return t})();function gw(t){return t==null||_w(t)===0}function _w(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Hi=new z(""),Fl=new z(""),I$=/^(?=.{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])?)*$/,Tt=class{static min(i){return BO(i)}static max(i){return zO(i)}static required(i){return VO(i)}static requiredTrue(i){return A$(i)}static email(i){return R$(i)}static minLength(i){return O$(i)}static maxLength(i){return jO(i)}static pattern(i){return P$(i)}static nullValidator(i){return P0()}static compose(i){return qO(i)}static composeAsync(i){return QO(i)}};function BO(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}function zO(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function VO(t){return gw(t.value)?{required:!0}:null}function A$(t){return t.value===!0?null:{required:!0}}function R$(t){return gw(t.value)||I$.test(t.value)?null:{email:!0}}function O$(t){return i=>{let e=i.value?.length??_w(i.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function jO(t){return i=>{let e=i.value?.length??_w(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function P$(t){if(!t)return P0;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(gw(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function P0(t){return null}function HO(t){return t!=null}function $O(t){return wa(t)?mn(t):t}function UO(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function WO(t,i){return i.map(e=>e(t))}function F$(t){return!t.validate}function GO(t){return t.map(i=>F$(i)?i:e=>i.validate(e))}function qO(t){if(!t)return null;let i=t.filter(HO);return i.length==0?null:function(e){return UO(WO(e,i))}}function vw(t){return t!=null?qO(GO(t)):null}function QO(t){if(!t)return null;let i=t.filter(HO);return i.length==0?null:function(e){let n=WO(e,i).map($O);return yu(n).pipe(Le(UO))}}function bw(t){return t!=null?QO(GO(t)):null}function TO(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ZO(t){return t._rawValidators}function YO(t){return t._rawAsyncValidators}function mw(t){return t?Array.isArray(t)?t:[t]:[]}function F0(t,i){return Array.isArray(t)?t.includes(i):t===i}function IO(t,i){let e=mw(i);return mw(t).forEach(r=>{F0(e,r)||e.push(r)}),e}function AO(t,i){return mw(i).filter(e=>!F0(t,e))}var N0=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=vw(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=bw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},hi=class extends N0{name;get formDirective(){return null}get path(){return null}};var nh="VALID",O0="INVALID",yd="PENDING",ih="DISABLED",Ms=class{},L0=class extends Ms{value;source;constructor(i,e){super(),this.value=i,this.source=e}},oh=class extends Ms{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},ah=class extends Ms{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},xd=class extends Ms{status;source;constructor(i,e){super(),this.status=i,this.source=e}},B0=class extends Ms{source;constructor(i){super(),this.source=i}},Pl=class extends Ms{source;constructor(i){super(),this.source=i}};function yw(t){return(U0(t)?t.validators:t)||null}function N$(t){return Array.isArray(t)?vw(t):t||null}function xw(t,i){return(U0(i)?i.asyncValidators:t)||null}function L$(t){return Array.isArray(t)?bw(t):t||null}function U0(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function KO(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ee(1e3,"");if(!JO(n,e))throw new ee(1001,"")}function XO(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new ee(-1002,"")})}var Cd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=Q(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Rt(this.statusReactive)}set status(i){Rt(()=>this.statusReactive.set(i))}_status=Wt(()=>this.statusReactive());statusReactive=Q(void 0);get valid(){return this.status===nh}get invalid(){return this.status===O0}get pending(){return this.status===yd}get disabled(){return this.status===ih}get enabled(){return this.status!==ih}errors;get pristine(){return Rt(this.pristineReactive)}set pristine(i){Rt(()=>this.pristineReactive.set(i))}_pristine=Wt(()=>this.pristineReactive());pristineReactive=Q(!0);get dirty(){return!this.pristine}get touched(){return Rt(this.touchedReactive)}set touched(i){Rt(()=>this.touchedReactive.set(i))}_touched=Wt(()=>this.touchedReactive());touchedReactive=Q(!1);get untouched(){return!this.touched}_events=new ce;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(IO(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(IO(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(AO(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(AO(i,this._rawAsyncValidators))}hasValidator(i){return F0(this._rawValidators,i)}hasAsyncValidator(i){return F0(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Xe(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new ah(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new ah(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Xe(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new oh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new oh(!0,n))}markAsPending(i={}){this.status=yd;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new xd(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Xe(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=ih,this.errors=null,this._forEachChild(r=>{r.disable(Xe(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new L0(this.value,n)),this._events.next(new xd(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Xe(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=nh,this._forEachChild(n=>{n.enable(Xe(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Xe(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===nh||this.status===yd)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new L0(this.value,e)),this._events.next(new xd(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Xe(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ih:nh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=yd,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=$O(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new xd(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?ih:this.errors?O0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yd)?yd:this._anyControlsHaveStatus(O0)?O0:nh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),r&&this._events.next(new oh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new ah(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){U0(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=N$(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=L$(this._rawAsyncValidators)}_updateHasRequiredValidator(){Rt(()=>this._hasRequired.set(this.hasValidator(Tt.required)))}};function JO(t,i){return Object.hasOwn(t,i)}function B$(t){return t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"}function z$(t,i,e,n){switch(e){case"name":t.setAttribute(i,e,n);break;case"disabled":case"readonly":case"required":n?t.setAttribute(i,e,""):t.removeAttribute(i,e);break;case"max":case"min":case"minLength":case"maxLength":n!==void 0?t.setAttribute(i,e,n.toString()):t.removeAttribute(i,e);break}}var hw=class{kind;context;control;message;constructor({kind:i,context:e,control:n}){this.kind=i,this.context=e,this.control=n}};function V$(t){return typeof t=="number"?t:parseInt(t,10)}function eP(t){return typeof t=="number"?t:parseFloat(t)}var W0=(()=>{class t{_validator=P0;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):P0,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,features:[Et]})}return t})(),j$={provide:Hi,useExisting:on(()=>G0),multi:!0},G0=(()=>{class t extends W0{max;inputName="max";normalizeInput=e=>eP(e);createValidator=e=>zO(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&he("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[He([j$]),Ee]})}return t})(),H$={provide:Hi,useExisting:on(()=>q0),multi:!0},q0=(()=>{class t extends W0{min;inputName="min";normalizeInput=e=>eP(e);createValidator=e=>BO(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&he("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[He([H$]),Ee]})}return t})(),$$={provide:Hi,useExisting:on(()=>tP),multi:!0};var tP=(()=>{class t extends W0{required;inputName="required";normalizeInput=te;createValidator=e=>VO;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&he("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[He([$$]),Ee]})}return t})();var U$={provide:Hi,useExisting:on(()=>Cw),multi:!0},Cw=(()=>{class t extends W0{maxlength;inputName="maxlength";normalizeInput=e=>V$(e);createValidator=e=>jO(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&he("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[He([U$]),Ee]})}return t})();var W$=new z(""),Ed=new z("",{factory:()=>Q0}),Q0="always";function Z0(t,i){return[...i.path,t]}function z0(t,i,e=Q0){ww(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),q$(t,i),Z$(t,i),Q$(t,i),G$(t,i)}function V0(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),H0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function j0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function G$(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ww(t,i){let e=ZO(t);i.validator!==null?t.setValidators(TO(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=YO(t);i.asyncValidator!==null?t.setAsyncValidators(TO(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();j0(i._rawValidators,r),j0(i._rawAsyncValidators,r)}function H0(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=ZO(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(i.asyncValidator!==null){let r=YO(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let n=()=>{};return j0(i._rawValidators,n),j0(i._rawAsyncValidators,n),e}function q$(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&nP(t,i)})}function Q$(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&nP(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function nP(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Z$(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function iP(t,i){t==null,ww(t,i)}function Y$(t,i){return H0(t,i)}function Ew(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function K$(t){return Object.getPrototypeOf(t.constructor)===LO}function rP(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function X$(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(o=>{o.constructor===Ei?e=o:K$(o)?n=o:r=o}),r||n||e||null}function J$(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var Dw={provide:W$,useFactory:()=>{let t=g(ji,{self:!0});return{setParseErrors:i=>{t.setParseErrorSource(i)},set onReset(i){t.onReset=i}}}},ji=class extends N0{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(i){this.userOnReset=i,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof Pl&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=X$(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(i,e,n){super(),this.injector=i,this.renderer=e,this.rawValueAccessors=n,this.injector?.get(Jn)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let i=this.injector?.get(Ge);if(!this.control||!i)return;let e=i.markForCheck.bind(i);this.subscription=new Ye,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof Pl&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(i){!i.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!i.customControl||(this.isCustomControlBased=!0,i.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(r)}),i.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=B$(i.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof tP))}ngControlUpdate(i,e){if(!this.isCustomControlBased)return;let n=this.control,r=this.customControlBindings;Object.is(r.value,n.value)||(r.value=n.value,i.setCustomControlModelInput(n.value)),this.bindControlProperty(i,r,"touched",n.touched),this.bindControlProperty(i,r,"dirty",n.dirty),this.bindControlProperty(i,r,"valid",n.valid),this.bindControlProperty(i,r,"invalid",n.invalid),this.bindControlProperty(i,r,"pending",n.pending),this.bindControlProperty(i,r,"disabled",n.disabled),this.shouldBindRequired&&this.bindControlProperty(i,r,"required",this.isRequired);let o=n.errors;if(r.errors!==o){r.errors=o;let a=this._convertErrors(o);i.setInputOnDirectives("errors",a)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(i,e,n,r){if(e[n]===r)return;e[n]=r;let o=i.setInputOnDirectives(n,r);this.isNativeFormElement&&!o&&(n==="disabled"||n==="required")&&this.renderer&&z$(this.renderer,i.nativeElement,n,r)}_convertErrors(i){if(i===null)return[];let e=this.control;return Object.entries(i).map(([n,r])=>new hw({context:r,kind:n,control:e}))}setParseErrorSource(i){if(i===void 0)return;let e=null,n=Wt(()=>{let r=i();return r.length===0?null:r.reduce((o,a)=>(o[a.kind]=a,o),{})});this.parseErrorsValidator=(()=>e).bind(this),xi(()=>{e=n(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(i){this.parseErrorsValidator&&(i?.removeValidators(this.parseErrorsValidator),i?.updateValueAndValidity({emitEvent:!1}))}},$0=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var lr=(()=>{class t extends $0{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Z(ji,2))};static \u0275dir=Y({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ue("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[Ee]})}return t})(),Nl=(()=>{class t extends $0{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Z(hi,10))};static \u0275dir=Y({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&ue("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[Ee]})}return t})(),wd=class extends Cd{constructor(i,e,n){super(yw(e),xw(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){let n=this._find(i);return n||(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){let n=this._find(i);n&&n._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){let r=this._find(i);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this._find(i)?.enabled===!0}setValue(i,e={}){Rt(()=>{XO(this,!0,i),Object.keys(i).forEach(n=>{KO(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)})}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this._find(n);r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,Xe(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Pl(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return JO(this.controls,i)?this.controls[i]:null}};var pw=class extends wd{};var e7={provide:hi,useExisting:on(()=>Pa)},rh=Promise.resolve(),Pa=(()=>{class t extends hi{callSetDisabledState;get submitted(){return Rt(this.submittedReactive)}_submitted=Wt(()=>this.submittedReactive());submittedReactive=Q(!1);_directives=new Set;form;ngSubmit=new le;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new wd({},vw(e),bw(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){rh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){rh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){rh.then(()=>{let n=this._findContainer(e.path),r=new wd({});iP(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){rh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){rh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),rP(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new B0(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(Z(Hi,10),Z(Fl,10),Z(Ed,8))};static \u0275dir=Y({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&N("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[He([e7]),Ee]})}return t})();function RO(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function OO(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var $n=class extends Cd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(yw(e),xw(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U0(e)&&(e.nonNullable||e.initialValueIsDefault)&&(OO(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){Rt(()=>{this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)})}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Pl(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){RO(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){RO(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){OO(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var t7=t=>t instanceof $n,n7=(()=>{class t extends hi{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Z0(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,standalone:!1,features:[Ee]})}return t})();var i7={provide:ji,useExisting:on(()=>Fa)},PO=Promise.resolve(),Fa=(()=>{class t extends ji{_changeDetectorRef;callSetDisabledState;control=new $n;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new le;constructor(e,n,r,o,a,s,l,c){super(l,c,o),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Ew(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(e){super.ngControlCreate(e)}\u0275ngControlUpdate(e){super.ngControlUpdate(e,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,z0(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,z0(this.control,this,e))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){PO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&te(n);PO.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Z0(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(Z(hi,9),Z(Hi,10),Z(Fl,10),Z(br,10),Z(Ge,8),Z(Ed,8),Z(ze,8),Z(dt,8))};static \u0275dir=Y({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[He([i7,Dw]),Ee,Et,lm(null)]})}return t})();var Ll=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),r7={provide:br,useExisting:on(()=>Y0),multi:!0},Y0=(()=>{class t extends LO{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(n,r){n&1&&N("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[He([r7]),Ee]})}return t})();var fw=class extends Cd{constructor(i,e,n){super(yw(e),xw(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){Array.isArray(i)?i.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Rt(()=>{XO(this,!1,i),i.forEach((n,r)=>{KO(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)})}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],Xe(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Pl(this))}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};var oP=(()=>{class t extends hi{callSetDisabledState;get submitted(){return Rt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Wt(()=>this._submittedReactive());_submittedReactive=Q(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(H0(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return e._setupWithForm(n,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){V0(e.control||null,e,!1),J$(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,rP(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new B0(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(V0(n||null,e),t7(r)&&e._setupWithForm(r,this.callSetDisabledState))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);iP(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&Y$(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ww(this.form,this),this._oldForm&&H0(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(Z(Hi,10),Z(Fl,10),Z(Ed,8))};static \u0275dir=Y({type:t,features:[Ee,Et]})}return t})();var Sw=new z(""),o7={provide:ji,useExisting:on(()=>K0)},K0=(()=>{class t extends ji{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new le;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,o,a,s,l){super(l,s,r),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&(V0(n,this,!1),this.removeParseErrorsValidator(n)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,z0(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:!1})}Ew(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&V0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e)}\u0275ngControlUpdate(e){super.ngControlUpdate(e,!0)}static \u0275fac=function(n){return new(n||t)(Z(Hi,10),Z(Fl,10),Z(br,10),Z(Sw,8),Z(Ed,8),Z(dt,8),Z(ze,8))};static \u0275dir=Y({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[He([o7,Dw]),Ee,Et,lm(null)]})}return t})(),a7={provide:hi,useExisting:on(()=>X0)},X0=(()=>{class t extends n7{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){sP(this._parent)}static \u0275fac=function(n){return new(n||t)(Z(hi,13),Z(Hi,10),Z(Fl,10))};static \u0275dir=Y({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[He([a7]),Ee]})}return t})(),s7={provide:hi,useExisting:on(()=>aP)},aP=(()=>{class t extends hi{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){sP(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Z0(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(Z(hi,13),Z(Hi,10),Z(Fl,10))};static \u0275dir=Y({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[He([s7]),Ee]})}return t})();function sP(t){return!(t instanceof X0)&&!(t instanceof oP)&&!(t instanceof aP)}var l7={provide:ji,useExisting:on(()=>Dd)},Dd=(()=>{class t extends ji{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new le;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,o,a,s,l){super(l,s,o),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_setupWithForm(e,n){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,z0(e,this,n))}ngOnChanges(e){this._added||this._setUpControl(),Ew(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Z0(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}\u0275ngControlCreate(e){super.ngControlCreate(e)}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,!0))}static \u0275fac=function(n){return new(n||t)(Z(hi,13),Z(Hi,10),Z(Fl,10),Z(br,10),Z(Sw,8),Z(dt,8),Z(ze,8))};static \u0275dir=Y({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[He([l7,Dw]),Ee,Et,lm(null)]})}return t})();var c7={provide:hi,useExisting:on(()=>go)},go=(()=>{class t extends oP{form=null;ngSubmit=new le;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&N("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[He([c7]),Ee]})}return t})();var lP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();function FO(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var sh=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),o={};return FO(n)?o=n:n!==null&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new wd(r,o)}record(e,n=null){let r=this._reduceControls(e);return new pw(r,n)}control(e,n,r){let o={};return this.useNonNullable?(FO(n)?o=n:(o.validators=n,o.asyncValidators=r),new $n(e,Xe(G({},o),{nonNullable:!0}))):new $n(e,n,r)}array(e,n,r){let o=e.map(a=>this._createControl(a));return new fw(o,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof $n)return e;if(e instanceof Cd)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(n,r,o)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var cr=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ed,useValue:e.callSetDisabledState??Q0}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[lP]})}return t})(),Bl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sw,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ed,useValue:e.callSetDisabledState??Q0}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[lP]})}return t})();function zl(t){return t.buttons===0||t.detail===0}function Vl(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var kw;function dP(){if(kw==null){let t=typeof document<"u"?document.head:null;kw=!!(t&&(t.createShadowRoot||t.attachShadow))}return kw}function Mw(t){if(dP()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function jl(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function pi(t){if(t.composedPath)try{return t.composedPath()[0]}catch{}return t.target}var Tw;try{Tw=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Tw=!1}var ht=(()=>{class t{_platformId=g(pl);isBrowser=this._platformId?K2(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Tw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var lh;function uP(){if(lh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>lh=!0}))}finally{lh=lh||!1}return lh}function Sd(t){return uP()?t:!!t.capture}function yr(t,i=0){return J0(t)?Number(t):arguments.length===2?i:0}function J0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function $i(t){return t instanceof pe?t.nativeElement:t}var mP=new z("cdk-input-modality-detector-options"),hP={ignoreKeys:[18,17,224,91,16]},pP=650,Iw={passive:!0,capture:!0},fP=(()=>{class t{_platform=g(ht);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new qt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=pi(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<pP||(this._modality.next(zl(e)?"keyboard":"mouse"),this._mostRecentTarget=pi(e))};_onTouchstart=e=>{if(Vl(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=pi(e)};constructor(){let e=g(De),n=g(je),r=g(mP,{optional:!0});if(this._options=G(G({},hP),r),this.modalityDetected=this._modality.pipe(el(1)),this.modalityChanged=this.modalityDetected.pipe(Ap()),this._platform.isBrowser){let o=g(An).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(n,"keydown",this._onKeydown,Iw),o.listen(n,"mousedown",this._onMousedown,Iw),o.listen(n,"touchstart",this._onTouchstart,Iw)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),ch=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(ch||{}),gP=new z("cdk-focus-monitor-default-options"),e_=Sd({passive:!0,capture:!0}),Sn=(()=>{class t{_ngZone=g(De);_platform=g(ht);_inputModalityDetector=g(fP);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=g(je);_stopInputModalityDetector=new ce;constructor(){let e=g(gP,{optional:!0});this._detectionMode=e?.detectionMode||ch.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=pi(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=$i(e);if(!this._platform.isBrowser||r.nodeType!==1)return Ne();let o=Mw(r)||this._document,a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new ce,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=$i(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let o=$i(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ch.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===ch.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?pP:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),o=pi(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,e_),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,e_)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ue(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,e_),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,e_),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(n))return!0}return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Aw=(()=>{class t{_elementRef=g(pe);_focusMonitor=g(Sn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new le;get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var t_=new WeakMap,Ot=(()=>{class t{_appRef;_injector=g(ze);_environmentInjector=g(Zt);load(e){let n=this._appRef=this._appRef||this._injector.get(Ni),r=t_.get(n);r||(r={loaders:new Set,refs:[]},t_.set(n,r),n.onDestroy(()=>{t_.get(n)?.refs.forEach(o=>o.destroy()),t_.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(dg(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var Zo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
outline: 0;
-webkit-appearance: none;
-moz-appearance: none;
left: 0;
}
[dir=rtl] .cdk-visually-hidden {
left: auto;
right: 0;
}
`],encapsulation:2})}return t})(),n_;function d7(){if(n_===void 0&&(n_=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(n_=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return n_}function Hl(t){return d7()?.createHTML(t)||t}function _P(t,i,e){let n=e.sanitize(At.HTML,i);t.innerHTML=Hl(n||"")}function kd(t){return Array.isArray(t)?t:[t]}var vP=new Set,$l,Md=(()=>{class t{_platform=g(ht);_nonce=g(fl,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):m7}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&u7(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function u7(t,i){if(!vP.has(t))try{$l||($l=document.createElement("style"),i&&$l.setAttribute("nonce",i),$l.setAttribute("type","text/css"),document.head.appendChild($l)),$l.sheet&&($l.sheet.insertRule(`@media ${t.replace(/[{}]/g,"")} {body{ }}`,0),vP.add(t))}catch(e){console.error(e)}}function m7(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Ts=(()=>{class t{_mediaMatcher=g(Md);_zone=g(De);_queries=new Map;_destroySubject=new ce;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return bP(kd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=bP(kd(e)).map(a=>this._registerQuery(a).observable),o=Zi(r);return o=es(o.pipe(mt(1)),o.pipe(el(1),Ar(0))),o.pipe(Le(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),o={observable:new it(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(It(n),Le(({matches:a})=>({query:e,matches:a})),Ue(this._destroySubject)),mql:n};return this._queries.set(e,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function bP(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function h7(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i<t.addedNodes.length;i++)if(!(t.addedNodes[i]instanceof Comment))return!1;for(let i=0;i<t.removedNodes.length;i++)if(!(t.removedNodes[i]instanceof Comment))return!1;return!0}return!1}var yP=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),xP=(()=>{class t{_mutationObserverFactory=g(yP);_observedElements=new Map;_ngZone=g(De);ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=$i(e);return new it(r=>{let a=this._observeElement(n).pipe(Le(s=>s.filter(l=>!h7(l))),ct(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new ce,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Rw=(()=>{class t{_contentObserver=g(xP);_elementRef=g(pe);event=new le;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=yr(e),this._subscribe()}_debounce;_currentSubscription=null;ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Ar(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",te],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Td=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[yP]})}return t})();var Fw=(()=>{class t{_platform=g(ht);isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return f7(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=p7(w7(e));if(n&&(CP(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=CP(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!x7(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return C7(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function p7(t){try{return t.frameElement}catch{return null}}function f7(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function g7(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function _7(t){return b7(t)&&t.type=="hidden"}function v7(t){return y7(t)&&t.hasAttribute("href")}function b7(t){return t.nodeName.toLowerCase()=="input"}function y7(t){return t.nodeName.toLowerCase()=="a"}function DP(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function CP(t){if(!DP(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function x7(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function C7(t){return _7(t)?!1:g7(t)||v7(t)||t.hasAttribute("contenteditable")||DP(t)}function w7(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Pw=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,r,o=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._injector=a,o||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n<e.length;n++){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=e.length-1;n>=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){Bt(i,{injector:this._injector})}},Nw=(()=>{class t{_checker=g(Fw);_ngZone=g(De);_document=g(je);_injector=g(ze);constructor(){g(Ot).load(Zo)}create(e,n=!1){return new Pw(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var SP=new z("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),kP=new z("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),E7=0,dh=(()=>{class t{_ngZone=g(De);_defaultOptions=g(kP,{optional:!0});_liveElement;_document=g(je);_sanitizer=g(ys);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=g(SP,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,o,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:_P(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<n.length;o++)n[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${E7++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],a=o.getAttribute("aria-owns");a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var Is=(function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t})(Is||{}),wP="cdk-high-contrast-black-on-white",EP="cdk-high-contrast-white-on-black",Ow="cdk-high-contrast-active",MP=(()=>{class t{_platform=g(ht);_hasCheckedHighContrastMode=!1;_document=g(je);_breakpointSubscription;constructor(){this._breakpointSubscription=g(Ts).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Is.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Is.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Is.BLACK_ON_WHITE}return Is.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Ow,wP,EP),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Is.BLACK_ON_WHITE?e.add(Ow,wP):n===Is.WHITE_ON_BLACK&&e.add(Ow,EP)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),uh=(()=>{class t{constructor(){g(MP)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Td]})}return t})();var D7=200,i_=class{_letterKeyStream=new ce;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ce;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:D7;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Zn(e=>this._pressedLetters.push(e)),Ar(i),ct(()=>this._pressedLetters.length>0),Le(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;n<this._items.length+1;n++){let r=(this._selectedItemIndex+n)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break}}this._pressedLetters=[]})}};function kn(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Id=class{_items;_activeItemIndex=Q(-1);_activeItem=Q(null);_wrap=!1;_typeaheadSubscription=Ye.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof jn?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Ji(i)&&(this._effectRef=xi(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new ce;change=new ce;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new i_(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break}else return;default:(r||kn(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),n=typeof i=="number"?i:e.indexOf(i),r=e[n];this._activeItem.set(r??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let n=1;n<=e.length;n++){let r=(this._activeItemIndex()+i*n+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i)}_setActiveItemByIndex(i,e){let n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(i+=e,!n[i])return;this.setActiveItem(i)}}_getItemsArray(){return Ji(this._items)?this._items():this._items instanceof jn?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let n=i.indexOf(e);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var gh=class extends Id{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var xr=class extends Id{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var IP=new Map,St=class t{_appId=g(va);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){this._appId!=="ng"&&(i+=this._appId);let n=IP.get(i);return n===void 0?n=0:n++,IP.set(i,n),`${i}${e?t._infix+"-":""}${n}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})};var RP=" ";function k7(t,i,e){let n=o_(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(RP)))}function M7(t,i,e){let n=o_(t,i);e=e.trim();let r=n.filter(o=>o!==e);r.length?t.setAttribute(i,r.join(RP)):t.removeAttribute(i)}function o_(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var OP="cdk-describedby-message",r_="cdk-describedby-host",Bw=0,a_=(()=>{class t{_platform=g(ht);_document=g(je);_messageRegistry=new Map;_messagesContainer=null;_id=`${Bw++}`;constructor(){g(Ot).load(Zo),this._id=g(va)+"-"+Bw++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let o=Lw(n,r);typeof n!="string"?(AP(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let o=Lw(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof n=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${r_}="${this._id}"]`);for(let n=0;n<e.length;n++)this._removeCdkDescribedByReferenceIds(e[n]),e[n].removeAttribute(r_);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,n){let r=this._document.createElement("div");AP(r,this._id),r.textContent=e,n&&r.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Lw(e,n),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<n.length;o++)n[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){let n=o_(e,"aria-describedby").filter(r=>r.indexOf(OP)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);k7(e,"aria-describedby",r.messageElement.id),e.setAttribute(r_,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,M7(e,"aria-describedby",r.messageElement.id),e.removeAttribute(r_)}_isElementDescribedByMessage(e,n){let r=o_(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function Lw(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function AP(t,i){t.id||(t.id=`${OP}-${i}-${Bw++}`)}var _o=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(_o||{}),s_,Ul;function l_(){if(Ul==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Ul=!1,Ul;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Ul=!0;else{let t=Element.prototype.scrollTo;t?Ul=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Ul=!1}}return Ul}function Ad(){if(typeof document!="object"||!document)return _o.NORMAL;if(s_==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),s_=_o.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,s_=t.scrollLeft===0?_o.NEGATED:_o.INVERTED),t.remove()}return s_}function zw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Rd,PP=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Vw(){if(Rd)return Rd;if(typeof document!="object"||!document)return Rd=new Set(PP),Rd;let t=document.createElement("input");return Rd=new Set(PP.filter(i=>(t.setAttribute("type",i),t.type===i))),Rd}var FP={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var I7=new z("MATERIAL_ANIMATIONS"),NP=null;function _h(){return g(I7,{optional:!0})?.animationsDisabled||g(ms,{optional:!0})==="NoopAnimations"?"di-disabled":(NP??=g(Md).matchMedia("(prefers-reduced-motion)").matches,NP?"reduced-motion":"enabled")}function xt(){return _h()!=="enabled"}function zn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Gr(t){return t!=null&&`${t}`!="false"}var Ui=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Ui||{}),jw=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ui.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},LP=Sd({passive:!0,capture:!0}),Hw=class{_events=new Map;addHandler(i,e,n,r){let o=this._events.get(e);if(o){let a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,LP)})}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,LP)))}_delegateEventHandler=i=>{let e=pi(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}},vh={enterDuration:225,exitDuration:150},A7=800,BP=Sd({passive:!0,capture:!0}),zP=["mousedown","touchstart"],VP=["mouseup","mouseleave","touchend","touchcancel"],R7=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.mat-ripple {
overflow: hidden;
position: relative;
}
.mat-ripple:not(:empty) {
transform: translateZ(0);
}
.mat-ripple.mat-ripple-unbounded {
overflow: visible;
}
.mat-ripple-element {
position: absolute;
border-radius: 50%;
pointer-events: none;
transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
transform: scale3d(0, 0, 0);
background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent));
}
@media (forced-colors: active) {
.mat-ripple-element {
display: none;
}
}
.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
display: none;
}
`],encapsulation:2})}return t})(),bh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new Hw;constructor(i,e,n,r,o){this._target=i,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=$i(n)),o&&o.get(Ot).load(R7)}fadeInRipple(i,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=G(G({},vh),n.animation);n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);let a=n.radius||O7(i,e,r),s=i-r.left,l=e-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,n.color!=null&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let h=window.getComputedStyle(d),b=h.transitionProperty,f=h.transitionDuration,_=b==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,y=new jw(this,d,n,_);d.style.transform="scale3d(1, 1, 1)",y.state=Ui.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let C=null;return!_&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{C&&(C.fallbackTimer=null),clearTimeout(T),this._finishRippleTransition(y)},k=()=>this._destroyRipple(y),T=setTimeout(k,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",k),C={onTransitionEnd:D,onTransitionCancel:k,fallbackTimer:T}}),this._activeRipples.set(y,C),(_||!c)&&this._finishRippleTransition(y),y}fadeOutRipple(i){if(i.state===Ui.FADING_OUT||i.state===Ui.HIDDEN)return;let e=i.element,n=G(G({},vh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Ui.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=$i(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,zP.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{VP.forEach(e=>{this._triggerElement.addEventListener(e,this,BP)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Ui.FADING_IN?this._startFadeOutTransition(i):i.state===Ui.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Ui.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Ui.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=zl(i),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+A7;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig))}_onTouchStart(i){if(!this._target.rippleDisabled&&!Vl(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=i.changedTouches;if(e)for(let n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(i=>{let e=i.state===Ui.VISIBLE||i.config.terminateOnPointerUp&&i.state===Ui.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(zP.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(VP.forEach(e=>i.removeEventListener(e,this,BP)),this._pointerUpEventsRegistered=!1))}};function O7(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}var As=new z("mat-ripple-global-options"),ai=(()=>{class t{_elementRef=g(pe);_animationsDisabled=xt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=g(De),n=g(ht),r=g(As,{optional:!0}),o=g(ze);this._globalOptions=r||{},this._rippleRenderer=new bh(this,e,this._elementRef,n,o)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var P7={capture:!0},F7=["focus","mousedown","mouseenter","touchstart"],$w="mat-ripple-loader-uninitialized",Uw="mat-ripple-loader-class-name",jP="mat-ripple-loader-centered",c_="mat-ripple-loader-disabled",d_=(()=>{class t{_document=g(je);_animationsDisabled=xt();_globalRippleOptions=g(As,{optional:!0});_platform=g(ht);_ngZone=g(De);_injector=g(ze);_eventCleanups;_hosts=new Map;constructor(){let e=g(An).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>F7.map(n=>e.listen(this._document,n,this._onInteraction,P7)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute($w,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(Uw))&&e.setAttribute(Uw,n.className||""),n.centered&&e.setAttribute(jP,""),n.disabled&&e.setAttribute(c_,"")}setDisabled(e,n){let r=this._hosts.get(e);r?(r.target.rippleDisabled=n,!n&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):n?e.setAttribute(c_,""):e.removeAttribute(c_)}_onInteraction=e=>{let n=pi(e);if(n instanceof HTMLElement){let r=n.closest(`[${$w}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(Uw)),e.append(n);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??vh.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??vh.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(c_),rippleConfig:{centered:e.hasAttribute(jP),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new bh(s,this._ngZone,n,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute($w)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var wn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,r){},styles:[`.mat-focus-indicator {
position: relative;
}
.mat-focus-indicator::before {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
box-sizing: border-box;
pointer-events: none;
display: var(--mat-focus-indicator-display, none);
border-width: var(--mat-focus-indicator-border-width, 3px);
border-style: var(--mat-focus-indicator-border-style, solid);
border-color: var(--mat-focus-indicator-border-color, transparent);
border-radius: var(--mat-focus-indicator-border-radius, 4px);
}
.mat-focus-indicator:focus-visible::before {
content: "";
}
@media (forced-colors: active) {
html {
--mat-focus-indicator-display: block;
}
}
`],encapsulation:2})}return t})();var N7=["*",[["","progressIndicator",""]]],L7=["*","[progressIndicator]"];function B7(t,i){t&1&&(kt(0,"div",1),Me(1,1),Mt())}var z7=new z("MAT_BUTTON_CONFIG");function HP(t){return t==null?void 0:gt(t)}var u_=(()=>{class t{_elementRef=g(pe);_ngZone=g(De);_animationsDisabled=xt();_config=g(z7,{optional:!0});_focusMonitor=g(Sn);_cleanupClick;_renderer=g(dt);_rippleLoader=g(d_);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}showProgress=Dt(!1,{transform:te});constructor(){g(Ot).load(wn);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,r){n&2&&(he("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),Ut(r.color?"mat-"+r.color:""),ue("mat-mdc-button-progress-indicator-shown",r.showProgress())("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",te],disabled:[2,"disabled","disabled",te],ariaDisabled:[2,"aria-disabled","ariaDisabled",te],disabledInteractive:[2,"disabledInteractive","disabledInteractive",te],tabIndex:[2,"tabIndex","tabIndex",HP],_tabindex:[2,"tabindex","_tabindex",HP],showProgress:[1,"showProgress"]}})}return t})(),vo=(()=>{class t extends u_{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Ee],ngContentSelectors:L7,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(tt(N7),yn(0,"span",0),Me(1),A(2,B7,2,0,"div",1),yn(3,"span",2)(4,"span",3)),n&2&&(u(2),R(r.showProgress()?2:-1))},styles:[`.mat-mdc-icon-button {
-webkit-user-select: none;
user-select: none;
display: inline-block;
position: relative;
box-sizing: border-box;
border: none;
outline: none;
background-color: transparent;
fill: currentColor;
text-decoration: none;
cursor: pointer;
z-index: 0;
overflow: visible;
border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
flex-shrink: 0;
text-align: center;
width: var(--mat-icon-button-state-layer-size, 40px);
height: var(--mat-icon-button-state-layer-size, 40px);
padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);
font-size: var(--mat-icon-button-icon-size, 24px);
color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-icon-button .mat-mdc-button-ripple,
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
border-radius: inherit;
}
.mat-mdc-icon-button .mat-mdc-button-ripple {
overflow: hidden;
}
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
content: "";
opacity: 0;
}
.mat-mdc-icon-button .mdc-button__label,
.mat-mdc-icon-button .mat-icon {
z-index: 1;
position: relative;
}
.mat-mdc-icon-button .mat-focus-indicator {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
border-radius: inherit;
}
.mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before {
content: "";
border-radius: inherit;
}
.mat-mdc-icon-button .mat-ripple-element {
background-color: var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-icon-button .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-icon-button-touch-target-size, 48px);
display: var(--mat-icon-button-touch-target-display, block);
left: 50%;
width: var(--mat-icon-button-touch-target-size, 48px);
transform: translate(-50%, -50%);
}
.mat-mdc-icon-button._mat-animation-noopable {
transition: none !important;
animation: none !important;
}
.mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-icon-button.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-icon-button img,
.mat-mdc-icon-button svg {
width: var(--mat-icon-button-icon-size, 24px);
height: var(--mat-icon-button-icon-size, 24px);
vertical-align: baseline;
}
.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic {
width: inherit;
height: inherit;
}
.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic {
height: 100%;
}
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple {
border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
}
.mat-mdc-icon-button[hidden] {
display: none;
}
.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before {
background: transparent;
opacity: 1;
}
.mat-mdc-button-progress-indicator-container {
position: absolute;
inset-inline-start: 0;
inset-block-start: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
box-sizing: border-box;
}
.mat-mdc-button-progress-indicator-shown mat-icon {
visibility: hidden;
}
`,`@media (forced-colors: active) {
.mat-mdc-button:not(.mdc-button--outlined),
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
.mat-mdc-raised-button:not(.mdc-button--outlined),
.mat-mdc-outlined-button:not(.mdc-button--outlined),
.mat-mdc-button-base.mat-tonal-button,
.mat-mdc-icon-button.mat-mdc-icon-button,
.mat-mdc-outlined-button .mdc-button__ripple {
outline: solid 1px;
}
}
`],encapsulation:2})}return t})();var V7=new z("cdk-dir-doc",{providedIn:"root",factory:()=>g(je)}),j7=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function $P(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?j7.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var ln=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Q("ltr");change=new le;constructor(){let e=g(V7,{optional:!0});if(e){let n=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set($P(n||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();var Di=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var WP=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],GP=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function H7(t,i){t&1&&(kt(0,"div",2),Me(1,3),Mt())}function $7(t,i){t&1&&(kt(0,"div",2),Me(1,3),Mt())}var U7=`.mat-mdc-fab-base {
-webkit-user-select: none;
user-select: none;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 56px;
height: 56px;
padding: 0;
border: none;
fill: currentColor;
text-decoration: none;
cursor: pointer;
-moz-appearance: none;
-webkit-appearance: none;
overflow: visible;
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);
flex-shrink: 0;
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-fab-base .mat-mdc-button-ripple,
.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,
.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
border-radius: inherit;
}
.mat-mdc-fab-base .mat-mdc-button-ripple {
overflow: hidden;
}
.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before {
content: "";
opacity: 0;
}
.mat-mdc-fab-base .mdc-button__label,
.mat-mdc-fab-base .mat-icon {
z-index: 1;
position: relative;
}
.mat-mdc-fab-base .mat-focus-indicator {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
}
.mat-mdc-fab-base:focus-visible > .mat-focus-indicator::before {
content: "";
}
.mat-mdc-fab-base._mat-animation-noopable {
transition: none !important;
animation: none !important;
}
.mat-mdc-fab-base::before {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid transparent;
border-radius: inherit;
content: "";
pointer-events: none;
}
.mat-mdc-fab-base[hidden] {
display: none;
}
.mat-mdc-fab-base::-moz-focus-inner {
padding: 0;
border: 0;
}
.mat-mdc-fab-base:active, .mat-mdc-fab-base:focus {
outline: none;
}
.mat-mdc-fab-base:hover {
cursor: pointer;
}
.mat-mdc-fab-base > svg {
width: 100%;
}
.mat-mdc-fab-base .mat-icon, .mat-mdc-fab-base .material-icons {
transition: transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);
fill: currentColor;
will-change: transform;
}
.mat-mdc-fab-base .mat-focus-indicator::before {
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
}
.mat-mdc-fab-base[disabled], .mat-mdc-fab-base.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
}
.mat-mdc-fab-base[disabled], .mat-mdc-fab-base[disabled]:focus, .mat-mdc-fab-base.mat-mdc-button-disabled, .mat-mdc-fab-base.mat-mdc-button-disabled:focus {
box-shadow: none;
}
.mat-mdc-fab-base.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-fab {
background-color: var(--mat-fab-container-color, var(--mat-sys-primary-container));
border-radius: var(--mat-fab-container-shape, var(--mat-sys-corner-large));
color: var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));
box-shadow: var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3));
}
@media (hover: hover) {
.mat-mdc-fab:hover {
box-shadow: var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4));
}
}
.mat-mdc-fab:focus {
box-shadow: var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3));
}
.mat-mdc-fab:active, .mat-mdc-fab:focus:active {
box-shadow: var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3));
}
.mat-mdc-fab[disabled], .mat-mdc-fab.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
background-color: var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-fab.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-fab .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-fab-touch-target-size, 48px);
display: var(--mat-fab-touch-target-display, block);
left: 50%;
width: var(--mat-fab-touch-target-size, 48px);
transform: translate(-50%, -50%);
}
.mat-mdc-fab .mat-ripple-element {
background-color: var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-fab .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container));
}
.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-fab-disabled-state-layer-color);
}
.mat-mdc-fab:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-fab.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-fab.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-fab.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-fab:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-mini-fab {
width: 40px;
height: 40px;
background-color: var(--mat-fab-small-container-color, var(--mat-sys-primary-container));
border-radius: var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));
color: var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));
box-shadow: var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3));
}
@media (hover: hover) {
.mat-mdc-mini-fab:hover {
box-shadow: var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4));
}
}
.mat-mdc-mini-fab:focus {
box-shadow: var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3));
}
.mat-mdc-mini-fab:active, .mat-mdc-mini-fab:focus:active {
box-shadow: var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3));
}
.mat-mdc-mini-fab[disabled], .mat-mdc-mini-fab.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
background-color: var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-mini-fab .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-fab-small-touch-target-size, 48px);
display: var(--mat-fab-small-touch-target-display);
left: 50%;
width: var(--mat-fab-small-touch-target-size, 48px);
transform: translate(-50%, -50%);
}
.mat-mdc-mini-fab .mat-ripple-element {
background-color: var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container));
}
.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-fab-small-disabled-state-layer-color);
}
.mat-mdc-mini-fab:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-mini-fab.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-mini-fab.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-mini-fab:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-extended-fab {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
padding-left: 20px;
padding-right: 20px;
width: auto;
max-width: 100%;
line-height: normal;
box-shadow: var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));
height: var(--mat-fab-extended-container-height, 56px);
border-radius: var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));
font-family: var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));
font-weight: var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));
letter-spacing: var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking));
}
@media (hover: hover) {
.mat-mdc-extended-fab:hover {
box-shadow: var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4));
}
}
.mat-mdc-extended-fab:focus {
box-shadow: var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3));
}
.mat-mdc-extended-fab:active, .mat-mdc-extended-fab:focus:active {
box-shadow: var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3));
}
.mat-mdc-extended-fab[disabled], .mat-mdc-extended-fab.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
}
.mat-mdc-extended-fab[disabled], .mat-mdc-extended-fab[disabled]:focus, .mat-mdc-extended-fab.mat-mdc-button-disabled, .mat-mdc-extended-fab.mat-mdc-button-disabled:focus {
box-shadow: none;
}
.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
[dir=rtl] .mat-mdc-extended-fab .mdc-button__label + .mat-icon, [dir=rtl] .mat-mdc-extended-fab .mdc-button__label + .material-icons,
.mat-mdc-extended-fab > .mat-icon,
.mat-mdc-extended-fab > .material-icons {
margin-left: -8px;
margin-right: 12px;
}
.mat-mdc-extended-fab .mdc-button__label + .mat-icon,
.mat-mdc-extended-fab .mdc-button__label + .material-icons, [dir=rtl] .mat-mdc-extended-fab > .mat-icon, [dir=rtl] .mat-mdc-extended-fab > .material-icons {
margin-left: 12px;
margin-right: -8px;
}
.mat-mdc-extended-fab .mat-mdc-button-touch-target {
width: 100%;
}
.mat-mdc-button-progress-indicator-container {
position: absolute;
inset-inline-start: 0;
margin-block-start: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
box-sizing: border-box;
}
.mat-mdc-button-progress-indicator-shown mat-icon,
.mat-mdc-button-progress-indicator-shown [matButtonIcon],
.mat-mdc-button-progress-indicator-shown .mdc-button__label {
visibility: hidden;
}
`,UP=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),nn=(()=>{class t extends u_{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=W7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,r=this._appearance?UP.get(this._appearance):null,o=UP.get(e);r&&n.remove(...r),n.add(...o),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[Ee],ngContentSelectors:GP,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(tt(WP),yn(0,"span",0),Me(1),kt(2,"span",1),Me(3,1),Mt(),Me(4,2),A(5,H7,2,0,"div",2),yn(6,"span",3)(7,"span",4)),n&2&&(ue("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab),u(5),R(r.showProgress()?5:-1))},styles:[`.mat-mdc-button-base {
text-decoration: none;
}
.mat-mdc-button-base .mat-icon {
min-height: fit-content;
flex-shrink: 0;
}
@media (hover: none) {
.mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before {
opacity: 0;
}
}
.mdc-button {
-webkit-user-select: none;
user-select: none;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-width: 64px;
border: none;
outline: none;
line-height: inherit;
-webkit-appearance: none;
overflow: visible;
vertical-align: middle;
background: transparent;
padding: 0 8px;
}
.mdc-button::-moz-focus-inner {
padding: 0;
border: 0;
}
.mdc-button:active {
outline: none;
}
.mdc-button:hover {
cursor: pointer;
}
.mdc-button:disabled {
cursor: default;
pointer-events: none;
}
.mdc-button[hidden] {
display: none;
}
.mdc-button .mdc-button__label {
position: relative;
}
.mat-mdc-button {
padding: 0 var(--mat-button-text-horizontal-padding, 12px);
height: var(--mat-button-text-container-height, 40px);
font-family: var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));
text-transform: var(--mat-button-text-label-text-transform);
font-weight: var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight));
}
.mat-mdc-button, .mat-mdc-button .mdc-button__ripple {
border-radius: var(--mat-button-text-container-shape, var(--mat-sys-corner-full));
}
.mat-mdc-button:not(:disabled) {
color: var(--mat-button-text-label-text-color, var(--mat-sys-primary));
}
.mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-button.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-button:has(.material-icons, mat-icon, [matButtonIcon]) {
padding: 0 var(--mat-button-text-with-icon-horizontal-padding, 16px);
}
.mat-mdc-button > .mat-icon {
margin-right: var(--mat-button-text-icon-spacing, 8px);
margin-left: var(--mat-button-text-icon-offset, -4px);
}
[dir=rtl] .mat-mdc-button > .mat-icon {
margin-right: var(--mat-button-text-icon-offset, -4px);
margin-left: var(--mat-button-text-icon-spacing, 8px);
}
.mat-mdc-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-text-icon-offset, -4px);
margin-left: var(--mat-button-text-icon-spacing, 8px);
}
[dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-text-icon-spacing, 8px);
margin-left: var(--mat-button-text-icon-offset, -4px);
}
.mat-mdc-button .mat-ripple-element {
background-color: var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-button .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-text-state-layer-color, var(--mat-sys-primary));
}
.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-button .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-button-text-touch-target-size, 48px);
display: var(--mat-button-text-touch-target-display, block);
left: 0;
right: 0;
transform: translateY(-50%);
}
.mat-mdc-unelevated-button {
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
height: var(--mat-button-filled-container-height, 40px);
font-family: var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));
text-transform: var(--mat-button-filled-label-text-transform);
font-weight: var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));
padding: 0 var(--mat-button-filled-horizontal-padding, 24px);
}
.mat-mdc-unelevated-button > .mat-icon {
margin-right: var(--mat-button-filled-icon-spacing, 8px);
margin-left: var(--mat-button-filled-icon-offset, -8px);
}
[dir=rtl] .mat-mdc-unelevated-button > .mat-icon {
margin-right: var(--mat-button-filled-icon-offset, -8px);
margin-left: var(--mat-button-filled-icon-spacing, 8px);
}
.mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-filled-icon-offset, -8px);
margin-left: var(--mat-button-filled-icon-spacing, 8px);
}
[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-filled-icon-spacing, 8px);
margin-left: var(--mat-button-filled-icon-offset, -8px);
}
.mat-mdc-unelevated-button .mat-ripple-element {
background-color: var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary));
}
.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-unelevated-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-unelevated-button .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-button-filled-touch-target-size, 48px);
display: var(--mat-button-filled-touch-target-display, block);
left: 0;
right: 0;
transform: translateY(-50%);
}
.mat-mdc-unelevated-button:not(:disabled) {
color: var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));
background-color: var(--mat-button-filled-container-color, var(--mat-sys-primary));
}
.mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple {
border-radius: var(--mat-button-filled-container-shape, var(--mat-sys-corner-full));
}
.mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container {
--mat-progress-spinner-active-indicator-color: var(--mat-button-filled-progress-active-indicator-color, var(--mat-sys-on-primary));
}
.mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
background-color: var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-raised-button {
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));
height: var(--mat-button-protected-container-height, 40px);
font-family: var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));
text-transform: var(--mat-button-protected-label-text-transform);
font-weight: var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));
padding: 0 var(--mat-button-protected-horizontal-padding, 24px);
}
.mat-mdc-raised-button > .mat-icon {
margin-right: var(--mat-button-protected-icon-spacing, 8px);
margin-left: var(--mat-button-protected-icon-offset, -8px);
}
[dir=rtl] .mat-mdc-raised-button > .mat-icon {
margin-right: var(--mat-button-protected-icon-offset, -8px);
margin-left: var(--mat-button-protected-icon-spacing, 8px);
}
.mat-mdc-raised-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-protected-icon-offset, -8px);
margin-left: var(--mat-button-protected-icon-spacing, 8px);
}
[dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-protected-icon-spacing, 8px);
margin-left: var(--mat-button-protected-icon-offset, -8px);
}
.mat-mdc-raised-button .mat-ripple-element {
background-color: var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-protected-state-layer-color, var(--mat-sys-primary));
}
.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-raised-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-raised-button .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-button-protected-touch-target-size, 48px);
display: var(--mat-button-protected-touch-target-display, block);
left: 0;
right: 0;
transform: translateY(-50%);
}
.mat-mdc-raised-button:not(:disabled) {
color: var(--mat-button-protected-label-text-color, var(--mat-sys-primary));
background-color: var(--mat-button-protected-container-color, var(--mat-sys-surface));
}
.mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple {
border-radius: var(--mat-button-protected-container-shape, var(--mat-sys-corner-full));
}
@media (hover: hover) {
.mat-mdc-raised-button:hover {
box-shadow: var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2));
}
}
.mat-mdc-raised-button:focus {
box-shadow: var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1));
}
.mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active {
box-shadow: var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1));
}
.mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
background-color: var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled {
box-shadow: var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0));
}
.mat-mdc-raised-button.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-outlined-button {
border-style: solid;
transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1);
height: var(--mat-button-outlined-container-height, 40px);
font-family: var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));
text-transform: var(--mat-button-outlined-label-text-transform);
font-weight: var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));
border-radius: var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));
border-width: var(--mat-button-outlined-outline-width, 1px);
padding: 0 var(--mat-button-outlined-horizontal-padding, 24px);
}
.mat-mdc-outlined-button > .mat-icon {
margin-right: var(--mat-button-outlined-icon-spacing, 8px);
margin-left: var(--mat-button-outlined-icon-offset, -8px);
}
[dir=rtl] .mat-mdc-outlined-button > .mat-icon {
margin-right: var(--mat-button-outlined-icon-offset, -8px);
margin-left: var(--mat-button-outlined-icon-spacing, 8px);
}
.mat-mdc-outlined-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-outlined-icon-offset, -8px);
margin-left: var(--mat-button-outlined-icon-spacing, 8px);
}
[dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-outlined-icon-spacing, 8px);
margin-left: var(--mat-button-outlined-icon-offset, -8px);
}
.mat-mdc-outlined-button .mat-ripple-element {
background-color: var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary));
}
.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-outlined-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-mdc-outlined-button .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-button-outlined-touch-target-size, 48px);
display: var(--mat-button-outlined-touch-target-display, block);
left: 0;
right: 0;
transform: translateY(-50%);
}
.mat-mdc-outlined-button:not(:disabled) {
color: var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));
border-color: var(--mat-button-outlined-outline-color, var(--mat-sys-outline));
}
.mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
border-color: var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-tonal-button {
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
height: var(--mat-button-tonal-container-height, 40px);
font-family: var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));
text-transform: var(--mat-button-tonal-label-text-transform);
font-weight: var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));
padding: 0 var(--mat-button-tonal-horizontal-padding, 24px);
}
.mat-tonal-button:not(:disabled) {
color: var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));
background-color: var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container));
}
.mat-tonal-button, .mat-tonal-button .mdc-button__ripple {
border-radius: var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full));
}
.mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled {
cursor: default;
pointer-events: none;
color: var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
background-color: var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-tonal-button.mat-mdc-button-disabled-interactive {
pointer-events: auto;
}
.mat-tonal-button > .mat-icon {
margin-right: var(--mat-button-tonal-icon-spacing, 8px);
margin-left: var(--mat-button-tonal-icon-offset, -8px);
}
[dir=rtl] .mat-tonal-button > .mat-icon {
margin-right: var(--mat-button-tonal-icon-offset, -8px);
margin-left: var(--mat-button-tonal-icon-spacing, 8px);
}
.mat-tonal-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-tonal-icon-offset, -8px);
margin-left: var(--mat-button-tonal-icon-spacing, 8px);
}
[dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon {
margin-right: var(--mat-button-tonal-icon-spacing, 8px);
margin-left: var(--mat-button-tonal-icon-offset, -8px);
}
.mat-tonal-button .mat-ripple-element {
background-color: var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
}
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container));
}
.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
background-color: var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before {
opacity: var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
}
.mat-tonal-button .mat-mdc-button-touch-target {
position: absolute;
top: 50%;
height: var(--mat-button-tonal-touch-target-size, 48px);
display: var(--mat-button-tonal-touch-target-display, block);
left: 0;
right: 0;
transform: translateY(-50%);
}
.mat-mdc-button,
.mat-mdc-unelevated-button,
.mat-mdc-raised-button,
.mat-mdc-outlined-button,
.mat-tonal-button {
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-button .mat-mdc-button-ripple,
.mat-mdc-button .mat-mdc-button-persistent-ripple,
.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
.mat-mdc-unelevated-button .mat-mdc-button-ripple,
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
.mat-mdc-raised-button .mat-mdc-button-ripple,
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
.mat-mdc-outlined-button .mat-mdc-button-ripple,
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
.mat-tonal-button .mat-mdc-button-ripple,
.mat-tonal-button .mat-mdc-button-persistent-ripple,
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
border-radius: inherit;
}
.mat-mdc-button .mat-mdc-button-ripple,
.mat-mdc-unelevated-button .mat-mdc-button-ripple,
.mat-mdc-raised-button .mat-mdc-button-ripple,
.mat-mdc-outlined-button .mat-mdc-button-ripple,
.mat-tonal-button .mat-mdc-button-ripple {
overflow: hidden;
}
.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
content: "";
opacity: 0;
}
.mat-mdc-button .mdc-button__label,
.mat-mdc-button .mat-icon,
.mat-mdc-unelevated-button .mdc-button__label,
.mat-mdc-unelevated-button .mat-icon,
.mat-mdc-raised-button .mdc-button__label,
.mat-mdc-raised-button .mat-icon,
.mat-mdc-outlined-button .mdc-button__label,
.mat-mdc-outlined-button .mat-icon,
.mat-tonal-button .mdc-button__label,
.mat-tonal-button .mat-icon {
z-index: 1;
position: relative;
}
.mat-mdc-button .mat-focus-indicator,
.mat-mdc-unelevated-button .mat-focus-indicator,
.mat-mdc-raised-button .mat-focus-indicator,
.mat-mdc-outlined-button .mat-focus-indicator,
.mat-tonal-button .mat-focus-indicator {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
border-radius: inherit;
}
.mat-mdc-button:focus-visible > .mat-focus-indicator::before,
.mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before,
.mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before,
.mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before,
.mat-tonal-button:focus-visible > .mat-focus-indicator::before {
content: "";
border-radius: inherit;
}
.mat-mdc-button._mat-animation-noopable,
.mat-mdc-unelevated-button._mat-animation-noopable,
.mat-mdc-raised-button._mat-animation-noopable,
.mat-mdc-outlined-button._mat-animation-noopable,
.mat-tonal-button._mat-animation-noopable {
transition: none !important;
animation: none !important;
}
.mat-mdc-button > .mat-icon,
.mat-mdc-unelevated-button > .mat-icon,
.mat-mdc-raised-button > .mat-icon,
.mat-mdc-outlined-button > .mat-icon,
.mat-tonal-button > .mat-icon {
display: inline-block;
position: relative;
vertical-align: top;
font-size: 1.125rem;
height: 1.125rem;
width: 1.125rem;
}
.mat-mdc-outlined-button .mat-mdc-button-ripple,
.mat-mdc-outlined-button .mdc-button__ripple {
top: -1px;
left: -1px;
bottom: -1px;
right: -1px;
}
.mat-mdc-unelevated-button .mat-focus-indicator::before,
.mat-tonal-button .mat-focus-indicator::before,
.mat-mdc-raised-button .mat-focus-indicator::before {
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
}
.mat-mdc-outlined-button .mat-focus-indicator::before {
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1);
}
.mat-mdc-button-progress-indicator-container {
position: absolute;
inset-inline-start: 0;
inset-block-start: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
box-sizing: border-box;
}
.mat-mdc-button-progress-indicator-shown mat-icon,
.mat-mdc-button-progress-indicator-shown [matButtonIcon],
.mat-mdc-button-progress-indicator-shown .mdc-button__label {
visibility: hidden;
}
`,`@media (forced-colors: active) {
.mat-mdc-button:not(.mdc-button--outlined),
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
.mat-mdc-raised-button:not(.mdc-button--outlined),
.mat-mdc-outlined-button:not(.mdc-button--outlined),
.mat-mdc-button-base.mat-tonal-button,
.mat-mdc-icon-button.mat-mdc-icon-button,
.mat-mdc-outlined-button .mdc-button__ripple {
outline: solid 1px;
}
}
`],encapsulation:2})}return t})();function W7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var G7=new z("mat-mdc-fab-default-options",{providedIn:"root",factory:()=>Ww}),Ww={color:"accent"};var Rs=(()=>{class t extends u_{_options=g(G7,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||Ww,this.color=this._options.color||Ww.color}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[Ee],ngContentSelectors:GP,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(tt(WP),yn(0,"span",0),Me(1),kt(2,"span",1),Me(3,1),Mt(),Me(4,2),A(5,$7,2,0,"div",2),yn(6,"span",3)(7,"span",4)),n&2&&(ue("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab),u(5),R(r.showProgress()?5:-1))},styles:[U7],encapsulation:2})}return t})();var Pt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Di,qe]})}return t})();var yh=class{};function xh(t){return t&&typeof t.connect=="function"&&!(t instanceof pu)}var bo=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(bo||{}),m_=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,r,o){i.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let h=()=>n(a,s,l);c=this._insertView(h,l,e,r(a)),d=c?bo.INSERTED:bo.REPLACED}else l==null?(this._detachAndCacheView(s,e),d=bo.REMOVED):(c=this._moveView(s,l,e,r(a)),d=bo.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,r){let o=this._insertViewFromCache(e,n);if(o){o.context.$implicit=r;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,r){let o=n.get(i);return n.move(o,e),o.context.$implicit=r,o}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{let n=e.indexOf(i);n===-1?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){let n=this._viewCache.pop();return n&&e.insert(n,i),n||null}};var q7=20,Os=(()=>{class t{_ngZone=g(De);_platform=g(ht);_renderer=g(An).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ce;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=q7){return this._platform.isBrowser?new it(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(ts(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Ne()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(ct(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((r,o)=>{this._targetContainsElement(o,e)&&n.push(o)}),n}_targetContainsElement(e,n){let r=$i(n),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Ch=(()=>{class t{elementRef=g(pe);scrollDispatcher=g(Os);ngZone=g(De);dir=g(ln,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new ce;_renderer=g(dt);_cleanupScroll;_elementScrolled=new ce;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&Ad()!=_o.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Ad()==_o.INVERTED?e.left=e.right:Ad()==_o.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;l_()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:n:e=="end"&&(e=a?n:r),a&&Ad()==_o.INVERTED?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&Ad()==_o.NEGATED?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),Q7=20,Cr=(()=>{class t{_platform=g(ht);_listeners;_viewportSize=null;_change=new ce;_document=g(je);constructor(){let e=g(De),n=g(An).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[n.listen("window","resize",r),n.listen("window","orientationchange",r)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body?.scrollTop||n.scrollY||r.scrollTop||0,s=-o.left||e.body?.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=Q7){return e>0?this._change.pipe(ts(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var QP=new z("CDK_VIRTUAL_SCROLL_VIEWPORT");var Na=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})(),wh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe,Na,qe,Na]})}return t})();var Eh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},yo=class extends Eh{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(i,e,n,r,o,a){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=r,this.bindings=o||null,this.directives=a||null}},si=class extends Eh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Gw=class extends Eh{element;constructor(i){super(),this.element=i instanceof pe?i.nativeElement:i}},Ps=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof yo)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof si)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Gw)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Dh=class extends Ps{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,r=n.get(zo,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,r=i.injector||this._defaultInjector||ze.NULL,o=r.get(Zt,n.injector);e=dg(i.component,{elementInjector:r,environmentInjector:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);r!==-1&&e.remove(r)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},ZP=(()=>{class t extends si{constructor(){let e=g(Lt),n=g(Xt);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Ee]})}return t})(),Wi=(()=>{class t extends Ps{_moduleRef=g(zo,{optional:!0});_document=g(je);_viewContainerRef=g(Xt);_isInitialized=!1;_attachedRef=null;get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new le;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(r,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ee]})}return t})(),wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();var YP=l_();function Fd(t){return new h_(t.get(Cr),t.get(je))}var h_=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=zn(-this._previousScrollPosition.left),i.style.top=zn(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,r=e.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),YP&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),YP&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function iF(t,i){return new p_(t.get(Os),t.get(De),t.get(Cr),i)}var p_=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(ct(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Sh=class{enable(){}disable(){}attach(){}};function qw(t,i){return i.some(e=>{let n=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,a=t.left>e.right;return n||r||o||a})}function KP(t,i){return i.some(e=>{let n=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,a=t.right>e.right;return n||r||o||a})}function Ba(t,i){return new f_(t.get(Os),t.get(Cr),t.get(De),i)}var f_=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();qw(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},rF=(()=>{class t{_injector=g(ze);noop=()=>new Sh;close=e=>iF(this._injector,e);block=()=>Fd(this._injector);reposition=e=>Ba(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),xo=class{positionStrategy;scrollStrategy=new Sh;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var g_=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var oF=(()=>{class t{_attachedOverlays=[];_document=g(je);_isAttached=!1;ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,r){return r.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),aF=(()=>{class t extends oF{_ngZone=g(De);_renderer=g(An).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let r=n.length-1;r>-1;r--){let o=n[r];if(this.canReceiveEvent(o,e,o._keydownEvents)){this._ngZone.run(()=>o._keydownEvents.next(e));break}}};static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),sF=(()=>{class t extends oF{_platform=g(ht);_ngZone=g(De);_renderer=g(An).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(n,"pointerdown",this._pointerDownListener,r),o.listen(n,"click",this._clickListener,r),o.listen(n,"auxclick",this._clickListener,r),o.listen(n,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=pi(e)};_clickListener=e=>{let n=pi(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(XP(s.overlayElement,n)||XP(s.overlayElement,r))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function XP(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var lF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
pointer-events: none;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.cdk-overlay-container {
position: fixed;
}
@layer cdk-overlay {
.cdk-overlay-container {
z-index: 1000;
}
}
.cdk-overlay-container:empty {
display: none;
}
.cdk-global-overlay-wrapper {
display: flex;
position: absolute;
}
@layer cdk-overlay {
.cdk-global-overlay-wrapper {
z-index: 1000;
}
}
.cdk-overlay-pane {
position: absolute;
pointer-events: auto;
box-sizing: border-box;
display: flex;
max-width: 100%;
max-height: 100%;
}
@layer cdk-overlay {
.cdk-overlay-pane {
z-index: 1000;
}
}
.cdk-overlay-backdrop {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: auto;
-webkit-tap-highlight-color: transparent;
opacity: 0;
touch-action: manipulation;
}
@layer cdk-overlay {
.cdk-overlay-backdrop {
z-index: 1000;
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
}
@media (prefers-reduced-motion) {
.cdk-overlay-backdrop {
transition-duration: 1ms;
}
}
.cdk-overlay-backdrop-showing {
opacity: 1;
}
@media (forced-colors: active) {
.cdk-overlay-backdrop-showing {
opacity: 0.6;
}
}
@layer cdk-overlay {
.cdk-overlay-dark-backdrop {
background: rgba(0, 0, 0, 0.32);
}
}
.cdk-overlay-transparent-backdrop {
transition: visibility 1ms linear, opacity 1ms linear;
visibility: hidden;
opacity: 1;
}
.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
opacity: 0;
visibility: visible;
}
.cdk-overlay-backdrop-noop-animation {
transition: none;
}
.cdk-overlay-connected-position-bounding-box {
position: absolute;
display: flex;
flex-direction: column;
min-width: 1px;
min-height: 1px;
}
@layer cdk-overlay {
.cdk-overlay-connected-position-bounding-box {
z-index: 1000;
}
}
.cdk-global-scrollblock {
position: fixed;
width: 100%;
overflow-y: scroll;
}
.cdk-overlay-popover {
background: none;
border: none;
padding: 0;
outline: 0;
overflow: visible;
position: fixed;
pointer-events: none;
white-space: normal;
color: inherit;
text-decoration: none;
width: 100%;
height: 100%;
inset: auto;
top: 0;
left: 0;
}
.cdk-overlay-popover::backdrop {
display: none;
}
.cdk-overlay-popover .cdk-overlay-backdrop {
position: fixed;
z-index: auto;
}
`],encapsulation:2})}return t})(),b_=(()=>{class t{_platform=g(ht);_containerElement;_document=g(je);_styleLoader=g(Ot);ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||zw()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let n=this._document.createElement("div");n.classList.add(e),zw()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}_loadStyles(){this._styleLoader.load(lF)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Qw=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,e,n,r){this._renderer=e,this._ngZone=n,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",r)}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function Zw(t){return t&&t.nodeType===1}var Od=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ce;_attachments=new ce;_detachments=new ce;_positionStrategy;_scrollStrategy;_locationChanges=Ye.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new ce;_outsidePointerEvents=new ce;_afterNextRenderRef;constructor(i,e,n,r,o,a,s,l,c,d=!1,h,b){this._portalOutlet=i,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=h,this._renderer=b,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Bt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Xe(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=zn(this._config.width),i.height=zn(this._config.height),i.minWidth=zn(this._config.minWidth),i.minHeight=zn(this._config.minHeight),i.maxWidth=zn(this._config.maxWidth),i.maxHeight=zn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Zw(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch{}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Qw(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let r=kd(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=Bt(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},JP="cdk-overlay-connected-position-bounding-box",Y7=/([A-Za-z%]+)$/;function Gl(t,i){return new __(i,t.get(Cr),t.get(je),t.get(ht),t.get(b_))}var __=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new ce;_resizeSubscription=Ye.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(JP),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,r,s),c=this._getOverlayPoint(l,e,s),d=this._getOverlayFit(c,e,n,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,n)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleArea<d.visibleArea)&&(a={overlayFit:d,overlayPoint:c,originPoint:l,position:s,overlayRect:e})}if(o.length){let s=null,l=-1;for(let c of o){let d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Wl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(JP),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof pe?this._origin.nativeElement:Zw(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let r;if(n.originX=="center")r=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;r=n.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return n.originY=="center"?o=i.top+i.height/2:o=n.originY=="top"?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r;n.overlayX=="center"?r=-e.width/2:n.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return n.overlayY=="center"?o=-e.height/2:o=n.overlayY=="top"?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){let o=tF(e),{x:a,y:s}=i,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,h=a+o.width-n.width,b=0-s,f=s+o.height-n.height,_=this._subtractOverflows(o.width,d,h),y=this._subtractOverflows(o.height,b,f),C=_*y;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:y===o.height,fitsInViewportHorizontally:_==o.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let r=n.bottom-e.y,o=n.right-e.x,a=eF(this._overlayRef.getConfig().minHeight),s=eF(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=r,c=i.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let r=tF(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),s=Math.max(i.y+r.height-o.height,0),l=Math.max(o.top-n.top-i.y,0),c=Math.max(o.left-n.left-i.x,0),d=0,h=0;return r.width<=o.width?d=c||-a:d=i.x<this._getViewportMarginStart()?o.left-n.left-i.x:0,r.height<=o.height?h=l||-s:h=i.y<this._getViewportMarginTop()?o.top-n.top-i.y:0,this._previousPushAmount={x:d,y:h},{x:i.x+d,y:i.y+h}}_applyPosition(i,e){if(this._setTransformOrigin(i),this._setOverlayElementStyles(e,i),this._setBoundingBoxStyles(e,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!K7(this._lastScrollVisibility,n)){let r=new g_(i,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=i,this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=i.overlayY;i.overlayX==="center"?n="center":this._isRtl()?n=i.overlayX==="start"?"right":"left":n=i.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(i,e){let n=this._viewportRect,r=this._isRtl(),o,a,s;if(e.overlayY==="top")a=i.y,o=n.height-a+this._getViewportMarginBottom();else if(e.overlayY==="bottom")s=n.height-i.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),o=n.height-s+this._getViewportMarginTop();else{let f=Math.min(n.bottom-i.y+n.top,i.y),_=this._lastBoundingBoxSize.height;o=f*2,a=i.y-f,o>_&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-_/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,h,b;if(c)b=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),d=i.x-this._getViewportMarginStart();else if(l)h=i.x,d=n.right-i.x-this._getViewportMarginEnd();else{let f=Math.min(n.right-i.x+n.left,i.x),_=this._lastBoundingBoxSize.width;d=f*2,h=i.x-f,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(h=i.x-_/2)}return{top:a,left:h,bottom:s,right:b,width:d,height:o}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="auto",r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.width=zn(n.width),r.height=zn(n.height),r.top=zn(n.top)||"auto",r.bottom=zn(n.bottom)||"auto",r.left=zn(n.left)||"auto",r.right=zn(n.right)||"auto",e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=zn(o)),a&&(r.maxWidth=zn(a))}this._lastBoundingBoxSize=n,Wl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Wl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Wl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();Wl(n,this._getExactOverlayY(e,i,d)),Wl(n,this._getExactOverlayX(e,i,d))}else n.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=zn(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=zn(a.maxWidth):o&&(n.maxWidth="")),Wl(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=zn(o.y);return r}_getExactOverlayX(i,e,n){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=zn(o.x);return r}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:KP(i,n),isOriginOutsideView:qw(i,n),isOverlayClipped:KP(e,n),isOverlayOutsideView:qw(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&kd(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof pe)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function Wl(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function eF(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(Y7);return!e||e==="px"?parseFloat(i):null}return t||null}function tF(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function K7(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var nF="cdk-global-overlay-wrapper";function Fs(t){return new v_}var v_=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(nF),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,h=this._xOffset,b=this._overlayRef.getConfig().direction==="rtl",f="",_="",y="";l?y="flex-start":d==="center"?(y="center",b?_=h:f=h):b?d==="left"||d==="end"?(y="flex-end",f=h):(d==="right"||d==="start")&&(y="flex-start",_=h):d==="left"||d==="start"?(y="flex-start",f=h):(d==="right"||d==="end")&&(y="flex-end",_=h),i.position=this._cssPosition,i.marginLeft=l?"0":f,i.marginTop=c?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":_,e.justifyContent=y,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(nF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},cF=(()=>{class t{_injector=g(ze);global(){return Fs()}flexibleConnectedTo(e){return Gl(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),kh=new z("OVERLAY_DEFAULT_CONFIG");function Co(t,i){t.get(Ot).load(lF);let e=t.get(b_),n=t.get(je),r=t.get(St),o=t.get(Ni),a=t.get(ln),s=t.get(dt,null,{optional:!0})||t.get(An).createRenderer(null,null),l=new xo(i),c=t.get(kh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??c:l.usePopover=!1;let d=n.createElement("div"),h=n.createElement("div");d.id=r.getId("cdk-overlay-"),d.classList.add("cdk-overlay-pane"),h.appendChild(d),l.usePopover&&(h.setAttribute("popover","manual"),h.classList.add("cdk-overlay-popover"));let b=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return Zw(b)?b.after(h):b?.type==="parent"?b.element.appendChild(h):e.getContainerElement().appendChild(h),new Od(new Dh(d,o,t),h,d,l,t.get(De),t.get(aF),n,t.get(jo),t.get(sF),i?.disableAnimations??t.get(ms,null,{optional:!0})==="NoopAnimations",t.get(Zt),s)}var dF=(()=>{class t{scrollStrategies=g(rF);_positionBuilder=g(cF);_injector=g(ze);create(e){return Co(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),X7=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J7=new z("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=g(ze);return()=>Ba(t)}}),Pd=(()=>{class t{elementRef=g(pe);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),uF=new z("cdk-connected-overlay-default-config"),y_=(()=>{class t{_dir=g(ln,{optional:!0});_injector=g(ze);_overlayRef;_templatePortal;_backdropSubscription=Ye.EMPTY;_attachSubscription=Ye.EMPTY;_detachSubscription=Ye.EMPTY;_positionSubscription=Ye.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=g(J7);_ngZone=g(De);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new le;positionChange=new le;attach=new le;detach=new le;overlayKeydown=new le;overlayOutsideClick=new le;constructor(){let e=g(Lt),n=g(Xt),r=g(uF,{optional:!0}),o=g(kh,{optional:!0});this.usePopover=o?.usePopover===!1?null:"global",this._templatePortal=new si(e,n),this.scrollStrategy=this._scrollStrategyFactory(),r&&this._assignConfig(r)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=X7);let e=this._overlayRef=Co(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!kn(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let r=this._getOriginElement(),o=pi(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new xo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Gl(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Pd?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Pd?this.origin.elementRef.nativeElement:this.origin instanceof pe?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rb(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",te],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",te],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",te],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",te],push:[2,"cdkConnectedOverlayPush","push",te],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",te],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",te],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Et]})}return t})(),Er=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[dF],imports:[qe,wr,wh,wh]})}return t})();function eU(t,i){}var Ns=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext;bindings};var Kw=(()=>{class t extends Ps{_elementRef=g(pe);_focusTrapFactory=g(Nw);_config;_interactivityChecker=g(Fw);_ngZone=g(De);_focusMonitor=g(Sn);_renderer=g(dt);_changeDetectorRef=g(Ge);_injector=g(ze);_platform=g(ht);_document=g(je);_portalOutlet;_focusTrapped=new ce;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=g(Ns,{optional:!0})||new Ns,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(e){this._isDestroyed||Bt(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=jl(),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(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=jl();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=jl()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&Qe(Wi,7),n&2){let o;K(o=X())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&he("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[Ee],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&ot(0,eU,0,0,"ng-template",0)},dependencies:[Wi],styles:[`.cdk-dialog-container {
display: block;
width: 100%;
height: 100%;
min-height: inherit;
max-height: inherit;
}
`],encapsulation:2,changeDetection:1})}return t})(),Mh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ce;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!kn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},tU=new z("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=g(ze);return()=>Fd(t)}}),nU=new z("DialogData"),iU=new z("DefaultDialogConfig");function rU(t){let i=Q(t),e=new le;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var Xw=(()=>{class t{_injector=g(ze);_defaultOptions=g(iU,{optional:!0});_parentDialog=g(t,{optional:!0,skipSelf:!0});_overlayContainer=g(b_);_idGenerator=g(St);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce;_afterOpenedAtThisLevel=new ce;_ariaHiddenElements=new Map;_scrollStrategy=g(tU);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Yr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0)));open(e,n){let r=this._defaultOptions||new Ns;n=G(G({},r),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),a=Co(this._injector,o),s=new Mh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(mt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Yw(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Yw(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Yw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new xo({positionStrategy:e.positionStrategy||Fs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Ns,useValue:r},{provide:Mh,useValue:n},{provide:Od,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=Kw;let l=new yo(s,r.viewContainerRef,ze.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,r,o){if(e instanceof Lt){let a=this._createInjector(o,n,r,void 0),s={$implicit:o.data,dialogRef:n};o.templateContext&&(s=G(G({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new si(e,null,s,a))}else{let a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new yo(e,o.viewContainerRef,a,null,o.bindings));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:nU,useValue:e.data},{provide:Mh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(ln,null,{optional:!0}))&&s.push({provide:ln,useValue:rU(e.direction)}),ze.create({parent:a||o,providers:s})}_removeOpenDialog(e,n){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function Yw(t,i){let e=t.length;for(;e--;)i(t[e])}var mF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[Xw],imports:[Er,wr,uh,wr]})}return t})();function oU(t,i){}var C_=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration;bindings},Jw="mdc-dialog--open",hF="mdc-dialog--opening",pF="mdc-dialog--closing",aU=150,sU=75,lU=(()=>{class t extends Kw{_animationStateChanged=new le;_animationsEnabled=!xt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?gF(this._config.enterAnimationDuration)??aU:0;_exitAnimationDuration=this._animationsEnabled?gF(this._config.exitAnimationDuration)??sU:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(fF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(hF,Jw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Jw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Jw),this._animationsEnabled?(this._hostElement.style.setProperty(fF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(hF,pF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(en("id",r._config.id),he("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ue("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[Ee],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1),ot(2,oU,0,0,"ng-template",2),m()())},dependencies:[Wi],styles:[`.mat-mdc-dialog-container {
width: 100%;
height: 100%;
display: block;
box-sizing: border-box;
max-height: inherit;
min-height: inherit;
min-width: inherit;
max-width: inherit;
outline: 0;
}
.cdk-overlay-pane.mat-mdc-dialog-panel {
max-width: var(--mat-dialog-container-max-width, 560px);
min-width: var(--mat-dialog-container-min-width, 280px);
}
@media (max-width: 599px) {
.cdk-overlay-pane.mat-mdc-dialog-panel {
max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px));
}
}
.mat-mdc-dialog-inner-container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
box-sizing: border-box;
height: 100%;
opacity: 0;
transition: opacity linear var(--mat-dialog-transition-duration, 0ms);
max-height: inherit;
min-height: inherit;
min-width: inherit;
max-width: inherit;
}
.mdc-dialog--closing .mat-mdc-dialog-inner-container {
transition: opacity 75ms linear;
transform: none;
}
.mdc-dialog--open .mat-mdc-dialog-inner-container {
opacity: 1;
}
._mat-animation-noopable .mat-mdc-dialog-inner-container {
transition: none;
}
.mat-mdc-dialog-surface {
display: flex;
flex-direction: column;
flex-grow: 0;
flex-shrink: 0;
box-sizing: border-box;
width: 100%;
height: 100%;
position: relative;
overflow-y: auto;
outline: 0;
transform: scale(0.8);
transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);
max-height: inherit;
min-height: inherit;
min-width: inherit;
max-width: inherit;
box-shadow: var(--mat-dialog-container-elevation-shadow, none);
border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));
background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white));
}
[dir=rtl] .mat-mdc-dialog-surface {
text-align: right;
}
.mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface {
transform: none;
}
._mat-animation-noopable .mat-mdc-dialog-surface {
transition: none;
}
.mat-mdc-dialog-surface::before {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 2px solid transparent;
border-radius: inherit;
content: "";
pointer-events: none;
}
.mat-mdc-dialog-title {
display: block;
position: relative;
flex-shrink: 0;
box-sizing: border-box;
margin: 0 0 1px;
padding: var(--mat-dialog-headline-padding, 6px 24px 13px);
}
.mat-mdc-dialog-title::before {
display: inline-block;
width: 0;
height: 40px;
content: "";
vertical-align: 0;
}
[dir=rtl] .mat-mdc-dialog-title {
text-align: right;
}
.mat-mdc-dialog-container .mat-mdc-dialog-title {
color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));
line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));
font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));
font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));
letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em));
}
.mat-mdc-dialog-content {
display: block;
flex-grow: 1;
box-sizing: border-box;
margin: 0;
overflow: auto;
max-height: 65vh;
}
.mat-mdc-dialog-content > :first-child {
margin-top: 0;
}
.mat-mdc-dialog-content > :last-child {
margin-bottom: 0;
}
.mat-mdc-dialog-container .mat-mdc-dialog-content {
color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));
font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));
line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));
font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));
font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));
letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em));
}
.mat-mdc-dialog-container .mat-mdc-dialog-content {
padding: var(--mat-dialog-content-padding, 20px 24px);
}
.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content {
padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0);
}
.mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content {
padding-top: 0;
}
.mat-mdc-dialog-actions {
display: flex;
position: relative;
flex-shrink: 0;
flex-wrap: wrap;
align-items: center;
box-sizing: border-box;
min-height: 52px;
margin: 0;
border-top: 1px solid transparent;
padding: var(--mat-dialog-actions-padding, 16px 24px);
justify-content: var(--mat-dialog-actions-alignment, flex-end);
}
@media (forced-colors: active) {
.mat-mdc-dialog-actions {
border-top-color: CanvasText;
}
}
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] {
justify-content: start;
}
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] {
justify-content: center;
}
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] {
justify-content: flex-end;
}
.mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
.mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
margin-left: 8px;
}
[dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
margin-left: 0;
margin-right: 8px;
}
.mat-mdc-dialog-component-host {
display: contents;
}
`],encapsulation:2,changeDetection:1})}return t})(),fF="--mat-dialog-transition-duration";function gF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?yr(t.substring(0,t.length-2)):t.endsWith("s")?yr(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var x_=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(x_||{}),En=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Ir(1);_beforeClosed=new Ir(1);_result;_closeFallbackTimeout;_state=x_.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(ct(r=>r.state==="opened"),mt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(ct(r=>r.state==="closed"),mt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),hn(this.backdropClick(),this.keydownEvents().pipe(ct(r=>r.keyCode===27&&!this.disableClose&&!kn(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),_F(this,r.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(ct(n=>n.state==="closing"),mt(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=x_.CLOSING,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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=x_.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function _F(t,i,e){return t._closeInteractionType=i,t.close(e)}var Un=new z("MatMdcDialogData"),cU=new z("mat-mdc-dialog-default-options"),dU=new z("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=g(ze);return()=>Fd(t)}}),qr=(()=>{class t{_defaultOptions=g(cU,{optional:!0});_scrollStrategy=g(dU);_parentDialog=g(t,{optional:!0,skipSelf:!0});_idGenerator=g(St);_injector=g(ze);_dialog=g(Xw);_animationsDisabled=xt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce;_afterOpenedAtThisLevel=new ce;dialogConfigClass=C_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Yr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0)));constructor(){this._dialogRefConstructor=En,this._dialogContainerType=lU,this._dialogDataToken=Un}open(e,n){let r;n=G(G({},this._defaultOptions||new C_),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Xe(G({},n),{positionStrategy:Fs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Ns,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.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Yo=(()=>{class t{dialogRef=g(En,{optional:!0});_elementRef=g(pe);_dialog=g(qr);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=bF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&_F(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&N("click",function(a){return r._onButtonClick(a)}),n&2&&he("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Et]})}return t})(),vF=(()=>{class t{_dialogRef=g(En,{optional:!0});_elementRef=g(pe);_dialog=g(qr);ngOnInit(){this._dialogRef||(this._dialogRef=bF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t})}return t})(),fi=(()=>{class t extends vF{id=g(St).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){n&2&&en("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Ee]})}return t})(),gi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[eC([Ch])]})}return t})(),Si=(()=>{class t extends vF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&ue("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[Ee]})}return t})();function bF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var Mn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[qr],imports:[mF,Er,wr,qe]})}return t})();var eE=class{_box;_destroyed=new ce;_resizeSubject=new ce;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new it(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(ct(e=>e.some(n=>n.target===i)),Pp({bufferSize:1,refCount:!0}),Ue(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},w_=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=g(De);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let r=n?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new eE(r)),this._observers.get(r).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var uU=["notch"],mU=["*"],xF=["iconPrefixContainer"],CF=["textPrefixContainer"],wF=["iconSuffixContainer"],EF=["textSuffixContainer"],hU=["textField"],pU=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],fU=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function gU(t,i){t&1&&U(0,"span",21)}function _U(t,i){if(t&1&&(p(0,"label",20),Me(1,1),A(2,gU,1,0,"span",21),m()),t&2){let e=E(2);S("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),he("for",e._control.disableAutomaticLabeling?null:e._control.id),u(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function vU(t,i){if(t&1&&A(0,_U,3,5,"label",20),t&2){let e=E();R(e._hasFloatingLabel()?0:-1)}}function bU(t,i){t&1&&U(0,"div",7)}function yU(t,i){}function xU(t,i){if(t&1&&ot(0,yU,0,0,"ng-template",13),t&2){E(2);let e=pn(1);S("ngTemplateOutlet",e)}}function CU(t,i){if(t&1&&(p(0,"div",9),A(1,xU,1,1,null,13),m()),t&2){let e=E();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),u(),R(e._forceDisplayInfixLabel()?-1:1)}}function wU(t,i){t&1&&(p(0,"div",10,2),Me(2,2),m())}function EU(t,i){t&1&&(p(0,"div",11,3),Me(2,3),m())}function DU(t,i){}function SU(t,i){if(t&1&&ot(0,DU,0,0,"ng-template",13),t&2){E();let e=pn(1);S("ngTemplateOutlet",e)}}function kU(t,i){t&1&&(p(0,"div",14,4),Me(2,4),m())}function MU(t,i){t&1&&(p(0,"div",15,5),Me(2,5),m())}function TU(t,i){t&1&&U(0,"div",16)}function IU(t,i){t&1&&(p(0,"div",18),Me(1,6),m())}function AU(t,i){if(t&1&&(p(0,"mat-hint",22),v(1),m()),t&2){let e=E(2);S("id",e._hintLabelId),u(),M(e.hintLabel)}}function RU(t,i){if(t&1&&(p(0,"div",19),A(1,AU,2,2,"mat-hint",22),Me(2,7),U(3,"div",23),Me(4,8),m()),t&2){let e=E();u(),R(e.hintLabel?1:-1)}}var ni=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-label"]]})}return t})(),AF=new z("MatError"),Ko=(()=>{class t{id=g(St).getId("mat-mdc-error-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,r){n&2&&en("id",r.id)},inputs:{id:"id"},features:[He([{provide:AF,useExisting:t}])]})}return t})(),Nd=(()=>{class t{align="start";id=g(St).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){n&2&&(en("id",r.id),he("align",null),ue("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),RF=new z("MatPrefix"),D_=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[He([{provide:RF,useExisting:t}])]})}return t})(),OF=new z("MatSuffix"),S_=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[He([{provide:OF,useExisting:t}])]})}return t})(),PF=new z("FloatingLabelParent"),DF=(()=>{class t{_elementRef=g(pe);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=g(w_);_ngZone=g(De);_parent=g(PF);_resizeSubscription=new Ye;ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return OU(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function OU(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var SF="mdc-line-ripple--active",E_="mdc-line-ripple--deactivating",kF=(()=>{class t{_elementRef=g(pe);_cleanupTransitionEnd;constructor(){let e=g(De),n=g(dt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(E_),e.add(SF)}deactivate(){this._elementRef.nativeElement.classList.add(E_)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,r=n.contains(E_);e.propertyName==="opacity"&&r&&n.remove(SF,E_)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),MF=(()=>{class t{_elementRef=g(pe);_ngZone=g(De);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(n&1&&Qe(uU,5),n&2){let o;K(o=X())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},ngContentSelectors:mU,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,r){n&1&&(tt(),yn(0,"div",1),kt(1,"div",2,0),Me(3),Mt(),yn(4,"div",3))},encapsulation:2})}return t})(),Th=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t})}return t})();var Ih=new z("MatFormField"),PU=new z("MAT_FORM_FIELD_DEFAULT_OPTIONS"),TF="fill",FU="auto",IF="fixed",NU="translateY(-50%)",Wn=(()=>{class t{_elementRef=g(pe);_changeDetectorRef=g(Ge);_platform=g(ht);_idGenerator=g(St);_ngZone=g(De);_defaults=g(PU,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=pm("iconPrefixContainer");_textPrefixContainerSignal=pm("textPrefixContainer");_iconSuffixContainerSignal=pm("iconSuffixContainer");_textSuffixContainerSignal=pm("textSuffixContainer");_prefixSuffixContainers=Wt(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=D2(ni);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Gr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||FU}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||TF;this._appearanceSignal.set(n)}_appearanceSignal=Q(TF);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||IF}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||IF}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new ce;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=xt();constructor(){let e=this._defaults,n=g(ln);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),xi(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Wt(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(r+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(It([void 0,void 0]),Le(()=>[n.errorState,n.userAriaDescribedBy]),Op(),ct(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Ue(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),hn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){cg({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Wt(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let n=this._control.describedByIds,r;if(n){let o=this._describedByIds||e;r=e.concat(n.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=this._currentDirection==="rtl"?"-1":"1",h=`${a+s}px`,f=`calc(${d} * (${h} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,_=`var(--mat-mdc-form-field-label-transform, ${NU} translateX(${f}))`,y=a+s+l+c;return[_,y]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(n&1&&(ng(o,r._labelChild,ni,5),jt(o,Th,5)(o,RF,5)(o,OF,5)(o,AF,5)(o,Nd,5)),n&2){rg();let a;K(a=X())&&(r._formFieldControl=a.first),K(a=X())&&(r._prefixChildren=a),K(a=X())&&(r._suffixChildren=a),K(a=X())&&(r._errorChildren=a),K(a=X())&&(r._hintChildren=a)}},viewQuery:function(n,r){if(n&1&&(ig(r._iconPrefixContainerSignal,xF,5)(r._textPrefixContainerSignal,CF,5)(r._iconSuffixContainerSignal,wF,5)(r._textSuffixContainerSignal,EF,5),Qe(hU,5)(xF,5)(CF,5)(wF,5)(EF,5)(DF,5)(MF,5)(kF,5)),n&2){rg(4);let o;K(o=X())&&(r._textField=o.first),K(o=X())&&(r._iconPrefixContainer=o.first),K(o=X())&&(r._textPrefixContainer=o.first),K(o=X())&&(r._iconSuffixContainer=o.first),K(o=X())&&(r._textSuffixContainer=o.first),K(o=X())&&(r._floatingLabel=o.first),K(o=X())&&(r._notchedOutline=o.first),K(o=X())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,r){n&2&&ue("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[He([{provide:Ih,useExisting:t},{provide:PF,useExisting:t}])],ngContentSelectors:fU,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(n&1&&(tt(pU),ot(0,vU,1,1,"ng-template",null,0,Da),p(2,"div",6,1),N("click",function(a){return r._control.onContainerClick(a)}),A(4,bU,1,0,"div",7),p(5,"div",8),A(6,CU,2,2,"div",9),A(7,wU,3,0,"div",10),A(8,EU,3,0,"div",11),p(9,"div",12),A(10,SU,1,1,null,13),Me(11),m(),A(12,kU,3,0,"div",14),A(13,MU,3,0,"div",15),m(),A(14,TU,1,0,"div",16),m(),p(15,"div",17),A(16,IU,2,0,"div",18)(17,RU,5,1,"div",19),m()),n&2){let o;u(2),ue("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),u(2),R(!r._hasOutline()&&!r._control.disabled?4:-1),u(2),R(r._hasOutline()?6:-1),u(),R(r._hasIconPrefix?7:-1),u(),R(r._hasTextPrefix?8:-1),u(2),R(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),u(2),R(r._hasTextSuffix?12:-1),u(),R(r._hasIconSuffix?13:-1),u(),R(r._hasOutline()?-1:14),u(),ue("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();u(),R((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[DF,MF,bs,kF,Nd],styles:[`.mdc-text-field {
display: inline-flex;
align-items: baseline;
padding: 0 16px;
position: relative;
box-sizing: border-box;
overflow: hidden;
will-change: opacity, transform, color;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.mdc-text-field__input {
width: 100%;
min-width: 0;
border: none;
border-radius: 0;
background: none;
padding: 0;
-moz-appearance: none;
-webkit-appearance: none;
height: 28px;
}
.mdc-text-field__input::-webkit-calendar-picker-indicator, .mdc-text-field__input::-webkit-search-cancel-button {
display: none;
}
.mdc-text-field__input::-ms-clear {
display: none;
}
.mdc-text-field__input:focus {
outline: none;
}
.mdc-text-field__input:invalid {
box-shadow: none;
}
.mdc-text-field__input::placeholder {
opacity: 0;
}
.mdc-text-field__input::-moz-placeholder {
opacity: 0;
}
.mdc-text-field__input::-webkit-input-placeholder {
opacity: 0;
}
.mdc-text-field__input:-ms-input-placeholder {
opacity: 0;
}
.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mdc-text-field--focused .mdc-text-field__input::placeholder {
opacity: 1;
}
.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mdc-text-field--focused .mdc-text-field__input::-moz-placeholder {
opacity: 1;
}
.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {
opacity: 1;
}
.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {
opacity: 1;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder {
opacity: 0;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder {
opacity: 0;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder {
opacity: 0;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder {
opacity: 0;
}
.mdc-text-field--outlined .mdc-text-field__input, .mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input {
height: 100%;
}
.mdc-text-field--outlined .mdc-text-field__input {
display: flex;
border: none !important;
background-color: transparent;
}
.mdc-text-field--disabled .mdc-text-field__input {
pointer-events: auto;
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));
caret-color: var(--mat-form-field-filled-caret-color, var(--mat-sys-primary));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));
caret-color: var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input {
caret-color: var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error));
}
.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input {
caret-color: var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error));
}
.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input {
color: var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
color: var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mdc-text-field--disabled .mdc-text-field__input {
background-color: Window;
}
}
.mdc-text-field--filled {
height: 56px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-top-left-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));
border-top-right-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) {
background-color: var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant));
}
.mdc-text-field--filled.mdc-text-field--disabled {
background-color: var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent));
}
.mdc-text-field--outlined {
height: 56px;
overflow: visible;
padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));
padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);
}
[dir=rtl] .mdc-text-field--outlined {
padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);
padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));
}
.mdc-floating-label {
position: absolute;
left: 0;
transform-origin: left top;
line-height: 1.15rem;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
cursor: text;
overflow: hidden;
will-change: transform;
}
[dir=rtl] .mdc-floating-label {
right: 0;
left: auto;
transform-origin: right top;
text-align: right;
}
.mdc-text-field .mdc-floating-label {
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}
.mdc-notched-outline .mdc-floating-label {
display: inline-block;
position: relative;
max-width: 100%;
}
.mdc-text-field--outlined .mdc-floating-label {
left: 4px;
right: auto;
}
[dir=rtl] .mdc-text-field--outlined .mdc-floating-label {
left: auto;
right: 4px;
}
.mdc-text-field--filled .mdc-floating-label {
left: 16px;
right: auto;
}
[dir=rtl] .mdc-text-field--filled .mdc-floating-label {
left: auto;
right: 16px;
}
.mdc-text-field--disabled .mdc-floating-label {
cursor: default;
}
@media (forced-colors: active) {
.mdc-text-field--disabled .mdc-floating-label {
z-index: 1;
}
}
.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label {
display: none;
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label {
color: var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label {
color: var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label {
color: var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label {
color: var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label {
color: var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container));
}
.mdc-text-field--filled .mdc-floating-label {
font-family: var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));
font-size: var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));
letter-spacing: var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label {
color: var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label {
color: var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface));
}
.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label {
color: var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label {
color: var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label {
color: var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container));
}
.mdc-text-field--outlined .mdc-floating-label {
font-family: var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));
font-size: var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));
letter-spacing: var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking));
}
.mdc-floating-label--float-above {
cursor: auto;
transform: translateY(-106%) scale(0.75);
}
.mdc-text-field--filled .mdc-floating-label--float-above {
transform: translateY(-106%) scale(0.75);
}
.mdc-text-field--outlined .mdc-floating-label--float-above {
transform: translateY(-37.25px) scale(1);
font-size: 0.75rem;
}
.mdc-notched-outline .mdc-floating-label--float-above {
text-overflow: clip;
}
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
max-width: 133.3333333333%;
}
.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
transform: translateY(-34.75px) scale(0.75);
}
.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
font-size: 1rem;
}
.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after {
margin-left: 1px;
margin-right: 0;
content: "*";
}
[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after {
margin-left: 0;
margin-right: 1px;
}
.mdc-notched-outline {
display: flex;
position: absolute;
top: 0;
right: 0;
left: 0;
box-sizing: border-box;
width: 100%;
max-width: 100%;
height: 100%;
text-align: left;
pointer-events: none;
}
[dir=rtl] .mdc-notched-outline {
text-align: right;
}
.mdc-text-field--outlined .mdc-notched-outline {
z-index: 1;
}
.mat-mdc-notch-piece {
box-sizing: border-box;
height: 100%;
pointer-events: none;
border: none;
border-top: 1px solid;
border-bottom: 1px solid;
}
.mdc-text-field--focused .mat-mdc-notch-piece {
border-width: 2px;
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));
border-width: var(--mat-form-field-outlined-outline-width, 1px);
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary));
}
.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece {
border-width: var(--mat-form-field-outlined-focus-outline-width, 2px);
}
.mdc-notched-outline__leading {
border-left: 1px solid;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading {
width: max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));
}
[dir=rtl] .mdc-notched-outline__leading {
border-left: none;
border-right: 1px solid;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-notched-outline__trailing {
flex-grow: 1;
border-left: none;
border-right: 1px solid;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
[dir=rtl] .mdc-notched-outline__trailing {
border-left: 1px solid;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-notched-outline__notch {
flex: 0 0 auto;
width: auto;
}
.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {
max-width: min(var(--mat-form-field-notch-max-width, 100%), calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2));
}
.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
max-width: min(100%, calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2));
}
.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-top: 1px;
}
.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-top: 2px;
}
.mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-left: 0;
padding-right: 8px;
border-top: none;
}
[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-left: 8px;
padding-right: 0;
}
.mdc-notched-outline--no-label .mdc-notched-outline__notch {
display: none;
}
.mdc-line-ripple::before, .mdc-line-ripple::after {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
border-bottom-style: solid;
content: "";
}
.mdc-line-ripple::before {
z-index: 1;
border-bottom-width: var(--mat-form-field-filled-active-indicator-height, 1px);
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface));
}
.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container));
}
.mdc-line-ripple::after {
transform: scaleX(0);
opacity: 0;
z-index: 2;
}
.mdc-text-field--filled .mdc-line-ripple::after {
border-bottom-width: var(--mat-form-field-filled-focus-active-indicator-height, 2px);
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after {
border-bottom-color: var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary));
}
.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after {
border-bottom-color: var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error));
}
.mdc-line-ripple--active::after {
transform: scaleX(1);
opacity: 1;
}
.mdc-line-ripple--deactivating::after {
opacity: 0;
}
.mdc-text-field--disabled {
pointer-events: none;
}
.mat-mdc-form-field-textarea-control {
vertical-align: middle;
resize: vertical;
box-sizing: border-box;
height: auto;
margin: 0;
padding: 0;
border: none;
overflow: auto;
}
.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font: inherit;
letter-spacing: inherit;
text-decoration: inherit;
text-transform: inherit;
border: none;
}
.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
line-height: normal;
pointer-events: all;
will-change: auto;
}
.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label {
cursor: inherit;
}
.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,
.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control {
height: auto;
}
.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color] {
height: 23px;
}
.mat-mdc-text-field-wrapper {
height: auto;
flex: auto;
will-change: auto;
}
.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
padding-left: 0;
--mat-mdc-form-field-label-offset-x: -16px;
}
.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
padding-right: 0;
}
[dir=rtl] .mat-mdc-text-field-wrapper {
padding-left: 16px;
padding-right: 16px;
}
[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
padding-left: 0;
}
[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
padding-right: 0;
}
.mat-form-field-disabled .mdc-text-field__input::placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
opacity: 1;
}
.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label {
left: auto;
right: auto;
}
.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input {
display: inline-block;
}
.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch {
padding-top: 0;
}
.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch {
border-left: 1px solid transparent;
}
[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch {
border-left: none;
border-right: 1px solid transparent;
}
.mat-mdc-form-field-infix {
min-height: var(--mat-form-field-container-height, 56px);
padding-top: var(--mat-form-field-filled-with-label-container-padding-top, 24px);
padding-bottom: var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);
}
.mdc-text-field--outlined .mat-mdc-form-field-infix, .mdc-text-field--no-label .mat-mdc-form-field-infix {
padding-top: var(--mat-form-field-container-vertical-padding, 16px);
padding-bottom: var(--mat-form-field-container-vertical-padding, 16px);
}
.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label {
top: calc(var(--mat-form-field-container-height, 56px) / 2);
}
.mdc-text-field--filled .mat-mdc-floating-label {
display: var(--mat-form-field-filled-label-display, block);
}
.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1))
scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));
transform: var(--mat-mdc-form-field-label-transform);
}
@keyframes _mat-form-field-subscript-animation {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.mat-mdc-form-field-subscript-wrapper {
box-sizing: border-box;
width: 100%;
position: relative;
}
.mat-mdc-form-field-hint-wrapper,
.mat-mdc-form-field-error-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 0 16px;
opacity: 1;
transform: translateY(0);
animation: _mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2);
}
.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,
.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper {
position: static;
}
.mat-mdc-form-field-bottom-align::before {
content: "";
display: inline-block;
height: 16px;
}
.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before {
content: unset;
}
.mat-mdc-form-field-hint-end {
order: 1;
}
.mat-mdc-form-field-hint-wrapper {
display: flex;
}
.mat-mdc-form-field-hint-spacer {
flex: 1 0 1em;
}
.mat-mdc-form-field-error {
display: block;
color: var(--mat-form-field-error-text-color, var(--mat-sys-error));
}
.mat-mdc-form-field-subscript-wrapper,
.mat-mdc-form-field-bottom-align::before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));
line-height: var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));
font-size: var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));
letter-spacing: var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));
font-weight: var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight));
}
.mat-mdc-form-field-focus-overlay {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
opacity: 0;
pointer-events: none;
background-color: var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface));
}
.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay {
opacity: var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay {
opacity: var(--mat-form-field-focus-state-layer-opacity, 0);
}
select.mat-mdc-form-field-input-control {
-moz-appearance: none;
-webkit-appearance: none;
background-color: transparent;
display: inline-flex;
box-sizing: border-box;
}
select.mat-mdc-form-field-input-control:not(:disabled) {
cursor: pointer;
}
select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option {
color: var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10));
}
select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled {
color: var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent));
}
.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
content: "";
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid;
position: absolute;
right: 0;
top: 50%;
margin-top: -2.5px;
pointer-events: none;
color: var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant));
}
[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
right: auto;
left: 0;
}
.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after {
color: var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary));
}
.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after {
color: var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control {
padding-right: 15px;
}
[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control {
padding-right: 0;
padding-left: 15px;
}
@media (forced-colors: active) {
.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper {
outline: solid 1px;
}
}
@media (forced-colors: active) {
.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper {
outline-color: GrayText;
}
}
@media (forced-colors: active) {
.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper {
outline: dashed 3px;
}
}
@media (forced-colors: active) {
.mat-mdc-form-field.mat-focused .mdc-notched-outline {
border: dashed 3px;
}
}
.mat-mdc-form-field-input-control[type=date], .mat-mdc-form-field-input-control[type=datetime], .mat-mdc-form-field-input-control[type=datetime-local], .mat-mdc-form-field-input-control[type=month], .mat-mdc-form-field-input-control[type=week], .mat-mdc-form-field-input-control[type=time] {
line-height: 1;
}
.mat-mdc-form-field-input-control::-webkit-datetime-edit {
line-height: 1;
padding: 0;
margin-bottom: -2px;
}
.mat-mdc-form-field {
--mat-mdc-form-field-floating-label-scale: 0.75;
display: inline-flex;
flex-direction: column;
min-width: 0;
text-align: left;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));
line-height: var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));
font-size: var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));
letter-spacing: var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));
font-weight: var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight));
}
.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above {
font-size: calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale));
}
.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
font-size: var(--mat-form-field-outlined-label-text-populated-size);
}
[dir=rtl] .mat-mdc-form-field {
text-align: right;
}
.mat-mdc-form-field-flex {
display: inline-flex;
align-items: baseline;
box-sizing: border-box;
width: 100%;
}
.mat-mdc-text-field-wrapper {
width: 100%;
z-index: 0;
}
.mat-mdc-form-field-icon-prefix,
.mat-mdc-form-field-icon-suffix {
align-self: center;
line-height: 0;
pointer-events: auto;
position: relative;
z-index: 1;
}
.mat-mdc-form-field-icon-prefix > .mat-icon,
.mat-mdc-form-field-icon-suffix > .mat-icon {
padding: 0 12px;
box-sizing: content-box;
}
.mat-mdc-form-field-icon-prefix {
color: var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-form-field-disabled .mat-mdc-form-field-icon-prefix {
color: var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-form-field-disabled .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-invalid .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error));
}
.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container));
}
.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error));
}
.mat-mdc-form-field-icon-prefix,
[dir=rtl] .mat-mdc-form-field-icon-suffix {
padding: 0 4px 0 0;
}
.mat-mdc-form-field-icon-suffix,
[dir=rtl] .mat-mdc-form-field-icon-prefix {
padding: 0 0 0 4px;
}
.mat-mdc-form-field-subscript-wrapper .mat-icon,
.mat-mdc-form-field label .mat-icon {
width: 1em;
height: 1em;
font-size: inherit;
}
.mat-mdc-form-field-infix {
flex: auto;
min-width: 0;
width: 180px;
position: relative;
box-sizing: border-box;
}
.mat-mdc-form-field-infix:has(textarea[cols]) {
width: auto;
}
.mat-mdc-form-field .mdc-notched-outline__notch {
margin-left: -1px;
-webkit-clip-path: inset(-9em -999em -9em 1px);
clip-path: inset(-9em -999em -9em 1px);
}
[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch {
margin-left: 0;
margin-right: -1px;
-webkit-clip-path: inset(-9em 1px -9em -999em);
clip-path: inset(-9em 1px -9em -999em);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label {
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input {
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before {
transition-duration: 75ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after {
transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,
.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper {
animation-duration: 300ms;
}
.mdc-notched-outline .mdc-floating-label {
max-width: calc(100% + 1px);
}
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
max-width: calc(133.3333333333% + 1px);
}
`],encapsulation:2})}return t})();var Vn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Td,Wn,qe]})}return t})();function FF(t){return Error(`Unable to find icon with the name "${t}"`)}function BU(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function NF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function LF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var za=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},zF=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new za(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){let a=this._sanitizer.sanitize(At.HTML,r);if(!a)throw LF(r);let s=Hl(a);return this._addSvgIconConfig(e,n,new za("",s,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new za(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){let o=this._sanitizer.sanitize(At.HTML,n);if(!o)throw LF(n);let a=Hl(o);return this._addSvgIconSetConfig(e,new za("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(At.RESOURCE_URL,e);if(!n)throw NF(e);let r=this._cachedIconsByUrl.get(n);return r?Ne(k_(r)):this._loadSvgIconFromConfig(new za(e,null)).pipe(Zn(o=>this._cachedIconsByUrl.set(n,o)),Le(o=>k_(o)))}getNamedSvgIcon(e,n=""){let r=BF(n,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):bu(FF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ne(k_(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Le(n=>k_(n)))}_getSvgFromIconSetConfigs(e,n){let r=this._extractIconWithNameFromAnySet(e,n);if(r)return Ne(r);let o=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Yi(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(At.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),Ne(null)})));return yu(o).pipe(Le(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw FF(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){let o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Zn(n=>e.svgText=n),Le(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ne(null):this._fetchIcon(e).pipe(Zn(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){let o=e.querySelector(`[id="${n}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(Hl("<svg></svg>"));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let r=n.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){let n=this._svgElementFromString(Hl("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:a,value:s}=r[o];a!=="id"&&n.setAttribute(a,s)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&n.appendChild(e.childNodes[o].cloneNode(!0));return n}_setSvgAttributes(e,n){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),n&&n.viewBox&&e.setAttribute("viewBox",n.viewBox),e}_fetchIcon(e){let{url:n,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw BU();if(n==null)throw Error(`Cannot fetch icon from URL "${n}".`);let a=this._sanitizer.sanitize(At.RESOURCE_URL,n);if(!a)throw NF(n);let s=this._inProgressUrlFetches.get(a);if(s)return s;let l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Le(c=>Hl(c)),is(()=>this._inProgressUrlFetches.delete(a)),Cu());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(BF(e,n),r),this}_addSvgIconSetConfig(e,n){let r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](n,e);if(o)return zU(o)?new za(o.url,null,o.options):new za(o,null)}}static \u0275fac=function(n){return new(n||t)(we(oi,8),we(ys),we(je,8),we(bi))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function k_(t){return t.cloneNode(!0)}function BF(t,i){return t+":"+i}function zU(t){return!!(t.url&&t.options)}var VU=["*"],jU=new z("MAT_ICON_DEFAULT_OPTIONS"),HU=new z("mat-icon-location",{providedIn:"root",factory:()=>{let t=g(je),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),VF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],$U=VF.map(t=>`[${t}]`).join(", "),UU=/^url\(['"]?#(.*?)['"]?\)$/,cn=(()=>{class t{_elementRef=g(pe);_iconRegistry=g(zF);_location=g(HU);_errorHandler=g(bi);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ye.EMPTY;constructor(){let e=g(new ei("aria-hidden"),{optional:!0}),n=g(jU,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let r=e.childNodes[n];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll($U),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<n.length;o++)VF.forEach(a=>{let s=n[o],l=s.getAttribute(a),c=l?l.match(UU):null;if(c){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(mt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${n}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,r){n&2&&(he("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Ut(r.color?"mat-"+r.color:""),ue("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",te],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:VU,decls:1,vars:0,template:function(n,r){n&1&&(tt(),Me(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn {
color: var(--mat-icon-color, inherit);
}
.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})}return t})(),dn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var HF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`textarea.cdk-textarea-autosize {
resize: none;
}
textarea.cdk-textarea-autosize-measuring {
padding: 2px 0 !important;
box-sizing: content-box !important;
height: auto !important;
overflow: hidden !important;
}
textarea.cdk-textarea-autosize-measuring-firefox {
padding: 2px 0 !important;
box-sizing: content-box !important;
height: 0 !important;
}
@keyframes cdk-text-field-autofill-start { /*!*/ }
@keyframes cdk-text-field-autofill-end { /*!*/ }
.cdk-text-field-autofill-monitored:-webkit-autofill {
animation: cdk-text-field-autofill-start 0s 1ms;
}
.cdk-text-field-autofill-monitored:not(:-webkit-autofill) {
animation: cdk-text-field-autofill-end 0s 1ms;
}
`],encapsulation:2})}return t})(),WU={passive:!0},$F=(()=>{class t{_platform=g(ht);_ngZone=g(De);_renderer=g(An).createRenderer(null,null);_styleLoader=g(Ot);_monitoredElements=new Map;monitor(e){if(!this._platform.isBrowser)return vn;this._styleLoader.load(HF);let n=$i(e),r=this._monitoredElements.get(n);if(r)return r.subject;let o=new ce,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,WU)));return this._monitoredElements.set(n,{subject:o,unlisten:l}),o}stopMonitoring(e){let n=$i(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var M_=(()=>{class t{_elementRef=g(pe);_platform=g(ht);_ngZone=g(De);_renderer=g(dt);_resizeEvents=new ce;_previousValue;_initialHeight;_destroyed=new ce;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=yr(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=yr(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=g(je);_hasFocus=!1;_isViewInited=!1;constructor(){g(Ot).load(HF),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(ts(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),n=e.style;e.rows=1,n.position="absolute",n.visibility="hidden",n.border="none",n.padding="0",n.height="",n.minHeight="",n.maxHeight="",n.top=n.bottom=n.left=n.right="auto",n.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,n=e.style.marginBottom||"",r=this._platform.FIREFOX,o=this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=n),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let n=this._elementRef.nativeElement,r=n.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);n.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(n)):setTimeout(()=>this._scrollToCaretPosition(n))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:n,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(n,r)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(n,r){n&1&&N("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",te],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),UF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();var WF=new z("MAT_INPUT_VALUE_ACCESSOR");var Xo=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}isSignalErrorState(e){if(!e)return!1;let n=e().invalid(),r=e().touched();return n&&r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var Ld=class{_defaultMatcher;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;ngControl;formField;constructor(i,e,n,r,o){this._defaultMatcher=i,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,e?Ji(e.field)&&!e.updateValueAndValidity?(this.formField=e,this.ngControl=null):(this.formField=null,this.ngControl=e):this.ngControl=this.formField=null}updateErrorState(){let i=this.errorState,e=this.matcher||this._defaultMatcher,n;if(this.formField)n=e?.isSignalErrorState?.(this.formField.field())??!1;else{let r=this._parentFormGroup||this._parentForm,o=this.ngControl?this.ngControl.control:null;n=e?.isErrorState(o,r)??!1}n!==i&&(this.errorState=n,this._stateChanges.next())}};var qU=["button","checkbox","file","hidden","image","radio","range","reset","submit"],QU=new z("MAT_INPUT_CONFIG"),Gi=(()=>{class t{_elementRef=g(pe);_platform=g(ht);ngControl=g(ji,{optional:!0,self:!0});_autofillMonitor=g($F);_ngZone=g(De);_formField=g(Ih,{optional:!0});_renderer=g(dt);_uid=g(St).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=g(QU,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new ce;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Gr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Tt.required)??!1}set required(e){this._required=Gr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Vw().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Gr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Vw().has(e));constructor(){let e=g(Pa,{optional:!0}),n=g(go,{optional:!0}),r=g(Xo),o=g(WF,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?Ji(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Ld(r,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&xi(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){qU.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,r){n&1&&N("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),n&2&&(en("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),he("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),ue("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",te]},exportAs:["matInput"],features:[He([{provide:Th,useExisting:t}]),Et]})}return t})(),ii=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Vn,Vn,UF,qe]})}return t})();function ZU(t,i){t&1&&yn(0,"div",2)}var YU=new z("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var tE=(()=>{class t{_elementRef=g(pe);_ngZone=g(De);_changeDetectorRef=g(Ge);_renderer=g(dt);_cleanupTransitionEnd;constructor(){let e=_h(),n=g(YU,{optional:!0});this._isNoopAnimation=e==="di-disabled",e==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),n&&(n.color&&(this.color=this._defaultColor=n.color),this.mode=n.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";get value(){return this._value}set value(e){this._value=qF(e||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=qF(e||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new le;get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(n,r){n&2&&(he("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),Ut("mat-"+r.color),ue("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",gt],bufferValue:[2,"bufferValue","bufferValue",gt],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(n,r){n&1&&(kt(0,"div",0),yn(1,"div",1),A(2,ZU,1,0,"div",2),Mt(),kt(3,"div",3),yn(4,"span",4),Mt(),kt(5,"div",5),yn(6,"span",4),Mt()),n&2&&(u(),In("flex-basis",r._getBufferBarFlexBasis()),u(),R(r.mode==="buffer"?2:-1),u(),In("transform",r._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar {
--mat-progress-bar-animation-multiplier: 1;
display: block;
text-align: start;
}
.mat-mdc-progress-bar[mode=query] {
transform: scaleX(-1);
}
.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,
.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,
.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,
.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner {
animation: none;
}
.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,
.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar {
transition: transform 1ms;
}
.mat-progress-bar-reduced-motion {
--mat-progress-bar-animation-multiplier: 2;
}
.mdc-linear-progress {
position: relative;
width: 100%;
transform: translateZ(0);
outline: 1px solid transparent;
overflow-x: hidden;
transition: opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
height: max(var(--mat-progress-bar-track-height, 4px), var(--mat-progress-bar-active-indicator-height, 4px));
}
@media (forced-colors: active) {
.mdc-linear-progress {
outline-color: CanvasText;
}
}
.mdc-linear-progress__bar {
position: absolute;
top: 0;
bottom: 0;
margin: auto 0;
width: 100%;
animation: none;
transform-origin: top left;
transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
height: var(--mat-progress-bar-active-indicator-height, 4px);
}
.mdc-linear-progress--indeterminate .mdc-linear-progress__bar {
transition: none;
}
[dir=rtl] .mdc-linear-progress__bar {
right: 0;
transform-origin: center right;
}
.mdc-linear-progress__bar-inner {
display: inline-block;
position: absolute;
width: 100%;
animation: none;
border-top-style: solid;
border-color: var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));
border-top-width: var(--mat-progress-bar-active-indicator-height, 4px);
}
.mdc-linear-progress__buffer {
display: flex;
position: absolute;
top: 0;
bottom: 0;
margin: auto 0;
width: 100%;
overflow: hidden;
height: var(--mat-progress-bar-track-height, 4px);
border-radius: var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none));
}
.mdc-linear-progress__buffer-dots {
background-image: radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);
background-repeat: repeat-x;
background-size: calc(calc(var(--mat-progress-bar-track-height, 4px) / 2) * 5);
background-position: left;
flex: auto;
transform: rotate(180deg);
animation: mdc-linear-progress-buffering calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear;
}
@media (forced-colors: active) {
.mdc-linear-progress__buffer-dots {
background-color: ButtonBorder;
}
}
[dir=rtl] .mdc-linear-progress__buffer-dots {
animation: mdc-linear-progress-buffering-reverse calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear;
transform: rotate(0);
}
.mdc-linear-progress__buffer-bar {
flex: 0 1 100%;
transition: flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
background-color: var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant));
}
.mdc-linear-progress__primary-bar {
transform: scaleX(0);
}
.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar {
left: -145.166611%;
}
.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar {
animation: mdc-linear-progress-primary-indeterminate-translate calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear;
}
.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar > .mdc-linear-progress__bar-inner {
animation: mdc-linear-progress-primary-indeterminate-scale calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear;
}
[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar {
animation-name: mdc-linear-progress-primary-indeterminate-translate-reverse;
}
[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar {
right: -145.166611%;
left: auto;
}
.mdc-linear-progress__secondary-bar {
display: none;
}
.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar {
left: -54.888891%;
display: block;
}
.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar {
animation: mdc-linear-progress-secondary-indeterminate-translate calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear;
}
.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar > .mdc-linear-progress__bar-inner {
animation: mdc-linear-progress-secondary-indeterminate-scale calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear;
}
[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar {
animation-name: mdc-linear-progress-secondary-indeterminate-translate-reverse;
}
[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar {
right: -54.888891%;
left: auto;
}
@keyframes mdc-linear-progress-buffering {
from {
transform: rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5));
}
}
@keyframes mdc-linear-progress-primary-indeterminate-translate {
0% {
transform: translateX(0);
}
20% {
animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
transform: translateX(0);
}
59.15% {
animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
transform: translateX(83.67142%);
}
100% {
transform: translateX(200.611057%);
}
}
@keyframes mdc-linear-progress-primary-indeterminate-scale {
0% {
transform: scaleX(0.08);
}
36.65% {
animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);
transform: scaleX(0.08);
}
69.15% {
animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);
transform: scaleX(0.661479);
}
100% {
transform: scaleX(0.08);
}
}
@keyframes mdc-linear-progress-secondary-indeterminate-translate {
0% {
animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);
transform: translateX(0);
}
25% {
animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);
transform: translateX(37.651913%);
}
48.35% {
animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);
transform: translateX(84.386165%);
}
100% {
transform: translateX(160.277782%);
}
}
@keyframes mdc-linear-progress-secondary-indeterminate-scale {
0% {
animation-timing-function: cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);
transform: scaleX(0.08);
}
19.15% {
animation-timing-function: cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);
transform: scaleX(0.457104);
}
44.15% {
animation-timing-function: cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);
transform: scaleX(0.72796);
}
100% {
transform: scaleX(0.08);
}
}
@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse {
0% {
transform: translateX(0);
}
20% {
animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
transform: translateX(0);
}
59.15% {
animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
transform: translateX(-83.67142%);
}
100% {
transform: translateX(-200.611057%);
}
}
@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse {
0% {
animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);
transform: translateX(0);
}
25% {
animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);
transform: translateX(-37.651913%);
}
48.35% {
animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);
transform: translateX(-84.386165%);
}
100% {
transform: translateX(-160.277782%);
}
}
@keyframes mdc-linear-progress-buffering-reverse {
from {
transform: translateX(-10px);
}
}
`],encapsulation:2})}return t})();function qF(t,i=0,e=100){return Math.max(i,Math.min(e,t))}var Jo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var Ls=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new ce;bulk={select:i=>this._select(i),deselect:i=>this._deselect(i),setSelection:i=>this._setSelection(i)};constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){return this._select(i)}deselect(...i){return this._deselect(i)}setSelection(...i){return this._setSelection(i)}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_select(i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}_deselect(i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}_setSelection(i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(o=>this._getConcreteValue(o)));i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var ql=(()=>{class t{_listeners=[];notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var T_=class{applyChanges(i,e,n,r,o){i.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let h=n(a,s,l);c=e.createEmbeddedView(h.templateRef,h.context,h.index),d=bo.INSERTED}else l==null?(e.remove(s),d=bo.REMOVED):(c=e.get(s),e.move(c,l),d=bo.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var QF=(()=>{class t{_animationsDisabled=xt();state="unchecked";disabled=!1;appearance="full";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){n&2&&ue("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,r){},styles:[`.mat-pseudo-checkbox {
border-radius: 2px;
cursor: pointer;
display: inline-block;
vertical-align: middle;
box-sizing: border-box;
position: relative;
flex-shrink: 0;
transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1);
}
.mat-pseudo-checkbox::after {
position: absolute;
opacity: 0;
content: "";
border-bottom: 2px solid currentColor;
transition: opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);
}
.mat-pseudo-checkbox._mat-animation-noopable {
transition: none !important;
animation: none !important;
}
.mat-pseudo-checkbox._mat-animation-noopable::after {
transition: none;
}
.mat-pseudo-checkbox-disabled {
cursor: default;
}
.mat-pseudo-checkbox-indeterminate::after {
left: 1px;
opacity: 1;
border-radius: 2px;
}
.mat-pseudo-checkbox-checked::after {
left: 1px;
border-left: 2px solid currentColor;
transform: rotate(-45deg);
opacity: 1;
box-sizing: content-box;
}
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
color: var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary));
}
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after {
color: var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-pseudo-checkbox-full {
border-color: var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));
border-width: 2px;
border-style: solid;
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled {
border-color: var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate {
background-color: var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));
border-color: transparent;
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after {
color: var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary));
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled {
background-color: var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after {
color: var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface));
}
.mat-pseudo-checkbox {
width: 18px;
height: 18px;
}
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after {
width: 14px;
height: 6px;
transform-origin: center;
top: -4.2426406871px;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
top: 8px;
width: 16px;
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after {
width: 10px;
height: 4px;
transform-origin: center;
top: -2.8284271247px;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after {
top: 6px;
width: 12px;
}
`],encapsulation:2})}return t})();var XU=["text"],JU=[[["mat-icon"]],"*"],eW=["mat-icon","*"];function tW(t,i){if(t&1&&U(0,"mat-pseudo-checkbox",1),t&2){let e=E();S("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function nW(t,i){if(t&1&&U(0,"mat-pseudo-checkbox",3),t&2){let e=E();S("disabled",e.disabled)}}function iW(t,i){if(t&1&&(p(0,"span",4),v(1),m()),t&2){let e=E();u(),oe("(",e.group.label,")")}}var iE=new z("MAT_OPTION_PARENT_COMPONENT"),rE=new z("MatOptgroup");var nE=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},dr=(()=>{class t{_element=g(pe);_changeDetectorRef=g(Ge);_parent=g(iE,{optional:!0});group=g(rE,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=g(St).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Q(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new le;_text;_stateChanges=new ce;constructor(){let e=g(Ot);e.load(wn),e.load(Zo),this._signalDisableRipple=!!this._parent&&Ji(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!kn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new nE(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-option"]],viewQuery:function(n,r){if(n&1&&Qe(XU,7),n&2){let o;K(o=X())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){n&1&&N("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),n&2&&(en("id",r.id),he("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),ue("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",te]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:eW,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,r){n&1&&(tt(JU),A(0,tW,1,2,"mat-pseudo-checkbox",1),Me(1),p(2,"span",2,0),Me(4,1),m(),A(5,nW,1,1,"mat-pseudo-checkbox",3),A(6,iW,2,1,"span",4),U(7,"div",5)),n&2&&(R(r.multiple?0:-1),u(5),R(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),u(),R(r.group&&r.group._inert?6:-1),u(),S("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[QF,ai],styles:[`.mat-mdc-option {
-webkit-user-select: none;
user-select: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: flex;
position: relative;
align-items: center;
justify-content: flex-start;
overflow: hidden;
min-height: 48px;
padding: 0 16px;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
color: var(--mat-option-label-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-option-label-text-font, var(--mat-sys-label-large-font));
line-height: var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));
font-size: var(--mat-option-label-text-size, var(--mat-sys-body-large-size));
letter-spacing: var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));
font-weight: var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight));
}
.mat-mdc-option:hover:not(.mdc-list-item--disabled) {
background-color: var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
background-color: var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
outline: 0;
}
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) {
background-color: var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container));
}
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text {
color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-option .mat-pseudo-checkbox {
--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-option.mdc-list-item {
align-items: center;
background: transparent;
}
.mat-mdc-option.mdc-list-item--disabled {
cursor: default;
pointer-events: none;
}
.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox, .mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text, .mat-mdc-option.mdc-list-item--disabled > mat-icon {
opacity: 0.38;
}
.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
padding-left: 32px;
}
[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
padding-left: 16px;
padding-right: 32px;
}
.mat-mdc-option .mat-icon,
.mat-mdc-option .mat-pseudo-checkbox-full {
margin-right: 16px;
flex-shrink: 0;
}
[dir=rtl] .mat-mdc-option .mat-icon,
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full {
margin-right: 0;
margin-left: 16px;
}
.mat-mdc-option .mat-pseudo-checkbox-minimal {
margin-left: 16px;
flex-shrink: 0;
}
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal {
margin-right: 16px;
margin-left: 0;
}
.mat-mdc-option .mat-mdc-option-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
}
.mat-mdc-option .mdc-list-item__primary-text {
white-space: normal;
font-size: inherit;
font-weight: inherit;
letter-spacing: inherit;
line-height: inherit;
font-family: inherit;
text-decoration: inherit;
text-transform: inherit;
margin-right: auto;
}
[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text {
margin-right: 0;
margin-left: auto;
}
@media (forced-colors: active) {
.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
content: "";
position: absolute;
top: 50%;
right: 16px;
transform: translateY(-50%);
width: 10px;
height: 0;
border-bottom: solid 10px;
border-radius: 10px;
}
[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
right: auto;
left: 16px;
}
}
.mat-mdc-option-multiple {
--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent);
}
.mat-mdc-option-active .mat-focus-indicator::before {
content: "";
}
`],encapsulation:2})}return t})();function ZF(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;a<t+1;a++)n[a].group&&n[a].group===r[o]&&o++;return o}return 0}function YF(t,i,e,n){return t<e?t:t+i>e+n?Math.max(0,t-n+i):e}var I_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var oE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Di,I_,dr,qe]})}return t})();var rW=["trigger"],oW=["panel"],aW=[[["mat-select-trigger"]],"*"],sW=["mat-select-trigger","*"];function lW(t,i){if(t&1&&(p(0,"span",4),v(1),m()),t&2){let e=E();u(),M(e.placeholder)}}function cW(t,i){t&1&&Me(0)}function dW(t,i){if(t&1&&(p(0,"span",11),v(1),m()),t&2){let e=E(2);u(),M(e.triggerValue)}}function uW(t,i){if(t&1&&(p(0,"span",5),A(1,cW,1,0)(2,dW,2,1,"span",11),m()),t&2){let e=E();u(),R(e.customTrigger?1:2)}}function mW(t,i){if(t&1){let e=be();p(0,"div",12,1),N("keydown",function(r){ae(e);let o=E();return se(o._handleKeydown(r))}),Me(2,1),m()}if(t&2){let e=E();Ut(e.panelClass),ue("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",e._parentFormField?.color==="primary")("mat-accent",e._parentFormField?.color==="accent")("mat-warn",e._parentFormField?.color==="warn")("mat-undefined",!e._parentFormField?.color),he("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var hW=new z("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=g(ze);return()=>Ba(t)}}),pW=new z("MAT_SELECT_CONFIG"),fW=new z("MatSelectTrigger"),aE=class{source;value;constructor(i,e){this.source=i,this.value=e}},ea=(()=>{class t{_viewportRuler=g(Cr);_changeDetectorRef=g(Ge);_elementRef=g(pe);_dir=g(ln,{optional:!0});_idGenerator=g(St);_renderer=g(dt);_parentFormField=g(Ih,{optional:!0});ngControl=g(ji,{self:!0,optional:!0});_liveAnnouncer=g(dh);_defaultOptions=g(pW,{optional:!0});_animationsDisabled=xt();_popoverLocation;_initialized=new ce;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let r=this.panel.nativeElement,o=ZF(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=YF(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new aE(this,e)}_scrollStrategyFactory=g(hW);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new ce;_errorStateTracker;stateChanges=new ce;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Tt.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Yr(()=>{let e=this.options;return e?e.changes.pipe(It(e),rn(()=>hn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(rn(()=>this.optionSelectionChanges))});openedChange=new le;_openedStream=this.openedChange.pipe(ct(e=>e),Le(()=>{}));_closedStream=this.openedChange.pipe(ct(e=>!e),Le(()=>{}));selectionChange=new le;valueChange=new le;constructor(){let e=g(Xo),n=g(Pa,{optional:!0}),r=g(go,{optional:!0}),o=g(new ei("tabindex"),{optional:!0}),a=g(kh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Ld(e,this.ngControl,r,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Ls(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Ue(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ue(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(It(null),Ue(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._panelOpen=!0,this._overlayDir.positionChange.pipe(mt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,r=n===40||n===38||n===37||n===39,o=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&o&&!kn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,r=e.keyCode,o=r===40||r===38,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&n.activeItem&&!kn(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!kn(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Pd?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new gh(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=hn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ue(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),hn(...this.options.map(n=>n._stateChanges)).pipe(Ue(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(r=>r.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n<this.options.length;n++)if(!this.options.get(n).disabled){e=n;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=pi(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(n&1&&jt(o,fW,5)(o,dr,5)(o,rE,5),n&2){let a;K(a=X())&&(r.customTrigger=a.first),K(a=X())&&(r.options=a),K(a=X())&&(r.optionGroups=a)}},viewQuery:function(n,r){if(n&1&&Qe(rW,5)(oW,5)(y_,5),n&2){let o;K(o=X())&&(r.trigger=o.first),K(o=X())&&(r.panel=o.first),K(o=X())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,r){n&1&&N("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),n&2&&(he("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),ue("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple)("mat-select-open",r.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",te],disableRipple:[2,"disableRipple","disableRipple",te],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",te],placeholder:"placeholder",required:[2,"required","required",te],multiple:[2,"multiple","multiple",te],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",te],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",gt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",te]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[He([{provide:Th,useExisting:t},{provide:iE,useExisting:t}]),Et],ngContentSelectors:sW,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,r){if(n&1&&(tt(aW),p(0,"div",2,0),N("click",function(){return r.open()}),p(3,"div",3),A(4,lW,2,1,"span",4)(5,uW,3,1,"span",5),m(),p(6,"div",6)(7,"div",7),bn(),p(8,"svg",8),U(9,"path",9),m()()()(),ot(10,mW,3,16,"ng-template",10),N("detach",function(){return r.close()})("backdropClick",function(){return r.close()})("overlayKeydown",function(a){return r._handleOverlayKeydown(a)})),n&2){let o=pn(1);u(3),he("id",r._valueId),u(),R(r.empty?4:5),u(6),S("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",r._popoverLocation)}},dependencies:[Pd,y_],styles:[`@keyframes _mat-select-enter {
from {
opacity: 0;
transform: scaleY(0.8);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes _mat-select-exit {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.mat-mdc-select {
display: inline-block;
width: 100%;
outline: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));
line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));
font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));
letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking));
}
div.mat-mdc-select-panel {
box-shadow: var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
}
.mat-mdc-select-disabled {
color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-select-disabled .mat-mdc-select-placeholder {
color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-select-trigger {
display: inline-flex;
align-items: center;
cursor: pointer;
position: relative;
box-sizing: border-box;
width: 100%;
}
.mat-mdc-select-disabled .mat-mdc-select-trigger {
-webkit-user-select: none;
user-select: none;
cursor: default;
}
.mat-mdc-select-value {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mat-mdc-select-value-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mat-mdc-select-arrow-wrapper {
height: 24px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
}
.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper {
transform: none;
}
.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,
.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after {
color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error));
}
.mat-mdc-select-arrow {
width: 10px;
height: 5px;
position: relative;
color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary));
}
.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow {
color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-select-open .mat-mdc-select-arrow {
transform: rotate(180deg);
}
.mat-form-field-animations-enabled .mat-mdc-select-arrow {
transition: transform 80ms linear;
}
.mat-mdc-select-arrow svg {
fill: currentColor;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@media (forced-colors: active) {
.mat-mdc-select-arrow svg {
fill: CanvasText;
}
.mat-mdc-select-disabled .mat-mdc-select-arrow svg {
fill: GrayText;
}
}
div.mat-mdc-select-panel {
width: 100%;
max-height: 275px;
outline: 0;
overflow: auto;
padding: 8px 0;
box-sizing: border-box;
transform-origin: top center;
border-radius: 0 0 4px 4px;
position: relative;
background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container));
}
.mat-mdc-select-panel-above div.mat-mdc-select-panel {
border-radius: 4px 4px 0 0;
transform-origin: bottom center;
}
@media (forced-colors: active) {
div.mat-mdc-select-panel {
outline: solid 1px;
}
}
.mat-select-panel-animations-enabled {
animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-select-panel-animations-enabled.mat-select-panel-exit {
animation: _mat-select-exit 100ms linear;
}
.mat-mdc-select-placeholder {
transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);
color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder {
transition: none;
}
.mat-form-field-hide-placeholder .mat-mdc-select-placeholder {
color: transparent;
-webkit-text-fill-color: transparent;
transition: none;
display: block;
}
.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper {
cursor: pointer;
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label {
max-width: calc(100% - 18px);
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above {
max-width: calc(100% / 0.75 - 24px);
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch {
max-width: calc(100% - 60px);
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch {
max-width: calc(100% - 24px);
}
.mat-mdc-select-min-line:empty::before {
content: " ";
white-space: pre;
width: 1px;
display: inline-block;
visibility: hidden;
}
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
transform: var(--mat-select-arrow-transform, translateY(-8px));
}
`],encapsulation:2})}return t})();var ta=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Er,oE,qe,Na,Vn,oE]})}return t})();var A_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var _W=["tooltip"],vW=20;var bW=new z("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=g(ze);return()=>Ba(t,{scrollThrottle:vW})}}),yW=new z("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var KF="tooltip-panel",xW={passive:!0},CW=8,wW=8,EW=24,DW=200,Sr=(()=>{class t{_elementRef=g(pe);_ngZone=g(De);_platform=g(ht);_ariaDescriber=g(a_);_focusMonitor=g(Sn);_dir=g(ln);_injector=g(ze);_viewContainerRef=g(Xt);_mediaMatcher=g(Md);_document=g(je);_renderer=g(dt);_animationsDisabled=xt();_defaultOptions=g(yW,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=XF;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Gr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Gr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=yr(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=yr(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new ce;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=CW}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ue(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(n);this._detach(),this._portal=this._portal||new yo(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Ue(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof pe)return this._overlayRef;this._detach()}let n=this._injector.get(Os).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${KF}`,o=Gl(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return o.positionChanges.pipe(Ue(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Co(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(bW)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ue(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ue(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ue(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Ue(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},r.main),o.main)),this._addOffset(G(G({},r.fallback),o.fallback))])}_addOffset(e){let n=wW,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=r?-n:n:e.originX==="end"&&(e.offsetX=r?n:-n),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"||n=="below"?r={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"?r={overlayX:"center",overlayY:"bottom"}:n=="below"?r={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Bt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:r,originY:o}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=n==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${KF}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,xW))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,r=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Bt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!kn(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),XF=(()=>{class t{_changeDetectorRef=g(Ge);_elementRef=g(pe);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=xt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new ce;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>EW&&e.width>=DW}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(n&1&&Qe(_W,7),n&2){let o;K(o=X())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,r){n&1&&N("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,r){n&1&&(kt(0,"div",1,0),Ea("animationend",function(a){return r._handleAnimationEnd(a)}),kt(2,"div",2),v(3),Mt()()),n&2&&(Ut(r.tooltipClass),ue("mdc-tooltip--multiline",r._isMultiline),u(3),M(r.message))},styles:[`.mat-mdc-tooltip {
position: relative;
transform: scale(0);
display: inline-flex;
}
.mat-mdc-tooltip::before {
content: "";
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
position: absolute;
}
.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before {
top: -8px;
}
.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before {
bottom: -8px;
}
.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before {
left: -8px;
}
.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before {
right: -8px;
}
.mat-mdc-tooltip._mat-animation-noopable {
animation: none;
transform: scale(1);
}
.mat-mdc-tooltip-surface {
word-break: normal;
overflow-wrap: anywhere;
padding: 4px 8px;
min-width: 40px;
max-width: 200px;
min-height: 24px;
max-height: 40vh;
box-sizing: border-box;
overflow: hidden;
text-align: center;
will-change: transform, opacity;
background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));
color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));
border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));
font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));
font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));
font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));
line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));
letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking));
}
.mat-mdc-tooltip-surface::before {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid transparent;
border-radius: inherit;
content: "";
pointer-events: none;
}
.mdc-tooltip--multiline .mat-mdc-tooltip-surface {
text-align: left;
}
[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface {
text-align: right;
}
.mat-mdc-tooltip-panel {
line-height: normal;
}
.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive {
pointer-events: none;
}
@keyframes mat-mdc-tooltip-show {
0% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes mat-mdc-tooltip-hide {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(0.8);
}
}
.mat-mdc-tooltip-show {
animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
.mat-mdc-tooltip-hide {
animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
`],encapsulation:2})}return t})();var Gn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[uh,Er,qe,Na]})}return t})();var nN=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],iN=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function kW(t,i){t&1&&(p(0,"span",3),Me(1,1),m())}function MW(t,i){t&1&&(p(0,"span",6),Me(1,2),m())}function TW(t,i){t&1&&(p(0,"span",3),Me(1,1),p(2,"span",7),bn(),p(3,"svg",8),U(4,"path",9),m()()())}function IW(t,i){t&1&&(p(0,"span",6),Me(1,2),m())}var AW=`.mdc-evolution-chip,
.mdc-evolution-chip__cell,
.mdc-evolution-chip__action {
display: inline-flex;
align-items: center;
}
.mdc-evolution-chip {
position: relative;
max-width: 100%;
}
.mdc-evolution-chip__cell,
.mdc-evolution-chip__action {
height: 100%;
}
.mdc-evolution-chip__cell--primary {
flex-basis: 100%;
overflow-x: hidden;
}
.mdc-evolution-chip__cell--trailing {
flex: 1 0 auto;
}
.mdc-evolution-chip__action {
align-items: center;
background: none;
border: none;
box-sizing: content-box;
cursor: pointer;
display: inline-flex;
justify-content: center;
outline: none;
padding: 0;
text-decoration: none;
color: inherit;
}
.mdc-evolution-chip__action--presentational {
cursor: auto;
}
.mdc-evolution-chip--disabled,
.mdc-evolution-chip__action:disabled {
pointer-events: none;
}
@media (forced-colors: active) {
.mdc-evolution-chip--disabled,
.mdc-evolution-chip__action:disabled {
forced-color-adjust: none;
}
}
.mdc-evolution-chip__action--primary {
font: inherit;
letter-spacing: inherit;
white-space: inherit;
overflow-x: hidden;
}
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before {
border-width: var(--mat-chip-outline-width, 1px);
border-radius: var(--mat-chip-container-shape-radius, 8px);
box-sizing: border-box;
content: "";
height: 100%;
left: 0;
position: absolute;
pointer-events: none;
top: 0;
width: 100%;
z-index: 1;
border-style: solid;
}
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 12px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before {
border-color: var(--mat-chip-outline-color, var(--mat-sys-outline));
}
.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before {
border-color: var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before {
border-color: var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before {
border-width: var(--mat-chip-flat-selected-outline-width, 0);
}
.mat-mdc-basic-chip .mdc-evolution-chip__action--primary {
font: inherit;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
.mdc-evolution-chip__action--secondary {
position: relative;
overflow: visible;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary {
color: var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary {
color: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, [dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
.mdc-evolution-chip__text-label {
-webkit-user-select: none;
user-select: none;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.mat-mdc-standard-chip .mdc-evolution-chip__text-label {
font-family: var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));
line-height: var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));
font-size: var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));
font-weight: var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));
letter-spacing: var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking));
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
color: var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label {
color: var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-evolution-chip__graphic {
align-items: center;
display: inline-flex;
justify-content: center;
overflow: hidden;
pointer-events: none;
position: relative;
flex: 1 0 auto;
}
.mat-mdc-standard-chip .mdc-evolution-chip__graphic {
width: var(--mat-chip-with-avatar-avatar-size, 24px);
height: var(--mat-chip-with-avatar-avatar-size, 24px);
font-size: var(--mat-chip-with-avatar-avatar-size, 24px);
}
.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic {
transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic {
width: 0;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
padding-left: 6px;
padding-right: 6px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
padding-left: 4px;
padding-right: 8px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
padding-left: 8px;
padding-right: 4px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
padding-left: 6px;
padding-right: 6px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
padding-left: 4px;
padding-right: 8px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
padding-left: 8px;
padding-right: 4px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic {
padding-left: 0;
}
.mdc-evolution-chip__checkmark {
position: absolute;
opacity: 0;
top: 50%;
left: 50%;
height: 20px;
width: 20px;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark {
color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark {
color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface));
}
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark {
transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
transform: translate(-75%, -50%);
}
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
transform: translate(-50%, -50%);
opacity: 1;
}
.mdc-evolution-chip__checkmark-svg {
display: block;
}
.mdc-evolution-chip__checkmark-path {
stroke-width: 2px;
stroke-dasharray: 29.7833385;
stroke-dashoffset: 29.7833385;
stroke: currentColor;
}
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path {
transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path {
stroke-dashoffset: 0;
}
@media (forced-colors: active) {
.mdc-evolution-chip__checkmark-path {
stroke: CanvasText !important;
}
}
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
height: 18px;
width: 18px;
font-size: 18px;
}
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove {
opacity: calc(var(--mat-chip-trailing-action-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
}
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus {
opacity: calc(var(--mat-chip-trailing-action-focus-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
}
.mat-mdc-standard-chip {
border-radius: var(--mat-chip-container-shape-radius, 8px);
height: var(--mat-chip-container-height, 32px);
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
background-color: var(--mat-chip-elevated-container-color, transparent);
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
background-color: var(--mat-chip-elevated-disabled-container-color);
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) {
background-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled {
background-color: var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
@media (forced-colors: active) {
.mat-mdc-standard-chip {
outline: solid 1px;
}
}
.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary {
border-radius: var(--mat-chip-with-avatar-avatar-shape-radius, 24px);
width: var(--mat-chip-with-icon-icon-size, 18px);
height: var(--mat-chip-with-icon-icon-size, 18px);
font-size: var(--mat-chip-with-icon-icon-size, 18px);
}
.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary {
opacity: 0;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary {
color: var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary {
color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-chip-highlighted {
--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));
--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));
--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));
--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0);
}
.mat-mdc-chip-focus-overlay {
background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));
opacity: var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));
opacity: var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));
opacity: var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));
opacity: var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar {
opacity: var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38);
}
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
opacity: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38);
}
.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
opacity: var(--mat-chip-with-icon-disabled-icon-opacity, 0.38);
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
opacity: var(--mat-chip-disabled-container-opacity, 1);
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing {
color: var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
color: var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-chip-edit, .mat-mdc-chip-remove {
opacity: var(--mat-chip-trailing-action-opacity, 1);
}
.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus {
opacity: var(--mat-chip-trailing-action-focus-opacity, 1);
}
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
background-color: var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after {
opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)));
}
.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after {
opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)));
}
.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
background-color: var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after {
opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)));
}
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after {
opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)));
}
.mat-mdc-standard-chip {
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-standard-chip .mat-mdc-chip-graphic,
.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon {
box-sizing: content-box;
}
.mat-mdc-standard-chip._mat-animation-noopable,
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path {
transition-duration: 1ms;
animation-duration: 1ms;
}
.mat-mdc-chip-focus-overlay {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
opacity: 0;
border-radius: inherit;
transition: opacity 150ms linear;
}
._mat-animation-noopable .mat-mdc-chip-focus-overlay {
transition: none;
}
.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay {
display: none;
}
.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
border-radius: inherit;
}
.mat-mdc-chip-avatar {
text-align: center;
line-height: 1;
color: var(--mat-chip-with-icon-icon-color, currentColor);
}
.mat-mdc-chip {
position: relative;
z-index: 0;
}
.mat-mdc-chip-action-label {
text-align: left;
z-index: 1;
}
[dir=rtl] .mat-mdc-chip-action-label {
text-align: right;
}
.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label {
position: relative;
}
.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
}
.mat-mdc-chip-action-label .mat-focus-indicator::before {
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
}
.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before {
margin: calc(var(--mat-focus-indicator-border-width, 3px) * -1);
left: 8px;
right: 8px;
}
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
content: "";
display: block;
opacity: 0;
position: absolute;
top: -3px;
bottom: -3px;
left: 5px;
right: 5px;
border-radius: 50%;
box-sizing: border-box;
padding: 12px;
margin: -12px;
background-clip: content-box;
}
.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
width: 18px;
height: 18px;
font-size: 18px;
box-sizing: content-box;
}
.mat-chip-edit-input {
cursor: text;
display: inline-block;
color: inherit;
outline: 0;
}
@media (forced-colors: active) {
.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) {
outline-width: 3px;
}
}
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
content: "";
}
.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
min-height: fit-content;
}
img.mdc-evolution-chip__icon {
min-height: 0;
}
`;var rN=["*"],RW=`.mat-mdc-chip-set {
display: flex;
}
.mat-mdc-chip-set:focus {
outline: none;
}
.mat-mdc-chip-set .mdc-evolution-chip-set__chips {
min-width: 100%;
margin-left: -8px;
margin-right: 0;
}
.mat-mdc-chip-set .mdc-evolution-chip {
margin: 4px 0 4px 8px;
}
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips {
margin-left: 0;
margin-right: -8px;
}
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip {
margin-left: 0;
margin-right: 8px;
}
.mdc-evolution-chip-set__chips {
display: flex;
flex-flow: wrap;
min-width: 0;
}
.mat-mdc-chip-set-stacked {
flex-direction: column;
align-items: flex-start;
}
.mat-mdc-chip-set-stacked .mat-mdc-chip {
width: 100%;
}
.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic {
flex-grow: 0;
}
.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary {
flex-basis: 100%;
justify-content: start;
}
input.mat-mdc-chip-input {
flex: 1 0 150px;
margin-left: 8px;
}
[dir=rtl] input.mat-mdc-chip-input {
margin-left: 0;
margin-right: 8px;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder {
opacity: 1;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder {
opacity: 1;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder {
opacity: 1;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder {
opacity: 1;
}
.mat-mdc-chip-set + input.mat-mdc-chip-input {
margin-left: 0;
margin-right: 0;
}
`,cE=new z("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),sE=new z("MatChipAvatar"),JF=new z("MatChipTrailingIcon"),eN=new z("MatChipEdit"),tN=new z("MatChipRemove"),dE=new z("MatChip"),oN=(()=>{class t{_elementRef=g(pe);_parentChip=g(dE);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){g(Ot).load(wn),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,r){n&2&&(he("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),ue("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--secondary",!r._isPrimary)("mdc-evolution-chip__action--trailing",!r._isPrimary&&!r._isLeading))},inputs:{disabled:[2,"disabled","disabled",te],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:gt(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),aN=(()=>{class t extends oN{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,r){n&1&&N("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),n&2&&(he("tabindex",r._getTabindex()),ue("mdc-evolution-chip__action--presentational",!1))},features:[Ee]})}return t})(),sN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[He([{provide:sE,useExisting:t}])]})}return t})();var Ah=(()=>{class t{_changeDetectorRef=g(Ge);_elementRef=g(pe);_tagName=g(E2);_ngZone=g(De);_focusMonitor=g(Sn);_globalRippleOptions=g(As,{optional:!0});_document=g(je);_onFocus=new ce;_onBlur=new ce;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=xt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=g(St).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new le;destroyed=new le;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=g(d_);_injector=g(ze);constructor(){let e=g(Ot);e.load(wn),e.load(Zo),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=hn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this.destroyed.emit({chip:this}),this.destroyed.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let r=n._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,r,o){if(n&1&&jt(o,sE,5)(o,eN,5)(o,JF,5)(o,tN,5)(o,sE,5)(o,JF,5)(o,eN,5)(o,tN,5),n&2){let a;K(a=X())&&(r.leadingIcon=a.first),K(a=X())&&(r.editIcon=a.first),K(a=X())&&(r.trailingIcon=a.first),K(a=X())&&(r.removeIcon=a.first),K(a=X())&&(r._allLeadingIcons=a),K(a=X())&&(r._allTrailingIcons=a),K(a=X())&&(r._allEditIcons=a),K(a=X())&&(r._allRemoveIcons=a)}},viewQuery:function(n,r){if(n&1&&Qe(aN,5),n&2){let o;K(o=X())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,r){n&1&&N("keydown",function(a){return r._handleKeydown(a)}),n&2&&(en("id",r.id),he("role",r.role)("aria-label",r.ariaLabel),Ut("mat-"+(r.color||"primary")),ue("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",te],highlighted:[2,"highlighted","highlighted",te],disableRipple:[2,"disableRipple","disableRipple",te],disabled:[2,"disabled","disabled",te]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[He([{provide:dE,useExisting:t}])],ngContentSelectors:iN,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){n&1&&(tt(nN),U(0,"span",0),p(1,"span",1)(2,"span",2),A(3,kW,2,0,"span",3),p(4,"span",4),Me(5),U(6,"span",5),m()()(),A(7,MW,2,0,"span",6)),n&2&&(u(3),R(r.leadingIcon?3:-1),u(4),R(r._hasTrailingIcon()?7:-1))},dependencies:[oN],styles:[`.mdc-evolution-chip,
.mdc-evolution-chip__cell,
.mdc-evolution-chip__action {
display: inline-flex;
align-items: center;
}
.mdc-evolution-chip {
position: relative;
max-width: 100%;
}
.mdc-evolution-chip__cell,
.mdc-evolution-chip__action {
height: 100%;
}
.mdc-evolution-chip__cell--primary {
flex-basis: 100%;
overflow-x: hidden;
}
.mdc-evolution-chip__cell--trailing {
flex: 1 0 auto;
}
.mdc-evolution-chip__action {
align-items: center;
background: none;
border: none;
box-sizing: content-box;
cursor: pointer;
display: inline-flex;
justify-content: center;
outline: none;
padding: 0;
text-decoration: none;
color: inherit;
}
.mdc-evolution-chip__action--presentational {
cursor: auto;
}
.mdc-evolution-chip--disabled,
.mdc-evolution-chip__action:disabled {
pointer-events: none;
}
@media (forced-colors: active) {
.mdc-evolution-chip--disabled,
.mdc-evolution-chip__action:disabled {
forced-color-adjust: none;
}
}
.mdc-evolution-chip__action--primary {
font: inherit;
letter-spacing: inherit;
white-space: inherit;
overflow-x: hidden;
}
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before {
border-width: var(--mat-chip-outline-width, 1px);
border-radius: var(--mat-chip-container-shape-radius, 8px);
box-sizing: border-box;
content: "";
height: 100%;
left: 0;
position: absolute;
pointer-events: none;
top: 0;
width: 100%;
z-index: 1;
border-style: solid;
}
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 12px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before {
border-color: var(--mat-chip-outline-color, var(--mat-sys-outline));
}
.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before {
border-color: var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before {
border-color: var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before {
border-width: var(--mat-chip-flat-selected-outline-width, 0);
}
.mat-mdc-basic-chip .mdc-evolution-chip__action--primary {
font: inherit;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 12px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
padding-left: 12px;
padding-right: 0;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
padding-left: 0;
padding-right: 0;
}
.mdc-evolution-chip__action--secondary {
position: relative;
overflow: visible;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary {
color: var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary {
color: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, [dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
padding-left: 8px;
padding-right: 8px;
}
.mdc-evolution-chip__text-label {
-webkit-user-select: none;
user-select: none;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.mat-mdc-standard-chip .mdc-evolution-chip__text-label {
font-family: var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));
line-height: var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));
font-size: var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));
font-weight: var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));
letter-spacing: var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking));
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
color: var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label {
color: var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-evolution-chip__graphic {
align-items: center;
display: inline-flex;
justify-content: center;
overflow: hidden;
pointer-events: none;
position: relative;
flex: 1 0 auto;
}
.mat-mdc-standard-chip .mdc-evolution-chip__graphic {
width: var(--mat-chip-with-avatar-avatar-size, 24px);
height: var(--mat-chip-with-avatar-avatar-size, 24px);
font-size: var(--mat-chip-with-avatar-avatar-size, 24px);
}
.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic {
transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic {
width: 0;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
padding-left: 6px;
padding-right: 6px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
padding-left: 4px;
padding-right: 8px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
padding-left: 8px;
padding-right: 4px;
}
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
padding-left: 6px;
padding-right: 6px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
padding-left: 4px;
padding-right: 8px;
}
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
padding-left: 8px;
padding-right: 4px;
}
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic {
padding-left: 0;
}
.mdc-evolution-chip__checkmark {
position: absolute;
opacity: 0;
top: 50%;
left: 50%;
height: 20px;
width: 20px;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark {
color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark {
color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface));
}
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark {
transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
transform: translate(-75%, -50%);
}
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
transform: translate(-50%, -50%);
opacity: 1;
}
.mdc-evolution-chip__checkmark-svg {
display: block;
}
.mdc-evolution-chip__checkmark-path {
stroke-width: 2px;
stroke-dasharray: 29.7833385;
stroke-dashoffset: 29.7833385;
stroke: currentColor;
}
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path {
transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path {
stroke-dashoffset: 0;
}
@media (forced-colors: active) {
.mdc-evolution-chip__checkmark-path {
stroke: CanvasText !important;
}
}
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
height: 18px;
width: 18px;
font-size: 18px;
}
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove {
opacity: calc(var(--mat-chip-trailing-action-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
}
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus {
opacity: calc(var(--mat-chip-trailing-action-focus-opacity, 1) * var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
}
.mat-mdc-standard-chip {
border-radius: var(--mat-chip-container-shape-radius, 8px);
height: var(--mat-chip-container-height, 32px);
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
background-color: var(--mat-chip-elevated-container-color, transparent);
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
background-color: var(--mat-chip-elevated-disabled-container-color);
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) {
background-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled {
background-color: var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
@media (forced-colors: active) {
.mat-mdc-standard-chip {
outline: solid 1px;
}
}
.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary {
border-radius: var(--mat-chip-with-avatar-avatar-shape-radius, 24px);
width: var(--mat-chip-with-icon-icon-size, 18px);
height: var(--mat-chip-with-icon-icon-size, 18px);
font-size: var(--mat-chip-with-icon-icon-size, 18px);
}
.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary {
opacity: 0;
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary {
color: var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary {
color: var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-chip-highlighted {
--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));
--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));
--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));
--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0);
}
.mat-mdc-chip-focus-overlay {
background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));
opacity: var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));
opacity: var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));
opacity: var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay {
background: var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));
opacity: var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar {
opacity: var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38);
}
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
opacity: var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38);
}
.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
opacity: var(--mat-chip-with-icon-disabled-icon-opacity, 0.38);
}
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
opacity: var(--mat-chip-disabled-container-opacity, 1);
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing {
color: var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
color: var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-chip-edit, .mat-mdc-chip-remove {
opacity: var(--mat-chip-trailing-action-opacity, 1);
}
.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus {
opacity: var(--mat-chip-trailing-action-focus-opacity, 1);
}
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
background-color: var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after {
opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)));
}
.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after {
opacity: calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)));
}
.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
background-color: var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after {
opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)));
}
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after {
opacity: calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)));
}
.mat-mdc-standard-chip {
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-standard-chip .mat-mdc-chip-graphic,
.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon {
box-sizing: content-box;
}
.mat-mdc-standard-chip._mat-animation-noopable,
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path {
transition-duration: 1ms;
animation-duration: 1ms;
}
.mat-mdc-chip-focus-overlay {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
opacity: 0;
border-radius: inherit;
transition: opacity 150ms linear;
}
._mat-animation-noopable .mat-mdc-chip-focus-overlay {
transition: none;
}
.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay {
display: none;
}
.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
border-radius: inherit;
}
.mat-mdc-chip-avatar {
text-align: center;
line-height: 1;
color: var(--mat-chip-with-icon-icon-color, currentColor);
}
.mat-mdc-chip {
position: relative;
z-index: 0;
}
.mat-mdc-chip-action-label {
text-align: left;
z-index: 1;
}
[dir=rtl] .mat-mdc-chip-action-label {
text-align: right;
}
.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label {
position: relative;
}
.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
}
.mat-mdc-chip-action-label .mat-focus-indicator::before {
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
}
.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before {
margin: calc(var(--mat-focus-indicator-border-width, 3px) * -1);
left: 8px;
right: 8px;
}
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
content: "";
display: block;
opacity: 0;
position: absolute;
top: -3px;
bottom: -3px;
left: 5px;
right: 5px;
border-radius: 50%;
box-sizing: border-box;
padding: 12px;
margin: -12px;
background-clip: content-box;
}
.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
width: 18px;
height: 18px;
font-size: 18px;
box-sizing: content-box;
}
.mat-chip-edit-input {
cursor: text;
display: inline-block;
color: inherit;
outline: 0;
}
@media (forced-colors: active) {
.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) {
outline-width: 3px;
}
}
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
content: "";
}
.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
min-height: fit-content;
}
img.mdc-evolution-chip__icon {
min-height: 0;
}
`],encapsulation:2})}return t})();var uE=(()=>{class t extends Ah{_defaultOptions=g(cE,{optional:!0});chipListSelectable=!0;_chipListMultiple=!1;_chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=e,this._changeDetectorRef.markForCheck()}_selectable=!0;get selected(){return this._selected}set selected(e){this._setSelectedState(e,!1,!0)}_selected=!1;get ariaSelected(){return this.selectable?this.selected.toString():null}basicChipAttrName="mat-basic-chip-option";selectionChange=new le;ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(e=!1){return this._setSelectedState(!this.selected,e,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(e,n,r){e!==this.selected&&(this._selected=e,r&&this.selectionChange.emit({source:this,isUserInput:n,selected:this.selected}),this._changeDetectorRef.markForCheck())}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(n,r){n&2&&(en("id",r.id),he("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),ue("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",te],selected:[2,"selected","selected",te]},outputs:{selectionChange:"selectionChange"},features:[He([{provide:Ah,useExisting:t},{provide:dE,useExisting:t}]),Ee],ngContentSelectors:iN,decls:8,vars:6,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(n,r){n&1&&(tt(nN),U(0,"span",0),p(1,"span",1)(2,"button",2),A(3,TW,5,0,"span",3),p(4,"span",4),Me(5),U(6,"span",5),m()()(),A(7,IW,2,0,"span",6)),n&2&&(u(2),S("_allowFocusWhenDisabled",!0),he("aria-description",r.ariaDescription)("aria-label",r.ariaLabel)("aria-selected",r.ariaSelected),u(),R(r._hasLeadingGraphic()?3:-1),u(4),R(r._hasTrailingIcon()?7:-1))},dependencies:[aN],styles:[AW],encapsulation:2})}return t})();var mE=(()=>{class t{_elementRef=g(pe);_changeDetectorRef=g(Ge);_dir=g(ln,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new ce;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new jn;ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&e<this._chips.length}_allowFocusEscape(){let e=this._elementRef.nativeElement.tabIndex;e!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(()=>this._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(It(null),rn(()=>hn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(It(this._chips)).subscribe(e=>{let n=[];e.forEach(r=>r._getActions().forEach(o=>n.push(o))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new xr(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Ue(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Ue(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(It(null),Ue(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Ue(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip),o=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=o||a;this._isValidIndex(r)&&s&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,r,o){if(n&1&&jt(o,Ah,5),n&2){let a;K(a=X())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,r){n&1&&N("keydown",function(a){return r._handleKeydown(a)}),n&2&&he("role",r.role)},inputs:{disabled:[2,"disabled","disabled",te],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gt(e)]},ngContentSelectors:rN,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){n&1&&(tt(),kt(0,"div",0),Me(1),Mt())},styles:[`.mat-mdc-chip-set {
display: flex;
}
.mat-mdc-chip-set:focus {
outline: none;
}
.mat-mdc-chip-set .mdc-evolution-chip-set__chips {
min-width: 100%;
margin-left: -8px;
margin-right: 0;
}
.mat-mdc-chip-set .mdc-evolution-chip {
margin: 4px 0 4px 8px;
}
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips {
margin-left: 0;
margin-right: -8px;
}
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip {
margin-left: 0;
margin-right: 8px;
}
.mdc-evolution-chip-set__chips {
display: flex;
flex-flow: wrap;
min-width: 0;
}
.mat-mdc-chip-set-stacked {
flex-direction: column;
align-items: flex-start;
}
.mat-mdc-chip-set-stacked .mat-mdc-chip {
width: 100%;
}
.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic {
flex-grow: 0;
}
.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary {
flex-basis: 100%;
justify-content: start;
}
input.mat-mdc-chip-input {
flex: 1 0 150px;
margin-left: 8px;
}
[dir=rtl] input.mat-mdc-chip-input {
margin-left: 0;
margin-right: 8px;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder {
opacity: 1;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder {
opacity: 1;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder {
opacity: 1;
}
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder {
opacity: 1;
}
.mat-mdc-chip-set + input.mat-mdc-chip-input {
margin-left: 0;
margin-right: 0;
}
`],encapsulation:2})}return t})(),lE=class{source;value;constructor(i,e){this.source=i,this.value=e}},OW={provide:br,useExisting:on(()=>hE),multi:!0},hE=(()=>{class t extends mE{_onTouched=()=>{};_onChange=()=>{};_defaultRole="listbox";_defaultOptions=g(cE,{optional:!0});get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._syncListboxProperties()}_multiple=!1;get selected(){let e=this._chips.toArray().filter(n=>n.selected);return this.multiple?e:e[0]}ariaOrientation="horizontal";get selectable(){return this._selectable}set selectable(e){this._selectable=e,this._syncListboxProperties()}_selectable=!0;compareWith=(e,n)=>e===n;required=!1;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncListboxProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get chipSelectionChanges(){return this._getChipStream(e=>e.selectionChange)}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}get value(){return this._value}set value(e){this._chips&&this._chips.length&&this._setSelectionByValue(e,!1),this._value=e}_value;change=new le;_chips=void 0;ngAfterContentInit(){this._chips.changes.pipe(It(null),Ue(this._destroyed)).subscribe(()=>{this.value!==void 0&&Promise.resolve().then(()=>{this._setSelectionByValue(this.value,!1)}),this._syncListboxProperties()}),this.chipBlurChanges.pipe(Ue(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(Ue(this._destroyed)).subscribe(e=>{this.multiple||this._chips.forEach(n=>{n!==e.source&&n._setSelectedState(!1,!1,!1)}),e.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;let e=this._getFirstSelectedChip();e&&!e.disabled?e.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(e){e!=null?this.value=e:this.value=void 0}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_setSelectionByValue(e,n=!0){this._clearSelection(),Array.isArray(e)?e.forEach(r=>this._selectValue(r,n)):this._selectValue(e,n)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(e){e.keyCode===9&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let e=null;Array.isArray(this.selected)?e=this.selected.map(n=>n.value):e=this.selected?this.selected.value:void 0,this._value=e,this.change.emit(new lE(this,e)),this._onChange(e),this._changeDetectorRef.markForCheck()}_clearSelection(e){this._chips.forEach(n=>{n!==e&&n.deselect()})}_selectValue(e,n){let r=this._chips.find(o=>o.value!=null&&this.compareWith(o.value,e));return r&&(n?r.selectViaInteraction():r.select()),r}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(e=>{e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable,e._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,e._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(e){return!1}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-chip-listbox"]],contentQueries:function(n,r,o){if(n&1&&jt(o,uE,5),n&2){let a;K(a=X())&&(r._chips=a)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(n,r){n&1&&N("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(a){return r._keydown(a)}),n&2&&(en("tabIndex",r.disabled||r.empty?-1:r.tabIndex),he("role",r.role)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),ue("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{multiple:[2,"multiple","multiple",te],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",te],compareWith:"compareWith",required:[2,"required","required",te],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",te],value:"value"},outputs:{change:"change"},features:[He([OW]),Ee],ngContentSelectors:rN,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){n&1&&(tt(),kt(0,"div",0),Me(1),Mt())},styles:[RW],encapsulation:2})}return t})();var R_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[Xo,{provide:cE,useValue:{separatorKeyCodes:[13]}}],imports:[Di,qe]})}return t})();var FW=["determinateSpinner"];function NW(t,i){if(t&1&&(bn(),p(0,"svg",11),U(1,"circle",12),m()),t&2){let e=E();he("viewBox",e._viewBox()),u(),In("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),he("r",e._circleRadius())}}var LW=new z("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:lN})}),lN=100,BW=10,na=(()=>{class t{_elementRef=g(pe);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=g(LW),n=_h(),r=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=lN;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-BW)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&Qe(FW,5),n&2){let o;K(o=X())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(he("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),Ut("mat-"+r.color),In("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),ue("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",gt],diameter:[2,"diameter","diameter",gt],strokeWidth:[2,"strokeWidth","strokeWidth",gt]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&(ot(0,NW,2,8,"ng-template",null,0,Da),p(2,"div",2,1),bn(),p(4,"svg",3),U(5,"circle",4),m()(),ga(),p(6,"div",5)(7,"div",6)(8,"div",7),Jt(9,8),m(),p(10,"div",9),Jt(11,8),m(),p(12,"div",10),Jt(13,8),m()()()),n&2){let o=pn(1);u(4),he("viewBox",r._viewBox()),u(),In("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),he("r",r._circleRadius()),u(4),S("ngTemplateOutlet",o),u(2),S("ngTemplateOutlet",o),u(2),S("ngTemplateOutlet",o)}},dependencies:[bs],styles:[`.mat-mdc-progress-spinner {
--mat-progress-spinner-animation-multiplier: 1;
display: block;
overflow: hidden;
line-height: 0;
position: relative;
direction: ltr;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.6, 1);
}
.mat-mdc-progress-spinner circle {
stroke-width: var(--mat-progress-spinner-active-indicator-width, 4px);
}
.mat-mdc-progress-spinner._mat-animation-noopable, .mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle {
transition: none !important;
}
.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,
.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,
.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container {
animation: none !important;
}
.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle {
stroke-dasharray: 0 !important;
}
@media (forced-colors: active) {
.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,
.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle {
stroke: currentColor;
stroke: CanvasText;
}
}
.mat-progress-spinner-reduced-motion {
--mat-progress-spinner-animation-multiplier: 1.25;
}
.mdc-circular-progress__determinate-container,
.mdc-circular-progress__indeterminate-circle-graphic,
.mdc-circular-progress__indeterminate-container,
.mdc-circular-progress__spinner-layer {
position: absolute;
width: 100%;
height: 100%;
}
.mdc-circular-progress__determinate-container {
transform: rotate(-90deg);
}
.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container {
opacity: 0;
}
.mdc-circular-progress__indeterminate-container {
font-size: 0;
letter-spacing: 0;
white-space: nowrap;
opacity: 0;
}
.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container {
opacity: 1;
animation: mdc-circular-progress-container-rotate calc(1568.2352941176ms * var(--mat-progress-spinner-animation-multiplier)) linear infinite;
}
.mdc-circular-progress__determinate-circle-graphic,
.mdc-circular-progress__indeterminate-circle-graphic {
fill: transparent;
}
.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,
.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic {
stroke: var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary));
}
@media (forced-colors: active) {
.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,
.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic {
stroke: CanvasText;
}
}
.mdc-circular-progress__determinate-circle {
transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1);
}
.mdc-circular-progress__gap-patch {
position: absolute;
top: 0;
left: 47.5%;
box-sizing: border-box;
width: 5%;
height: 100%;
overflow: hidden;
}
.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic {
left: -900%;
width: 2000%;
transform: rotate(180deg);
}
.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic {
width: 200%;
}
.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic {
left: -100%;
}
.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic {
animation: mdc-circular-progress-left-spin calc(1333ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}
.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic {
animation: mdc-circular-progress-right-spin calc(1333ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}
.mdc-circular-progress__circle-clipper {
display: inline-flex;
position: relative;
width: 50%;
height: 100%;
overflow: hidden;
}
.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer {
animation: mdc-circular-progress-spinner-layer-rotate calc(5332ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}
@keyframes mdc-circular-progress-container-rotate {
to {
transform: rotate(360deg);
}
}
@keyframes mdc-circular-progress-spinner-layer-rotate {
12.5% {
transform: rotate(135deg);
}
25% {
transform: rotate(270deg);
}
37.5% {
transform: rotate(405deg);
}
50% {
transform: rotate(540deg);
}
62.5% {
transform: rotate(675deg);
}
75% {
transform: rotate(810deg);
}
87.5% {
transform: rotate(945deg);
}
100% {
transform: rotate(1080deg);
}
}
@keyframes mdc-circular-progress-left-spin {
from {
transform: rotate(265deg);
}
50% {
transform: rotate(130deg);
}
to {
transform: rotate(265deg);
}
}
@keyframes mdc-circular-progress-right-spin {
from {
transform: rotate(-265deg);
}
50% {
transform: rotate(-130deg);
}
to {
transform: rotate(-265deg);
}
}
`],encapsulation:2})}return t})();var ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var zW=[[["caption"]],[["colgroup"],["col"]],"*"],VW=["caption","colgroup, col","*"];function jW(t,i){t&1&&Me(0,2)}function HW(t,i){t&1&&(p(0,"thead",0),Jt(1,1),m(),p(2,"tbody",0),Jt(3,2)(4,3),m(),p(5,"tfoot",0),Jt(6,4),m())}function $W(t,i){t&1&&Jt(0,1)(1,2)(2,3)(3,4)}var wo=new z("CDK_TABLE");var F_=(()=>{class t{template=g(Lt);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),N_=(()=>{class t{template=g(Lt);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),mN=(()=>{class t{template=g(Lt);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),Bs=(()=>{class t{_table=g(wo,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,r,o){if(n&1&&jt(o,F_,5)(o,N_,5)(o,mN,5),n&2){let a;K(a=X())&&(r.cell=a.first),K(a=X())&&(r.headerCell=a.first),K(a=X())&&(r.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",te],stickyEnd:[2,"stickyEnd","stickyEnd",te]}})}return t})(),P_=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},hN=(()=>{class t extends P_{constructor(){super(g(Bs),g(pe))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Ee]})}return t})();var pN=(()=>{class t extends P_{constructor(){let e=g(Bs),n=g(pe);super(e,n);let r=e._table?._getCellRole();r&&n.nativeElement.setAttribute("role",r)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Ee]})}return t})();var fE=(()=>{class t{template=g(Lt);_differs=g(Xc);columns;_columnsDiffer;ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Oh?e.headerCell.template:this instanceof gE?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,features:[Et]})}return t})(),Oh=(()=>{class t extends fE{_table=g(wo,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",te]},features:[Ee,Et]})}return t})(),gE=(()=>{class t extends fE{_table=g(wo,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",te]},features:[Ee,Et]})}return t})(),L_=(()=>{class t extends fE{_table=g(wo,{optional:!0});when;static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Ee]})}return t})(),Ql=(()=>{class t{_viewContainer=g(Xt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),_E=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Jt(0,0)},dependencies:[Ql],encapsulation:2,changeDetection:1})}return t})();var vE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Jt(0,0)},dependencies:[Ql],encapsulation:2,changeDetection:1})}return t})(),B_=(()=>{class t{templateRef=g(Lt);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),dN=["top","bottom","left","right"],pE=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,r=!0,o,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=r,this.direction=o,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let r of i)r.nodeType===r.ELEMENT_NODE&&n.push(r,...Array.from(r.children));Bt({write:()=>{for(let r of n)this._removeStickyStyle(r,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,r=!0,o=!0){if(!i.length||!this._isBrowser||!(e.some(C=>C)||n.some(C=>C))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",d=l?"left":"right",h=e.lastIndexOf(!0),b=n.indexOf(!0),f,_,y;o&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),Bt({earlyRead:()=>{f=this._getCellWidths(a,r),_=this._getStickyStartColumnPositions(f,e),y=this._getStickyEndColumnPositions(f,n)},write:()=>{for(let C of i)for(let D=0;D<s;D++){let k=C.children[D];e[D]&&this._addStickyStyle(k,c,_[D],D===h),n[D]&&this._addStickyStyle(k,d,y[D],D===b)}this._positionListener&&f.some(C=>!!C)&&(this._positionListener.stickyColumnsUpdated({sizes:h===-1?[]:f.slice(0,h+1).map((C,D)=>e[D]?C:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:b===-1?[]:f.slice(b).map((C,D)=>n[D+b]?C:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let r=n==="bottom"?i.slice().reverse():i,o=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];Bt({earlyRead:()=>{for(let c=0,d=0;c<r.length;c++){if(!o[c])continue;a[c]=d;let h=r[c];l[c]=this._isNativeHtmlTable?Array.from(h.children):[h];let b=this._retrieveElementSize(h).height;d+=b,s[c]=b}},write:()=>{let c=o.lastIndexOf(!0);for(let d=0;d<r.length;d++){if(!o[d])continue;let h=a[d],b=d===c;for(let f of l[d])this._addStickyStyle(f,n,h,b)}n==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:s,offsets:a,elements:l}):this._positionListener?.stickyFooterRowsUpdated({sizes:s,offsets:a,elements:l})}},{injector:this._tableInjector})}updateStickyFooterContainer(i,e){this._isNativeHtmlTable&&Bt({write:()=>{let n=i.querySelector("tfoot");n&&(e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);dN.some(r=>e.indexOf(r)===-1&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let r of dN)i.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],r=i.children;for(let o=0;o<r.length;o++){let a=r[o];n.push(this._retrieveElementSize(a).width)}return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(i,e){let n=[],r=0;for(let o=0;o<i.length;o++)e[o]&&(n[o]=r,r+=i[o]);return n}_getStickyEndColumnPositions(i,e){let n=[],r=0;for(let o=i.length;o>0;o--)e[o]&&(n[o]=r,r+=i[o]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),r={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,r),this._resizeObserver.observe(i,{box:"border-box"})),r}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let r=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};r.width!==this._elemSizeCache.get(n.target)?.width&&UW(n.target)&&(e=!0),this._elemSizeCache.set(n.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function UW(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var Rh=new z("STICKY_POSITIONING_LISTENER");var bE=(()=>{class t{viewContainer=g(Xt);elementRef=g(pe);constructor(){let e=g(wo);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","rowOutlet",""]]})}return t})(),yE=(()=>{class t{viewContainer=g(Xt);elementRef=g(pe);constructor(){let e=g(wo);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),xE=(()=>{class t{viewContainer=g(Xt);elementRef=g(pe);constructor(){let e=g(wo);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),CE=(()=>{class t{viewContainer=g(Xt);elementRef=g(pe);constructor(){let e=g(wo);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),wE=(()=>{class t{_differs=g(Xc);_changeDetectorRef=g(Ge);_elementRef=g(pe);_dir=g(ln,{optional:!0});_platform=g(ht);_viewRepeater;_viewportRuler=g(Cr);_injector=g(ze);_virtualScrollViewport=g(QP,{optional:!0,host:!0});_positionListener=g(Rh,{optional:!0})||g(Rh,{optional:!0,skipSelf:!0});_document=g(je);_data;_renderedRange;_onDestroy=new ce;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new ce;_footerRowStickyUpdates=new ce;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new ce;_dataStream=new ce;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new le;viewChange=new qt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){g(new ei("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Ue(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new m_:new T_,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),xh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===bo.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=n.get(r.currentIndex);o.context.$implicit=r.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=uN(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=uN(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s<n.length;s++)this._renderRows[s].rowDef===o&&a.push(n[s]);this._addStickyColumnStyles(a,o)}),r.forEach((o,a)=>{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=this._renderedRange.start;o<n;o++){let a=this._data[o],s=this._getRenderRowsForData(a,o,r.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(let l=0;l<s.length;l++){let c=s[l],d=this._cachedRenderRowsMap.get(c.data);d.has(c.rowDef)?d.get(c.rowDef).push(c):d.set(c.rowDef,[c]),e.push(c)}}return e}_getRenderRowsForData(e,n,r){return this._getRowDefs(e,n).map(a=>{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),O_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=O_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=O_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=O_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o}_switchDataSource(e){this._data=[],xh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;xh(this.dataSource)?e=this.dataSource.connect(this):Xs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ne(this.dataSource)),this._renderChangeSubscription=Zi([e,this.viewChange]).pipe(Ue(this._onDestroy)).subscribe(([n,r])=>{this._data=n||[],this._renderedRange=r,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let r=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let r=0;r<e.viewContainer.length;r++){let o=e.viewContainer.get(r);n.push(o.rootNodes[0])}return n}_getRowDefs(e,n){if(this._rowDefs.length===1)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(o=>!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,n){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:n}}_renderRow(e,n,r,o={}){let a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))Ql.mostRecentCellOutlet&&Ql.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n<r;n++){let a=e.get(n).context;a.count=r,a.first=n===0,a.last=n===r-1,a.even=n%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[n].dataIndex,a.renderIndex=n):a.index=this._renderRows[n].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,n=>{let r=this._columnDefsByName.get(n);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,r)=>n||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new pE(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Ne()).pipe(Ue(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?hp:dp;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(ts(0,n),Ue(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(r,o)=>this._measureRangeSize(r,o)}),Zi([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Ue(this._onDestroy)).subscribe(([r,o])=>{if(!(!o.sizes||!o.offsets||!o.elements))for(let a=0;a<o.elements.length;a++){let s=o.elements[a];if(s){let l=o.offsets[a],c=r!==0?Math.max(r-l,l):-l;for(let d of s)d.style.top=`${-c}px`}}}),Zi([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Ue(this._onDestroy)).subscribe(([r,o])=>{if(!(!o.sizes||!o.offsets||!o.elements))for(let a=0;a<o.elements.length;a++){let s=o.elements[a];if(s)for(let l of s)l.style.bottom=`${r+o.offsets[a]}px`}})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(n){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];if(o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l<s.length;l++)s[l].classList.add(...e._cellClassNames)}}else r.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}_measureRangeSize(e,n){if(e.start>=e.end||n!=="vertical")return 0;let r=this.viewChange.value,o=this._rowOutlet.viewContainer;e.start<r.start||e.end>r.end;let a=e.start-r.start,s=e.end-e.start,l,c;for(let b=0;b<s;b++){let f=o.get(b+a);if(f&&f.rootNodes.length){l=c=f.rootNodes[0];break}}for(let b=s-1;b>-1;b--){let f=o.get(b+a);if(f&&f.rootNodes.length){c=f.rootNodes[f.rootNodes.length-1];break}}let d=l?.getBoundingClientRect?.(),h=c?.getBoundingClientRect?.();return d&&h?h.bottom-d.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,r,o){if(n&1&&jt(o,B_,5)(o,Bs,5)(o,L_,5)(o,Oh,5)(o,gE,5),n&2){let a;K(a=X())&&(r._noDataRow=a.first),K(a=X())&&(r._contentColumnDefs=a),K(a=X())&&(r._contentRowDefs=a),K(a=X())&&(r._contentHeaderRowDefs=a),K(a=X())&&(r._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,r){n&2&&ue("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",te],fixedLayout:[2,"fixedLayout","fixedLayout",te],recycleRows:[2,"recycleRows","recycleRows",te]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[He([{provide:wo,useExisting:t},{provide:Rh,useValue:null}])],ngContentSelectors:VW,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){n&1&&(tt(zW),Me(0),Me(1,1),A(2,jW,1,0),A(3,HW,7,0)(4,$W,4,0)),n&2&&(u(2),R(r._isServer?2:-1),u(),R(r._isNativeHtmlTable?3:4))},dependencies:[yE,bE,CE,xE],styles:[`.cdk-table-fixed-layout {
table-layout: fixed;
}
`],encapsulation:2,changeDetection:1})}return t})();function O_(t,i){return t.concat(Array.from(i))}function uN(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let r=n.nodeType===1?n.nodeName:null;if(r===e)return n;if(r==="TABLE")break;n=n.parentNode}return null}var fN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[wh]})}return t})();var WW=[[["caption"]],[["colgroup"],["col"]],"*"],GW=["caption","colgroup, col","*"];function qW(t,i){t&1&&Me(0,2)}function QW(t,i){t&1&&(p(0,"thead",0),Jt(1,1),m(),p(2,"tbody",2),Jt(3,3)(4,4),m(),p(5,"tfoot",0),Jt(6,5),m())}function ZW(t,i){t&1&&Jt(0,1)(1,3)(2,4)(3,5)}var zd=(()=>{class t extends wE{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mat-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[He([{provide:wE,useExisting:t},{provide:wo,useExisting:t},{provide:Rh,useValue:null}]),Ee],ngContentSelectors:GW,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){n&1&&(tt(WW),Me(0),Me(1,1),A(2,qW,1,0),A(3,QW,7,0)(4,ZW,4,0)),n&2&&(u(2),R(r._isServer?2:-1),u(),R(r._isNativeHtmlTable?3:4))},dependencies:[yE,bE,CE,xE],styles:[`.mat-mdc-table-sticky {
position: sticky !important;
}
mat-table {
display: block;
}
mat-header-row {
min-height: var(--mat-table-header-container-height, 56px);
}
mat-row {
min-height: var(--mat-table-row-item-container-height, 52px);
}
mat-footer-row {
min-height: var(--mat-table-footer-container-height, 52px);
}
mat-row, mat-header-row, mat-footer-row {
display: flex;
border-width: 0;
border-bottom-width: 1px;
border-style: solid;
align-items: center;
box-sizing: border-box;
}
mat-cell:first-of-type, mat-header-cell:first-of-type, mat-footer-cell:first-of-type {
padding-left: 24px;
}
[dir=rtl] mat-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type) {
padding-left: 0;
padding-right: 24px;
}
mat-cell:last-of-type, mat-header-cell:last-of-type, mat-footer-cell:last-of-type {
padding-right: 24px;
}
[dir=rtl] mat-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type) {
padding-right: 0;
padding-left: 24px;
}
mat-cell, mat-header-cell, mat-footer-cell {
flex: 1;
display: flex;
align-items: center;
overflow: hidden;
word-wrap: break-word;
min-height: inherit;
}
.mat-mdc-table {
min-width: 100%;
border: 0;
border-spacing: 0;
table-layout: auto;
white-space: normal;
background-color: var(--mat-table-background-color, var(--mat-sys-surface));
}
.mat-table-fixed-layout {
table-layout: fixed;
}
.mdc-data-table__cell {
box-sizing: border-box;
overflow: hidden;
text-align: start;
text-overflow: ellipsis;
}
.mdc-data-table__cell,
.mdc-data-table__header-cell {
padding: 0 16px;
}
.mat-mdc-header-row {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
height: var(--mat-table-header-container-height, 56px);
color: var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
font-family: var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));
line-height: var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));
font-size: var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));
font-weight: var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500));
}
.mat-mdc-row {
height: var(--mat-table-row-item-container-height, 52px);
color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
}
.mat-mdc-row,
.mdc-data-table__content {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));
line-height: var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));
font-size: var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));
font-weight: var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight));
}
.mat-mdc-footer-row {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
height: var(--mat-table-footer-container-height, 52px);
color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
font-family: var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));
line-height: var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
font-size: var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));
font-weight: var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));
letter-spacing: var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking));
}
.mat-mdc-header-cell {
border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));
border-bottom-width: var(--mat-table-row-item-outline-width, 1px);
border-bottom-style: solid;
letter-spacing: var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));
font-weight: inherit;
line-height: inherit;
box-sizing: border-box;
text-overflow: ellipsis;
overflow: hidden;
outline: none;
text-align: start;
}
.mdc-data-table__row:last-child > .mat-mdc-header-cell {
border-bottom: none;
}
.mat-mdc-cell {
border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));
border-bottom-width: var(--mat-table-row-item-outline-width, 1px);
border-bottom-style: solid;
letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));
line-height: inherit;
}
.mdc-data-table__row:last-child > .mat-mdc-cell {
border-bottom: none;
}
.mat-mdc-footer-cell {
letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));
}
mat-row.mat-mdc-row,
mat-header-row.mat-mdc-header-row,
mat-footer-row.mat-mdc-footer-row {
border-bottom: none;
}
.mat-mdc-table tbody,
.mat-mdc-table tfoot,
.mat-mdc-table thead,
.mat-mdc-cell,
.mat-mdc-footer-cell,
.mat-mdc-header-row,
.mat-mdc-row,
.mat-mdc-footer-row,
.mat-mdc-table .mat-mdc-header-cell {
background: inherit;
}
.mat-mdc-table mat-header-row.mat-mdc-header-row,
.mat-mdc-table mat-row.mat-mdc-row,
.mat-mdc-table mat-footer-row.mat-mdc-footer-cell {
height: unset;
}
mat-header-cell.mat-mdc-header-cell,
mat-cell.mat-mdc-cell,
mat-footer-cell.mat-mdc-footer-cell {
align-self: stretch;
}
`],encapsulation:2,changeDetection:1})}return t})(),z_=(()=>{class t extends F_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matCellDef",""]],features:[He([{provide:F_,useExisting:t}]),Ee]})}return t})(),V_=(()=>{class t extends N_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matHeaderCellDef",""]],features:[He([{provide:N_,useExisting:t}]),Ee]})}return t})();var j_=(()=>{class t extends Bs{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[He([{provide:Bs,useExisting:t}]),Ee]})}return t})(),H_=(()=>{class t extends hN{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Ee]})}return t})();var $_=(()=>{class t extends pN{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Ee]})}return t})();var U_=(()=>{class t extends Oh{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",te]},features:[He([{provide:Oh,useExisting:t}]),Ee]})}return t})();var W_=(()=>{class t extends L_{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[He([{provide:L_,useExisting:t}]),Ee]})}return t})(),G_=(()=>{class t extends _E{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[He([{provide:_E,useExisting:t}]),Ee],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Jt(0,0)},dependencies:[Ql],encapsulation:2,changeDetection:1})}return t})();var q_=(()=>{class t extends vE{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[He([{provide:vE,useExisting:t}]),Ee],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Jt(0,0)},dependencies:[Ql],encapsulation:2,changeDetection:1})}return t})(),EE=(()=>{class t extends B_{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[He([{provide:B_,useExisting:t}]),Ee]})}return t})();var Q_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[fN,qe]})}return t})(),YW=9007199254740991,Bd=class extends yh{_data;_renderData=new qt([]);_filter=new qt("");_internalPageChanges=new ce;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(J0(n)){let r=Number(n);return r<YW?r:n}return n};sortData=(i,e)=>{let n=e.active,r=e.direction;return!n||r==""?i:i.sort((o,a)=>{let s=this.sortingDataAccessor(o,n),l=this.sortingDataAccessor(a,n),c=typeof s,d=typeof l;c!==d&&(c==="number"&&(s+=""),d==="number"&&(l+=""));let h=0;return s!=null&&l!=null?s>l?h=1:s<l&&(h=-1):s!=null?h=1:l!=null&&(h=-1),h*(r=="asc"?1:-1)})};filterPredicate=(i,e)=>{let n=e.trim().toLowerCase();return Object.values(i).some(r=>`${r}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new qt(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?hn(this._sort.sortChange,this._sort.initialized):Ne(null),e=this._paginator?hn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ne(null),n=this._data,r=Zi([n,this._filter]).pipe(Le(([s])=>this._filterData(s))),o=Zi([r,i]).pipe(Le(([s])=>this._orderData(s))),a=Zi([o,e]).pipe(Le(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,n);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var XW=["*"],Vd=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},ngContentSelectors:XW,decls:1,vars:0,template:function(n,r){n&1&&(tt(),Me(0))},styles:[`.mat-internal-form-field {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-flex;
align-items: center;
vertical-align: middle;
}
.mat-internal-form-field > label {
margin-left: 0;
margin-right: auto;
padding-left: 4px;
padding-right: 0;
order: 0;
}
[dir=rtl] .mat-internal-form-field > label {
margin-left: auto;
margin-right: 0;
padding-left: 0;
padding-right: 4px;
}
.mdc-form-field--align-end > label {
margin-left: auto;
margin-right: 0;
padding-left: 0;
padding-right: 4px;
order: -1;
}
[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label {
margin-left: 0;
margin-right: auto;
padding-left: 4px;
padding-right: 0;
}
`],encapsulation:2})}return t})();var JW=["input"],eG=["label"],tG=["*"],DE={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},nG=new z("mat-checkbox-default-options",{providedIn:"root",factory:()=>DE}),Mi=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Mi||{}),SE=class{source;checked},Zl=(()=>{class t{_elementRef=g(pe);_changeDetectorRef=g(Ge);_ngZone=g(De);_animationsDisabled=xt();_options=g(nG,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new SE;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new le;indeterminateChange=new le;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Mi.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){g(Ot).load(wn);let e=g(new ei("tabindex"),{optional:!0});this._options=this._options||DE,this.color=this._options.color||DE.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=g(St).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Mi.Indeterminate):this._transitionCheckState(this.checked?Mi.Checked:Mi.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Q(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(!(n===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Mi.Checked:Mi.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Mi.Init:if(n===Mi.Checked)return this._animationClasses.uncheckedToChecked;if(n==Mi.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Mi.Unchecked:return n===Mi.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Mi.Checked:return n===Mi.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Mi.Indeterminate:return n===Mi.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(n&1&&Qe(JW,5)(eG,5),n&2){let o;K(o=X())&&(r._inputElement=o.first),K(o=X())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,r){n&2&&(en("id",r.id),he("tabindex",null)("aria-label",null)("aria-labelledby",null),Ut(r.color?"mat-"+r.color:"mat-accent"),ue("_mat-animation-noopable",r._animationsDisabled)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",te],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",te],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",te],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:gt(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",te],checked:[2,"checked","checked",te],disabled:[2,"disabled","disabled",te],indeterminate:[2,"indeterminate","indeterminate",te]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[He([{provide:br,useExisting:on(()=>t),multi:!0},{provide:Hi,useExisting:t,multi:!0}]),Et],ngContentSelectors:tG,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,r){if(n&1&&(tt(),p(0,"div",3),N("click",function(a){return r._preventBubblingFromLabel(a)}),p(1,"div",4,0)(3,"div",5),N("click",function(){return r._onTouchTargetClick()}),m(),p(4,"input",6,1),N("blur",function(){return r._onBlur()})("click",function(){return r._onInputClick()})("change",function(a){return r._onInteractionEvent(a)}),m(),U(6,"div",7),p(7,"div",8),bn(),p(8,"svg",9),U(9,"path",10),m(),ga(),U(10,"div",11),m(),U(11,"div",12),m(),p(12,"label",13,2),Me(14),m()()),n&2){let o=pn(2);S("labelPosition",r.labelPosition),u(4),ue("mdc-checkbox--selected",r.checked),S("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),he("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),u(7),S("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),u(),S("for",r.inputId)}},dependencies:[ai,Vd],styles:[`.mdc-checkbox {
display: inline-block;
position: relative;
flex: 0 0 18px;
box-sizing: content-box;
width: 18px;
height: 18px;
line-height: 0;
white-space: nowrap;
cursor: pointer;
vertical-align: bottom;
padding: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2);
margin: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
}
.mdc-checkbox:hover > .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox:hover > .mat-mdc-checkbox-ripple > .mat-ripple-element {
background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox .mdc-checkbox__native-control:focus + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox .mdc-checkbox__native-control:focus ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox:active > .mdc-checkbox__native-control + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:active > .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox .mdc-checkbox__native-control:focus:checked + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox .mdc-checkbox__native-control:focus:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:active > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox:active > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control + .mdc-checkbox__ripple {
background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox .mdc-checkbox__native-control {
position: absolute;
margin: 0;
padding: 0;
opacity: 0;
cursor: inherit;
z-index: 1;
width: var(--mat-checkbox-state-layer-size, 40px);
height: var(--mat-checkbox-state-layer-size, 40px);
top: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
right: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
left: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
}
.mdc-checkbox--disabled {
cursor: default;
pointer-events: none;
}
.mdc-checkbox__background {
display: inline-flex;
position: absolute;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 18px;
height: 18px;
border: 2px solid currentColor;
border-radius: 2px;
background-color: transparent;
pointer-events: none;
will-change: background-color, border-color;
transition: background-color 90ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);
-webkit-print-color-adjust: exact;
color-adjust: exact;
border-color: var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));
top: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2);
left: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2);
}
.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));
background-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));
}
.mdc-checkbox--disabled .mdc-checkbox__background {
border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled .mdc-checkbox__background {
border-color: GrayText;
}
}
.mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background {
background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
border-color: transparent;
}
@media (forced-colors: active) {
.mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background {
border-color: GrayText;
}
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:checked) ~ .mdc-checkbox__background,
.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:indeterminate) ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));
background-color: transparent;
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
.mdc-checkbox:hover > .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));
background-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));
}
.mdc-checkbox__native-control:focus:focus:not(:checked) ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:focus:focus:not(:indeterminate) ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface));
}
.mdc-checkbox__native-control:focus:focus:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:focus:focus:indeterminate ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));
background-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));
}
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background {
border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background {
border-color: GrayText;
}
}
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
border-color: transparent;
}
.mdc-checkbox__checkmark {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
opacity: 0;
transition: opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);
color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary));
}
@media (forced-colors: active) {
.mdc-checkbox__checkmark {
color: CanvasText;
}
}
.mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark {
color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark {
color: GrayText;
}
}
.mdc-checkbox__checkmark-path {
transition: stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);
stroke: currentColor;
stroke-width: 3.12px;
stroke-dashoffset: 29.7833385;
stroke-dasharray: 29.7833385;
}
.mdc-checkbox__mixedmark {
width: 100%;
height: 0;
transform: scaleX(0) rotate(0deg);
border-width: 1px;
border-style: solid;
opacity: 0;
transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1);
border-color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary));
}
@media (forced-colors: active) {
.mdc-checkbox__mixedmark {
margin: 0 1px;
}
}
.mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark {
border-color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark {
border-color: GrayText;
}
}
.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,
.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,
.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,
.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background {
animation-duration: 180ms;
animation-timing-function: linear;
}
.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path {
animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;
transition: none;
}
.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark {
animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;
transition: none;
}
.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path {
animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;
transition: none;
}
.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark {
animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear;
transition: none;
}
.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark {
animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;
transition: none;
}
.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark {
animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear;
transition: none;
}
.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark {
animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;
transition: none;
}
.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark {
animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;
transition: none;
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path,
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path {
stroke-dashoffset: 0;
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark {
transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1), transform 180ms cubic-bezier(0, 0, 0.2, 1);
opacity: 1;
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark {
transform: scaleX(1) rotate(-45deg);
}
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark {
transform: rotate(45deg);
opacity: 0;
transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1);
}
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark {
transform: scaleX(1) rotate(0deg);
opacity: 1;
}
@keyframes mdc-checkbox-unchecked-checked-checkmark-path {
0%, 50% {
stroke-dashoffset: 29.7833385;
}
50% {
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
100% {
stroke-dashoffset: 0;
}
}
@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark {
0%, 68.2% {
transform: scaleX(0);
}
68.2% {
animation-timing-function: cubic-bezier(0, 0, 0, 1);
}
100% {
transform: scaleX(1);
}
}
@keyframes mdc-checkbox-checked-unchecked-checkmark-path {
from {
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
opacity: 1;
stroke-dashoffset: 0;
}
to {
opacity: 0;
stroke-dashoffset: -29.7833385;
}
}
@keyframes mdc-checkbox-checked-indeterminate-checkmark {
from {
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
transform: rotate(0deg);
opacity: 1;
}
to {
transform: rotate(45deg);
opacity: 0;
}
}
@keyframes mdc-checkbox-indeterminate-checked-checkmark {
from {
animation-timing-function: cubic-bezier(0.14, 0, 0, 1);
transform: rotate(45deg);
opacity: 0;
}
to {
transform: rotate(360deg);
opacity: 1;
}
}
@keyframes mdc-checkbox-checked-indeterminate-mixedmark {
from {
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
transform: rotate(-45deg);
opacity: 0;
}
to {
transform: rotate(0deg);
opacity: 1;
}
}
@keyframes mdc-checkbox-indeterminate-checked-mixedmark {
from {
animation-timing-function: cubic-bezier(0.14, 0, 0, 1);
transform: rotate(0deg);
opacity: 1;
}
to {
transform: rotate(315deg);
opacity: 0;
}
}
@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark {
0% {
animation-timing-function: linear;
transform: scaleX(1);
opacity: 1;
}
32.8%, 100% {
transform: scaleX(0);
opacity: 0;
}
}
.mat-mdc-checkbox {
display: inline-block;
position: relative;
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-touch-target,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__native-control,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__ripple,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-ripple::before,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__mixedmark {
transition: none !important;
animation: none !important;
}
.mat-mdc-checkbox label {
cursor: pointer;
}
.mat-mdc-checkbox .mat-internal-form-field {
color: var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));
line-height: var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));
font-size: var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));
letter-spacing: var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));
font-weight: var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight));
}
.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input {
cursor: default;
}
.mat-mdc-checkbox.mat-mdc-checkbox-disabled label {
cursor: default;
color: var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mat-mdc-checkbox.mat-mdc-checkbox-disabled label {
color: GrayText;
}
}
.mat-mdc-checkbox label:empty {
display: none;
}
.mat-mdc-checkbox .mdc-checkbox__ripple {
opacity: 0;
}
.mat-mdc-checkbox .mat-mdc-checkbox-ripple,
.mdc-checkbox__ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
border-radius: 50%;
pointer-events: none;
}
.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),
.mdc-checkbox__ripple:not(:empty) {
transform: translateZ(0);
}
.mat-mdc-checkbox-ripple .mat-ripple-element {
opacity: 0.1;
}
.mat-mdc-checkbox-touch-target {
position: absolute;
top: 50%;
left: 50%;
height: var(--mat-checkbox-touch-target-size, 48px);
width: var(--mat-checkbox-touch-target-size, 48px);
transform: translate(-50%, -50%);
display: var(--mat-checkbox-touch-target-display, block);
}
.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before {
border-radius: 50%;
}
.mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before {
content: "";
}
`],encapsulation:2})}return t})(),jd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Zl,qe]})}return t})();var rG=["switch"],oG=["*"];function aG(t,i){t&1&&(p(0,"span",11),bn(),p(1,"svg",13),U(2,"path",14),m(),p(3,"svg",15),U(4,"path",16),m()())}var sG=new z("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),Z_=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},Ph=(()=>{class t{_elementRef=g(pe);_focusMonitor=g(Sn);_changeDetectorRef=g(Ge);defaults=g(sG);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new Z_(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=xt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new le;toggleChange=new le;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){g(Ot).load(wn);let e=g(new ei("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=g(St).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Z_(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,r){if(n&1&&Qe(rG,5),n&2){let o;K(o=X())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,r){n&2&&(en("id",r.id),he("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ut(r.color?"mat-"+r.color:""),ue("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",te],color:"color",disabled:[2,"disabled","disabled",te],disableRipple:[2,"disableRipple","disableRipple",te],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gt(e)],checked:[2,"checked","checked",te],hideIcon:[2,"hideIcon","hideIcon",te],disabledInteractive:[2,"disabledInteractive","disabledInteractive",te]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[He([{provide:br,useExisting:on(()=>t),multi:!0},{provide:Hi,useExisting:t,multi:!0}]),Et],ngContentSelectors:oG,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,r){if(n&1&&(tt(),p(0,"div",1)(1,"button",2,0),N("click",function(){return r._handleClick()}),U(3,"div",3)(4,"span",4),p(5,"span",5)(6,"span",6)(7,"span",7),U(8,"span",8),m(),p(9,"span",9),U(10,"span",10),m(),A(11,aG,5,0,"span",11),m()()(),p(12,"label",12),N("click",function(a){return a.stopPropagation()}),Me(13),m()()),n&2){let o=pn(2);S("labelPosition",r.labelPosition),u(),ue("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),S("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),he("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),u(9),S("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),u(),R(r.hideIcon?-1:11),u(),S("for",r.buttonId),he("id",r._labelId)}},dependencies:[ai,Vd],styles:[`.mdc-switch {
align-items: center;
background: none;
border: none;
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
margin: 0;
outline: none;
overflow: visible;
padding: 0;
position: relative;
width: var(--mat-slide-toggle-track-width, 52px);
}
.mdc-switch.mdc-switch--disabled {
cursor: default;
pointer-events: none;
}
.mdc-switch.mat-mdc-slide-toggle-disabled-interactive {
pointer-events: auto;
}
.mdc-switch__track {
overflow: hidden;
position: relative;
width: 100%;
height: var(--mat-slide-toggle-track-height, 32px);
border-radius: var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full));
}
.mdc-switch--disabled.mdc-switch .mdc-switch__track {
opacity: var(--mat-slide-toggle-disabled-track-opacity, 0.12);
}
.mdc-switch__track::before, .mdc-switch__track::after {
border: 1px solid transparent;
border-radius: inherit;
box-sizing: border-box;
content: "";
height: 100%;
left: 0;
position: absolute;
width: 100%;
border-width: var(--mat-slide-toggle-track-outline-width, 2px);
border-color: var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline));
}
.mdc-switch--selected .mdc-switch__track::before, .mdc-switch--selected .mdc-switch__track::after {
border-width: var(--mat-slide-toggle-selected-track-outline-width, 2px);
border-color: var(--mat-slide-toggle-selected-track-outline-color, transparent);
}
.mdc-switch--disabled .mdc-switch__track::before, .mdc-switch--disabled .mdc-switch__track::after {
border-width: var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);
border-color: var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface));
}
@media (forced-colors: active) {
.mdc-switch__track {
border-color: currentColor;
}
}
.mdc-switch__track::before {
transition: transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);
transform: translateX(0);
background: var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant));
}
.mdc-switch--selected .mdc-switch__track::before {
transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
transform: translateX(100%);
}
[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before {
transform: translateX(-100%);
}
.mdc-switch--selected .mdc-switch__track::before {
opacity: var(--mat-slide-toggle-hidden-track-opacity, 0);
transition: var(--mat-slide-toggle-hidden-track-transition, opacity 75ms);
}
.mdc-switch--unselected .mdc-switch__track::before {
opacity: var(--mat-slide-toggle-visible-track-opacity, 1);
transition: var(--mat-slide-toggle-visible-track-transition, opacity 75ms);
}
.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before {
background: var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant));
}
.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before {
background: var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant));
}
.mdc-switch:enabled:active .mdc-switch__track::before {
background: var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant));
}
.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before, .mdc-switch.mdc-switch--disabled .mdc-switch__track::before {
background: var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant));
}
.mdc-switch__track::after {
transform: translateX(-100%);
background: var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary));
}
[dir=rtl] .mdc-switch__track::after {
transform: translateX(100%);
}
.mdc-switch--selected .mdc-switch__track::after {
transform: translateX(0);
}
.mdc-switch--selected .mdc-switch__track::after {
opacity: var(--mat-slide-toggle-visible-track-opacity, 1);
transition: var(--mat-slide-toggle-visible-track-transition, opacity 75ms);
}
.mdc-switch--unselected .mdc-switch__track::after {
opacity: var(--mat-slide-toggle-hidden-track-opacity, 0);
transition: var(--mat-slide-toggle-hidden-track-transition, opacity 75ms);
}
.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after {
background: var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary));
}
.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after {
background: var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary));
}
.mdc-switch:enabled:active .mdc-switch__track::after {
background: var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary));
}
.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after, .mdc-switch.mdc-switch--disabled .mdc-switch__track::after {
background: var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface));
}
.mdc-switch__handle-track {
height: 100%;
pointer-events: none;
position: absolute;
top: 0;
transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
left: 0;
right: auto;
transform: translateX(0);
width: calc(100% - var(--mat-slide-toggle-handle-width));
}
[dir=rtl] .mdc-switch__handle-track {
left: auto;
right: 0;
}
.mdc-switch--selected .mdc-switch__handle-track {
transform: translateX(100%);
}
[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track {
transform: translateX(-100%);
}
.mdc-switch__handle {
display: flex;
pointer-events: auto;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
right: auto;
transition: width 75ms cubic-bezier(0.4, 0, 0.2, 1), height 75ms cubic-bezier(0.4, 0, 0.2, 1), margin 75ms cubic-bezier(0.4, 0, 0.2, 1);
width: var(--mat-slide-toggle-handle-width);
height: var(--mat-slide-toggle-handle-height);
border-radius: var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full));
}
[dir=rtl] .mdc-switch__handle {
left: auto;
right: 0;
}
.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle {
width: var(--mat-slide-toggle-unselected-handle-size, 16px);
height: var(--mat-slide-toggle-unselected-handle-size, 16px);
margin: var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px);
}
.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons) {
margin: var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px);
}
.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle {
width: var(--mat-slide-toggle-selected-handle-size, 24px);
height: var(--mat-slide-toggle-selected-handle-size, 24px);
margin: var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px);
}
.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons) {
margin: var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px);
}
.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons) {
width: var(--mat-slide-toggle-with-icon-handle-size, 24px);
height: var(--mat-slide-toggle-with-icon-handle-size, 24px);
}
.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle {
width: var(--mat-slide-toggle-pressed-handle-size, 28px);
height: var(--mat-slide-toggle-pressed-handle-size, 28px);
}
.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle {
margin: var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px);
}
.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle {
margin: var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px);
}
.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after {
opacity: var(--mat-slide-toggle-disabled-selected-handle-opacity, 1);
}
.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after {
opacity: var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38);
}
.mdc-switch__handle::before, .mdc-switch__handle::after {
border: 1px solid transparent;
border-radius: inherit;
box-sizing: border-box;
content: "";
width: 100%;
height: 100%;
left: 0;
position: absolute;
top: 0;
transition: background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1), border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: -1;
}
@media (forced-colors: active) {
.mdc-switch__handle::before, .mdc-switch__handle::after {
border-color: currentColor;
}
}
.mdc-switch--selected:enabled .mdc-switch__handle::after {
background: var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary));
}
.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after {
background: var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container));
}
.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after {
background: var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container));
}
.mdc-switch--selected:enabled:active .mdc-switch__handle::after {
background: var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container));
}
.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after, .mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after {
background: var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface));
}
.mdc-switch--unselected:enabled .mdc-switch__handle::after {
background: var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline));
}
.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after {
background: var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant));
}
.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after {
background: var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant));
}
.mdc-switch--unselected:enabled:active .mdc-switch__handle::after {
background: var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant));
}
.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after {
background: var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface));
}
.mdc-switch__handle::before {
background: var(--mat-slide-toggle-handle-surface-color);
}
.mdc-switch__shadow {
border-radius: inherit;
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.mdc-switch:enabled .mdc-switch__shadow {
box-shadow: var(--mat-slide-toggle-handle-elevation-shadow);
}
.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow, .mdc-switch.mdc-switch--disabled .mdc-switch__shadow {
box-shadow: var(--mat-slide-toggle-disabled-handle-elevation-shadow);
}
.mdc-switch__ripple {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
z-index: -1;
width: var(--mat-slide-toggle-state-layer-size, 40px);
height: var(--mat-slide-toggle-state-layer-size, 40px);
}
.mdc-switch__ripple::after {
content: "";
opacity: 0;
}
.mdc-switch--disabled .mdc-switch__ripple::after {
display: none;
}
.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after {
display: block;
}
.mdc-switch:hover .mdc-switch__ripple::after {
transition: 75ms opacity cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after, .mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after {
background: var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
opacity: var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after {
background: var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));
opacity: var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after {
background: var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));
opacity: var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
transition: opacity 75ms linear;
}
.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after {
background: var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));
opacity: var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after {
background: var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));
opacity: var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
}
.mdc-switch--selected:enabled:active .mdc-switch__ripple::after {
background: var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));
opacity: var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
transition: opacity 75ms linear;
}
.mdc-switch__icons {
position: relative;
height: 100%;
width: 100%;
z-index: 1;
transform: translateZ(0);
}
.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons {
opacity: var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38);
}
.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons {
opacity: var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38);
}
.mdc-switch__icon {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
opacity: 0;
transition: opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1);
}
.mdc-switch--unselected .mdc-switch__icon {
width: var(--mat-slide-toggle-unselected-icon-size, 16px);
height: var(--mat-slide-toggle-unselected-icon-size, 16px);
fill: var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant));
}
.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon {
fill: var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant));
}
.mdc-switch--selected .mdc-switch__icon {
width: var(--mat-slide-toggle-selected-icon-size, 16px);
height: var(--mat-slide-toggle-selected-icon-size, 16px);
fill: var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container));
}
.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon {
fill: var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface));
}
.mdc-switch--selected .mdc-switch__icon--on,
.mdc-switch--unselected .mdc-switch__icon--off {
opacity: 1;
transition: opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-slide-toggle {
-webkit-user-select: none;
user-select: none;
display: inline-block;
-webkit-tap-highlight-color: transparent;
outline: 0;
}
.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,
.mat-mdc-slide-toggle .mdc-switch__ripple::after {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
border-radius: 50%;
pointer-events: none;
}
.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),
.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty) {
transform: translateZ(0);
}
.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before {
content: "";
}
.mat-mdc-slide-toggle .mat-internal-form-field {
color: var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));
line-height: var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));
font-size: var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));
letter-spacing: var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));
font-weight: var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight));
}
.mat-mdc-slide-toggle .mat-ripple-element {
opacity: 0.12;
}
.mat-mdc-slide-toggle .mat-focus-indicator::before {
border-radius: 50%;
}
.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,
.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,
.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,
.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,
.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,
.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after {
transition: none;
}
.mat-mdc-slide-toggle .mdc-switch:enabled + .mdc-label {
cursor: pointer;
}
.mat-mdc-slide-toggle .mdc-switch--disabled + label {
color: var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-slide-toggle label:empty {
display: none;
}
.mat-mdc-slide-toggle-touch-target {
position: absolute;
top: 50%;
left: 50%;
height: var(--mat-slide-toggle-touch-target-size, 48px);
width: 100%;
transform: translate(-50%, -50%);
display: var(--mat-slide-toggle-touch-target-display, block);
}
[dir=rtl] .mat-mdc-slide-toggle-touch-target {
left: auto;
right: 50%;
transform: translate(50%, -50%);
}
`],encapsulation:2})}return t})(),Y_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Ph,qe]})}return t})();var cG=["*"];function dG(t,i){t&1&&Me(0)}var kE=(()=>{class t{_elementRef=g(pe);focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),ME=(()=>{class t{template=g(Lt);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var Yl={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},uG=new z("STEPPER_GLOBAL_OPTIONS"),K_=(()=>{class t{_stepperOptions;_stepper=g(Hd);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=Q(!1);interactedStream=new le;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=Q(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=Q(!0);optional=!1;get completed(){let e=this._completedOverride(),n=this._interacted();return e??(n&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=Q(null);index=Q(-1);isSelected=Wt(()=>this._stepper.selectedIndex===this.index());indicatorType=Wt(()=>{let e=this.isSelected(),n=this.completed,r=this._state()??Yl.NUMBER,o=this._editable();return this._showError()&&this.hasError&&!e?Yl.ERROR:this._displayDefaultIndicatorType?!n||e?Yl.NUMBER:o?Yl.EDIT:Yl.DONE:n&&!e?Yl.DONE:n&&e?r:o&&e?Yl.EDIT:r});isNavigable=Wt(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=Q(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=g(uG,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["cdk-step"]],contentQueries:function(n,r,o){if(n&1&&jt(o,ME,5)(o,hi,5),n&2){let a;K(a=X())&&(r.stepLabel=a.first),K(a=X())&&(r._childForms=a)}},viewQuery:function(n,r){if(n&1&&Qe(Lt,7),n&2){let o;K(o=X())&&(r.content=o.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",te],optional:[2,"optional","optional",te],completed:[2,"completed","completed",te],hasError:[2,"hasError","hasError",te]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Et],ngContentSelectors:cG,decls:1,vars:0,template:function(n,r){n&1&&(tt(),_s(0,dG,1,0,"ng-template"))},encapsulation:2})}return t})(),Hd=(()=>{class t{_dir=g(ln,{optional:!0});_changeDetectorRef=g(Ge);_elementRef=g(pe);_destroyed=new ce;_keyManager;_steps;steps=new jn;_stepHeader;_sortedHeaders=new jn;get linear(){return this._linear()}set linear(e){this._linear.set(e)}_linear=Q(!1);get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=Q(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new le;selectedIndexChange=new le;_groupId=g(St).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";ngAfterContentInit(){this._steps.changes.pipe(It(this._steps),Ue(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(n=>n._stepper===this)),this.steps.forEach((n,r)=>n.index.set(r)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(It(this._stepHeader),Ue(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((n,r)=>n._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new xr(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:Ne()).pipe(It(this._layoutDirection()),Ue(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let n of e)n._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let n=e-this._selectedIndex();return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let n=this.steps.toArray(),r=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:r,selectedStep:n[e],previouslySelectedStep:n[r]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let n=kn(e),r=e.keyCode,o=this._keyManager;o?.activeItemIndex!=null&&!n&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(n=>{let r=n.stepControl;return(r?r.invalid||r.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,n=jl();return e===n||e.contains(n)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(n,r,o){if(n&1&&jt(o,K_,5)(o,kE,5),n&2){let a;K(a=X())&&(r._steps=a),K(a=X())&&(r._stepHeader=a)}},inputs:{linear:[2,"linear","linear",te],selectedIndex:[2,"selectedIndex","selectedIndex",gt],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})(),gN=(()=>{class t{_stepper=g(Hd);type="submit";static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,r){n&1&&N("click",function(){return r._stepper.next()}),n&2&&en("type",r.type)},inputs:{type:"type"}})}return t})(),_N=(()=>{class t{_stepper=g(Hd);type="button";static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,r){n&1&&N("click",function(){return r._stepper.previous()}),n&2&&en("type",r.type)},inputs:{type:"type"}})}return t})(),vN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var mG=(t,i,e)=>({index:t,active:i,optional:e});function hG(t,i){if(t&1&&Jt(0,2),t&2){let e=E();S("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",um(2,mG,e.index,e.active,e.optional))}}function pG(t,i){if(t&1&&(p(0,"span",7),v(1),m()),t&2){let e=E(2);u(),M(e._getDefaultTextForState(e.state))}}function fG(t,i){if(t&1&&(p(0,"span",8),v(1),m()),t&2){let e=E(3);u(),M(e._intl.completedLabel)}}function gG(t,i){if(t&1&&(p(0,"span",8),v(1),m()),t&2){let e=E(3);u(),M(e._intl.editableLabel)}}function _G(t,i){if(t&1&&(A(0,fG,2,1,"span",8)(1,gG,2,1,"span",8),p(2,"mat-icon",7),v(3),m()),t&2){let e=E(2);R(e.state==="done"?0:e.state==="edit"?1:-1),u(3),M(e._getDefaultTextForState(e.state))}}function vG(t,i){if(t&1&&A(0,pG,2,1,"span",7)(1,_G,4,2),t&2){let e,n=E();R((e=n.state)==="number"?0:1)}}function bG(t,i){t&1&&(p(0,"div",4),Jt(1,9),m()),t&2&&(u(),S("ngTemplateOutlet",i.template))}function yG(t,i){if(t&1&&(p(0,"div",4),v(1),m()),t&2){let e=E();u(),M(e.label)}}function xG(t,i){if(t&1&&(p(0,"div",5),v(1),m()),t&2){let e=E();u(),M(e._intl.optionalLabel)}}function CG(t,i){if(t&1&&(p(0,"div",6),v(1),m()),t&2){let e=E();u(),M(e.errorMessage)}}var bN=["*"];function wG(t,i){}function EG(t,i){if(t&1&&(Me(0),ot(1,wG,0,0,"ng-template",0)),t&2){let e=E();u(),S("cdkPortalOutlet",e._portal)}}var DG=["animatedContainer"],yN=t=>({steps:t}),xN=t=>({step:t});function SG(t,i){t&1&&Me(0)}function kG(t,i){if(t&1&&(p(0,"div",5),Jt(1,9)(2,6),m()),t&2){let e=E(2),n=pn(6);u(),S("ngTemplateOutlet",e.headerPrefix()),u(),S("ngTemplateOutlet",n)("ngTemplateOutletContext",tn(3,yN,e.steps))}}function MG(t,i){if(t&1&&Jt(0,6),t&2){let e=E(2),n=pn(6);S("ngTemplateOutlet",n)("ngTemplateOutletContext",tn(2,yN,e.steps))}}function TG(t,i){if(t&1&&(p(0,"div",10,2),Jt(2,9),m()),t&2){let e=i.$implicit,n=i.$index,r=E(2);Ut("mat-horizontal-stepper-content-"+r._getAnimationDirection(n)),S("id",r._getStepContentId(n)),he("aria-labelledby",r._getStepLabelId(n))("inert",r.selectedIndex===n?null:""),u(2),S("ngTemplateOutlet",e.content)}}function IG(t,i){if(t&1&&(p(0,"div",3),A(1,kG,3,5,"div",5)(2,MG,1,4,"ng-container",6),p(3,"div",7),Je(4,TG,3,6,"div",8,Rn),m()()),t&2){let e=E();u(),R(e.headerPrefix()?1:2),u(3),et(e.steps)}}function AG(t,i){if(t&1&&Jt(0,9),t&2){let e=E(2);S("ngTemplateOutlet",e.headerPrefix())}}function RG(t,i){if(t&1&&(p(0,"div",11),Jt(1,6),p(2,"div",12,2)(4,"div",13)(5,"div",14),Jt(6,9),m()()()()),t&2){let e=i.$implicit,n=i.$index,r=i.$index,o=i.$count,a=E(2),s=pn(4);u(),S("ngTemplateOutlet",s)("ngTemplateOutletContext",tn(11,xN,e)),u(),ue("mat-stepper-vertical-line",r!==o-1)("mat-vertical-content-container-active",a.selectedIndex===n),he("inert",a.selectedIndex===n?null:"")("aria-label",a.ariaLabel),u(2),S("id",a._getStepContentId(n)),he("aria-labelledby",a._getStepLabelId(n)),u(2),S("ngTemplateOutlet",e.content)}}function OG(t,i){if(t&1&&(p(0,"div",4),A(1,AG,1,1,"ng-container",9),Je(2,RG,7,13,"div",11,Rn),m()),t&2){let e=E();u(),R(e.headerPrefix()?1:-1),u(),et(e.steps)}}function PG(t,i){if(t&1){let e=be();p(0,"mat-step-header",15),N("click",function(){let r=ae(e).step;return se(r.select())})("keydown",function(r){ae(e);let o=E();return se(o._onKeydown(r))}),m()}if(t&2){let e=i.step,n=E();ue("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),S("tabIndex",n._getFocusIndex()===e.index()?0:-1)("id",n._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!e.isNavigable())("color",e.color||n.color),he("role",n.orientation==="horizontal"?"tab":"button")("aria-posinset",n.orientation==="horizontal"?e.index()+1:null)("aria-setsize",n.orientation==="horizontal"?n.steps.length:null)("aria-selected",n.orientation==="horizontal"?e.isSelected():null)("aria-current",n.orientation==="vertical"&&e.isSelected()?"step":null)("aria-disabled",n.orientation==="vertical"&&e.isSelected()?"true":null)("aria-expanded",n.orientation==="vertical"?e.isSelected():null)("aria-controls",n._getStepContentId(e.index()))("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}function FG(t,i){t&1&&U(0,"div",17)}function NG(t,i){if(t&1&&(Jt(0,6),A(1,FG,1,0,"div",17)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;E(2);let o=pn(4);S("ngTemplateOutlet",o)("ngTemplateOutletContext",tn(3,xN,e)),u(),R(n!==r-1?1:-1)}}function LG(t,i){if(t&1&&(p(0,"div",16),Je(1,NG,2,5,null,null,Rn),m()),t&2){let e=i.steps,n=E();he("aria-label",n.ariaLabel),u(),et(e)}}var $d=(()=>{class t extends ME{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matStepLabel",""]],features:[Ee]})}return t})(),BG=(()=>{class t{changes=new ce;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),TE=(()=>{class t extends kE{_intl=g(BG);_focusMonitor=g(Sn);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected=!1;active=!1;optional=!1;disableRipple=!1;color;constructor(){super();let e=g(Ot);e.load(wn),e.load(Zo);let n=g(Ge);this._intlSubscription=this._intl.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._elementRef,e,n):this._elementRef.nativeElement.focus(n)}_stringLabel(){return this.label instanceof $d?null:this.label}_templateLabel(){return this.label instanceof $d?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","",1,"mat-step-header"],hostVars:4,hostBindings:function(n,r){n&2&&(Ut("mat-"+(r.color||"primary")),ue("mat-step-header-empty-label",r._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[Ee],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,r){if(n&1&&(U(0,"div",0),p(1,"div")(2,"div",1),A(3,hG,1,6,"ng-container",2)(4,vG,2,1),m()(),p(5,"div",3),A(6,bG,2,1,"div",4)(7,yG,2,1,"div",4),A(8,xG,2,1,"div",5),A(9,CG,2,1,"div",6),m()),n&2){let o;S("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),u(),Ut(ui("mat-step-icon-state-",r.state," mat-step-icon")),ue("mat-step-icon-selected",r.selected),u(2),R(r.iconOverrides&&r.iconOverrides[r.state]?3:4),u(2),ue("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),u(),R((o=r._templateLabel())?6:r._stringLabel()?7:-1,o),u(2),R(r._hasOptionalLabel()?8:-1),u(),R(r._hasErrorLabel()?9:-1)}},dependencies:[ai,bs,cn],styles:[`.mat-step-header {
overflow: hidden;
outline: none;
cursor: pointer;
position: relative;
box-sizing: content-box;
-webkit-tap-highlight-color: transparent;
}
.mat-step-header:focus-visible .mat-focus-indicator::before {
content: "";
}
.mat-step-header:hover[aria-disabled=true] {
cursor: default;
}
.mat-step-header:hover:not([aria-disabled]), .mat-step-header:hover[aria-disabled=false] {
background-color: var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
border-radius: var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium));
}
.mat-step-header.cdk-keyboard-focused, .mat-step-header.cdk-program-focused {
background-color: var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
border-radius: var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium));
}
@media (hover: none) {
.mat-step-header:hover {
background: none;
}
}
@media (forced-colors: active) {
.mat-step-header {
outline: solid 1px;
}
.mat-step-header[aria-selected=true] .mat-step-label {
text-decoration: underline;
}
.mat-step-header[aria-disabled=true] {
outline-color: GrayText;
}
.mat-step-header[aria-disabled=true] .mat-step-label,
.mat-step-header[aria-disabled=true] .mat-step-icon,
.mat-step-header[aria-disabled=true] .mat-step-optional {
color: GrayText;
}
}
.mat-step-optional {
font-size: 12px;
color: var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant));
}
.mat-step-sub-label-error {
font-size: 12px;
font-weight: normal;
}
.mat-step-icon {
border-radius: 50%;
height: 24px;
width: 24px;
flex-shrink: 0;
position: relative;
color: var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));
background-color: var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant));
}
.mat-step-icon-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
}
.mat-step-icon .mat-icon {
font-size: 16px;
height: 16px;
width: 16px;
}
.mat-step-icon-state-error {
background-color: var(--mat-stepper-header-error-state-icon-background-color, transparent);
color: var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error));
}
.mat-step-icon-state-error .mat-icon {
font-size: 24px;
height: 24px;
width: 24px;
}
.mat-step-label {
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 50px;
vertical-align: middle;
font-family: var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));
font-size: var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));
font-weight: var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));
color: var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant));
}
.mat-step-label.mat-step-label-active {
color: var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant));
}
.mat-step-label.mat-step-label-error {
color: var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));
font-size: var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size));
}
.mat-step-label.mat-step-label-selected {
font-size: var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));
font-weight: var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight));
}
.mat-step-header-empty-label .mat-step-label {
min-width: 0;
}
.mat-step-text-label {
text-overflow: ellipsis;
overflow: hidden;
}
.mat-step-header .mat-step-header-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
}
.mat-step-icon-selected {
background-color: var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));
color: var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary));
}
.mat-step-icon-state-done {
background-color: var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));
color: var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary));
}
.mat-step-icon-state-edit {
background-color: var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));
color: var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary));
}
`],encapsulation:2})}return t})(),zG=(()=>{class t{templateRef=g(Lt);name;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),VG=(()=>{class t{_template=g(Lt);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),X_=(()=>{class t extends K_{_errorStateMatcher=g(Xo,{skipSelf:!0});_viewContainerRef=g(Xt);_isSelected=Ye.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(rn(()=>this._stepper.selectionChange.pipe(Le(e=>e.selectedStep===this),It(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new si(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,n){let r=this._errorStateMatcher.isErrorState(e,n),o=!!(e&&e.invalid&&this.interacted);return r||o}isSignalErrorState(e){let n=this._errorStateMatcher.isSignalErrorState?.(e)??!1,r=!!(e&&e().invalid()&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-step"]],contentQueries:function(n,r,o){if(n&1&&jt(o,$d,5)(o,VG,5),n&2){let a;K(a=X())&&(r.stepLabel=a.first),K(a=X())&&(r._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[He([{provide:Xo,useExisting:t},{provide:K_,useExisting:t}]),Ee],ngContentSelectors:bN,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,r){n&1&&(tt(),ot(0,EG,2,1,"ng-template"))},dependencies:[Wi],encapsulation:2})}return t})(),Ud=(()=>{class t extends Hd{_ngZone=g(De);_renderer=g(dt);_animationsDisabled=xt();_cleanupTransition;_isAnimating=Q(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new jn;_icons;animationDone=new le;disableRipple=!1;color;labelPosition="end";headerPosition="top";ariaLabel=null;headerPrefix=Dt(null);_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){/^[0-9]+(?:\.[0-9]+)?$/.test(e)?this._animationDuration=e+"ms":/^[0-9]+(?:\.[0-9]+)?(?:ms|s)$/.test(e)?this._animationDuration=e:this._animationDuration=""}_animationDuration="";_isServer=!g(ht).isBrowser;constructor(){super();let n=g(pe).nativeElement.nodeName.toLowerCase();this.orientation=n==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:n})=>this._iconOverrides[e]=n),this.steps.changes.pipe(Ue(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(Ue(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(It(null),Ue(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let n=e.target;if(!n)return;let r=this.orientation==="horizontal"&&e.propertyName==="transform"&&n.classList.contains("mat-horizontal-stepper-content-current"),o=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&n.classList.contains("mat-vertical-content-container-active");(r||o)&&this._animatedContainers.find(s=>s.nativeElement===n)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,r,o){if(n&1&&jt(o,X_,5)(o,zG,5),n&2){let a;K(a=X())&&(r._steps=a),K(a=X())&&(r._icons=a)}},viewQuery:function(n,r){if(n&1&&Qe(TE,5)(DG,5),n&2){let o;K(o=X())&&(r._stepHeader=o),K(o=X())&&(r._animatedContainers=o)}},hostVars:14,hostBindings:function(n,r){n&2&&(In("--mat-stepper-animation-duration",r._getAnimationDuration()),ue("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom")("mat-stepper-animating",r._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",ariaLabel:[0,"aria-label","ariaLabel"],headerPrefix:[1,"headerPrefix"],animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[He([{provide:Hd,useExisting:t}]),Ee],ngContentSelectors:bN,decls:7,vars:2,consts:[["stepTemplate",""],["horizontalStepsTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-vertical-stepper-wrapper"],[1,"mat-horizontal-stepper-header-wrapper"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","region",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"],["aria-orientation","horizontal","role","tablist",1,"mat-horizontal-stepper-header-container"],[1,"mat-stepper-horizontal-line"]],template:function(n,r){if(n&1&&(tt(),A(0,SG,1,0),A(1,IG,6,1,"div",3)(2,OG,4,1,"div",4),ot(3,PG,1,27,"ng-template",null,0,Da)(5,LG,3,1,"ng-template",null,1,Da)),n&2){let o;R(r._isServer?0:-1),u(),R((o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1)}},dependencies:[bs,TE],styles:[`.mat-stepper-vertical,
.mat-stepper-horizontal {
display: block;
font-family: var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));
background: var(--mat-stepper-container-color, var(--mat-sys-surface));
}
.mat-horizontal-stepper-header-wrapper {
align-items: center;
display: flex;
}
.mat-horizontal-stepper-header-container {
white-space: nowrap;
display: flex;
align-items: center;
flex-grow: 1;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container {
align-items: flex-start;
}
.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container {
order: 1;
}
.mat-stepper-horizontal-line {
border-top-width: 1px;
border-top-style: solid;
flex: auto;
height: 0;
margin: 0 -16px;
min-width: 32px;
border-top-color: var(--mat-stepper-line-color, var(--mat-sys-outline));
}
.mat-stepper-label-position-bottom .mat-stepper-horizontal-line {
margin: 0;
min-width: 0;
position: relative;
top: calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px);
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before, .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after {
border-top-width: 1px;
border-top-style: solid;
content: "";
display: inline-block;
height: 0;
position: absolute;
width: calc(50% - 20px);
}
.mat-horizontal-stepper-header {
display: flex;
overflow: hidden;
align-items: center;
padding: 0 24px;
height: var(--mat-stepper-header-height, 72px);
}
.mat-horizontal-stepper-header .mat-step-icon {
margin-right: 8px;
flex: none;
}
[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon {
margin-right: 0;
margin-left: 8px;
}
.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon {
margin: 0;
}
.mat-horizontal-stepper-header::before, .mat-horizontal-stepper-header::after {
border-top-color: var(--mat-stepper-line-color, var(--mat-sys-outline));
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header {
padding: calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before, .mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after {
top: calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px);
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header {
box-sizing: border-box;
flex-direction: column;
height: auto;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after {
right: 0;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before {
left: 0;
}
[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before, [dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after {
display: none;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon {
margin-right: 0;
margin-left: 0;
}
.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label {
padding: 16px 0 0 0;
text-align: center;
width: 100%;
}
.mat-vertical-stepper-header {
display: flex;
align-items: center;
height: 24px;
padding: calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px;
}
.mat-vertical-stepper-header .mat-step-icon {
margin-right: 12px;
}
[dir=rtl] .mat-vertical-stepper-header .mat-step-icon {
margin-right: 0;
margin-left: 12px;
}
.mat-horizontal-stepper-wrapper {
display: flex;
flex-direction: column;
}
.mat-horizontal-stepper-content {
visibility: hidden;
overflow: hidden;
outline: 0;
height: 0;
}
.mat-stepper-animations-enabled .mat-horizontal-stepper-content {
transition: transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1);
}
.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous {
transform: translate3d(-100%, 0, 0);
}
.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next {
transform: translate3d(100%, 0, 0);
}
.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current {
visibility: visible;
transform: none;
height: auto;
}
.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current {
overflow: visible;
}
.mat-horizontal-content-container {
overflow: hidden;
padding: 0 24px 24px 24px;
}
@media (forced-colors: active) {
.mat-horizontal-content-container {
outline: solid 1px;
}
}
.mat-stepper-header-position-bottom .mat-horizontal-content-container {
padding: 24px 24px 0 24px;
}
.mat-vertical-content-container {
display: grid;
grid-template-rows: 0fr;
grid-template-columns: 100%;
margin-left: 36px;
border: 0;
position: relative;
}
.mat-stepper-animations-enabled .mat-vertical-content-container {
transition: grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-vertical-content-container.mat-vertical-content-container-active {
grid-template-rows: 1fr;
}
.mat-step:last-child .mat-vertical-content-container {
border: none;
}
@media (forced-colors: active) {
.mat-vertical-content-container {
outline: solid 1px;
}
}
[dir=rtl] .mat-vertical-content-container {
margin-left: 0;
margin-right: 36px;
}
@supports not (grid-template-rows: 0fr) {
.mat-vertical-content-container {
height: 0;
}
.mat-vertical-content-container.mat-vertical-content-container-active {
height: auto;
}
}
.mat-stepper-vertical-line::before {
content: "";
position: absolute;
left: 0;
border-left-width: 1px;
border-left-style: solid;
border-left-color: var(--mat-stepper-line-color, var(--mat-sys-outline));
top: calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));
bottom: calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));
}
[dir=rtl] .mat-stepper-vertical-line::before {
left: auto;
right: 0;
}
.mat-vertical-stepper-content {
overflow: hidden;
outline: 0;
visibility: hidden;
}
.mat-stepper-animations-enabled .mat-vertical-stepper-content {
transition: visibility var(--mat-stepper-animation-duration, 0) linear;
}
.mat-vertical-content-container-active > .mat-vertical-stepper-content {
visibility: visible;
}
.mat-vertical-content {
padding: 0 24px 24px 24px;
}
`],encapsulation:2})}return t})(),IE=(()=>{class t extends gN{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,r){n&2&&en("type",r.type)},features:[Ee]})}return t})(),AE=(()=>{class t extends _N{static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,r){n&2&&en("type",r.type)},features:[Ee]})}return t})(),RE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[Xo],imports:[wr,vN,dn,Di,Ud,TE,qe]})}return t})();var Fh=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Gr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Gr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,r){n&2&&(he("aria-orientation",r.vertical?"vertical":"horizontal"),ue("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,r){},styles:[`.mat-divider {
display: block;
margin: 0;
border-top-style: solid;
border-top-color: var(--mat-divider-color, var(--mat-sys-outline-variant));
border-top-width: var(--mat-divider-width, 1px);
}
.mat-divider.mat-divider-vertical {
border-top: 0;
border-right-style: solid;
border-right-color: var(--mat-divider-color, var(--mat-sys-outline-variant));
border-right-width: var(--mat-divider-width, 1px);
}
.mat-divider.mat-divider-inset {
margin-left: 80px;
}
[dir=rtl] .mat-divider.mat-divider-inset {
margin-left: auto;
margin-right: 80px;
}
`],encapsulation:2})}return t})(),ur=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var $G=["input"],UG=["formField"],WG=["*"],OE=class{source;value;constructor(i,e){this.source=i,this.value=e}};var GG=new z("MatRadioGroup"),qG=new z("mat-radio-default-options",{providedIn:"root",factory:()=>({color:"accent",disabledInteractive:!1})});var QG=(()=>{class t{_elementRef=g(pe);_changeDetector=g(Ge);_focusMonitor=g(Sn);_radioDispatcher=g(ql);_defaultOptions=g(qG,{optional:!0});_ngZone=g(De);_renderer=g(dt);_uniqueId=g(St).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new le;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled=!1;_required=!1;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=xt();_injector=g(ze);constructor(){g(Ot).load(wn);let e=g(GG,{optional:!0}),n=g(new ei("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,n&&(this.tabIndex=gt(n,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,n)=>{e!==this.id&&n===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new OE(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,n;if(!e||!e.selected||this.disabled?n=this.tabIndex:n=e.selected===this?this.tabIndex:-1,n!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",n+""),this._previousTabIndex=n,Bt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-radio-button"]],viewQuery:function(n,r){if(n&1&&Qe($G,5)(UG,7,pe),n&2){let o;K(o=X())&&(r._inputElement=o.first),K(o=X())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(n,r){n&1&&N("focus",function(){return r._inputElement.nativeElement.focus()}),n&2&&(he("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),ue("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",te],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gt(e)],checked:[2,"checked","checked",te],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",te],required:[2,"required","required",te],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",te]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:WG,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],["aria-hidden","true",1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],["aria-hidden","true",1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","","aria-hidden","true",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(n,r){n&1&&(tt(),p(0,"div",2,0)(2,"div",3)(3,"div",4),N("click",function(a){return r._onTouchTargetClick(a)}),m(),p(4,"input",5,1),N("change",function(a){return r._onInputInteraction(a)}),m(),p(6,"div",6),U(7,"div",7)(8,"div",8),m(),p(9,"div",9),U(10,"div",10),m()(),p(11,"label",11),Me(12),m()()),n&2&&(S("labelPosition",r.labelPosition),u(2),ue("mdc-radio--disabled",r.disabled),u(2),S("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),he("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),u(5),S("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),u(2),S("for",r.inputId))},dependencies:[ai,Vd],styles:[`.mat-mdc-radio-button {
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-radio-button .mdc-radio {
display: inline-block;
position: relative;
flex: 0 0 auto;
box-sizing: content-box;
width: 20px;
height: 20px;
will-change: opacity, transform, border-color, color;
padding: calc((var(--mat-radio-state-layer-size, 40px) - 20px) / 2);
cursor: pointer;
}
.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:not([disabled]):not(:focus) ~ .mdc-radio__background::before {
opacity: 0.04;
transform: scale(1);
}
.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:not([disabled]) ~ .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary));
}
.mat-mdc-radio-button .mdc-radio:hover > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle {
background-color: var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor));
}
.mat-mdc-radio-button .mdc-radio:active > .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-radio-button .mdc-radio:active > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary));
}
.mat-mdc-radio-button .mdc-radio:active > .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle {
background-color: var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor));
}
.mat-mdc-radio-button .mdc-radio__background {
display: inline-block;
position: relative;
box-sizing: border-box;
width: 20px;
height: 20px;
}
.mat-mdc-radio-button .mdc-radio__background::before {
position: absolute;
transform: scale(0, 0);
border-radius: 50%;
opacity: 0;
pointer-events: none;
content: "";
transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1);
width: var(--mat-radio-state-layer-size, 40px);
height: var(--mat-radio-state-layer-size, 40px);
top: calc(-1 * (var(--mat-radio-state-layer-size, 40px) - 20px) / 2);
left: calc(-1 * (var(--mat-radio-state-layer-size, 40px) - 20px) / 2);
}
.mat-mdc-radio-button .mdc-radio__outer-circle {
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
width: 100%;
height: 100%;
border-width: 2px;
border-style: solid;
border-radius: 50%;
transition: border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);
}
.mat-mdc-radio-button .mdc-radio__inner-circle {
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
width: 100%;
height: 100%;
transform: scale(0);
border-radius: 50%;
transition: transform 90ms cubic-bezier(0.4, 0, 0.6, 1), background-color 90ms cubic-bezier(0.4, 0, 0.6, 1);
}
@media (forced-colors: active) {
.mat-mdc-radio-button .mdc-radio__inner-circle {
background-color: CanvasText !important;
}
}
.mat-mdc-radio-button .mdc-radio__native-control {
position: absolute;
margin: 0;
padding: 0;
opacity: 0;
top: 0;
right: 0;
left: 0;
cursor: inherit;
z-index: 1;
width: var(--mat-radio-state-layer-size, 40px);
height: var(--mat-radio-state-layer-size, 40px);
}
.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background, .mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background {
transition: opacity 90ms cubic-bezier(0, 0, 0.2, 1), transform 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__outer-circle, .mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__outer-circle {
transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__inner-circle, .mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__inner-circle {
transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-radio-button .mdc-radio__native-control:focus + .mdc-radio__background::before {
transform: scale(1);
opacity: 0.12;
transition: opacity 90ms cubic-bezier(0, 0, 0.2, 1), transform 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));
opacity: var(--mat-radio-disabled-unselected-icon-opacity, 0.38);
}
.mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background {
cursor: default;
}
.mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));
opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38);
}
.mat-mdc-radio-button .mdc-radio__native-control:disabled + .mdc-radio__background > .mdc-radio__inner-circle {
background-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));
opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38);
}
.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-selected-icon-color, var(--mat-sys-primary));
}
.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked + .mdc-radio__background > .mdc-radio__inner-circle {
background-color: var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor));
}
.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary));
}
.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked + .mdc-radio__background > .mdc-radio__inner-circle {
background-color: var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor));
}
.mat-mdc-radio-button .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__inner-circle {
transform: scale(0.5);
transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled {
pointer-events: auto;
}
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));
opacity: var(--mat-radio-disabled-unselected-icon-opacity, 0.38);
}
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__outer-circle,
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus + .mdc-radio__background > .mdc-radio__outer-circle,
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control + .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));
opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38);
}
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked + .mdc-radio__background > .mdc-radio__inner-circle,
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus + .mdc-radio__background > .mdc-radio__inner-circle,
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control + .mdc-radio__background > .mdc-radio__inner-circle {
background-color: var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));
opacity: var(--mat-radio-disabled-selected-icon-opacity, 0.38);
}
.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,
.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,
.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle {
transition: none !important;
}
.mat-mdc-radio-button label {
cursor: pointer;
}
.mat-mdc-radio-button label:empty {
display: none;
}
.mat-mdc-radio-button .mdc-radio__background::before {
background-color: var(--mat-radio-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,
.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before {
background-color: var(--mat-radio-checked-ripple-color, var(--mat-sys-primary));
}
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,
.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before {
background-color: var(--mat-radio-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-radio-button .mat-internal-form-field {
color: var(--mat-radio-label-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));
line-height: var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));
font-size: var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));
letter-spacing: var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));
font-weight: var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight));
}
.mat-mdc-radio-button .mdc-radio--disabled + label {
color: var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-radio-button .mat-radio-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
border-radius: 50%;
}
.mat-mdc-radio-button .mat-radio-ripple > .mat-ripple-element {
opacity: 0.14;
}
.mat-mdc-radio-button .mat-radio-ripple::before {
border-radius: 50%;
}
.mat-mdc-radio-button .mdc-radio > .mdc-radio__native-control:focus:enabled:not(:checked) ~ .mdc-radio__background > .mdc-radio__outer-circle {
border-color: var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before {
content: "";
}
.mat-mdc-radio-disabled {
cursor: default;
pointer-events: none;
}
.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-radio-touch-target {
position: absolute;
top: 50%;
left: 50%;
height: var(--mat-radio-touch-target-size, 48px);
width: var(--mat-radio-touch-target-size, 48px);
transform: translate(-50%, -50%);
display: var(--mat-radio-touch-target-display, block);
}
[dir=rtl] .mat-mdc-radio-touch-target {
left: auto;
right: 50%;
transform: translate(50%, -50%);
}
`],encapsulation:2})}return t})(),CN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Di,QG,qe]})}return t})();function ZG(t,i){if(t&1){let e=be();p(0,"div",1)(1,"button",2),N("click",function(){ae(e);let r=E();return se(r.action())}),v(2),m()()}if(t&2){let e=E();u(2),oe(" ",e.data.action," ")}}var YG=["label"];function KG(t,i){}var XG=Math.pow(2,31)-1,Nh=class{_overlayRef;instance;containerInstance;_afterDismissed=new ce;_afterOpened=new ce;_onAction=new ce;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,XG))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},wN=new z("MatSnackBarData"),Wd=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},JG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),eq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),tq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),EN=(()=>{class t{snackBarRef=g(Nh);data=g(wN);action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(p(0,"div",0),v(1),m(),A(2,ZG,3,1,"div",1)),n&2&&(u(),oe(" ",r.data.message,`
`),u(),R(r.hasAction?2:-1))},dependencies:[nn,JG,eq,tq],styles:[`.mat-mdc-simple-snack-bar {
display: flex;
}
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
max-height: 50vh;
overflow: auto;
}
`],encapsulation:2})}return t})(),PE="_mat-snack-bar-enter",FE="_mat-snack-bar-exit",nq=(()=>{class t extends Ps{_ngZone=g(De);_elementRef=g(pe);_changeDetectorRef=g(Ge);_platform=g(ht);_animationsDisabled=xt();snackBarConfig=g(Wd);_document=g(je);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g(ze);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new ce;_onExit=new ce;_onEnter=new ce;_animationState="void";_live;_label;_role;_liveElementId=g(St).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===FE?this._completeExit():e===PE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Bt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(PE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(PE)},200)))}exit(){return this._destroyed?Ne(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Bt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(FE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(FE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],a=o.getAttribute("aria-owns");this._trackedModals.add(o),a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(n&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(o=document.activeElement),n.removeAttribute("aria-hidden"),r.appendChild(n),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&Qe(Wi,7)(YG,7),n&2){let o;K(o=X())&&(r._portalOutlet=o.first),K(o=X())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,r){n&1&&N("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),n&2&&ue("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[Ee],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(p(0,"div",1)(1,"div",2,0)(3,"div",3),ot(4,KG,0,0,"ng-template",4),m(),U(5,"div"),m()()),n&2&&(u(5),he("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Wi],styles:[`@keyframes _mat-snack-bar-enter {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes _mat-snack-bar-exit {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.mat-mdc-snack-bar-container {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
margin: 8px;
}
.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {
width: 100vw;
}
.mat-snack-bar-container-animations-enabled {
opacity: 0;
}
.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {
opacity: 1;
}
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {
animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {
animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
.mat-mdc-snackbar-surface {
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
display: flex;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
padding-left: 0;
padding-right: 8px;
}
[dir=rtl] .mat-mdc-snackbar-surface {
padding-right: 0;
padding-left: 8px;
}
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
min-width: 344px;
max-width: 672px;
}
.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {
width: 100%;
min-width: 0;
}
@media (forced-colors: active) {
.mat-mdc-snackbar-surface {
outline: solid 1px;
}
}
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));
border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));
background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));
}
.mdc-snackbar__label {
width: 100%;
flex-grow: 1;
box-sizing: border-box;
margin: 0;
padding: 14px 8px 14px 16px;
}
[dir=rtl] .mdc-snackbar__label {
padding-left: 8px;
padding-right: 16px;
}
.mat-mdc-snack-bar-container .mdc-snackbar__label {
font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));
font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));
font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));
line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
}
.mat-mdc-snack-bar-actions {
display: flex;
flex-shrink: 0;
align-items: center;
box-sizing: border-box;
}
.mat-mdc-snack-bar-handset,
.mat-mdc-snack-bar-container,
.mat-mdc-snack-bar-label {
flex: 1 1 auto;
}
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {
color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));
}
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
--mat-button-text-state-layer-color: currentColor;
--mat-button-text-ripple-color: currentColor;
}
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
opacity: 0.1;
}
`],encapsulation:2,changeDetection:1})}return t})(),iq=new z("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Wd}),Lh=(()=>{class t{_live=g(dh);_injector=g(ze);_breakpointObserver=g(Ts);_parentSnackBar=g(t,{optional:!0,skipSelf:!0});_defaultConfig=g(iq);_animationsDisabled=xt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=EN;snackBarContainerComponent=nq;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let o=G(G({},this._defaultConfig),r);return o.data={message:e,action:n},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,o=ze.create({parent:r||this._injector,providers:[{provide:Wd,useValue:n}]}),a=new yo(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let r=G(G(G({},new Wd),this._defaultConfig),n),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new Nh(a,o);if(e instanceof Lt){let l=new si(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),c=new yo(e,void 0,l),d=a.attachComponentPortal(c);s.instance=d.instance}return this._breakpointObserver.observe(FP.HandsetPortrait).pipe(Ue(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new xo;n.direction=e.direction;let r=Fs(this._injector),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,n.disableAnimations=this._animationsDisabled,Co(this._injector,n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return ze.create({parent:r||this._injector,providers:[{provide:Nh,useValue:n},{provide:wN,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({providers:[Lh],imports:[Er,wr,Pt,EN,qe]})}return t})();function oq(t,i){if(t&1&&(p(0,"mat-option",17),v(1),m()),t&2){let e=i.$implicit;S("value",e),u(),oe(" ",e," ")}}function aq(t,i){if(t&1){let e=be();p(0,"mat-form-field",14)(1,"mat-select",16,0),N("selectionChange",function(r){ae(e);let o=E(2);return se(o._changePageSize(r.value))}),Je(3,oq,2,2,"mat-option",17,Rn),m(),p(5,"div",18),N("click",function(){ae(e);let r=pn(2);return se(r.open())}),m()()}if(t&2){let e=E(2);S("appearance",e._formFieldAppearance)("color",e.color),u(),S("value",e.pageSize)("disabled",e.disabled),Yc("aria-labelledby",e._pageSizeLabelId),S("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),u(2),et(e._displayedPageSizeOptions)}}function sq(t,i){if(t&1&&(p(0,"div",15),v(1),m()),t&2){let e=E(2);u(),M(e.pageSize)}}function lq(t,i){if(t&1&&(p(0,"div",3)(1,"div",13),v(2),m(),A(3,aq,6,7,"mat-form-field",14),A(4,sq,2,1,"div",15),m()),t&2){let e=E();u(),he("id",e._pageSizeLabelId),u(),oe(" ",e._intl.itemsPerPageLabel," "),u(),R(e._displayedPageSizeOptions.length>1?3:-1),u(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function cq(t,i){if(t&1){let e=be();p(0,"button",19),N("click",function(){ae(e);let r=E();return se(r._buttonClicked(0,r._previousButtonsDisabled()))}),bn(),p(1,"svg",8),U(2,"path",20),m()()}if(t&2){let e=E();S("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),he("aria-label",e._intl.firstPageLabel)}}function dq(t,i){if(t&1){let e=be();p(0,"button",21),N("click",function(){ae(e);let r=E();return se(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),bn(),p(1,"svg",8),U(2,"path",22),m()()}if(t&2){let e=E();S("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),he("aria-label",e._intl.lastPageLabel)}}var uq=(()=>{class t{changes=new ce;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,r)=>{if(r==0||n==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*n,a=o<r?Math.min(o+n,r):o+n;return`${o+1} \u2013 ${a} of ${r}`};static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),mq=50;var hq=new z("MAT_PAGINATOR_DEFAULT_OPTIONS"),Kl=(()=>{class t{_intl=g(uq);_changeDetectorRef=g(Ge);_formFieldAppearance;_pageSizeLabelId=g(St).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Ir(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>gt(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new le;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=g(hq,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=n;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){let n=this.pageIndex*this.pageSize,r=this.pageIndex;this.pageIndex=Math.floor(n/e)||0,this.pageSize=e,this._emitPageEvent(r)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:mq),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,n)=>e-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",gt],length:[2,"length","length",gt],pageSize:[2,"pageSize","pageSize",gt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",te],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",te],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",te]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,r){n&1&&(p(0,"div",1)(1,"div",2),A(2,lq,5,4,"div",3),p(3,"div",4)(4,"div",5),v(5),m(),A(6,cq,3,5,"button",6),p(7,"button",7),N("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),bn(),p(8,"svg",8),U(9,"path",9),m()(),ga(),p(10,"button",10),N("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),bn(),p(11,"svg",8),U(12,"path",11),m()(),A(13,dq,3,5,"button",12),m()()()),n&2&&(u(2),R(r.hidePageSize?-1:2),u(3),oe(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),u(),R(r.showFirstLastButtons?6:-1),u(),S("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),he("aria-label",r._intl.previousPageLabel),u(3),S("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),he("aria-label",r._intl.nextPageLabel),u(3),R(r.showFirstLastButtons?13:-1))},dependencies:[Wn,ea,dr,vo,Sr],styles:[`.mat-mdc-paginator {
display: block;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
color: var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));
background-color: var(--mat-paginator-container-background-color, var(--mat-sys-surface));
font-family: var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));
line-height: var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));
font-size: var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));
font-weight: var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));
letter-spacing: var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));
--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);
--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px);
}
.mat-mdc-paginator .mat-mdc-select-value {
font-size: var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size));
}
.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper {
display: none;
}
.mat-mdc-paginator .mat-mdc-select {
line-height: 1.5;
}
.mat-mdc-paginator-outer-container {
display: flex;
}
.mat-mdc-paginator-container {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 8px;
flex-wrap: wrap;
width: 100%;
min-height: var(--mat-paginator-container-size, 56px);
}
.mat-mdc-paginator-page-size {
display: flex;
align-items: baseline;
margin-right: 8px;
}
[dir=rtl] .mat-mdc-paginator-page-size {
margin-right: 0;
margin-left: 8px;
}
.mat-mdc-paginator-page-size-label {
margin: 0 4px;
}
.mat-mdc-paginator-page-size-select {
margin: 0 4px;
width: var(--mat-paginator-page-size-select-width, 84px);
}
.mat-mdc-paginator-range-label {
margin: 0 32px 0 24px;
}
.mat-mdc-paginator-range-actions {
display: flex;
align-items: center;
}
.mat-mdc-paginator-icon {
display: inline-block;
width: 28px;
fill: var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon {
fill: var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
[dir=rtl] .mat-mdc-paginator-icon {
transform: rotate(180deg);
}
@media (forced-colors: active) {
.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,
.mat-mdc-paginator-icon {
fill: currentColor;
}
.mat-mdc-paginator-range-actions .mat-mdc-icon-button {
outline: solid 1px;
}
.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled] {
color: GrayText;
}
}
.mat-mdc-paginator-touch-target {
display: var(--mat-paginator-touch-target-display, block);
position: absolute;
top: 50%;
left: 50%;
width: var(--mat-paginator-page-size-select-width, 84px);
height: var(--mat-paginator-page-size-select-touch-target-height, 48px);
background-color: transparent;
transform: translate(-50%, -50%);
cursor: pointer;
}
`],encapsulation:2})}return t})(),NE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Pt,ta,Gn,Kl]})}return t})();var fq=["*",[["","matSortHeaderIcon",""]]],gq=["*","[matSortHeaderIcon]"];function _q(t,i){t&1&&(bn(),kt(0,"svg",3),yn(1,"path",4),Mt())}function vq(t,i){t&1&&(kt(0,"div",2),Me(1,1,null,_q,2,0),Mt())}var DN=new z("MAT_SORT_DEFAULT_OPTIONS"),Xl=(()=>{class t{_defaultOptions;_initializedStream=new Ir(1);sortables=new Map;_stateChanges=new ce;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new le;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=bq(e.start||this.start,n),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(Z(DN,8))};static \u0275dir=Y({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",te],disabled:[2,"matSortDisabled","disabled",te]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Et]})}return t})();function bq(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var LE=(()=>{class t{_sort=g(Xl,{optional:!0});_columnDef=g(Bs,{optional:!0});_changeDetectorRef=g(Ge);_focusMonitor=g(Sn);_elementRef=g(pe);_ariaDescriber=g(a_,{optional:!0});_renderChanges;_animationsDisabled=xt();_recentlyCleared=Q(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){g(Ot).load(wn);let e=g(DN,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=hn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,r){n&1&&N("click",function(){return r._toggleOnInteraction()})("keydown",function(a){return r._handleKeydown(a)})("mouseleave",function(){return r._recentlyCleared.set(null)}),n&2&&(he("aria-sort",r._getAriaSortAttribute()),ue("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",te],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",te]},exportAs:["matSortHeader"],ngContentSelectors:gq,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,r){n&1&&(tt(fq),kt(0,"div",0)(1,"div",1),Me(2),Mt(),A(3,vq,3,0,"div",2),Mt()),n&2&&(ue("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),he("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),u(3),R(r._renderArrow()?3:-1))},styles:[`.mat-sort-header {
cursor: pointer;
}
.mat-sort-header-disabled {
cursor: default;
}
.mat-sort-header-container {
display: flex;
align-items: center;
letter-spacing: normal;
outline: 0;
}
[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container, [mat-sort-header].cdk-program-focused .mat-sort-header-container {
border-bottom: solid 1px currentColor;
}
.mat-sort-header-container::before {
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
}
.mat-sort-header-content {
display: flex;
align-items: center;
}
.mat-sort-header-position-before {
flex-direction: row-reverse;
}
@keyframes _mat-sort-header-recently-cleared-ascending {
from {
transform: translateY(0);
opacity: 1;
}
to {
transform: translateY(-25%);
opacity: 0;
}
}
@keyframes _mat-sort-header-recently-cleared-descending {
from {
transform: translateY(0) rotate(180deg);
opacity: 1;
}
to {
transform: translateY(25%) rotate(180deg);
opacity: 0;
}
}
.mat-sort-header-arrow {
height: 12px;
width: 12px;
position: relative;
transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1), opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0;
overflow: visible;
color: var(--mat-sort-arrow-color, var(--mat-sys-on-surface));
}
.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow, .mat-sort-header.cdk-program-focused .mat-sort-header-arrow, .mat-sort-header:hover .mat-sort-header-arrow {
opacity: 0.54;
}
.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow {
opacity: 1;
}
.mat-sort-header-descending .mat-sort-header-arrow {
transform: rotate(180deg);
}
.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow {
transform: translateY(-25%);
}
.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow {
transition: none;
animation: _mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow {
transition: none;
animation: _mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.mat-sort-header-animations-disabled .mat-sort-header-arrow {
transition-duration: 0ms;
animation-duration: 0ms;
}
.mat-sort-header-arrow > svg, .mat-sort-header-arrow [matSortHeaderIcon] {
width: 24px;
height: 24px;
fill: currentColor;
position: absolute;
top: 50%;
left: 50%;
margin: -12px 0 0 -12px;
transform: translateZ(0);
}
.mat-sort-header-arrow, [dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow {
margin: 0 0 0 6px;
}
.mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow {
margin: 0 6px 0 0;
}
`],encapsulation:2})}return t})(),BE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var zE=new z("CdkAccordion"),SN=(()=>{class t{_stateChanges=new ce;_openCloseAllActions=new ce;id=g(St).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",te]},exportAs:["cdkAccordion"],features:[He([{provide:zE,useExisting:t}]),Et]})}return t})(),kN=(()=>{class t{accordion=g(zE,{optional:!0,skipSelf:!0});_changeDetectorRef=g(Ge);_expansionDispatcher=g(ql);_openCloseAllSubscription=Ye.EMPTY;closed=new le;opened=new le;destroyed=new le;expandedChange=new le;id=g(St).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Q(!1);_removeUniqueSelectionListener=()=>{};ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,n)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===n&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",te],disabled:[2,"disabled","disabled",te]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[He([{provide:zE,useValue:void 0}])]})}return t})(),MN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({})}return t})();var xq=["body"],Cq=["bodyWrapper"],wq=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Eq=["mat-expansion-panel-header","*","mat-action-row"];function Dq(t,i){}var Sq=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],kq=["mat-panel-title","mat-panel-description","*"];function Mq(t,i){t&1&&(kt(0,"span",1),bn(),kt(1,"svg",2),yn(2,"path",3),Mt()())}var VE=new z("MAT_ACCORDION"),TN=new z("MAT_EXPANSION_PANEL"),Tq=(()=>{class t{_template=g(Lt);_expansionPanel=g(TN,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),IN=new z("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),J_=(()=>{class t extends kN{_viewContainerRef=g(Xt);_animationsDisabled=xt();_document=g(je);_ngZone=g(De);_elementRef=g(pe);_renderer=g(dt);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new le;afterCollapse=new le;_inputChanges=new ce;accordion=g(VE,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=g(St).getId("mat-expansion-panel-header-");constructor(){super();let e=g(IN,{optional:!0});this._expansionDispatcher=g(ql),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(It(null),ct(()=>this.expanded&&!this._portal),mt(1)).subscribe(()=>{this._portal=new si(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:n})=>{e===this._bodyWrapper?.nativeElement&&n==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(n&1&&jt(o,Tq,5),n&2){let a;K(a=X())&&(r._lazyContent=a.first)}},viewQuery:function(n,r){if(n&1&&Qe(xq,5)(Cq,5),n&2){let o;K(o=X())&&(r._body=o.first),K(o=X())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(n,r){n&2&&ue("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",te],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[He([{provide:VE,useValue:void 0},{provide:TN,useExisting:t}]),Ee,Et],ngContentSelectors:Eq,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){n&1&&(tt(wq),Me(0),p(1,"div",2,0)(3,"div",3,1)(5,"div",4),Me(6,1),ot(7,Dq,0,0,"ng-template",5),m(),Me(8,2),m()()),n&2&&(u(),he("inert",r.expanded?null:""),u(2),S("id",r.id),he("aria-labelledby",r._headerId),u(4),S("cdkPortalOutlet",r._portal))},dependencies:[Wi],styles:[`.mat-expansion-panel {
box-sizing: content-box;
display: block;
margin: 0;
overflow: hidden;
}
.mat-expansion-panel.mat-expansion-panel-animations-enabled {
transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-expansion-panel {
position: relative;
background: var(--mat-expansion-container-background-color, var(--mat-sys-surface));
color: var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));
border-radius: var(--mat-expansion-container-shape, 12px);
}
.mat-expansion-panel:not([class*=mat-elevation-z]) {
box-shadow: var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
}
.mat-accordion .mat-expansion-panel:not(.mat-expanded), .mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing) {
border-radius: 0;
}
.mat-accordion .mat-expansion-panel:first-of-type {
border-top-right-radius: var(--mat-expansion-container-shape, 12px);
border-top-left-radius: var(--mat-expansion-container-shape, 12px);
}
.mat-accordion .mat-expansion-panel:last-of-type {
border-bottom-right-radius: var(--mat-expansion-container-shape, 12px);
border-bottom-left-radius: var(--mat-expansion-container-shape, 12px);
}
@media (forced-colors: active) {
.mat-expansion-panel {
outline: solid 1px;
}
}
.mat-expansion-panel-content-wrapper {
display: grid;
grid-template-rows: 0fr;
grid-template-columns: 100%;
}
.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper {
transition: grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper {
grid-template-rows: 1fr;
}
@supports not (grid-template-rows: 0fr) {
.mat-expansion-panel-content-wrapper {
height: 0;
}
.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper {
height: auto;
}
}
@media print {
.mat-expansion-panel-content-wrapper {
height: 0;
}
.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper {
height: auto;
}
}
.mat-expansion-panel-content {
display: flex;
flex-direction: column;
overflow: visible;
min-height: 0;
visibility: hidden;
}
.mat-expansion-panel-animations-enabled .mat-expansion-panel-content {
transition: visibility 190ms linear;
}
.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper > .mat-expansion-panel-content {
visibility: visible;
}
.mat-expansion-panel-content {
font-family: var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));
font-size: var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));
line-height: var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));
letter-spacing: var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking));
}
.mat-expansion-panel-body {
padding: 0 24px 16px;
}
.mat-expansion-panel-spacing {
margin: 16px 0;
}
.mat-accordion > .mat-expansion-panel-spacing:first-child, .mat-accordion > *:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing {
margin-top: 0;
}
.mat-accordion > .mat-expansion-panel-spacing:last-child, .mat-accordion > *:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing {
margin-bottom: 0;
}
.mat-action-row {
border-top-style: solid;
border-top-width: 1px;
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: 16px 8px 16px 24px;
border-top-color: var(--mat-expansion-actions-divider-color, var(--mat-sys-outline));
}
.mat-action-row .mat-button-base,
.mat-action-row .mat-mdc-button-base {
margin-left: 8px;
}
[dir=rtl] .mat-action-row .mat-button-base,
[dir=rtl] .mat-action-row .mat-mdc-button-base {
margin-left: 0;
margin-right: 8px;
}
`],encapsulation:2})}return t})();var ev=(()=>{class t{panel=g(J_,{host:!0});_element=g(pe);_focusMonitor=g(Sn);_changeDetectorRef=g(Ge);_parentChangeSubscription=Ye.EMPTY;constructor(){g(Ot).load(wn);let e=this.panel,n=g(IN,{optional:!0}),r=g(new ei("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ct(a=>!!(a.hideToggle||a.togglePosition))):vn;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=hn(e.opened,e.closed,o,e._inputChanges.pipe(ct(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ct(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),n&&(this.expandedHeight=n.expandedHeight,this.collapsedHeight=n.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:kn(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(n,r){n&1&&N("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),n&2&&(he("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),In("height",r._getHeaderHeight()),ue("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gt(e)]},ngContentSelectors:kq,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,r){n&1&&(tt(Sq),kt(0,"span",0),Me(1),Me(2,1),Me(3,2),Mt(),A(4,Mq,3,0,"span",1)),n&2&&(ue("mat-content-hide-toggle",!r._showToggle()),u(4),R(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header {
display: flex;
flex-direction: row;
align-items: center;
padding: 0 24px;
border-radius: inherit;
}
.mat-expansion-panel-animations-enabled .mat-expansion-panel-header {
transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-expansion-panel-header::before {
border-radius: inherit;
}
.mat-expansion-panel-header {
height: var(--mat-expansion-header-collapsed-state-height, 48px);
font-family: var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));
font-size: var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));
font-weight: var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));
line-height: var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));
letter-spacing: var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking));
}
.mat-expansion-panel-header.mat-expanded {
height: var(--mat-expansion-header-expanded-state-height, 64px);
}
.mat-expansion-panel-header[aria-disabled=true] {
color: var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-expansion-panel-header:not([aria-disabled=true]) {
cursor: pointer;
}
.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover {
background: var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
}
@media (hover: none) {
.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover {
background: var(--mat-expansion-container-background-color, var(--mat-sys-surface));
}
}
.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused, .mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused {
background: var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
}
.mat-expansion-panel-header._mat-animation-noopable {
transition: none;
}
.mat-expansion-panel-header:focus, .mat-expansion-panel-header:hover {
outline: none;
}
.mat-expansion-panel-header.mat-expanded:focus, .mat-expansion-panel-header.mat-expanded:hover {
background: inherit;
}
.mat-expansion-panel-header.mat-expansion-toggle-indicator-before {
flex-direction: row-reverse;
}
.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator {
margin: 0 16px 0 0;
}
[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator {
margin: 0 0 0 16px;
}
.mat-content {
display: flex;
flex: 1;
flex-direction: row;
overflow: hidden;
}
.mat-content.mat-content-hide-toggle {
margin-right: 8px;
}
[dir=rtl] .mat-content.mat-content-hide-toggle {
margin-right: 0;
margin-left: 8px;
}
.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle {
margin-left: 24px;
margin-right: 0;
}
[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle {
margin-right: 24px;
margin-left: 0;
}
.mat-expansion-panel-header-title {
color: var(--mat-expansion-header-text-color, var(--mat-sys-on-surface));
}
.mat-expansion-panel-header-title,
.mat-expansion-panel-header-description {
display: flex;
flex-grow: 1;
flex-basis: 0;
margin-right: 16px;
align-items: center;
}
[dir=rtl] .mat-expansion-panel-header-title,
[dir=rtl] .mat-expansion-panel-header-description {
margin-right: 0;
margin-left: 16px;
}
.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,
.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description {
color: inherit;
}
.mat-expansion-panel-header-description {
flex-grow: 2;
color: var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant));
}
.mat-expansion-panel-animations-enabled .mat-expansion-indicator {
transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator {
transform: rotate(180deg);
}
.mat-expansion-indicator::after {
border-style: solid;
border-width: 0 2px 2px 0;
content: "";
padding: 3px;
transform: rotate(45deg);
vertical-align: middle;
color: var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));
display: var(--mat-expansion-legacy-header-indicator-display, none);
}
.mat-expansion-indicator svg {
width: 24px;
height: 24px;
margin: 0 -8px;
vertical-align: middle;
fill: var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));
display: var(--mat-expansion-header-indicator-display, inline-block);
}
@media (forced-colors: active) {
.mat-expansion-panel-content {
border-top: 1px solid;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
`],encapsulation:2})}return t})(),AN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return t})(),jE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),RN=(()=>{class t extends SN{_keyManager;_ownHeaders=new jn;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(It(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new xr(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,r,o){if(n&1&&jt(o,ev,5),n&2){let a;K(a=X())&&(r._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,r){n&2&&ue("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",te],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[He([{provide:VE,useExisting:t}]),Ee]})}return t})(),HE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[MN,wr,qe]})}return t})();var QE=["*"];function Aq(t,i){t&1&&Me(0)}var Rq=["tabListContainer"],Oq=["tabList"],Pq=["tabListInner"],Fq=["nextPaginator"],Nq=["previousPaginator"],Lq=["content"];function Bq(t,i){}var zq=["tabBodyWrapper"],Vq=["tabHeader"];function jq(t,i){}function Hq(t,i){if(t&1&&ot(0,jq,0,0,"ng-template",12),t&2){let e=E().$implicit;S("cdkPortalOutlet",e.templateLabel)}}function $q(t,i){if(t&1&&v(0),t&2){let e=E().$implicit;M(e.textLabel)}}function Uq(t,i){if(t&1){let e=be();p(0,"div",7,2),N("click",function(){let r=ae(e),o=r.$implicit,a=r.$index,s=E(),l=pn(1);return se(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=ae(e).$index,a=E();return se(a._tabFocusChanged(r,o))}),U(2,"span",8)(3,"div",9),p(4,"span",10)(5,"span",11),A(6,Hq,1,1,null,12)(7,$q,1,1),m()()()}if(t&2){let e=i.$implicit,n=i.$index,r=pn(1),o=E();Ut(e.labelClass),ue("mdc-tab--active",o.selectedIndex===n),S("id",o._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),he("tabIndex",o._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),u(3),S("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),u(3),R(e.templateLabel?6:7)}}function Wq(t,i){t&1&&Me(0)}function Gq(t,i){if(t&1){let e=be();p(0,"mat-tab-body",13),N("_onCentered",function(){ae(e);let r=E();return se(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){ae(e);let o=E();return se(o._setTabBodyWrapperHeight(r))})("_beforeCentering",function(r){ae(e);let o=E();return se(o._bodyCentered(r))}),m()}if(t&2){let e=i.$implicit,n=i.$index,r=E();Ut(e.bodyClass),S("id",r._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",r._bodyAnimationDuration)("preserveContent",r.preserveContent),he("tabindex",r.contentTabIndex!=null&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,n))("aria-hidden",r.selectedIndex!==n)}}var qq=new z("MatTabContent"),Qq=(()=>{class t{template=g(Lt);static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","matTabContent",""]],features:[He([{provide:qq,useExisting:t}])]})}return t})(),Zq=new z("MatTabLabel"),NN=new z("MAT_TAB"),Yq=(()=>{class t extends ZP{_closestTab=g(NN,{optional:!0});static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[He([{provide:Zq,useExisting:t}]),Ee]})}return t})(),LN=new z("MAT_TAB_GROUP"),ZE=(()=>{class t{_viewContainerRef=g(Xt);_closestTabGroup=g(LN,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new ce;position=null;origin=null;isActive=!1;constructor(){g(Ot).load(wn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new si(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-tab"]],contentQueries:function(n,r,o){if(n&1&&jt(o,Yq,5)(o,Qq,7,Lt),n&2){let a;K(a=X())&&(r.templateLabel=a.first),K(a=X())&&(r._explicitContent=a.first)}},viewQuery:function(n,r){if(n&1&&Qe(Lt,7),n&2){let o;K(o=X())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,r){n&2&&he("id",null)},inputs:{disabled:[2,"disabled","disabled",te],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[He([{provide:NN,useExisting:t}]),Et],ngContentSelectors:QE,decls:1,vars:0,template:function(n,r){n&1&&(tt(),_s(0,Aq,1,0,"ng-template"))},encapsulation:2,changeDetection:1})}return t})(),$E="mdc-tab-indicator--active",ON="mdc-tab-indicator--no-transition",WE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(r=>r.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},Kq=(()=>{class t{_elementRef=g(pe);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add($E);return}let r=n.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;n.classList.add(ON),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),n.getBoundingClientRect(),n.classList.remove(ON),n.classList.add($E),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove($E)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");n.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",te]}})}return t})();var BN=(()=>{class t extends Kq{elementRef=g(pe);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,r){n&2&&(he("aria-disabled",!!r.disabled),ue("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",te]},features:[Ee]})}return t})(),PN={passive:!0},Xq=650,Jq=100;function UE(t){let i=t+"";return/^[0-9]+(?:\.[0-9]+)?$/.test(i)?`${t}ms`:/^[0-9]+(?:\.[0-9]+)?(?:ms|s)$/.test(i)?i:""}var eQ=(()=>{class t{_elementRef=g(pe);_changeDetectorRef=g(Ge);_viewportRuler=g(Cr);_dir=g(ln,{optional:!0});_ngZone=g(De);_platform=g(ht);_sharedResizeObserver=g(w_);_injector=g(ze);_renderer=g(dt);_animationsDisabled=xt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new ce;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new ce;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new le;indexFocused=new le;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),PN),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),PN))}ngAfterContentInit(){let e=this._dir?this._dir.change:Ne("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ar(32),Ue(this._destroyed)),r=this._viewportRuler.change(150).pipe(Ue(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new xr(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Bt(o,{injector:this._injector}),hn(e,r,n,this._items.changes,this._itemsResized()).pipe(Ue(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?vn:this._items.changes.pipe(It(this._items),rn(e=>new it(n=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),el(1),ct(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!kn(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,d=this.scrollDistance+r;s<c?this.scrollDistance-=c-s:l>d&&(this.scrollDistance+=Math.min(l-d,s-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,r=e-n>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),xu(Xq,Jq).pipe(Ue(hn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",te],selectedIndex:[2,"selectedIndex","selectedIndex",gt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),tQ=(()=>{class t extends eQ{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new WE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,r,o){if(n&1&&jt(o,BN,4),n&2){let a;K(a=X())&&(r._items=a)}},viewQuery:function(n,r){if(n&1&&Qe(Rq,7)(Oq,7)(Pq,7)(Fq,5)(Nq,5),n&2){let o;K(o=X())&&(r._tabListContainer=o.first),K(o=X())&&(r._tabList=o.first),K(o=X())&&(r._tabListInner=o.first),K(o=X())&&(r._nextPaginator=o.first),K(o=X())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,r){n&2&&ue("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",te]},features:[Ee],ngContentSelectors:QE,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,r){n&1&&(tt(),p(0,"div",5,0),N("click",function(){return r._handlePaginatorClick("before")})("mousedown",function(a){return r._handlePaginatorPress("before",a)})("touchend",function(){return r._stopInterval()}),U(2,"div",6),m(),p(3,"div",7,1),N("keydown",function(a){return r._handleKeydown(a)}),p(5,"div",8,2),N("cdkObserveContent",function(){return r._onContentChanges()}),p(7,"div",9,3),Me(9),m()()(),p(10,"div",10,4),N("mousedown",function(a){return r._handlePaginatorPress("after",a)})("click",function(){return r._handlePaginatorClick("after")})("touchend",function(){return r._stopInterval()}),U(12,"div",6),m()),n&2&&(ue("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),S("matRippleDisabled",r._disableScrollBefore||r.disableRipple),u(3),ue("_mat-animation-noopable",r._animationsDisabled),u(2),he("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),u(5),ue("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),S("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[ai,Rw],styles:[`.mat-mdc-tab-header {
display: flex;
overflow: hidden;
position: relative;
flex-shrink: 0;
}
.mdc-tab-indicator .mdc-tab-indicator__content {
transition-duration: var(--mat-tab-header-animation-duration, 250ms);
}
.mat-mdc-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: transparent;
touch-action: none;
box-sizing: content-box;
outline: 0;
}
.mat-mdc-tab-header-pagination::-moz-focus-inner {
border: 0;
}
.mat-mdc-tab-header-pagination .mat-ripple-element {
opacity: 0.12;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination {
display: flex;
}
.mat-mdc-tab-header-pagination-before,
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after {
padding-left: 4px;
}
.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
transform: rotate(-135deg);
}
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,
.mat-mdc-tab-header-pagination-after {
padding-right: 4px;
}
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
transform: rotate(45deg);
}
.mat-mdc-tab-header-pagination-chevron {
border-style: solid;
border-width: 2px 2px 0 0;
height: 8px;
width: 8px;
border-color: var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header-pagination-disabled {
box-shadow: none;
cursor: default;
pointer-events: none;
}
.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron {
opacity: 0.4;
}
.mat-mdc-tab-list {
flex-grow: 1;
position: relative;
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
}
._mat-animation-noopable .mat-mdc-tab-list {
transition: none;
}
.mat-mdc-tab-label-container {
display: flex;
flex-grow: 1;
overflow: hidden;
z-index: 1;
border-bottom-style: solid;
border-bottom-width: var(--mat-tab-divider-height, 1px);
border-bottom-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant));
}
.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container {
border-bottom: none;
border-top-style: solid;
border-top-width: var(--mat-tab-divider-height, 1px);
border-top-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant));
}
.mat-mdc-tab-labels {
display: flex;
flex: 1 0 auto;
}
[mat-align-tabs=center] > .mat-mdc-tab-header .mat-mdc-tab-labels {
justify-content: center;
}
[mat-align-tabs=end] > .mat-mdc-tab-header .mat-mdc-tab-labels {
justify-content: flex-end;
}
.cdk-drop-list .mat-mdc-tab-labels, .mat-mdc-tab-labels.cdk-drop-list {
min-height: var(--mat-tab-container-height, 48px);
}
.mat-mdc-tab::before {
margin: 5px;
}
@media (forced-colors: active) {
.mat-mdc-tab[aria-disabled=true] {
color: GrayText;
}
}
`],encapsulation:2,changeDetection:1})}return t})(),nQ=new z("MAT_TABS_CONFIG"),FN=(()=>{class t extends Wi{_host=g(GE);_ngZone=g(De);_centeringSub=Ye.EMPTY;_leavingSub=Ye.EMPTY;ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(It(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275dir=Y({type:t,selectors:[["","matTabBodyHost",""]],features:[Ee]})}return t})(),GE=(()=>{class t{_elementRef=g(pe);_dir=g(ln,{optional:!0});_ngZone=g(De);_injector=g(ze);_renderer=g(dt);_diAnimationsDisabled=xt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ye.EMPTY;_position;_previousPosition;_onCentering=new le;_beforeCentering=new le;_afterLeavingCenter=new le;_onCentered=new le(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=g(Ge);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),Bt(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),Bt(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,r){if(n&1&&Qe(FN,5)(Lq,5),n&2){let o;K(o=X())&&(r._portalHost=o.first),K(o=X())&&(r._contentElement=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,r){n&2&&he("inert",r._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,r){n&1&&(p(0,"div",1,0),ot(2,Bq,0,0,"ng-template",2),m()),n&2&&ue("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center")},dependencies:[FN,Ch],styles:[`.mat-mdc-tab-body {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
display: block;
overflow: hidden;
outline: 0;
flex-basis: 100%;
}
.mat-mdc-tab-body.mat-mdc-tab-body-active {
position: relative;
overflow-x: hidden;
overflow-y: auto;
z-index: 1;
flex-grow: 1;
}
.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active {
overflow-y: hidden;
}
.mat-mdc-tab-body-content {
height: 100%;
overflow: auto;
transform: none;
visibility: hidden;
}
.mat-tab-body-animating > .mat-mdc-tab-body-content, .mat-mdc-tab-body-active > .mat-mdc-tab-body-content {
visibility: visible;
}
.mat-tab-body-animating > .mat-mdc-tab-body-content {
min-height: 1px;
}
.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content {
overflow: hidden;
}
.mat-tab-body-content-can-animate {
transition: transform var(--mat-tab-body-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1);
}
.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate {
transition: none;
}
.mat-tab-body-content-left {
transform: translate3d(-100%, 0, 0);
}
.mat-tab-body-content-right {
transform: translate3d(100%, 0, 0);
}
`],encapsulation:2,changeDetection:1})}return t})(),zN=(()=>{class t{_elementRef=g(pe);_changeDetectorRef=g(Ge);_ngZone=g(De);_tabsSubscription=Ye.EMPTY;_tabLabelSubscription=Ye.EMPTY;_tabBodySubscription=Ye.EMPTY;_diAnimationsDisabled=xt();_bodyAnimationDuration;_headerAnimationDuration;_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new jn;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=e,e&&typeof e=="object"?(this._bodyAnimationDuration=UE(e.body),this._headerAnimationDuration=UE(e.header)):this._headerAnimationDuration=this._bodyAnimationDuration=UE(e)}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new le;focusChange=new le;animationDone=new le;selectedTabChange=new le(!0);_groupId;_isServer=!g(ht).isBrowser;constructor(){let e=g(nQ,{optional:!0});this._groupId=g(St).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),r;for(let o=0;o<n.length;o++)if(n[o].isActive){this._indexToSelect=this._selectedIndex=o,this._lastFocusedTabIndex=null,r=n[o];break}!r&&n[e]&&Promise.resolve().then(()=>{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(It(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new qE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=hn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,r){n.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,r)=>n._setActiveClass(r===this._selectedIndex))}_bodyAnimationsDisabled(){return this._diAnimationsDisabled||this._bodyAnimationDuration==="0"||this._bodyAnimationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,r,o){if(n&1&&jt(o,ZE,5),n&2){let a;K(a=X())&&(r._allTabs=a)}},viewQuery:function(n,r){if(n&1&&Qe(zq,5)(Vq,5)(GE,5),n&2){let o;K(o=X())&&(r._tabBodyWrapper=o.first),K(o=X())&&(r._tabHeader=o.first),K(o=X())&&(r._tabBodies=o)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:13,hostBindings:function(n,r){n&2&&(he("mat-align-tabs",r.alignTabs),Ut("mat-"+(r.color||"primary")),In("--mat-tab-body-animation-duration",r._bodyAnimationDuration)("--mat-tab-header-animation-duration",r._headerAnimationDuration),ue("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",te],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",te],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",te],selectedIndex:[2,"selectedIndex","selectedIndex",gt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",gt],disablePagination:[2,"disablePagination","disablePagination",te],disableRipple:[2,"disableRipple","disableRipple",te],preserveContent:[2,"preserveContent","preserveContent",te],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[He([{provide:LN,useExisting:t}])],ngContentSelectors:QE,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,r){n&1&&(tt(),p(0,"mat-tab-header",3,0),N("indexFocused",function(a){return r._focusChanged(a)})("selectFocusedIndex",function(a){return r.selectedIndex=a}),Je(2,Uq,8,17,"div",4,Rn),m(),A(4,Wq,1,0),p(5,"div",5,1),Je(7,Gq,1,10,"mat-tab-body",6,Rn),m()),n&2&&(S("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Yc("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),u(2),et(r._tabs),u(2),R(r._isServer?4:-1),u(),ue("_mat-animation-noopable",r._bodyAnimationsDisabled()),u(2),et(r._tabs))},dependencies:[tQ,BN,Aw,ai,Wi,GE],styles:[`.mdc-tab {
min-width: 90px;
padding: 0 24px;
display: flex;
flex: 1 0 auto;
justify-content: center;
box-sizing: border-box;
border: none;
outline: none;
text-align: center;
white-space: nowrap;
cursor: pointer;
z-index: 1;
touch-action: manipulation;
}
.mdc-tab__content {
display: flex;
align-items: center;
justify-content: center;
height: inherit;
pointer-events: none;
}
.mdc-tab__text-label {
transition: 150ms color linear;
display: inline-block;
line-height: 1;
z-index: 2;
}
.mdc-tab--active .mdc-tab__text-label {
transition-delay: 100ms;
}
._mat-animation-noopable .mdc-tab__text-label {
transition: none;
}
.mdc-tab-indicator {
display: flex;
position: absolute;
top: 0;
left: 0;
justify-content: center;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.mdc-tab-indicator__content {
transition: var(--mat-tab-header-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: left;
opacity: 0;
}
.mdc-tab-indicator__content--underline {
align-self: flex-end;
box-sizing: border-box;
width: 100%;
border-top-style: solid;
}
.mdc-tab-indicator--active .mdc-tab-indicator__content {
opacity: 1;
}
._mat-animation-noopable .mdc-tab-indicator__content, .mdc-tab-indicator--no-transition .mdc-tab-indicator__content {
transition: none;
}
.mat-mdc-tab-ripple.mat-mdc-tab-ripple {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
pointer-events: none;
}
.mat-mdc-tab {
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none;
background: none;
height: var(--mat-tab-container-height, 48px);
font-family: var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));
font-size: var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));
letter-spacing: var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));
line-height: var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));
font-weight: var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight));
}
.mat-mdc-tab.mdc-tab {
flex-grow: 0;
}
.mat-mdc-tab .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-indicator-color, var(--mat-sys-primary));
border-top-width: var(--mat-tab-active-indicator-height, 2px);
border-radius: var(--mat-tab-active-indicator-shape, 0);
}
.mat-mdc-tab:hover .mdc-tab__text-label {
color: var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab:focus .mdc-tab__text-label {
color: var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label {
color: var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,
.mat-mdc-tab.mdc-tab--active .mat-ripple-element {
background-color: var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label {
color: var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary));
}
.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label {
color: var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary));
}
.mat-mdc-tab.mat-mdc-tab-disabled {
opacity: 0.4;
pointer-events: none;
}
.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content {
pointer-events: none;
}
.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,
.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element {
background-color: var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-tab .mdc-tab__ripple::before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
pointer-events: none;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab .mdc-tab__text-label {
color: var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));
display: inline-flex;
align-items: center;
}
.mat-mdc-tab .mdc-tab__content {
position: relative;
pointer-events: auto;
}
.mat-mdc-tab:hover .mdc-tab__ripple::before {
opacity: 0.04;
}
.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before, .mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before {
opacity: 0.12;
}
.mat-mdc-tab .mat-ripple-element {
opacity: 0.12;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs > .mat-mdc-tab-header .mat-mdc-tab {
flex-grow: 1;
}
.mat-mdc-tab-group {
display: flex;
flex-direction: column;
max-width: 100%;
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination {
background-color: var(--mat-tab-background-color);
}
.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-focus-indicator::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-focus-indicator::before {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-ripple-element, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mdc-tab__ripple::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-ripple-element, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mdc-tab__ripple::before {
background-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header {
flex-direction: column-reverse;
}
.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline {
align-self: flex-start;
}
.mat-mdc-tab-body-wrapper {
position: relative;
overflow: hidden;
display: flex;
transition: height 500ms cubic-bezier(0.35, 0, 0.25, 1);
}
.mat-mdc-tab-body-wrapper._mat-animation-noopable {
transition: none !important;
animation: none !important;
}
`],encapsulation:2,changeDetection:1})}return t})(),qE=class{index;tab};var VN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var jN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Td,Di,I_,qe,ur]})}return t})();var rD={};Kh(rD,{arrayReplaceAt:()=>iD,assign:()=>Qd,escapeHtml:()=>Ha,escapeRE:()=>VQ,fromCodePoint:()=>Vh,has:()=>TQ,isMdAsciiPunct:()=>nc,isPunctChar:()=>tc,isSpace:()=>Ft,isString:()=>mv,isValidEntityCode:()=>hv,isWhiteSpace:()=>ec,lib:()=>jQ,normalizeReference:()=>ic,unescapeAll:()=>ja,unescapeMd:()=>PQ});var ov={};Kh(ov,{decode:()=>Bh,encode:()=>iv,format:()=>Gd,parse:()=>zh});var HN={};function rQ(t){let i=HN[t];if(i)return i;i=HN[t]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);i.push(n)}for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);i[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return i}function tv(t,i){typeof i!="string"&&(i=tv.defaultChars);let e=rQ(i);return t.replace(/(%[a-f0-9]{2})+/gi,function(n){let r="";for(let o=0,a=n.length;o<a;o+=3){let s=parseInt(n.slice(o+1,o+3),16);if(s<128){r+=e[s];continue}if((s&224)===192&&o+3<a){let l=parseInt(n.slice(o+4,o+6),16);if((l&192)===128){let c=s<<6&1984|l&63;c<128?r+="\uFFFD\uFFFD":r+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<a){let l=parseInt(n.slice(o+4,o+6),16),c=parseInt(n.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){let d=s<<12&61440|l<<6&4032|c&63;d<2048||d>=55296&&d<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(d),o+=6;continue}}if((s&248)===240&&o+9<a){let l=parseInt(n.slice(o+4,o+6),16),c=parseInt(n.slice(o+7,o+9),16),d=parseInt(n.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(d&192)===128){let h=s<<18&1835008|l<<12&258048|c<<6&4032|d&63;h<65536||h>1114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(h-=65536,r+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),o+=9;continue}}r+="\uFFFD"}return r})}tv.defaultChars=";/?:@&=+$,#";tv.componentChars="";var Bh=tv;var $N={};function oQ(t){let i=$N[t];if(i)return i;i=$N[t]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let e=0;e<t.length;e++)i[t.charCodeAt(e)]=t[e];return i}function nv(t,i,e){typeof i!="string"&&(e=i,i=nv.defaultChars),typeof e>"u"&&(e=!0);let n=oQ(i),r="";for(let o=0,a=t.length;o<a;o++){let s=t.charCodeAt(o);if(e&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){r+=t.slice(o,o+3),o+=2;continue}if(s<128){r+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){let l=t.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[o]+t[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(t[o])}return r}nv.defaultChars=";/?:@&=+$,-_.!~*'()#";nv.componentChars="-_.!~*'()";var iv=nv;function Gd(t){let i="";return i+=t.protocol||"",i+=t.slashes?"//":"",i+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?i+="["+t.hostname+"]":i+=t.hostname||"",i+=t.port?":"+t.port:"",i+=t.pathname||"",i+=t.search||"",i+=t.hash||"",i}function rv(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var aQ=/^([a-z0-9.+-]+:)/i,sQ=/:[0-9]*$/,lQ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,cQ=["<",">",'"',"`"," ","\r",`
`," "],dQ=["{","}","|","\\","^","`"].concat(cQ),uQ=["'"].concat(dQ),UN=["%","/","?",";","#"].concat(uQ),WN=["/","?","#"],mQ=255,GN=/^[+a-z0-9A-Z_-]{0,63}$/,hQ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qN={javascript:!0,"javascript:":!0},QN={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function pQ(t,i){if(t&&t instanceof rv)return t;let e=new rv;return e.parse(t,i),e}rv.prototype.parse=function(t,i){let e,n,r,o=t;if(o=o.trim(),!i&&t.split("#").length===1){let c=lQ.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=aQ.exec(o);if(a&&(a=a[0],e=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(i||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(a&&qN[a])&&(o=o.substr(2),this.slashes=!0)),!qN[a]&&(r||a&&!QN[a])){let c=-1;for(let _=0;_<WN.length;_++)n=o.indexOf(WN[_]),n!==-1&&(c===-1||n<c)&&(c=n);let d,h;c===-1?h=o.lastIndexOf("@"):h=o.lastIndexOf("@",c),h!==-1&&(d=o.slice(0,h),o=o.slice(h+1),this.auth=d),c=-1;for(let _=0;_<UN.length;_++)n=o.indexOf(UN[_]),n!==-1&&(c===-1||n<c)&&(c=n);c===-1&&(c=o.length),o[c-1]===":"&&c--;let b=o.slice(0,c);o=o.slice(c),this.parseHost(b),this.hostname=this.hostname||"";let f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){let _=this.hostname.split(/\./);for(let y=0,C=_.length;y<C;y++){let D=_[y];if(D&&!D.match(GN)){let k="";for(let T=0,F=D.length;T<F;T++)D.charCodeAt(T)>127?k+="x":k+=D[T];if(!k.match(GN)){let T=_.slice(0,y),F=_.slice(y+1),L=D.match(hQ);L&&(T.push(L[1]),F.unshift(L[2])),F.length&&(o=F.join(".")+o),this.hostname=T.join(".");break}}}}this.hostname.length>mQ&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));let l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),QN[e]&&this.hostname&&!this.pathname&&(this.pathname=""),this};rv.prototype.parseHost=function(t){let i=sQ.exec(t);i&&(i=i[0],i!==":"&&(this.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(this.hostname=t)};var zh=pQ;var YE={};Kh(YE,{Any:()=>av,Cc:()=>sv,Cf:()=>ZN,P:()=>qd,S:()=>lv,Z:()=>cv});var av=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var sv=/[\0-\x1F\x7F-\x9F]/;var ZN=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var qd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var lv=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var cv=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var YN=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0)));var KN=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var KE,fQ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),XE=(KE=String.fromCodePoint)!==null&&KE!==void 0?KE:function(t){let i="";return t>65535&&(t-=65536,i+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),i+=String.fromCharCode(t),i};function JE(t){var i;return t>=55296&&t<=57343||t>1114111?65533:(i=fQ.get(t))!==null&&i!==void 0?i:t}var vi=(function(t){return t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z",t})(vi||{}),gQ=32,Jl=(function(t){return t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE",t})(Jl||{});function eD(t){return t>=vi.ZERO&&t<=vi.NINE}function _Q(t){return t>=vi.UPPER_A&&t<=vi.UPPER_F||t>=vi.LOWER_A&&t<=vi.LOWER_F}function vQ(t){return t>=vi.UPPER_A&&t<=vi.UPPER_Z||t>=vi.LOWER_A&&t<=vi.LOWER_Z||eD(t)}function bQ(t){return t===vi.EQUALS||vQ(t)}var _i=(function(t){return t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity",t})(_i||{}),Va=(function(t){return t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute",t})(Va||{}),dv=class{constructor(i,e,n){this.decodeTree=i,this.emitCodePoint=e,this.errors=n,this.state=_i.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Va.Strict}startEntity(i){this.decodeMode=i,this.state=_i.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(i,e){switch(this.state){case _i.EntityStart:return i.charCodeAt(e)===vi.NUM?(this.state=_i.NumericStart,this.consumed+=1,this.stateNumericStart(i,e+1)):(this.state=_i.NamedEntity,this.stateNamedEntity(i,e));case _i.NumericStart:return this.stateNumericStart(i,e);case _i.NumericDecimal:return this.stateNumericDecimal(i,e);case _i.NumericHex:return this.stateNumericHex(i,e);case _i.NamedEntity:return this.stateNamedEntity(i,e)}}stateNumericStart(i,e){return e>=i.length?-1:(i.charCodeAt(e)|gQ)===vi.LOWER_X?(this.state=_i.NumericHex,this.consumed+=1,this.stateNumericHex(i,e+1)):(this.state=_i.NumericDecimal,this.stateNumericDecimal(i,e))}addToNumericResult(i,e,n,r){if(e!==n){let o=n-e;this.result=this.result*Math.pow(r,o)+parseInt(i.substr(e,o),r),this.consumed+=o}}stateNumericHex(i,e){let n=e;for(;e<i.length;){let r=i.charCodeAt(e);if(eD(r)||_Q(r))e+=1;else return this.addToNumericResult(i,n,e,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(i,n,e,16),-1}stateNumericDecimal(i,e){let n=e;for(;e<i.length;){let r=i.charCodeAt(e);if(eD(r))e+=1;else return this.addToNumericResult(i,n,e,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(i,n,e,10),-1}emitNumericEntity(i,e){var n;if(this.consumed<=e)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(i===vi.SEMI)this.consumed+=1;else if(this.decodeMode===Va.Strict)return 0;return this.emitCodePoint(JE(this.result),this.consumed),this.errors&&(i!==vi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(i,e){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&Jl.VALUE_LENGTH)>>14;for(;e<i.length;e++,this.excess++){let a=i.charCodeAt(e);if(this.treeIndex=yQ(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Va.Attribute&&(o===0||bQ(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Jl.VALUE_LENGTH)>>14,o!==0){if(a===vi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Va.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var i;let{result:e,decodeTree:n}=this,r=(n[e]&Jl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,r,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,e,n){let{decodeTree:r}=this;return this.emitCodePoint(e===1?r[i]&~Jl.VALUE_LENGTH:r[i+1],n),e===3&&this.emitCodePoint(r[i+2],n),n}end(){var i;switch(this.state){case _i.NamedEntity:return this.result!==0&&(this.decodeMode!==Va.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _i.NumericDecimal:return this.emitNumericEntity(0,2);case _i.NumericHex:return this.emitNumericEntity(0,3);case _i.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _i.EntityStart:return 0}}};function XN(t){let i="",e=new dv(t,n=>i+=XE(n));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){i+=r.slice(a,s),e.startEntity(o);let c=e.write(r,s+1);if(c<0){a=s+e.end();break}a=s+c,s=c===0?a+1:a}let l=i+r.slice(a);return i="",l}}function yQ(t,i,e,n){let r=(i&Jl.BRANCH_LENGTH)>>7,o=i&Jl.JUMP_TABLE;if(r===0)return o!==0&&n===o?e:-1;if(o){let l=n-o;return l<0||l>=r?-1:t[e+l]-1}let a=e,s=a+r-1;for(;a<=s;){let l=a+s>>>1,c=t[l];if(c<n)a=l+1;else if(c>n)s=l-1;else return t[l+r]}return-1}var xQ=XN(YN),XRe=XN(KN);function Vs(t,i=Va.Legacy){return xQ(t,i)}function uv(t){for(let i=1;i<t.length;i++)t[i][0]+=t[i-1][0]+1;return t}var CQ=new Map(uv([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[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,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[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,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[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,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[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,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(uv([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(uv([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[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,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[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,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[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,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[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,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(uv([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[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,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[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,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var wQ=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),EQ=String.prototype.codePointAt!=null?(t,i)=>t.codePointAt(i):(t,i)=>(t.charCodeAt(i)&64512)===55296?(t.charCodeAt(i)-55296)*1024+t.charCodeAt(i+1)-56320+65536:t.charCodeAt(i);function tD(t,i){return function(n){let r,o=0,a="";for(;r=t.exec(n);)o!==r.index&&(a+=n.substring(o,r.index)),a+=i.get(r[0].charCodeAt(0)),o=r.index+1;return a+n.substring(o)}}var JN=tD(/[&<>'"]/g,wQ),e3=tD(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t3=tD(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));function kQ(t){return Object.prototype.toString.call(t)}function mv(t){return kQ(t)==="[object String]"}var MQ=Object.prototype.hasOwnProperty;function TQ(t,i){return MQ.call(t,i)}function Qd(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if(typeof e!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach(function(n){t[n]=e[n]})}}),t}function iD(t,i,e){return[].concat(t.slice(0,i),e,t.slice(i+1))}function hv(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Vh(t){if(t>65535){t-=65536;let i=55296+(t>>10),e=56320+(t&1023);return String.fromCharCode(i,e)}return String.fromCharCode(t)}var r3=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,IQ=/&([a-z#][a-z0-9]{1,31});/gi,AQ=new RegExp(r3.source+"|"+IQ.source,"gi"),RQ=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function OQ(t,i){if(i.charCodeAt(0)===35&&RQ.test(i)){let n=i[1].toLowerCase()==="x"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return hv(n)?Vh(n):t}let e=Vs(t);return e!==t?e:t}function PQ(t){return t.indexOf("\\")<0?t:t.replace(r3,"$1")}function ja(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(AQ,function(i,e,n){return e||OQ(i,n)})}var FQ=/[&<>"]/,NQ=/[&<>"]/g,LQ={"&":"&","<":"<",">":">",'"':"""};function BQ(t){return LQ[t]}function Ha(t){return FQ.test(t)?t.replace(NQ,BQ):t}var zQ=/[.?*+^$[\]\\(){}|-]/g;function VQ(t){return t.replace(zQ,"\\$&")}function Ft(t){switch(t){case 9:case 32:return!0}return!1}function ec(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function tc(t){return qd.test(t)||lv.test(t)}function nc(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ic(t){return t=t.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(t=t.replace(/ẞ/g,"\xDF")),t.toLowerCase().toUpperCase()}var jQ={mdurl:ov,ucmicro:YE};var lD={};Kh(lD,{parseLinkDestination:()=>aD,parseLinkLabel:()=>oD,parseLinkTitle:()=>sD});function oD(t,i,e){let n,r,o,a,s=t.posMax,l=t.pos;for(t.pos=i+1,n=1;t.pos<s;){if(o=t.src.charCodeAt(t.pos),o===93&&(n--,n===0)){r=!0;break}if(a=t.pos,t.md.inline.skipToken(t),o===91){if(a===t.pos-1)n++;else if(e)return t.pos=l,-1}}let c=-1;return r&&(c=t.pos),t.pos=l,c}function aD(t,i,e){let n,r=i,o={ok:!1,pos:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<e;){if(n=t.charCodeAt(r),n===10||n===60)return o;if(n===62)return o.pos=r+1,o.str=ja(t.slice(i+1,r)),o.ok=!0,o;if(n===92&&r+1<e){r+=2;continue}r++}return o}let a=0;for(;r<e&&(n=t.charCodeAt(r),!(n===32||n<32||n===127));){if(n===92&&r+1<e){if(t.charCodeAt(r+1)===32)break;r+=2;continue}if(n===40&&(a++,a>32))return o;if(n===41){if(a===0)break;a--}r++}return i===r||a!==0||(o.str=ja(t.slice(i,r)),o.pos=r,o.ok=!0),o}function sD(t,i,e,n){let r,o=i,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(o>=e)return a;let s=t.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;i++,o++,s===40&&(s=41),a.marker=s}for(;o<e;){if(r=t.charCodeAt(o),r===a.marker)return a.pos=o+1,a.str+=ja(t.slice(i,o)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&o+1<e&&o++,o++}return a.can_continue=!0,a.str+=ja(t.slice(i,o)),a}var ia={};ia.code_inline=function(t,i,e,n,r){let o=t[i];return"<code"+r.renderAttrs(o)+">"+Ha(o.content)+"</code>"};ia.code_block=function(t,i,e,n,r){let o=t[i];return"<pre"+r.renderAttrs(o)+"><code>"+Ha(t[i].content)+`</code></pre>
`};ia.fence=function(t,i,e,n,r){let o=t[i],a=o.info?ja(o.info).trim():"",s="",l="";if(a){let d=a.split(/(\s+)/g);s=d[0],l=d.slice(2).join("")}let c;if(e.highlight?c=e.highlight(o.content,s,l)||Ha(o.content):c=Ha(o.content),c.indexOf("<pre")===0)return c+`
`;if(a){let d=o.attrIndex("class"),h=o.attrs?o.attrs.slice():[];d<0?h.push(["class",e.langPrefix+s]):(h[d]=h[d].slice(),h[d][1]+=" "+e.langPrefix+s);let b={attrs:h};return`<pre><code${r.renderAttrs(b)}>${c}</code></pre>
`}return`<pre><code${r.renderAttrs(o)}>${c}</code></pre>
`};ia.image=function(t,i,e,n,r){let o=t[i];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,e,n),r.renderToken(t,i,e)};ia.hardbreak=function(t,i,e){return e.xhtmlOut?`<br />
`:`<br>
`};ia.softbreak=function(t,i,e){return e.breaks?e.xhtmlOut?`<br />
`:`<br>
`:`
`};ia.text=function(t,i){return Ha(t[i].content)};ia.html_block=function(t,i){return t[i].content};ia.html_inline=function(t,i){return t[i].content};function Zd(){this.rules=Qd({},ia)}Zd.prototype.renderAttrs=function(i){let e,n,r;if(!i.attrs)return"";for(r="",e=0,n=i.attrs.length;e<n;e++)r+=" "+Ha(i.attrs[e][0])+'="'+Ha(i.attrs[e][1])+'"';return r};Zd.prototype.renderToken=function(i,e,n){let r=i[e],o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&e&&i[e-1].hidden&&(o+=`
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&e+1<i.length)){let s=i[e+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(a=!1)}return o+=a?`>
`:">",o};Zd.prototype.renderInline=function(t,i,e){let n="",r=this.rules;for(let o=0,a=t.length;o<a;o++){let s=t[o].type;typeof r[s]<"u"?n+=r[s](t,o,i,e,this):n+=this.renderToken(t,o,i)}return n};Zd.prototype.renderInlineAsText=function(t,i,e){let n="";for(let r=0,o=t.length;r<o;r++)switch(t[r].type){case"text":n+=t[r].content;break;case"image":n+=this.renderInlineAsText(t[r].children,i,e);break;case"html_inline":case"html_block":n+=t[r].content;break;case"softbreak":case"hardbreak":n+=`
`;break;default:}return n};Zd.prototype.render=function(t,i,e){let n="",r=this.rules;for(let o=0,a=t.length;o<a;o++){let s=t[o].type;s==="inline"?n+=this.renderInline(t[o].children,i,e):typeof r[s]<"u"?n+=r[s](t,o,i,e,this):n+=this.renderToken(t,o,i,e)}return n};var o3=Zd;function Eo(){this.__rules__=[],this.__cache__=null}Eo.prototype.__find__=function(t){for(let i=0;i<this.__rules__.length;i++)if(this.__rules__[i].name===t)return i;return-1};Eo.prototype.__compile__=function(){let t=this,i=[""];t.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(n){i.indexOf(n)<0&&i.push(n)})}),t.__cache__={},i.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))})})};Eo.prototype.at=function(t,i,e){let n=this.__find__(t),r=e||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=i,this.__rules__[n].alt=r.alt||[],this.__cache__=null};Eo.prototype.before=function(t,i,e,n){let r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:i,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Eo.prototype.after=function(t,i,e,n){let r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:i,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Eo.prototype.push=function(t,i,e){let n=e||{};this.__rules__.push({name:t,enabled:!0,fn:i,alt:n.alt||[]}),this.__cache__=null};Eo.prototype.enable=function(t,i){Array.isArray(t)||(t=[t]);let e=[];return t.forEach(function(n){let r=this.__find__(n);if(r<0){if(i)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!0,e.push(n)},this),this.__cache__=null,e};Eo.prototype.enableOnly=function(t,i){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(t,i)};Eo.prototype.disable=function(t,i){Array.isArray(t)||(t=[t]);let e=[];return t.forEach(function(n){let r=this.__find__(n);if(r<0){if(i)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!1,e.push(n)},this),this.__cache__=null,e};Eo.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var rc=Eo;function Yd(t,i,e){this.type=t,this.tag=i,this.attrs=null,this.map=null,this.nesting=e,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Yd.prototype.attrIndex=function(i){if(!this.attrs)return-1;let e=this.attrs;for(let n=0,r=e.length;n<r;n++)if(e[n][0]===i)return n;return-1};Yd.prototype.attrPush=function(i){this.attrs?this.attrs.push(i):this.attrs=[i]};Yd.prototype.attrSet=function(i,e){let n=this.attrIndex(i),r=[i,e];n<0?this.attrPush(r):this.attrs[n]=r};Yd.prototype.attrGet=function(i){let e=this.attrIndex(i),n=null;return e>=0&&(n=this.attrs[e][1]),n};Yd.prototype.attrJoin=function(i,e){let n=this.attrIndex(i);n<0?this.attrPush([i,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e};var $a=Yd;function a3(t,i,e){this.src=t,this.env=e,this.tokens=[],this.inlineMode=!1,this.md=i}a3.prototype.Token=$a;var s3=a3;var HQ=/\r\n?|\n/g,$Q=/\0/g;function cD(t){let i;i=t.src.replace(HQ,`
`),i=i.replace($Q,"\uFFFD"),t.src=i}function dD(t){let i;t.inlineMode?(i=new t.Token("inline","",0),i.content=t.src,i.map=[0,1],i.children=[],t.tokens.push(i)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function uD(t){let i=t.tokens;for(let e=0,n=i.length;e<n;e++){let r=i[e];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}}function UQ(t){return/^<a[>\s]/i.test(t)}function WQ(t){return/^<\/a\s*>/i.test(t)}function mD(t){let i=t.tokens;if(t.md.options.linkify)for(let e=0,n=i.length;e<n;e++){if(i[e].type!=="inline"||!t.md.linkify.pretest(i[e].content))continue;let r=i[e].children,o=0;for(let a=r.length-1;a>=0;a--){let s=r[a];if(s.type==="link_close"){for(a--;r[a].level!==s.level&&r[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(UQ(s.content)&&o>0&&o--,WQ(s.content)&&o++),!(o>0)&&s.type==="text"&&t.md.linkify.test(s.content)){let l=s.content,c=t.md.linkify.match(l),d=[],h=s.level,b=0;c.length>0&&c[0].index===0&&a>0&&r[a-1].type==="text_special"&&(c=c.slice(1));for(let f=0;f<c.length;f++){let _=c[f].url,y=t.md.normalizeLink(_);if(!t.md.validateLink(y))continue;let C=c[f].text;c[f].schema?c[f].schema==="mailto:"&&!/^mailto:/i.test(C)?C=t.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=t.md.normalizeLinkText(C):C=t.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");let D=c[f].index;if(D>b){let L=new t.Token("text","",0);L.content=l.slice(b,D),L.level=h,d.push(L)}let k=new t.Token("link_open","a",1);k.attrs=[["href",y]],k.level=h++,k.markup="linkify",k.info="auto",d.push(k);let T=new t.Token("text","",0);T.content=C,T.level=h,d.push(T);let F=new t.Token("link_close","a",-1);F.level=--h,F.markup="linkify",F.info="auto",d.push(F),b=c[f].lastIndex}if(b<l.length){let f=new t.Token("text","",0);f.content=l.slice(b),f.level=h,d.push(f)}i[e].children=r=iD(r,a,d)}}}}var l3=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,GQ=/\((c|tm|r)\)/i,qQ=/\((c|tm|r)\)/ig,QQ={c:"\xA9",r:"\xAE",tm:"\u2122"};function ZQ(t,i){return QQ[i.toLowerCase()]}function YQ(t){let i=0;for(let e=t.length-1;e>=0;e--){let n=t[e];n.type==="text"&&!i&&(n.content=n.content.replace(qQ,ZQ)),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++}}function KQ(t){let i=0;for(let e=t.length-1;e>=0;e--){let n=t[e];n.type==="text"&&!i&&l3.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++}}function hD(t){let i;if(t.md.options.typographer)for(i=t.tokens.length-1;i>=0;i--)t.tokens[i].type==="inline"&&(GQ.test(t.tokens[i].content)&&YQ(t.tokens[i].children),l3.test(t.tokens[i].content)&&KQ(t.tokens[i].children))}var XQ=/['"]/,c3=/['"]/g,d3="\u2019";function pv(t,i,e){return t.slice(0,i)+e+t.slice(i+1)}function JQ(t,i){let e,n=[];for(let r=0;r<t.length;r++){let o=t[r],a=t[r].level;for(e=n.length-1;e>=0&&!(n[e].level<=a);e--);if(n.length=e+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){c3.lastIndex=l;let d=c3.exec(s);if(!d)break;let h=!0,b=!0;l=d.index+1;let f=d[0]==="'",_=32;if(d.index-1>=0)_=s.charCodeAt(d.index-1);else for(e=r-1;e>=0&&!(t[e].type==="softbreak"||t[e].type==="hardbreak");e--)if(t[e].content){_=t[e].content.charCodeAt(t[e].content.length-1);break}let y=32;if(l<c)y=s.charCodeAt(l);else for(e=r+1;e<t.length&&!(t[e].type==="softbreak"||t[e].type==="hardbreak");e++)if(t[e].content){y=t[e].content.charCodeAt(0);break}let C=nc(_)||tc(String.fromCharCode(_)),D=nc(y)||tc(String.fromCharCode(y)),k=ec(_),T=ec(y);if(T?h=!1:D&&(k||C||(h=!1)),k?b=!1:C&&(T||D||(b=!1)),y===34&&d[0]==='"'&&_>=48&&_<=57&&(b=h=!1),h&&b&&(h=C,b=D),!h&&!b){f&&(o.content=pv(o.content,d.index,d3));continue}if(b)for(e=n.length-1;e>=0;e--){let F=n[e];if(n[e].level<a)break;if(F.single===f&&n[e].level===a){F=n[e];let L,B;f?(L=i.md.options.quotes[2],B=i.md.options.quotes[3]):(L=i.md.options.quotes[0],B=i.md.options.quotes[1]),o.content=pv(o.content,d.index,B),t[F.token].content=pv(t[F.token].content,F.pos,L),l+=B.length-1,F.token===r&&(l+=L.length-1),s=o.content,c=s.length,n.length=e;continue e}}h?n.push({token:r,pos:d.index,single:f,level:a}):b&&f&&(o.content=pv(o.content,d.index,d3))}}}function pD(t){if(t.md.options.typographer)for(let i=t.tokens.length-1;i>=0;i--)t.tokens[i].type!=="inline"||!XQ.test(t.tokens[i].content)||JQ(t.tokens[i].children,t)}function fD(t){let i,e,n=t.tokens,r=n.length;for(let o=0;o<r;o++){if(n[o].type!=="inline")continue;let a=n[o].children,s=a.length;for(i=0;i<s;i++)a[i].type==="text_special"&&(a[i].type="text");for(i=e=0;i<s;i++)a[i].type==="text"&&i+1<s&&a[i+1].type==="text"?a[i+1].content=a[i].content+a[i+1].content:(i!==e&&(a[e]=a[i]),e++);i!==e&&(a.length=e)}}var gD=[["normalize",cD],["block",dD],["inline",uD],["linkify",mD],["replacements",hD],["smartquotes",pD],["text_join",fD]];function _D(){this.ruler=new rc;for(let t=0;t<gD.length;t++)this.ruler.push(gD[t][0],gD[t][1])}_D.prototype.process=function(t){let i=this.ruler.getRules("");for(let e=0,n=i.length;e<n;e++)i[e](t)};_D.prototype.State=s3;var u3=_D;function ra(t,i,e,n){this.src=t,this.md=i,this.env=e,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let r=this.src;for(let o=0,a=0,s=0,l=0,c=r.length,d=!1;a<c;a++){let h=r.charCodeAt(a);if(!d)if(Ft(h)){s++,h===9?l+=4-l%4:l++;continue}else d=!0;(h===10||a===c-1)&&(h!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),d=!1,s=0,l=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ra.prototype.push=function(t,i,e){let n=new $a(t,i,e);return n.block=!0,e<0&&this.level--,n.level=this.level,e>0&&this.level++,this.tokens.push(n),n};ra.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i]};ra.prototype.skipEmptyLines=function(i){for(let e=this.lineMax;i<e&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i};ra.prototype.skipSpaces=function(i){for(let e=this.src.length;i<e;i++){let n=this.src.charCodeAt(i);if(!Ft(n))break}return i};ra.prototype.skipSpacesBack=function(i,e){if(i<=e)return i;for(;i>e;)if(!Ft(this.src.charCodeAt(--i)))return i+1;return i};ra.prototype.skipChars=function(i,e){for(let n=this.src.length;i<n&&this.src.charCodeAt(i)===e;i++);return i};ra.prototype.skipCharsBack=function(i,e,n){if(i<=n)return i;for(;i>n;)if(e!==this.src.charCodeAt(--i))return i+1;return i};ra.prototype.getLines=function(i,e,n,r){if(i>=e)return"";let o=new Array(e-i);for(let a=0,s=i;s<e;s++,a++){let l=0,c=this.bMarks[s],d=c,h;for(s+1<e||r?h=this.eMarks[s]+1:h=this.eMarks[s];d<h&&l<n;){let b=this.src.charCodeAt(d);if(Ft(b))b===9?l+=4-(l+this.bsCount[s])%4:l++;else if(d-c<this.tShift[s])l++;else break;d++}l>n?o[a]=new Array(l-n+1).join(" ")+this.src.slice(d,h):o[a]=this.src.slice(d,h)}return o.join("")};ra.prototype.Token=$a;var m3=ra;var eZ=65536;function vD(t,i){let e=t.bMarks[i]+t.tShift[i],n=t.eMarks[i];return t.src.slice(e,n)}function h3(t){let i=[],e=t.length,n=0,r=t.charCodeAt(n),o=!1,a=0,s="";for(;n<e;)r===124&&(o?(s+=t.substring(a,n-1),a=n):(i.push(s+t.substring(a,n)),s="",a=n+1)),o=r===92,n++,r=t.charCodeAt(n);return i.push(s+t.substring(a)),i}function bD(t,i,e,n){if(i+2>e)return!1;let r=i+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let o=t.bMarks[r]+t.tShift[r];if(o>=t.eMarks[r])return!1;let a=t.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=t.eMarks[r])return!1;let s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!Ft(s)||a===45&&Ft(s))return!1;for(;o<t.eMarks[r];){let F=t.src.charCodeAt(o);if(F!==124&&F!==45&&F!==58&&!Ft(F))return!1;o++}let l=vD(t,i+1),c=l.split("|"),d=[];for(let F=0;F<c.length;F++){let L=c[F].trim();if(!L){if(F===0||F===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(L))return!1;L.charCodeAt(L.length-1)===58?d.push(L.charCodeAt(0)===58?"center":"right"):L.charCodeAt(0)===58?d.push("left"):d.push("")}if(l=vD(t,i).trim(),l.indexOf("|")===-1||t.sCount[i]-t.blkIndent>=4)return!1;c=h3(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let h=c.length;if(h===0||h!==d.length)return!1;if(n)return!0;let b=t.parentType;t.parentType="table";let f=t.md.block.ruler.getRules("blockquote"),_=t.push("table_open","table",1),y=[i,0];_.map=y;let C=t.push("thead_open","thead",1);C.map=[i,i+1];let D=t.push("tr_open","tr",1);D.map=[i,i+1];for(let F=0;F<c.length;F++){let L=t.push("th_open","th",1);d[F]&&(L.attrs=[["style","text-align:"+d[F]]]);let B=t.push("inline","",0);B.content=c[F].trim(),B.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let k,T=0;for(r=i+2;r<e&&!(t.sCount[r]<t.blkIndent);r++){let F=!1;for(let B=0,V=f.length;B<V;B++)if(f[B](t,r,e,!0)){F=!0;break}if(F||(l=vD(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4||(c=h3(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),T+=h-c.length,T>eZ))break;if(r===i+2){let B=t.push("tbody_open","tbody",1);B.map=k=[i+2,0]}let L=t.push("tr_open","tr",1);L.map=[r,r+1];for(let B=0;B<h;B++){let V=t.push("td_open","td",1);d[B]&&(V.attrs=[["style","text-align:"+d[B]]]);let ne=t.push("inline","",0);ne.content=c[B]?c[B].trim():"",ne.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return k&&(t.push("tbody_close","tbody",-1),k[1]=r),t.push("table_close","table",-1),y[1]=r,t.parentType=b,t.line=r,!0}function yD(t,i,e){if(t.sCount[i]-t.blkIndent<4)return!1;let n=i+1,r=n;for(;n<e;){if(t.isEmpty(n)){n++;continue}if(t.sCount[n]-t.blkIndent>=4){n++,r=n;continue}break}t.line=r;let o=t.push("code_block","code",0);return o.content=t.getLines(i,r,4+t.blkIndent,!1)+`
`,o.map=[i,t.line],!0}function xD(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4||r+3>o)return!1;let a=t.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let s=r;r=t.skipChars(r,a);let l=r-s;if(l<3)return!1;let c=t.src.slice(s,r),d=t.src.slice(r,o);if(a===96&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let h=i,b=!1;for(;h++,!(h>=e||(r=s=t.bMarks[h]+t.tShift[h],o=t.eMarks[h],r<o&&t.sCount[h]<t.blkIndent));)if(t.src.charCodeAt(r)===a&&!(t.sCount[h]-t.blkIndent>=4)&&(r=t.skipChars(r,a),!(r-s<l)&&(r=t.skipSpaces(r),!(r<o)))){b=!0;break}l=t.sCount[i],t.line=h+(b?1:0);let f=t.push("fence","code",0);return f.info=d,f.content=t.getLines(i+1,h,l,!0),f.markup=c,f.map=[i,t.line],!0}function CD(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i],a=t.lineMax;if(t.sCount[i]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(n)return!0;let s=[],l=[],c=[],d=[],h=t.md.block.ruler.getRules("blockquote"),b=t.parentType;t.parentType="blockquote";let f=!1,_;for(_=i;_<e;_++){let T=t.sCount[_]<t.blkIndent;if(r=t.bMarks[_]+t.tShift[_],o=t.eMarks[_],r>=o)break;if(t.src.charCodeAt(r++)===62&&!T){let L=t.sCount[_]+1,B,V;t.src.charCodeAt(r)===32?(r++,L++,V=!1,B=!0):t.src.charCodeAt(r)===9?(B=!0,(t.bsCount[_]+L)%4===3?(r++,L++,V=!1):V=!0):B=!1;let ne=L;for(s.push(t.bMarks[_]),t.bMarks[_]=r;r<o;){let Re=t.src.charCodeAt(r);if(Ft(Re))Re===9?ne+=4-(ne+t.bsCount[_]+(V?1:0))%4:ne++;else break;r++}f=r>=o,l.push(t.bsCount[_]),t.bsCount[_]=t.sCount[_]+1+(B?1:0),c.push(t.sCount[_]),t.sCount[_]=ne-L,d.push(t.tShift[_]),t.tShift[_]=r-t.bMarks[_];continue}if(f)break;let F=!1;for(let L=0,B=h.length;L<B;L++)if(h[L](t,_,e,!0)){F=!0;break}if(F){t.lineMax=_,t.blkIndent!==0&&(s.push(t.bMarks[_]),l.push(t.bsCount[_]),d.push(t.tShift[_]),c.push(t.sCount[_]),t.sCount[_]-=t.blkIndent);break}s.push(t.bMarks[_]),l.push(t.bsCount[_]),d.push(t.tShift[_]),c.push(t.sCount[_]),t.sCount[_]=-1}let y=t.blkIndent;t.blkIndent=0;let C=t.push("blockquote_open","blockquote",1);C.markup=">";let D=[i,0];C.map=D,t.md.block.tokenize(t,i,_);let k=t.push("blockquote_close","blockquote",-1);k.markup=">",t.lineMax=a,t.parentType=b,D[1]=t.line;for(let T=0;T<d.length;T++)t.bMarks[T+i]=s[T],t.tShift[T+i]=d[T],t.sCount[T+i]=c[T],t.bsCount[T+i]=l[T];return t.blkIndent=y,!0}function wD(t,i,e,n){let r=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4)return!1;let o=t.bMarks[i]+t.tShift[i],a=t.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<r;){let c=t.src.charCodeAt(o++);if(c!==a&&!Ft(c))return!1;c===a&&s++}if(s<3)return!1;if(n)return!0;t.line=i+1;let l=t.push("hr","hr",0);return l.map=[i,t.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function p3(t,i){let e=t.eMarks[i],n=t.bMarks[i]+t.tShift[i],r=t.src.charCodeAt(n++);if(r!==42&&r!==45&&r!==43)return-1;if(n<e){let o=t.src.charCodeAt(n);if(!Ft(o))return-1}return n}function f3(t,i){let e=t.bMarks[i]+t.tShift[i],n=t.eMarks[i],r=e;if(r+1>=n)return-1;let o=t.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=t.src.charCodeAt(r++),o>=48&&o<=57){if(r-e>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<n&&(o=t.src.charCodeAt(r),!Ft(o))?-1:r}function tZ(t,i){let e=t.level+2;for(let n=i+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===e&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}function ED(t,i,e,n){let r,o,a,s,l=i,c=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let d=!1;n&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(d=!0);let h,b,f;if((f=f3(t,l))>=0){if(h=!0,a=t.bMarks[l]+t.tShift[l],b=Number(t.src.slice(a,f-1)),d&&b!==1)return!1}else if((f=p3(t,l))>=0)h=!1;else return!1;if(d&&t.skipSpaces(f)>=t.eMarks[l])return!1;if(n)return!0;let _=t.src.charCodeAt(f-1),y=t.tokens.length;h?(s=t.push("ordered_list_open","ol",1),b!==1&&(s.attrs=[["start",b]])):s=t.push("bullet_list_open","ul",1);let C=[l,0];s.map=C,s.markup=String.fromCharCode(_);let D=!1,k=t.md.block.ruler.getRules("list"),T=t.parentType;for(t.parentType="list";l<e;){o=f,r=t.eMarks[l];let F=t.sCount[l]+f-(t.bMarks[l]+t.tShift[l]),L=F;for(;o<r;){let _e=t.src.charCodeAt(o);if(_e===9)L+=4-(L+t.bsCount[l])%4;else if(_e===32)L++;else break;o++}let B=o,V;B>=r?V=1:V=L-F,V>4&&(V=1);let ne=F+V;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(_);let Re=[l,0];s.map=Re,h&&(s.info=t.src.slice(a,f-1));let P=t.tight,re=t.tShift[l],w=t.sCount[l],de=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=ne,t.tight=!0,t.tShift[l]=B-t.bMarks[l],t.sCount[l]=L,B>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,e):t.md.block.tokenize(t,l,e,!0),(!t.tight||D)&&(c=!1),D=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=de,t.tShift[l]=re,t.sCount[l]=w,t.tight=P,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(_),l=t.line,Re[1]=l,l>=e||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let st=!1;for(let _e=0,ge=k.length;_e<ge;_e++)if(k[_e](t,l,e,!0)){st=!0;break}if(st)break;if(h){if(f=f3(t,l),f<0)break;a=t.bMarks[l]+t.tShift[l]}else if(f=p3(t,l),f<0)break;if(_!==t.src.charCodeAt(f-1))break}return h?s=t.push("ordered_list_close","ol",-1):s=t.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(_),C[1]=l,t.line=l,t.parentType=T,c&&tZ(t,y),!0}function DD(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i],a=i+1;if(t.sCount[i]-t.blkIndent>=4||t.src.charCodeAt(r)!==91)return!1;function s(k){let T=t.lineMax;if(k>=T||t.isEmpty(k))return null;let F=!1;if(t.sCount[k]-t.blkIndent>3&&(F=!0),t.sCount[k]<0&&(F=!0),!F){let V=t.md.block.ruler.getRules("reference"),ne=t.parentType;t.parentType="reference";let Re=!1;for(let P=0,re=V.length;P<re;P++)if(V[P](t,k,T,!0)){Re=!0;break}if(t.parentType=ne,Re)return null}let L=t.bMarks[k]+t.tShift[k],B=t.eMarks[k];return t.src.slice(L,B+1)}let l=t.src.slice(r,o+1);o=l.length;let c=-1;for(r=1;r<o;r++){let k=l.charCodeAt(r);if(k===91)return!1;if(k===93){c=r;break}else if(k===10){let T=s(a);T!==null&&(l+=T,o=l.length,a++)}else if(k===92&&(r++,r<o&&l.charCodeAt(r)===10)){let T=s(a);T!==null&&(l+=T,o=l.length,a++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<o;r++){let k=l.charCodeAt(r);if(k===10){let T=s(a);T!==null&&(l+=T,o=l.length,a++)}else if(!Ft(k))break}let d=t.md.helpers.parseLinkDestination(l,r,o);if(!d.ok)return!1;let h=t.md.normalizeLink(d.str);if(!t.md.validateLink(h))return!1;r=d.pos;let b=r,f=a,_=r;for(;r<o;r++){let k=l.charCodeAt(r);if(k===10){let T=s(a);T!==null&&(l+=T,o=l.length,a++)}else if(!Ft(k))break}let y=t.md.helpers.parseLinkTitle(l,r,o);for(;y.can_continue;){let k=s(a);if(k===null)break;l+=k,r=o,o=l.length,a++,y=t.md.helpers.parseLinkTitle(l,r,o,y)}let C;for(r<o&&_!==r&&y.ok?(C=y.str,r=y.pos):(C="",r=b,a=f);r<o;){let k=l.charCodeAt(r);if(!Ft(k))break;r++}if(r<o&&l.charCodeAt(r)!==10&&C)for(C="",r=b,a=f;r<o;){let k=l.charCodeAt(r);if(!Ft(k))break;r++}if(r<o&&l.charCodeAt(r)!==10)return!1;let D=ic(l.slice(1,c));return D?(n||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[D]>"u"&&(t.env.references[D]={title:C,href:h}),t.line=a),!0):!1}var g3=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var nZ="[a-zA-Z_:][a-zA-Z0-9:._-]*",iZ="[^\"'=<>`\\x00-\\x20]+",rZ="'[^']*'",oZ='"[^"]*"',aZ="(?:"+iZ+"|"+rZ+"|"+oZ+")",sZ="(?:\\s+"+nZ+"(?:\\s*=\\s*"+aZ+")?)",_3="<[A-Za-z][A-Za-z0-9\\-]*"+sZ+"*\\s*\\/?>",v3="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",lZ="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",cZ="<[?][\\s\\S]*?[?]>",dZ="<![A-Za-z][^>]*>",uZ="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",b3=new RegExp("^(?:"+_3+"|"+v3+"|"+lZ+"|"+cZ+"|"+dZ+"|"+uZ+")"),y3=new RegExp("^(?:"+_3+"|"+v3+")");var Kd=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+g3.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(y3.source+"\\s*$"),/^$/,!1]];function SD(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let a=t.src.slice(r,o),s=0;for(;s<Kd.length&&!Kd[s][0].test(a);s++);if(s===Kd.length)return!1;if(n)return Kd[s][2];let l=i+1;if(!Kd[s][1].test(a)){for(;l<e&&!(t.sCount[l]<t.blkIndent);l++)if(r=t.bMarks[l]+t.tShift[l],o=t.eMarks[l],a=t.src.slice(r,o),Kd[s][1].test(a)){a.length!==0&&l++;break}}t.line=l;let c=t.push("html_block","",0);return c.map=[i,l],c.content=t.getLines(i,l,t.blkIndent,!0),!0}function kD(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4)return!1;let a=t.src.charCodeAt(r);if(a!==35||r>=o)return!1;let s=1;for(a=t.src.charCodeAt(++r);a===35&&r<o&&s<=6;)s++,a=t.src.charCodeAt(++r);if(s>6||r<o&&!Ft(a))return!1;if(n)return!0;o=t.skipSpacesBack(o,r);let l=t.skipCharsBack(o,35,r);l>r&&Ft(t.src.charCodeAt(l-1))&&(o=l),t.line=i+1;let c=t.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[i,t.line];let d=t.push("inline","",0);d.content=t.src.slice(r,o).trim(),d.map=[i,t.line],d.children=[];let h=t.push("heading_close","h"+String(s),-1);return h.markup="########".slice(0,s),!0}function MD(t,i,e){let n=t.md.block.ruler.getRules("paragraph");if(t.sCount[i]-t.blkIndent>=4)return!1;let r=t.parentType;t.parentType="paragraph";let o=0,a,s=i+1;for(;s<e&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let f=t.bMarks[s]+t.tShift[s],_=t.eMarks[s];if(f<_&&(a=t.src.charCodeAt(f),(a===45||a===61)&&(f=t.skipChars(f,a),f=t.skipSpaces(f),f>=_))){o=a===61?1:2;break}}if(t.sCount[s]<0)continue;let b=!1;for(let f=0,_=n.length;f<_;f++)if(n[f](t,s,e,!0)){b=!0;break}if(b)break}if(!o)return!1;let l=t.getLines(i,s,t.blkIndent,!1).trim();t.line=s+1;let c=t.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[i,t.line];let d=t.push("inline","",0);d.content=l,d.map=[i,t.line-1],d.children=[];let h=t.push("heading_close","h"+String(o),-1);return h.markup=String.fromCharCode(a),t.parentType=r,!0}function TD(t,i,e){let n=t.md.block.ruler.getRules("paragraph"),r=t.parentType,o=i+1;for(t.parentType="paragraph";o<e&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3||t.sCount[o]<0)continue;let c=!1;for(let d=0,h=n.length;d<h;d++)if(n[d](t,o,e,!0)){c=!0;break}if(c)break}let a=t.getLines(i,o,t.blkIndent,!1).trim();t.line=o;let s=t.push("paragraph_open","p",1);s.map=[i,t.line];let l=t.push("inline","",0);return l.content=a,l.map=[i,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0}var fv=[["table",bD,["paragraph","reference"]],["code",yD],["fence",xD,["paragraph","reference","blockquote","list"]],["blockquote",CD,["paragraph","reference","blockquote","list"]],["hr",wD,["paragraph","reference","blockquote","list"]],["list",ED,["paragraph","reference","blockquote"]],["reference",DD],["html_block",SD,["paragraph","reference","blockquote"]],["heading",kD,["paragraph","reference","blockquote"]],["lheading",MD],["paragraph",TD]];function gv(){this.ruler=new rc;for(let t=0;t<fv.length;t++)this.ruler.push(fv[t][0],fv[t][1],{alt:(fv[t][2]||[]).slice()})}gv.prototype.tokenize=function(t,i,e){let n=this.ruler.getRules(""),r=n.length,o=t.md.options.maxNesting,a=i,s=!1;for(;a<e&&(t.line=a=t.skipEmptyLines(a),!(a>=e||t.sCount[a]<t.blkIndent));){if(t.level>=o){t.line=e;break}let l=t.line,c=!1;for(let d=0;d<r;d++)if(c=n[d](t,a,e,!1),c){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),a=t.line,a<e&&t.isEmpty(a)&&(s=!0,a++,t.line=a)}};gv.prototype.parse=function(t,i,e,n){if(!t)return;let r=new this.State(t,i,e,n);this.tokenize(r,r.line,r.lineMax)};gv.prototype.State=m3;var x3=gv;function jh(t,i,e,n){this.src=t,this.env=e,this.md=i,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}jh.prototype.pushPending=function(){let t=new $a("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};jh.prototype.push=function(t,i,e){this.pending&&this.pushPending();let n=new $a(t,i,e),r=null;return e<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,e>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n};jh.prototype.scanDelims=function(t,i){let e=this.posMax,n=this.src.charCodeAt(t),r=t>0?this.src.charCodeAt(t-1):32,o=t;for(;o<e&&this.src.charCodeAt(o)===n;)o++;let a=o-t,s=o<e?this.src.charCodeAt(o):32,l=nc(r)||tc(String.fromCharCode(r)),c=nc(s)||tc(String.fromCharCode(s)),d=ec(r),h=ec(s),b=!h&&(!c||d||l),f=!d&&(!l||h||c);return{can_open:b&&(i||!f||l),can_close:f&&(i||!b||c),length:a}};jh.prototype.Token=$a;var C3=jh;function mZ(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function ID(t,i){let e=t.pos;for(;e<t.posMax&&!mZ(t.src.charCodeAt(e));)e++;return e===t.pos?!1:(i||(t.pending+=t.src.slice(t.pos,e)),t.pos=e,!0)}var hZ=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function AD(t,i){if(!t.md.options.linkify||t.linkLevel>0)return!1;let e=t.pos,n=t.posMax;if(e+3>n||t.src.charCodeAt(e)!==58||t.src.charCodeAt(e+1)!==47||t.src.charCodeAt(e+2)!==47)return!1;let r=t.pending.match(hZ);if(!r)return!1;let o=r[1],a=t.md.linkify.matchAtStart(t.src.slice(e-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");let l=t.md.normalizeLink(s);if(!t.md.validateLink(l))return!1;if(!i){t.pending=t.pending.slice(0,-o.length);let c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";let d=t.push("text","",0);d.content=t.md.normalizeLinkText(s);let h=t.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return t.pos+=s.length-o.length,!0}function RD(t,i){let e=t.pos;if(t.src.charCodeAt(e)!==10)return!1;let n=t.pending.length-1,r=t.posMax;if(!i)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(e++;e<r&&Ft(t.src.charCodeAt(e));)e++;return t.pos=e,!0}var OD=[];for(let t=0;t<256;t++)OD.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){OD[t.charCodeAt(0)]=1});function PD(t,i){let e=t.pos,n=t.posMax;if(t.src.charCodeAt(e)!==92||(e++,e>=n))return!1;let r=t.src.charCodeAt(e);if(r===10){for(i||t.push("hardbreak","br",0),e++;e<n&&(r=t.src.charCodeAt(e),!!Ft(r));)e++;return t.pos=e,!0}let o=t.src[e];if(r>=55296&&r<=56319&&e+1<n){let s=t.src.charCodeAt(e+1);s>=56320&&s<=57343&&(o+=t.src[e+1],e++)}let a="\\"+o;if(!i){let s=t.push("text_special","",0);r<256&&OD[r]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return t.pos=e+1,!0}function FD(t,i){let e=t.pos;if(t.src.charCodeAt(e)!==96)return!1;let r=e;e++;let o=t.posMax;for(;e<o&&t.src.charCodeAt(e)===96;)e++;let a=t.src.slice(r,e),s=a.length;if(t.backticksScanned&&(t.backticks[s]||0)<=r)return i||(t.pending+=a),t.pos+=s,!0;let l=e,c;for(;(c=t.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&t.src.charCodeAt(l)===96;)l++;let d=l-c;if(d===s){if(!i){let h=t.push("code_inline","code",0);h.markup=a,h.content=t.src.slice(e,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[d]=c}return t.backticksScanned=!0,i||(t.pending+=a),t.pos+=s,!0}function pZ(t,i){let e=t.pos,n=t.src.charCodeAt(e);if(i||n!==126)return!1;let r=t.scanDelims(t.pos,!0),o=r.length,a=String.fromCharCode(n);if(o<2)return!1;let s;o%2&&(s=t.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=t.push("text","",0),s.content=a+a,t.delimiters.push({marker:n,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function w3(t,i){let e,n=[],r=i.length;for(let o=0;o<r;o++){let a=i[o];if(a.marker!==126||a.end===-1)continue;let s=i[a.end];e=t.tokens[a.token],e.type="s_open",e.tag="s",e.nesting=1,e.markup="~~",e.content="",e=t.tokens[s.token],e.type="s_close",e.tag="s",e.nesting=-1,e.markup="~~",e.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&n.push(s.token-1)}for(;n.length;){let o=n.pop(),a=o+1;for(;a<t.tokens.length&&t.tokens[a].type==="s_close";)a++;a--,o!==a&&(e=t.tokens[a],t.tokens[a]=t.tokens[o],t.tokens[o]=e)}}function fZ(t){let i=t.tokens_meta,e=t.tokens_meta.length;w3(t,t.delimiters);for(let n=0;n<e;n++)i[n]&&i[n].delimiters&&w3(t,i[n].delimiters)}var ND={tokenize:pZ,postProcess:fZ};function gZ(t,i){let e=t.pos,n=t.src.charCodeAt(e);if(i||n!==95&&n!==42)return!1;let r=t.scanDelims(t.pos,n===42);for(let o=0;o<r.length;o++){let a=t.push("text","",0);a.content=String.fromCharCode(n),t.delimiters.push({marker:n,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return t.pos+=r.length,!0}function E3(t,i){let e=i.length;for(let n=e-1;n>=0;n--){let r=i[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let o=i[r.end],a=n>0&&i[n-1].end===r.end+1&&i[n-1].marker===r.marker&&i[n-1].token===r.token-1&&i[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";let c=t.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(t.tokens[i[n-1].token].content="",t.tokens[i[r.end+1].token].content="",n--)}}function _Z(t){let i=t.tokens_meta,e=t.tokens_meta.length;E3(t,t.delimiters);for(let n=0;n<e;n++)i[n]&&i[n].delimiters&&E3(t,i[n].delimiters)}var LD={tokenize:gZ,postProcess:_Z};function BD(t,i){let e,n,r,o,a="",s="",l=t.pos,c=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;let d=t.pos,h=t.posMax,b=t.pos+1,f=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(f<0)return!1;let _=f+1;if(_<h&&t.src.charCodeAt(_)===40){for(c=!1,_++;_<h&&(e=t.src.charCodeAt(_),!(!Ft(e)&&e!==10));_++);if(_>=h)return!1;if(l=_,r=t.md.helpers.parseLinkDestination(t.src,_,t.posMax),r.ok){for(a=t.md.normalizeLink(r.str),t.md.validateLink(a)?_=r.pos:a="",l=_;_<h&&(e=t.src.charCodeAt(_),!(!Ft(e)&&e!==10));_++);if(r=t.md.helpers.parseLinkTitle(t.src,_,t.posMax),_<h&&l!==_&&r.ok)for(s=r.str,_=r.pos;_<h&&(e=t.src.charCodeAt(_),!(!Ft(e)&&e!==10));_++);}(_>=h||t.src.charCodeAt(_)!==41)&&(c=!0),_++}if(c){if(typeof t.env.references>"u")return!1;if(_<h&&t.src.charCodeAt(_)===91?(l=_+1,_=t.md.helpers.parseLinkLabel(t,_),_>=0?n=t.src.slice(l,_++):_=f+1):_=f+1,n||(n=t.src.slice(b,f)),o=t.env.references[ic(n)],!o)return t.pos=d,!1;a=o.href,s=o.title}if(!i){t.pos=b,t.posMax=f;let y=t.push("link_open","a",1),C=[["href",a]];y.attrs=C,s&&C.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=_,t.posMax=h,!0}function zD(t,i){let e,n,r,o,a,s,l,c,d="",h=t.pos,b=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;let f=t.pos+2,_=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(_<0)return!1;if(o=_+1,o<b&&t.src.charCodeAt(o)===40){for(o++;o<b&&(e=t.src.charCodeAt(o),!(!Ft(e)&&e!==10));o++);if(o>=b)return!1;for(c=o,s=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),s.ok&&(d=t.md.normalizeLink(s.str),t.md.validateLink(d)?o=s.pos:d=""),c=o;o<b&&(e=t.src.charCodeAt(o),!(!Ft(e)&&e!==10));o++);if(s=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<b&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<b&&(e=t.src.charCodeAt(o),!(!Ft(e)&&e!==10));o++);else l="";if(o>=b||t.src.charCodeAt(o)!==41)return t.pos=h,!1;o++}else{if(typeof t.env.references>"u")return!1;if(o<b&&t.src.charCodeAt(o)===91?(c=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?r=t.src.slice(c,o++):o=_+1):o=_+1,r||(r=t.src.slice(f,_)),a=t.env.references[ic(r)],!a)return t.pos=h,!1;d=a.href,l=a.title}if(!i){n=t.src.slice(f,_);let y=[];t.md.inline.parse(n,t.md,t.env,y);let C=t.push("image","img",0),D=[["src",d],["alt",""]];C.attrs=D,C.children=y,C.content=n,l&&D.push(["title",l])}return t.pos=o,t.posMax=b,!0}var vZ=/^([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])?)*)$/,bZ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function VD(t,i){let e=t.pos;if(t.src.charCodeAt(e)!==60)return!1;let n=t.pos,r=t.posMax;for(;;){if(++e>=r)return!1;let a=t.src.charCodeAt(e);if(a===60)return!1;if(a===62)break}let o=t.src.slice(n+1,e);if(bZ.test(o)){let a=t.md.normalizeLink(o);if(!t.md.validateLink(a))return!1;if(!i){let s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);let c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}if(vZ.test(o)){let a=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(a))return!1;if(!i){let s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);let c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}return!1}function yZ(t){return/^<a[>\s]/i.test(t)}function xZ(t){return/^<\/a\s*>/i.test(t)}function CZ(t){let i=t|32;return i>=97&&i<=122}function jD(t,i){if(!t.md.options.html)return!1;let e=t.posMax,n=t.pos;if(t.src.charCodeAt(n)!==60||n+2>=e)return!1;let r=t.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!CZ(r))return!1;let o=t.src.slice(n).match(b3);if(!o)return!1;if(!i){let a=t.push("html_inline","",0);a.content=o[0],yZ(a.content)&&t.linkLevel++,xZ(a.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}var wZ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,EZ=/^&([a-z][a-z0-9]{1,31});/i;function HD(t,i){let e=t.pos,n=t.posMax;if(t.src.charCodeAt(e)!==38||e+1>=n)return!1;if(t.src.charCodeAt(e+1)===35){let o=t.src.slice(e).match(wZ);if(o){if(!i){let a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=t.push("text_special","",0);s.content=hv(a)?Vh(a):Vh(65533),s.markup=o[0],s.info="entity"}return t.pos+=o[0].length,!0}}else{let o=t.src.slice(e).match(EZ);if(o){let a=Vs(o[0]);if(a!==o[0]){if(!i){let s=t.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return t.pos+=o[0].length,!0}}}return!1}function D3(t){let i={},e=t.length;if(!e)return;let n=0,r=-2,o=[];for(let a=0;a<e;a++){let s=t[a];if(o.push(0),(t[n].marker!==s.marker||r!==s.token-1)&&(n=a),r=s.token,s.length=s.length||0,!s.close)continue;i.hasOwnProperty(s.marker)||(i[s.marker]=[-1,-1,-1,-1,-1,-1]);let l=i[s.marker][(s.open?3:0)+s.length%3],c=n-o[n]-1,d=c;for(;c>l;c-=o[c]+1){let h=t[c];if(h.marker===s.marker&&h.open&&h.end<0){let b=!1;if((h.close||s.open)&&(h.length+s.length)%3===0&&(h.length%3!==0||s.length%3!==0)&&(b=!0),!b){let f=c>0&&!t[c-1].open?o[c-1]+1:0;o[a]=a-c+f,o[c]=f,s.open=!1,h.end=a,h.close=!1,d=-1,r=-2;break}}}d!==-1&&(i[s.marker][(s.open?3:0)+(s.length||0)%3]=d)}}function $D(t){let i=t.tokens_meta,e=t.tokens_meta.length;D3(t.delimiters);for(let n=0;n<e;n++)i[n]&&i[n].delimiters&&D3(i[n].delimiters)}function UD(t){let i,e,n=0,r=t.tokens,o=t.tokens.length;for(i=e=0;i<o;i++)r[i].nesting<0&&n--,r[i].level=n,r[i].nesting>0&&n++,r[i].type==="text"&&i+1<o&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==e&&(r[e]=r[i]),e++);i!==e&&(r.length=e)}var WD=[["text",ID],["linkify",AD],["newline",RD],["escape",PD],["backticks",FD],["strikethrough",ND.tokenize],["emphasis",LD.tokenize],["link",BD],["image",zD],["autolink",VD],["html_inline",jD],["entity",HD]],GD=[["balance_pairs",$D],["strikethrough",ND.postProcess],["emphasis",LD.postProcess],["fragments_join",UD]];function Hh(){this.ruler=new rc;for(let t=0;t<WD.length;t++)this.ruler.push(WD[t][0],WD[t][1]);this.ruler2=new rc;for(let t=0;t<GD.length;t++)this.ruler2.push(GD[t][0],GD[t][1])}Hh.prototype.skipToken=function(t){let i=t.pos,e=this.ruler.getRules(""),n=e.length,r=t.md.options.maxNesting,o=t.cache;if(typeof o[i]<"u"){t.pos=o[i];return}let a=!1;if(t.level<r){for(let s=0;s<n;s++)if(t.level++,a=e[s](t,!0),t.level--,a){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;a||t.pos++,o[i]=t.pos};Hh.prototype.tokenize=function(t){let i=this.ruler.getRules(""),e=i.length,n=t.posMax,r=t.md.options.maxNesting;for(;t.pos<n;){let o=t.pos,a=!1;if(t.level<r){for(let s=0;s<e;s++)if(a=i[s](t,!1),a){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Hh.prototype.parse=function(t,i,e,n){let r=new this.State(t,i,e,n);this.tokenize(r);let o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](r)};Hh.prototype.State=C3;var S3=Hh;function k3(t){let i={};t=t||{},i.src_Any=av.source,i.src_Cc=sv.source,i.src_Z=cv.source,i.src_P=qd.source,i.src_ZPCc=[i.src_Z,i.src_P,i.src_Cc].join("|"),i.src_ZCc=[i.src_Z,i.src_Cc].join("|");let e="[><\uFF5C]";return i.src_pseudo_letter="(?:(?!"+e+"|"+i.src_ZPCc+")"+i.src_Any+")",i.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",i.src_auth="(?:(?:(?!"+i.src_ZCc+"|[@/\\[\\]()]).)+@)?",i.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",i.src_host_terminator="(?=$|"+e+"|"+i.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+i.src_ZPCc+"))",i.src_path="(?:[/?#](?:(?!"+i.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+i.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+i.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+i.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+i.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+i.src_ZCc+"|[']).)+\\'|\\'(?="+i.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+i.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+i.src_ZCc+"|$)|;(?!"+i.src_ZCc+"|$)|\\!+(?!"+i.src_ZCc+"|[!]|$)|\\?(?!"+i.src_ZCc+"|[?]|$))+|\\/)?",i.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',i.src_xn="xn--[a-z0-9\\-]{1,59}",i.src_domain_root="(?:"+i.src_xn+"|"+i.src_pseudo_letter+"{1,63})",i.src_domain="(?:"+i.src_xn+"|(?:"+i.src_pseudo_letter+")|(?:"+i.src_pseudo_letter+"(?:-|"+i.src_pseudo_letter+"){0,61}"+i.src_pseudo_letter+"))",i.src_host="(?:(?:(?:(?:"+i.src_domain+")\\.)*"+i.src_domain+"))",i.tpl_host_fuzzy="(?:"+i.src_ip4+"|(?:(?:(?:"+i.src_domain+")\\.)+(?:%TLDS%)))",i.tpl_host_no_ip_fuzzy="(?:(?:(?:"+i.src_domain+")\\.)+(?:%TLDS%))",i.src_host_strict=i.src_host+i.src_host_terminator,i.tpl_host_fuzzy_strict=i.tpl_host_fuzzy+i.src_host_terminator,i.src_host_port_strict=i.src_host+i.src_port+i.src_host_terminator,i.tpl_host_port_fuzzy_strict=i.tpl_host_fuzzy+i.src_port+i.src_host_terminator,i.tpl_host_port_no_ip_fuzzy_strict=i.tpl_host_no_ip_fuzzy+i.src_port+i.src_host_terminator,i.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+i.src_ZPCc+"|>|$))",i.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+i.src_ZCc+")("+i.src_email_name+"@"+i.tpl_host_fuzzy_strict+")",i.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+i.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+i.tpl_host_port_fuzzy_strict+i.src_path+")",i.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+i.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+i.tpl_host_port_no_ip_fuzzy_strict+i.src_path+")",i}function qD(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function vv(t){return Object.prototype.toString.call(t)}function DZ(t){return vv(t)==="[object String]"}function SZ(t){return vv(t)==="[object Object]"}function kZ(t){return vv(t)==="[object RegExp]"}function M3(t){return vv(t)==="[object Function]"}function MZ(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var I3={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function TZ(t){return Object.keys(t||{}).reduce(function(i,e){return i||I3.hasOwnProperty(e)},!1)}var IZ={"http:":{validate:function(t,i,e){let n=t.slice(i);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(n)?n.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,i,e){let n=t.slice(i);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(n)?i>=3&&t[i-3]===":"||i>=3&&t[i-3]==="/"?0:n.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(t,i,e){let n=t.slice(i);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(n)?n.match(e.re.mailto)[0].length:0}}},AZ="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",RZ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function OZ(t){t.__index__=-1,t.__text_cache__=""}function PZ(t){return function(i,e){let n=i.slice(e);return t.test(n)?n.match(t)[0].length:0}}function T3(){return function(t,i){i.normalize(t)}}function _v(t){let i=t.re=k3(t.__opts__),e=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||e.push(AZ),e.push(i.src_xn),i.src_tlds=e.join("|");function n(s){return s.replace("%TLDS%",i.src_tlds)}i.email_fuzzy=RegExp(n(i.tpl_email_fuzzy),"i"),i.link_fuzzy=RegExp(n(i.tpl_link_fuzzy),"i"),i.link_no_ip_fuzzy=RegExp(n(i.tpl_link_no_ip_fuzzy),"i"),i.host_fuzzy_test=RegExp(n(i.tpl_host_fuzzy_test),"i");let r=[];t.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(t.__schemas__).forEach(function(s){let l=t.__schemas__[s];if(l===null)return;let c={validate:null,link:null};if(t.__compiled__[s]=c,SZ(l)){kZ(l.validate)?c.validate=PZ(l.validate):M3(l.validate)?c.validate=l.validate:o(s,l),M3(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=T3();return}if(DZ(l)){r.push(s);return}o(s,l)}),r.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:T3()};let a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(MZ).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+i.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+i.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),OZ(t)}function FZ(t,i){let e=t.__index__,n=t.__last_index__,r=t.__text_cache__.slice(e,n);this.schema=t.__schema__.toLowerCase(),this.index=e+i,this.lastIndex=n+i,this.raw=r,this.text=r,this.url=r}function QD(t,i){let e=new FZ(t,i);return t.__compiled__[e.schema].normalize(e,t),e}function kr(t,i){if(!(this instanceof kr))return new kr(t,i);i||TZ(t)&&(i=t,t={}),this.__opts__=qD({},I3,i),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=qD({},IZ,t),this.__compiled__={},this.__tlds__=RZ,this.__tlds_replaced__=!1,this.re={},_v(this)}kr.prototype.add=function(i,e){return this.__schemas__[i]=e,_v(this),this};kr.prototype.set=function(i){return this.__opts__=qD(this.__opts__,i),this};kr.prototype.test=function(i){if(this.__text_cache__=i,this.__index__=-1,!i.length)return!1;let e,n,r,o,a,s,l,c,d;if(this.re.schema_test.test(i)){for(l=this.re.schema_search,l.lastIndex=0;(e=l.exec(i))!==null;)if(o=this.testSchemaAt(i,e[2],l.lastIndex),o){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=i.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=i.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=i.indexOf("@"),d>=0&&(r=i.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};kr.prototype.pretest=function(i){return this.re.pretest.test(i)};kr.prototype.testSchemaAt=function(i,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(i,n,this):0};kr.prototype.match=function(i){let e=[],n=0;this.__index__>=0&&this.__text_cache__===i&&(e.push(QD(this,n)),n=this.__last_index__);let r=n?i.slice(n):i;for(;this.test(r);)e.push(QD(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return e.length?e:null};kr.prototype.matchAtStart=function(i){if(this.__text_cache__=i,this.__index__=-1,!i.length)return null;let e=this.re.schema_at_start.exec(i);if(!e)return null;let n=this.testSchemaAt(i,e[2],e[0].length);return n?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+n,QD(this,0)):null};kr.prototype.tlds=function(i,e){return i=Array.isArray(i)?i:[i],e?(this.__tlds__=this.__tlds__.concat(i).sort().filter(function(n,r,o){return n!==o[r-1]}).reverse(),_v(this),this):(this.__tlds__=i.slice(),this.__tlds_replaced__=!0,_v(this),this)};kr.prototype.normalize=function(i){i.schema||(i.url="http://"+i.url),i.schema==="mailto:"&&!/^mailto:/i.test(i.url)&&(i.url="mailto:"+i.url)};kr.prototype.onCompile=function(){};var A3=kr;var NZ=/^xn--/,LZ=/[^\0-\x7F]/,BZ=/[\x2E\u3002\uFF0E\uFF61]/g,zZ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ZD=35,oa=Math.floor,YD=String.fromCharCode;function js(t){throw new RangeError(zZ[t])}function VZ(t,i){let e=[],n=t.length;for(;n--;)e[n]=i(t[n]);return e}function O3(t,i){let e=t.split("@"),n="";e.length>1&&(n=e[0]+"@",t=e[1]),t=t.replace(BZ,".");let r=t.split("."),o=VZ(r,i).join(".");return n+o}function P3(t){let i=[],e=0,n=t.length;for(;e<n;){let r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){let o=t.charCodeAt(e++);(o&64512)==56320?i.push(((r&1023)<<10)+(o&1023)+65536):(i.push(r),e--)}else i.push(r)}return i}var jZ=t=>String.fromCodePoint(...t),HZ=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},R3=function(t,i){return t+22+75*(t<26)-((i!=0)<<5)},F3=function(t,i,e){let n=0;for(t=e?oa(t/700):t>>1,t+=oa(t/i);t>ZD*26>>1;n+=36)t=oa(t/ZD);return oa(n+(ZD+1)*t/(t+38))},N3=function(t){let i=[],e=t.length,n=0,r=128,o=72,a=t.lastIndexOf("-");a<0&&(a=0);for(let s=0;s<a;++s)t.charCodeAt(s)>=128&&js("not-basic"),i.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s<e;){let l=n;for(let d=1,h=36;;h+=36){s>=e&&js("invalid-input");let b=HZ(t.charCodeAt(s++));b>=36&&js("invalid-input"),b>oa((2147483647-n)/d)&&js("overflow"),n+=b*d;let f=h<=o?1:h>=o+26?26:h-o;if(b<f)break;let _=36-f;d>oa(2147483647/_)&&js("overflow"),d*=_}let c=i.length+1;o=F3(n-l,c,l==0),oa(n/c)>2147483647-r&&js("overflow"),r+=oa(n/c),n%=c,i.splice(n++,0,r)}return String.fromCodePoint(...i)},L3=function(t){let i=[];t=P3(t);let e=t.length,n=128,r=0,o=72;for(let l of t)l<128&&i.push(YD(l));let a=i.length,s=a;for(a&&i.push("-");s<e;){let l=2147483647;for(let d of t)d>=n&&d<l&&(l=d);let c=s+1;l-n>oa((2147483647-r)/c)&&js("overflow"),r+=(l-n)*c,n=l;for(let d of t)if(d<n&&++r>2147483647&&js("overflow"),d===n){let h=r;for(let b=36;;b+=36){let f=b<=o?1:b>=o+26?26:b-o;if(h<f)break;let _=h-f,y=36-f;i.push(YD(R3(f+_%y,0))),h=oa(_/y)}i.push(YD(R3(h,0))),o=F3(r,c,s===a),r=0,++s}++r,++n}return i.join("")},$Z=function(t){return O3(t,function(i){return NZ.test(i)?N3(i.slice(4).toLowerCase()):i})},UZ=function(t){return O3(t,function(i){return LZ.test(i)?"xn--"+L3(i):i})},WZ={version:"2.3.1",ucs2:{decode:P3,encode:jZ},decode:N3,encode:L3,toASCII:UZ,toUnicode:$Z};var KD=WZ;var B3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var z3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var V3={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var GZ={default:B3,zero:z3,commonmark:V3},qZ=/^(vbscript|javascript|file|data):/,QZ=/^data:image\/(gif|png|jpeg|webp);/;function ZZ(t){let i=t.trim().toLowerCase();return qZ.test(i)?QZ.test(i):!0}var j3=["http:","https:","mailto:"];function YZ(t){let i=zh(t,!0);if(i.hostname&&(!i.protocol||j3.indexOf(i.protocol)>=0))try{i.hostname=KD.toASCII(i.hostname)}catch{}return iv(Gd(i))}function KZ(t){let i=zh(t,!0);if(i.hostname&&(!i.protocol||j3.indexOf(i.protocol)>=0))try{i.hostname=KD.toUnicode(i.hostname)}catch{}return Bh(Gd(i),Bh.defaultChars+"%")}function Qr(t,i){if(!(this instanceof Qr))return new Qr(t,i);i||mv(t)||(i=t||{},t="default"),this.inline=new S3,this.block=new x3,this.core=new u3,this.renderer=new o3,this.linkify=new A3,this.validateLink=ZZ,this.normalizeLink=YZ,this.normalizeLinkText=KZ,this.utils=rD,this.helpers=Qd({},lD),this.options={},this.configure(t),i&&this.set(i)}Qr.prototype.set=function(t){return Qd(this.options,t),this};Qr.prototype.configure=function(t){let i=this;if(mv(t)){let e=t;if(t=GZ[e],!t)throw new Error('Wrong `markdown-it` preset "'+e+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&i.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&i[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&i[e].ruler2.enableOnly(t.components[e].rules2)}),this};Qr.prototype.enable=function(t,i){let e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){e=e.concat(this[r].ruler.enable(t,!0))},this),e=e.concat(this.inline.ruler2.enable(t,!0));let n=t.filter(function(r){return e.indexOf(r)<0});if(n.length&&!i)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Qr.prototype.disable=function(t,i){let e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){e=e.concat(this[r].ruler.disable(t,!0))},this),e=e.concat(this.inline.ruler2.disable(t,!0));let n=t.filter(function(r){return e.indexOf(r)<0});if(n.length&&!i)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Qr.prototype.use=function(t){let i=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,i),this};Qr.prototype.parse=function(t,i){if(typeof t!="string")throw new Error("Input data should be a String");let e=new this.core.State(t,this,i);return this.core.process(e),e.tokens};Qr.prototype.render=function(t,i){return i=i||{},this.renderer.render(this.parse(t,i),this.options,i)};Qr.prototype.parseInline=function(t,i){let e=new this.core.State(t,this,i);return e.inlineMode=!0,this.core.process(e),e.tokens};Qr.prototype.renderInline=function(t,i){return i=i||{},this.renderer.render(this.parseInline(t,i),this.options,i)};var XD=Qr;var XZ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],JZ=["mat-icon, [matMenuItemIcon]","*"];function eY(t,i){t&1&&(bn(),p(0,"svg",2),U(1,"polygon",3),m())}var tY=["*"];function nY(t,i){if(t&1){let e=be();kt(0,"div",0),Ea("click",function(){ae(e);let r=E();return se(r.closed.emit("click"))})("animationstart",function(r){ae(e);let o=E();return se(o._onAnimationStart(r.animationName))})("animationend",function(r){ae(e);let o=E();return se(o._onAnimationDone(r.animationName))})("animationcancel",function(r){ae(e);let o=E();return se(o._onAnimationDone(r.animationName))}),kt(1,"div",1),Me(2),Mt()()}if(t&2){let e=E();Ut(e._classList),ue("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),en("id",e.panelId),he("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var eS=new z("MAT_MENU_PANEL"),$h=(()=>{class t{_elementRef=g(pe);_document=g(je);_focusMonitor=g(Sn);_parentMenu=g(eS,{optional:!0});_changeDetectorRef=g(Ge);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new ce;_focused=new ce;_highlighted=!1;_triggersSubmenu=!1;constructor(){g(Ot).load(wn),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<n.length;r++)n[r].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(n,r){n&1&&N("click",function(a){return r._checkDisabled(a)})("mouseenter",function(){return r._handleMouseEnter()}),n&2&&(he("role",r.role)("tabindex",r._getTabIndex())("aria-disabled",r.disabled)("disabled",r.disabled||null),ue("mat-mdc-menu-item-highlighted",r._highlighted)("mat-mdc-menu-item-submenu-trigger",r._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",te],disableRipple:[2,"disableRipple","disableRipple",te]},exportAs:["matMenuItem"],ngContentSelectors:JZ,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(n,r){n&1&&(tt(XZ),Me(0),p(1,"span",0),Me(2,1),m(),U(3,"div",1),A(4,eY,2,0,":svg:svg",2)),n&2&&(u(3),S("matRippleDisabled",r.disableRipple||r.disabled)("matRippleTrigger",r._getHostElement()),u(),R(r._triggersSubmenu?4:-1))},dependencies:[ai],encapsulation:2})}return t})();var iY=new z("MatMenuContent");var rY=new z("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),JD="_mat-menu-enter",bv="_mat-menu-exit",Jd=(()=>{class t{_elementRef=g(pe);_changeDetectorRef=g(Ge);_injector=g(ze);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=xt();_allItems;_directDescendantItems=new jn;_classList={};_panelAnimationState="void";_animationDone=new ce;_isAnimating=Q(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let n=this._previousPanelClass,r=G({},this._classList);n&&n.length&&n.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new le;close=this.closed;panelId=g(St).getId("mat-menu-panel-");constructor(){let e=g(rY);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(It(this._directDescendantItems),rn(e=>hn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(It(this._directDescendantItems),rn(n=>hn(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,r=this._keyManager;switch(n){case 27:kn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Bt(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Xe(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===bv;(n||e===JD)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===JD||e===bv)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(bv),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?JD:bv)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(It(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-menu"]],contentQueries:function(n,r,o){if(n&1&&jt(o,iY,5)(o,$h,5)(o,$h,4),n&2){let a;K(a=X())&&(r.lazyContent=a.first),K(a=X())&&(r._allItems=a),K(a=X())&&(r.items=a)}},viewQuery:function(n,r){if(n&1&&Qe(Lt,5),n&2){let o;K(o=X())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(n,r){n&2&&he("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",te],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:te(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[He([{provide:eS,useExisting:t}])],ngContentSelectors:tY,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,r){n&1&&(tt(),_s(0,nY,3,12,"ng-template"))},styles:[`mat-menu {
display: none;
}
.mat-mdc-menu-content {
margin: 0;
padding: 8px 0;
outline: 0;
}
.mat-mdc-menu-content,
.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
flex: 1;
white-space: normal;
font-family: var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));
line-height: var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));
font-size: var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));
font-weight: var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight));
}
@keyframes _mat-menu-enter {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes _mat-menu-exit {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.mat-mdc-menu-panel {
min-width: 112px;
max-width: 280px;
overflow: auto;
box-sizing: border-box;
outline: 0;
animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);
border-radius: var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));
background-color: var(--mat-menu-container-color, var(--mat-sys-surface-container));
box-shadow: var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
will-change: transform, opacity;
}
.mat-mdc-menu-panel.mat-menu-panel-exit-animation {
animation: _mat-menu-exit 100ms 25ms linear forwards;
}
.mat-mdc-menu-panel.mat-menu-panel-animations-disabled {
animation: none;
}
.mat-mdc-menu-panel.mat-menu-panel-animating {
pointer-events: none;
}
.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) {
display: none;
}
@media (forced-colors: active) {
.mat-mdc-menu-panel {
outline: solid 1px;
}
}
.mat-mdc-menu-panel .mat-divider {
border-top-color: var(--mat-menu-divider-color, var(--mat-sys-surface-variant));
margin-bottom: var(--mat-menu-divider-bottom-spacing, 8px);
margin-top: var(--mat-menu-divider-top-spacing, 8px);
}
.mat-mdc-menu-item {
display: flex;
position: relative;
align-items: center;
justify-content: flex-start;
overflow: hidden;
padding: 0;
cursor: pointer;
width: 100%;
text-align: left;
box-sizing: border-box;
color: inherit;
font-size: inherit;
background: none;
text-decoration: none;
margin: 0;
min-height: 48px;
padding-left: var(--mat-menu-item-leading-spacing, 12px);
padding-right: var(--mat-menu-item-trailing-spacing, 12px);
-webkit-user-select: none;
user-select: none;
cursor: pointer;
outline: none;
border: none;
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-menu-item::-moz-focus-inner {
border: 0;
}
[dir=rtl] .mat-mdc-menu-item {
padding-left: var(--mat-menu-item-trailing-spacing, 12px);
padding-right: var(--mat-menu-item-leading-spacing, 12px);
}
.mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) {
padding-left: var(--mat-menu-item-with-icon-leading-spacing, 12px);
padding-right: var(--mat-menu-item-with-icon-trailing-spacing, 12px);
}
[dir=rtl] .mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) {
padding-left: var(--mat-menu-item-with-icon-trailing-spacing, 12px);
padding-right: var(--mat-menu-item-with-icon-leading-spacing, 12px);
}
.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link {
color: var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-menu-item .mat-icon-no-color,
.mat-mdc-menu-item .mat-mdc-menu-submenu-icon {
color: var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-menu-item[disabled] {
cursor: default;
opacity: 0.38;
}
.mat-mdc-menu-item[disabled]::after {
display: block;
position: absolute;
content: "";
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.mat-mdc-menu-item:focus {
outline: 0;
}
.mat-mdc-menu-item .mat-icon {
flex-shrink: 0;
margin-right: var(--mat-menu-item-spacing, 12px);
height: var(--mat-menu-item-icon-size, 24px);
width: var(--mat-menu-item-icon-size, 24px);
}
[dir=rtl] .mat-mdc-menu-item {
text-align: right;
}
[dir=rtl] .mat-mdc-menu-item .mat-icon {
margin-right: 0;
margin-left: var(--mat-menu-item-spacing, 12px);
}
.mat-mdc-menu-item:not([disabled]):hover {
background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-menu-item:not([disabled]).cdk-program-focused, .mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused, .mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted {
background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
}
@media (forced-colors: active) {
.mat-mdc-menu-item {
margin-top: 1px;
}
}
.mat-mdc-menu-submenu-icon {
width: var(--mat-menu-item-icon-size, 24px);
height: 10px;
fill: currentColor;
padding-left: var(--mat-menu-item-spacing, 12px);
}
[dir=rtl] .mat-mdc-menu-submenu-icon {
padding-right: var(--mat-menu-item-spacing, 12px);
padding-left: 0;
}
[dir=rtl] .mat-mdc-menu-submenu-icon polygon {
transform: scaleX(-1);
transform-origin: center;
}
@media (forced-colors: active) {
.mat-mdc-menu-submenu-icon {
fill: CanvasText;
}
}
.mat-mdc-menu-item .mat-mdc-menu-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
}
`],encapsulation:2})}return t})(),oY=new z("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=g(ze);return()=>Ba(t)}});var Xd=new WeakMap,aY=(()=>{class t{_canHaveBackdrop;_element=g(pe);_viewContainerRef=g(Xt);_menuItemInstance=g($h,{optional:!0,self:!0});_dir=g(ln,{optional:!0});_focusMonitor=g(Sn);_ngZone=g(De);_injector=g(ze);_scrollStrategy=g(oY);_changeDetectorRef=g(Ge);_animationsDisabled=xt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ye.EMPTY;_menuCloseSubscription=Ye.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=g(eS,{optional:!0});this._parentMaterialMenu=n instanceof Jd?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Xd.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let r=Xd.get(n);Xd.set(n,this),r&&r!==this&&r._closeMenu();let o=this._createOverlay(n),a=o.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,o.hasAttached()||(o.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof Jd&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Ue(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,r=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof Jd&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(mt(1)).subscribe(()=>{n.detach(),Xd.has(r)||r.lazyContent?.detach()}),r._setIsOpen(!1)):(n.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&Xd.delete(r),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=Co(this._injector,n),this._overlayRef.keydownEvents().subscribe(r=>{this._menu instanceof Jd&&this._menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new xo({positionStrategy:Gl(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a)})})}_setPosition(e,n){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[d,h]=[r,o],b=0;if(this._triggersSubmenu()){if(h=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}b=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");n.withPositions([{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:b},{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:b},{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:-b},{originX:o,originY:c,overlayX:h,overlayY:s,offsetY:-b}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Ne(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ct(a=>this._menuOpen&&a!==this._menuItemInstance)):Ne();return hn(e,r,o,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new si(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Xd.get(e)===this}_triggerIsAriaDisabled(){return te(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){Ca()};static \u0275dir=Y({type:t})}return t})(),H3=(()=>{class t extends aY{_cleanupTouchstart;_hoverSubscription=Ye.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new le;onMenuOpen=this.menuOpened;menuClosed=new le;onMenuClose=this.menuClosed;constructor(){super(!0);let e=g(dt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{Vl(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){zl(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,r){n&1&&N("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),n&2&&he("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu?.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Ee]})}return t})();var $3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Di,Er,qe,Na]})}return t})();var lY=["knob"],cY=["valueIndicatorContainer"];function dY(t,i){if(t&1&&(p(0,"div",2,1)(2,"div",5)(3,"span",6),v(4),m()()()),t&2){let e=E();u(4),M(e.valueIndicatorText)}}var uY=["trackActive"],mY=["*"];function hY(t,i){if(t&1&&U(0,"div"),t&2){let e=i.$implicit,n=i.$index,r=E(3);Ut(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),In("transform",r._calcTickMarkTransform(n))}}function pY(t,i){if(t&1&&Je(0,hY,1,4,"div",8,ao),t&2){let e=E(2);et(e._tickMarks)}}function fY(t,i){if(t&1&&(p(0,"div",6,1),A(2,pY,2,0),m()),t&2){let e=E();u(2),R(e._cachedWidth?2:-1)}}function gY(t,i){if(t&1&&U(0,"mat-slider-visual-thumb",7),t&2){let e=E();S("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var _t=(function(t){return t[t.START=1]="START",t[t.END=2]="END",t})(_t||{}),eu=(function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t})(eu||{}),tS=new z("_MatSlider"),U3=new z("_MatSliderThumb"),_Y=new z("_MatSliderRangeThumb"),W3=new z("_MatSliderVisualThumb");var vY=(()=>{class t{_cdr=g(Ge);_ngZone=g(De);_slider=g(tS);_renderer=g(dt);_listenerCleanups;discrete=!1;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=g(pe).nativeElement;_platform=g(ht);ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let n=this._sliderInputEl,r=this._renderer;this._listenerCleanups=[r.listen(n,"pointermove",this._onPointerMove),r.listen(n,"pointerdown",this._onDragStart),r.listen(n,"pointerup",this._onDragEnd),r.listen(n,"pointerleave",this._onMouseLeave),r.listen(n,"focus",this._onFocus),r.listen(n,"blur",this._onBlur)]}))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e())}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let n=this._hostElement.getBoundingClientRect(),r=this._slider._isCursorOnSliderThumb(e,n);this._isHovered=r,r?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")};_onDragStart=e=>{e.button===0&&(this._isActive=!0,this._showActiveRipple())};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===Ui.FADING_IN||e?.state===Ui.VISIBLE}_showRipple(e,n){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===_t.START?_t.END:_t.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!n)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let n=this._getSibling();n._isShowingAnyRipple()||(this._hideValueIndicator(),n._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===_t.START?_t.END:_t.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(n,r){if(n&1&&Qe(ai,5)(lY,5)(cY,5),n&2){let o;K(o=X())&&(r._ripple=o.first),K(o=X())&&(r._knob=o.first),K(o=X())&&(r._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[He([{provide:W3,useExisting:t}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(n,r){n&1&&(A(0,dY,5,1,"div",2),U(1,"div",3,0)(3,"div",4)),n&2&&(R(r.discrete?0:-1),u(3),S("matRippleDisabled",!0))},dependencies:[ai],styles:[`.mat-mdc-slider-visual-thumb .mat-ripple {
height: 100%;
width: 100%;
}
.mat-mdc-slider .mdc-slider__tick-marks {
justify-content: start;
}
.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,
.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive {
position: absolute;
left: 2px;
}
`],encapsulation:2})}return t})(),G3=(()=>{class t{_ngZone=g(De);_cdr=g(Ge);_elementRef=g(pe);_dir=g(ln,{optional:!0});_globalRippleOptions=g(As,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled}set disabled(e){this._disabled=e;let n=this._getInput(_t.END),r=this._getInput(_t.START);n&&(n.disabled=this._disabled),r&&(r.disabled=this._disabled)}_disabled=!1;get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs()}_discrete=!1;get showTickMarks(){return this._showTickMarks}set showTickMarks(e){this._showTickMarks=e,this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI())}_showTickMarks=!1;get min(){return this._min}set min(e){let n=e==null||isNaN(e)?this._min:e;this._min!==n&&this._updateMin(n)}_min=0;color;disableRipple=!1;_updateMin(e){let n=this._min;this._min=e,this._isRange?this._updateMinRange({old:n,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){let n=this._getInput(_t.END),r=this._getInput(_t.START),o=n.value,a=r.value;r.min=e.new,n.min=Math.max(e.new,r.value),r.max=Math.min(n.max,n.value),r._updateWidthInactive(),n._updateWidthInactive(),e.new<e.old?this._onTranslateXChangeBySideEffect(n,r):this._onTranslateXChangeBySideEffect(r,n),o!==n.value&&this._onValueChange(n),a!==r.value&&this._onValueChange(r)}_updateMinNonRange(e){let n=this._getInput(_t.END);if(n){let r=n.value;n.min=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n)}}get max(){return this._max}set max(e){let n=e==null||isNaN(e)?this._max:e;this._max!==n&&this._updateMax(n)}_max=100;_updateMax(e){let n=this._max;this._max=e,this._isRange?this._updateMaxRange({old:n,new:e}):this._updateMaxNonRange(e),this._onMinMaxOrStepChange()}_updateMaxRange(e){let n=this._getInput(_t.END),r=this._getInput(_t.START),o=n.value,a=r.value;n.max=e.new,r.max=Math.min(e.new,n.value),n.min=r.value,n._updateWidthInactive(),r._updateWidthInactive(),e.new>e.old?this._onTranslateXChangeBySideEffect(r,n):this._onTranslateXChangeBySideEffect(n,r),o!==n.value&&this._onValueChange(n),a!==r.value&&this._onValueChange(r)}_updateMaxNonRange(e){let n=this._getInput(_t.END);if(n){let r=n.value;n.max=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n)}}get step(){return this._step}set step(e){let n=isNaN(e)?this._step:e;this._step!==n&&this._updateStep(n)}_step=1;_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let e=this._getInput(_t.END),n=this._getInput(_t.START),r=e.value,o=n.value,a=n.value;e.min=this._min,n.max=this._max,e.step=this._step,n.step=this._step,this._platform.SAFARI&&(e.value=e.value,n.value=n.value),e.min=Math.max(this._min,n.value),n.max=Math.min(this._max,e.value),n._updateWidthInactive(),e._updateWidthInactive(),e.value<a?this._onTranslateXChangeBySideEffect(n,e):this._onTranslateXChangeBySideEffect(e,n),r!==e.value&&this._onValueChange(e),o!==n.value&&this._onValueChange(n)}_updateStepNonRange(){let e=this._getInput(_t.END);if(e){let n=e.value;e.step=this._step,this._platform.SAFARI&&(e.value=e.value),e._updateThumbUIByValue(),n!==e.value&&this._onValueChange(e)}}displayWith=e=>`${e}`;_tickMarks;_noopAnimations=xt();_resizeObserver=null;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=Wt(()=>this._dir?.valueSignal()==="rtl");_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=g(ht);constructor(){g(Ot).load(wn);let e=this._isRtl();cg(()=>{let n=this._isRtl();n!==e&&(e=n,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI())})}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(_t.END),n=this._getInput(_t.START);this._isRange=!!e&&!!n,this._cdr.detectChanges();let r=this._getThumb(_t.END);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,n):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,n){e.initProps(),e.initUI(),n.initProps(),n.initUI(),e._updateMinMax(),n._updateMinMax(),e._updateStaticStyles(),n._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),n._updateThumbUIByValue()}ngOnDestroy(){this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChangeRange(){let e=this._getInput(_t.END),n=this._getInput(_t.START);e._setIsLeftThumb(),n._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),n.translateX=n._calcTranslateXByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateWidthInactive(),n._updateWidthInactive(),e._updateThumbUIByValue(),n._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(_t.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(_t.START)._isActive||this._getThumb(_t.END)._isActive}_getValue(e=_t.END){let n=this._getInput(e);return n?n.value:this.min}_skipUpdate(){return!!(this._getInput(_t.START)?._skipUIUpdate||this._getInput(_t.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){let n=this._trackActive.nativeElement.style;n.left=e.left,n.right=e.right,n.transformOrigin=e.transformOrigin,n.transform=e.transform}_calcTickMarkTransform(e){let n=e*(this._tickMarkTrackWidth/(this._tickMarks.length-1));return`translateX(${this._isRtl()?this._cachedWidth-6-n:n}px)`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,n){this._hasViewInitialized&&(e._updateThumbUIByValue(),n._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(_t.END),n=this._getInput(_t.START);e._updateThumbUIByValue(),n._updateThumbUIByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateMinMax(),n._updateMinMax(),e._updateWidthInactive(),n._updateWidthInactive()}else{let e=this._getInput(_t.END);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_thumbsOverlap=!1;_areThumbsOverlapping(){let e=this._getInput(_t.START),n=this._getInput(_t.END);return!e||!n?!1:n.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let n=e.getSibling(),r=this._getThumb(e.thumbPosition);this._getThumb(n.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){if(this._skipUpdate())return;let n=this._getThumb(e.thumbPosition===_t.END?_t.END:_t.START);n._hostElement.style.transform=`translateX(${e.translateX}px)`}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let n=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(n):e._hostElement.setAttribute("aria-valuetext",n),this.discrete){e.thumbPosition===_t.START?this.startValueIndicatorText=n:this.endValueIndicatorText=n;let r=this._getThumb(e.thumbPosition);n.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let e=this._getInput(_t.END),n=this._getInput(_t.START);e&&this._updateValueIndicatorUI(e),n&&this._updateValueIndicatorUI(n)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=(this._cachedWidth-6)*r}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){let n=e.getSibling();if(!n||!this._cachedWidth)return;let r=Math.abs(n.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-n.translateX}px`,transformOrigin:"right",transform:`scaleX(${r})`}):this._setTrackActiveStyles({left:`${n.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`})}_updateTrackUINonRange(e){this._isRtl()?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e)}_updateTickMarkUINonRange(e){let n=this._getValue(),r=Math.max(Math.round((n-this.min)/e),0)+1,o=Math.max(Math.round((this.max-n)/e),0)-1;this._isRtl()?r++:o++,this._tickMarks=Array(r).fill(eu.ACTIVE).concat(Array(o).fill(eu.INACTIVE))}_updateTickMarkUIRange(e){let n=this._getValue(),r=this._getValue(_t.START),o=Math.max(Math.round((r-this.min)/e),0),a=Math.max(Math.round((n-r)/e)+1,0),s=Math.max(Math.round((this.max-n)/e),0);this._tickMarks=Array(o).fill(eu.INACTIVE).concat(Array(a).fill(eu.ACTIVE),Array(s).fill(eu.INACTIVE))}_getInput(e){if(e===_t.END&&this._input)return this._input;if(this._inputs?.length)return e===_t.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===_t.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,n){let r=n.width/2,o=n.x+r,a=n.y+r,s=e.clientX-o,l=e.clientY-a;return Math.pow(s,2)+Math.pow(l,2)<Math.pow(r,2)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-slider"]],contentQueries:function(n,r,o){if(n&1&&jt(o,U3,5)(o,_Y,4),n&2){let a;K(a=X())&&(r._input=a.first),K(a=X())&&(r._inputs=a)}},viewQuery:function(n,r){if(n&1&&Qe(uY,5)(W3,5),n&2){let o;K(o=X())&&(r._trackActive=o.first),K(o=X())&&(r._thumbs=o)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(n,r){n&2&&(Ut("mat-"+(r.color||"primary")),ue("mdc-slider--range",r._isRange)("mdc-slider--disabled",r.disabled)("mdc-slider--discrete",r.discrete)("mdc-slider--tick-marks",r.showTickMarks)("_mat-animation-noopable",r._noopAnimations))},inputs:{disabled:[2,"disabled","disabled",te],discrete:[2,"discrete","discrete",te],showTickMarks:[2,"showTickMarks","showTickMarks",te],min:[2,"min","min",gt],color:"color",disableRipple:[2,"disableRipple","disableRipple",te],max:[2,"max","max",gt],step:[2,"step","step",gt],displayWith:"displayWith"},exportAs:["matSlider"],features:[He([{provide:tS,useExisting:t}])],ngContentSelectors:mY,decls:9,vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(n,r){n&1&&(tt(),Me(0),p(1,"div",2),U(2,"div",3),p(3,"div",4),U(4,"div",5,0),m(),A(6,fY,3,1,"div",6),m(),A(7,gY,1,3,"mat-slider-visual-thumb",7),U(8,"mat-slider-visual-thumb",7)),n&2&&(u(6),R(r.showTickMarks?6:-1),u(),R(r._isRange?7:-1),u(),S("discrete",r.discrete)("thumbPosition",2)("valueIndicatorText",r.endValueIndicatorText))},dependencies:[vY],styles:[`.mdc-slider__track {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
pointer-events: none;
height: var(--mat-slider-inactive-track-height, 4px);
}
.mdc-slider__track--active,
.mdc-slider__track--inactive {
display: flex;
height: 100%;
position: absolute;
width: 100%;
}
.mdc-slider__track--active {
overflow: hidden;
border-radius: var(--mat-slider-active-track-shape, var(--mat-sys-corner-full));
height: var(--mat-slider-active-track-height, 4px);
top: calc((var(--mat-slider-inactive-track-height, 4px) - var(--mat-slider-active-track-height, 4px)) / 2);
}
.mdc-slider__track--active_fill {
border-top-style: solid;
box-sizing: border-box;
height: 100%;
width: 100%;
position: relative;
transform-origin: left;
transition: transform 80ms ease;
border-color: var(--mat-slider-active-track-color, var(--mat-sys-primary));
border-top-width: var(--mat-slider-active-track-height, 4px);
}
.mdc-slider--disabled .mdc-slider__track--active_fill {
border-color: var(--mat-slider-disabled-active-track-color, var(--mat-sys-on-surface));
}
[dir=rtl] .mdc-slider__track--active_fill {
-webkit-transform-origin: right;
transform-origin: right;
}
.mdc-slider__track--inactive {
left: 0;
top: 0;
opacity: 0.24;
background-color: var(--mat-slider-inactive-track-color, var(--mat-sys-surface-variant));
height: var(--mat-slider-inactive-track-height, 4px);
border-radius: var(--mat-slider-inactive-track-shape, var(--mat-sys-corner-full));
}
.mdc-slider--disabled .mdc-slider__track--inactive {
background-color: var(--mat-slider-disabled-inactive-track-color, var(--mat-sys-on-surface));
opacity: 0.24;
}
.mdc-slider__track--inactive::before {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid transparent;
border-radius: inherit;
content: "";
pointer-events: none;
}
@media (forced-colors: active) {
.mdc-slider__track--inactive::before {
border-color: CanvasText;
}
}
.mdc-slider__value-indicator-container {
bottom: 44px;
left: 50%;
pointer-events: none;
position: absolute;
transform: var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg));
}
.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container {
pointer-events: auto;
}
.mdc-slider__value-indicator {
display: flex;
align-items: center;
transform: scale(0);
transform-origin: var(--mat-slider-value-indicator-transform-origin, 0 28px);
transition: transform 100ms cubic-bezier(0.4, 0, 1, 1);
word-break: normal;
background-color: var(--mat-slider-label-container-color, var(--mat-sys-primary));
color: var(--mat-slider-label-label-text-color, var(--mat-sys-on-primary));
width: var(--mat-slider-value-indicator-width, 28px);
height: var(--mat-slider-value-indicator-height, 28px);
padding: var(--mat-slider-value-indicator-padding, 0);
opacity: var(--mat-slider-value-indicator-opacity, 1);
border-radius: var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0);
}
.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator {
transition: transform 100ms cubic-bezier(0, 0, 0.2, 1);
transform: scale(1);
}
.mdc-slider__value-indicator::before {
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid;
bottom: -5px;
content: "";
height: 0;
left: 50%;
position: absolute;
transform: translateX(-50%);
width: 0;
display: var(--mat-slider-value-indicator-caret-display, none);
border-top-color: var(--mat-slider-label-container-color, var(--mat-sys-primary));
}
.mdc-slider__value-indicator::after {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid transparent;
border-radius: inherit;
content: "";
pointer-events: none;
}
@media (forced-colors: active) {
.mdc-slider__value-indicator::after {
border-color: CanvasText;
}
}
.mdc-slider__value-indicator-text {
text-align: center;
width: var(--mat-slider-value-indicator-width, 28px);
transform: var(--mat-slider-value-indicator-text-transform, rotate(45deg));
font-family: var(--mat-slider-label-label-text-font, var(--mat-sys-label-medium-font));
font-size: var(--mat-slider-label-label-text-size, var(--mat-sys-label-medium-size));
font-weight: var(--mat-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));
line-height: var(--mat-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));
letter-spacing: var(--mat-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking));
}
.mdc-slider__thumb {
-webkit-user-select: none;
user-select: none;
display: flex;
left: -24px;
outline: none;
position: absolute;
height: 48px;
width: 48px;
pointer-events: none;
}
.mdc-slider--discrete .mdc-slider__thumb {
transition: transform 80ms ease;
}
.mdc-slider--disabled .mdc-slider__thumb {
pointer-events: none;
}
.mdc-slider__thumb--top {
z-index: 1;
}
.mdc-slider__thumb-knob {
position: absolute;
box-sizing: border-box;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-style: solid;
width: var(--mat-slider-handle-width, 20px);
height: var(--mat-slider-handle-height, 20px);
border-width: calc(var(--mat-slider-handle-height, 20px) / 2) calc(var(--mat-slider-handle-width, 20px) / 2);
box-shadow: var(--mat-slider-handle-elevation, var(--mat-sys-level1));
background-color: var(--mat-slider-handle-color, var(--mat-sys-primary));
border-color: var(--mat-slider-handle-color, var(--mat-sys-primary));
border-radius: var(--mat-slider-handle-shape, var(--mat-sys-corner-full));
}
.mdc-slider__thumb:hover .mdc-slider__thumb-knob {
background-color: var(--mat-slider-hover-handle-color, var(--mat-sys-primary));
border-color: var(--mat-slider-hover-handle-color, var(--mat-sys-primary));
}
.mdc-slider__thumb--focused .mdc-slider__thumb-knob {
background-color: var(--mat-slider-focus-handle-color, var(--mat-sys-primary));
border-color: var(--mat-slider-focus-handle-color, var(--mat-sys-primary));
}
.mdc-slider--disabled .mdc-slider__thumb-knob {
background-color: var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface));
border-color: var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface));
}
.mdc-slider__thumb--top .mdc-slider__thumb-knob, .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob, .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob {
border: solid 1px #fff;
box-sizing: content-box;
border-color: var(--mat-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));
border-width: var(--mat-slider-with-overlap-handle-outline-width, 1px);
}
.mdc-slider__tick-marks {
align-items: center;
box-sizing: border-box;
display: flex;
height: 100%;
justify-content: space-between;
padding: 0 1px;
position: absolute;
width: 100%;
}
.mdc-slider__tick-mark--active,
.mdc-slider__tick-mark--inactive {
width: var(--mat-slider-with-tick-marks-container-size, 2px);
height: var(--mat-slider-with-tick-marks-container-size, 2px);
border-radius: var(--mat-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full));
}
.mdc-slider__tick-mark--inactive {
opacity: var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);
background-color: var(--mat-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant));
}
.mdc-slider--disabled .mdc-slider__tick-mark--inactive {
opacity: var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);
background-color: var(--mat-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface));
}
.mdc-slider__tick-mark--active {
opacity: var(--mat-slider-with-tick-marks-active-container-opacity, 0.38);
background-color: var(--mat-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary));
}
.mdc-slider__input {
cursor: pointer;
left: 2px;
margin: 0;
height: 44px;
opacity: 0;
position: absolute;
top: 2px;
width: 44px;
box-sizing: content-box;
}
.mdc-slider__input.mat-mdc-slider-input-no-pointer-events {
pointer-events: none;
}
.mdc-slider__input.mat-slider__right-input {
left: auto;
right: 0;
}
.mat-mdc-slider {
display: inline-block;
box-sizing: border-box;
outline: none;
vertical-align: middle;
cursor: pointer;
height: 48px;
margin: 0 8px;
position: relative;
touch-action: pan-y;
width: auto;
min-width: 112px;
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-slider.mdc-slider--disabled {
cursor: auto;
opacity: 0.38;
}
.mat-mdc-slider.mdc-slider--disabled .mdc-slider__input {
cursor: auto;
}
.mat-mdc-slider .mdc-slider__thumb,
.mat-mdc-slider .mdc-slider__track--active_fill {
transition-duration: 0ms;
}
.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,
.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill {
transition-duration: 80ms;
}
.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,
.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill {
transition-duration: 0ms;
}
.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,
.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill {
transition-duration: 80ms;
}
.mat-mdc-slider .mat-ripple .mat-ripple-element {
background-color: var(--mat-slider-ripple-color, var(--mat-sys-primary));
}
.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple {
background-color: var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent));
}
.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,
.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple {
background-color: var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent));
}
.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb, .mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,
.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator {
transition: none;
}
.mat-mdc-slider .mat-focus-indicator::before {
border-radius: 50%;
}
.mdc-slider__thumb--focused .mat-focus-indicator::before {
content: "";
}
`],encapsulation:2})}return t})();var bY={provide:br,useExisting:on(()=>nS),multi:!0};var nS=(()=>{class t{_ngZone=g(De);_elementRef=g(pe);_cdr=g(Ge);_slider=g(tS);_platform=g(ht);_listenerCleanups;get value(){return gt(this._hostElement.value,0)}set value(e){e===null&&(e=this._getDefaultValue()),e=isNaN(e)?0:e;let n=e+"";if(!this._hasSetInitialValue){this._initialValue=n;return}this._isActive||this._setValue(n)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new le;dragStart=new le;dragEnd=new le;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}_translateX;thumbPosition=_t.END;get min(){return gt(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return gt(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return gt(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return te(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl()?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl()?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=Q("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(e){this._isFocused=e}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new ce;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let e=g(dt);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))]})}ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let n=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=n,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let n=e.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),s=this._slider._isRtl()?1-n/r:n/r,c=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,d=Math.round(c/o)*o,h=this.value;if(d===h){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=d,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let n=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,r),n)}_calcTranslateXByValue(){return this._slider._isRtl()?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,n){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(n)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(n,r){n&1&&N("change",function(){return r._onChange()})("input",function(){return r._onInput()})("blur",function(){return r._onBlur()})("focus",function(){return r._onFocus()}),n&2&&he("aria-valuetext",r._valuetext())},inputs:{value:[2,"value","value",gt]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[He([bY,{provide:U3,useExisting:t}])]})}return t})();var q3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[Di,qe]})}return t})();var xY=["*"];var CY=new z("MAT_CARD_CONFIG"),Q3=(()=>{class t{appearance;constructor(){let e=g(CY,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(n,r){n&2&&ue("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:xY,decls:1,vars:0,template:function(n,r){n&1&&(tt(),Me(0))},styles:[`.mat-mdc-card {
display: flex;
flex-direction: column;
box-sizing: border-box;
position: relative;
border-style: solid;
border-width: 0;
background-color: var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));
border-color: var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));
border-radius: var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));
box-shadow: var(--mat-card-elevated-container-elevation, var(--mat-sys-level1));
}
.mat-mdc-card::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: solid 1px transparent;
content: "";
display: block;
pointer-events: none;
box-sizing: border-box;
border-radius: var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));
}
.mat-mdc-card-outlined {
background-color: var(--mat-card-outlined-container-color, var(--mat-sys-surface));
border-radius: var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));
border-width: var(--mat-card-outlined-outline-width, 1px);
border-color: var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));
box-shadow: var(--mat-card-outlined-container-elevation, var(--mat-sys-level0));
}
.mat-mdc-card-outlined::after {
border: none;
}
.mat-mdc-card-filled {
background-color: var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));
border-radius: var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));
box-shadow: var(--mat-card-filled-container-elevation, var(--mat-sys-level0));
}
.mdc-card__media {
position: relative;
box-sizing: border-box;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.mdc-card__media::before {
display: block;
content: "";
}
.mdc-card__media:first-child {
border-top-left-radius: inherit;
border-top-right-radius: inherit;
}
.mdc-card__media:last-child {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
}
.mat-mdc-card-actions {
display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
min-height: 52px;
padding: 8px;
}
.mat-mdc-card-title {
font-family: var(--mat-card-title-text-font, var(--mat-sys-title-large-font));
line-height: var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));
font-size: var(--mat-card-title-text-size, var(--mat-sys-title-large-size));
letter-spacing: var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));
font-weight: var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight));
}
.mat-mdc-card-subtitle {
color: var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));
line-height: var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));
font-size: var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));
letter-spacing: var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));
font-weight: var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight));
}
.mat-mdc-card-title,
.mat-mdc-card-subtitle {
display: block;
margin: 0;
}
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title,
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle {
padding: 16px 16px 0;
}
.mat-mdc-card-header {
display: flex;
padding: 16px 16px 0;
}
.mat-mdc-card-content {
display: block;
padding: 0 16px;
}
.mat-mdc-card-content:first-child {
padding-top: 16px;
}
.mat-mdc-card-content:last-child {
padding-bottom: 16px;
}
.mat-mdc-card-title-group {
display: flex;
justify-content: space-between;
width: 100%;
}
.mat-mdc-card-avatar {
height: 40px;
width: 40px;
border-radius: 50%;
flex-shrink: 0;
margin-bottom: 16px;
object-fit: cover;
}
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle,
.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title {
line-height: normal;
}
.mat-mdc-card-sm-image {
width: 80px;
height: 80px;
}
.mat-mdc-card-md-image {
width: 112px;
height: 112px;
}
.mat-mdc-card-lg-image {
width: 152px;
height: 152px;
}
.mat-mdc-card-xl-image {
width: 240px;
height: 240px;
}
.mat-mdc-card-subtitle ~ .mat-mdc-card-title,
.mat-mdc-card-title ~ .mat-mdc-card-subtitle,
.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,
.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,
.mat-mdc-card-title-group .mat-mdc-card-title,
.mat-mdc-card-title-group .mat-mdc-card-subtitle {
padding-top: 0;
}
.mat-mdc-card-content > :last-child:not(.mat-mdc-card-footer) {
margin-bottom: 0;
}
.mat-mdc-card-actions-align-end {
justify-content: flex-end;
}
`],encapsulation:2})}return t})();var Z3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})();var Y3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=xe({imports:[qe]})}return t})();var EY=gS(X3(),1),DY=gS(J3(),1);var Hs=(function(t){return t.auto="auto",t._1024x1024="1024x1024",t._1536x1024="1536x1024",t._1024x1536="1024x1536",t})(Hs||{}),ac=(function(t){return t.low="low",t.medium="medium",t.high="high",t})(ac||{}),Ua=(function(t){return t.png="png",t.jpeg="jpeg",t.webp="webp",t})(Ua||{}),tu=(function(t){return t.OPEN_AI="OpenAI",t.CLAUDE="Claude",t})(tu||{}),Do=(()=>{class t{static sNextID=0;id=0;userId=1;endpoint=aa.unknown;body="";instructions;temperature;bodyOriginal="";options;conversation;images;imageCount;imageSize;addToViewer;progressMessage;gptImageRequestData;metadata;model;character;constructor(){this.id=t.sNextID++}}return t})(),aa=(function(t){return t.unknown="unknown",t.chat="chat",t.chatResponses="chatResponses",t.ancientPhilosophy="ancientPhilosophy",t.jokes="jokes",t.topTen="topTen",t.openaimodels="openaimodels",t.characters="characters",t.toFrench="toFrench",t.toSpanish="toSpanish",t.chatStream="chatStream",t.home="home",t.chemicalElements="chemicalElements",t.socrates="socrates",t.particlePhysics="particlePhysics",t.blackjack="blackjack",t.pythonTutor="pythonTutor",t.mlTutor="mlTutor",t.dynamicWidget="dynamicWidget",t.character="character",t.characterStudio="characterStudio",t.articleStudio="articleStudio",t.imageStudio2="imageStudio2",t.usage="usage",t})(aa||{}),Wa=(function(t){return t.transparent="transparent",t.opaque="opaque",t.auto="auto",t})(Wa||{}),oc=(function(t){return t.NEW_LINE=`
`,t.BR="<br>",t.CB_NEW_LINE="__chatbot_br__",t.CB_END_STREAM="__chatbot_end__",t.THREE_TICKS="```",t.BEGIN_CODE='<div class="code-block"><pre><code>',t.END_CODE="</code></pre></div>",t})(oc||{}),Mr=(function(t){return t[t.human=0]="human",t[t.ai=1]="ai",t[t.unknown=2]="unknown",t})(Mr||{}),aS=class{constructor(){}},SY=["mysubmit"];function kY(t,i){if(t&1&&(p(0,"mat-error"),v(1),m()),t&2){let e=E();u(),M(e.errorMsg)}}var MY=[".png",".jpg",".jpeg",".webp"],TY=(()=>{class t{dialogRef;titleTxt=$localize`Import Image from URL`;urlLabelTxt=$localize`Image URL`;closeTxt=$localize`Close`;submitTxt=$localize`Add`;imageUrl="";errorMsg="";submitButton;constructor(e){this.dialogRef=e}ngAfterViewInit(){setTimeout(()=>{this.submitButton.focus()},500)}submit(){let e=this.imageUrl.trim();if(e){try{let r=new URL(e).pathname.toLowerCase();if(!MY.some(a=>r.endsWith(a))){this.errorMsg=$localize`URL must point to a PNG, JPEG, or WebP image.`;return}}catch{this.errorMsg=$localize`Please enter a valid URL.`;return}this.dialogRef.close(e)}}static \u0275fac=function(n){return new(n||t)(Z(En))};static \u0275cmp=q({type:t,selectors:[["tsai-image-url-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(SY,5),n&2){let o;K(o=X())&&(r.submitButton=o.first)}},decls:15,vars:7,consts:[["mysubmit",""],["mat-dialog-title",""],[1,"url-form"],["appearance","outline"],["matInput","","placeholder","https://example.com/image.png",3,"ngModelChange","ngModel"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(n,r){if(n&1){let o=be();p(0,"h2",1),v(1),m(),p(2,"mat-dialog-content")(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),v(6),m(),p(7,"input",4),Bi("ngModelChange",function(s){return ae(o),nr(r.imageUrl,s)||(r.imageUrl=s),se(s)}),m(),Se(),A(8,kY,2,1,"mat-error"),m()()(),p(9,"mat-dialog-actions",5)(10,"button",6),v(11),m(),p(12,"button",7,0),N("click",function(){return r.submit()}),v(14),m()()}n&2&&(u(),M(r.titleTxt),u(5),M(r.urlLabelTxt),u(),Li("ngModel",r.imageUrl),ke(),u(),R(r.errorMsg?8:-1),u(3),M(r.closeTxt),u(),S("disabled",!r.imageUrl),u(2),M(r.submitTxt))},dependencies:[cr,Ei,lr,Fa,Mn,Yo,fi,Si,gi,Pt,nn,Vn,Wn,ni,Ko,ii,Gi],styles:[".url-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;min-width:350px;padding-top:8px}.url-form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"],changeDetection:1})}return t})(),qn=(()=>{class t{http=g(oi);site=Q(void 0);constructor(){}fetchSite(e){let n=new Dn({"Content-Type":"application/json"}),r={data:window.location.host},o=e+"/site";return this.http.post(o,r,{headers:n})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yv=(()=>{class t{http;site;cancelRequest$=new ce;constructor(e,n){this.http=e,this.site=n}sendFile(e){let n=new FormData;n.append("file",e,e.name);let r=this.site.site().apiHost+"/image/upload/";return this.http.post(r,n)}uploadFromUrl(e){let n=this.site.site().apiHost+"/image/upload-from-url/";return this.http.post(n,{url:e})}browseImages(e="create,upload",n,r=24){let o=`?types=${e}&limit=${r}`;n&&(o+=`&cursor=${encodeURIComponent(n)}`);let a=this.site.site().apiHost+"/image/browse/"+o;return this.http.get(a)}getSize(e,n){let r=this.site.site().apiHost+"/compress/get-compressed-jpg-size/",o={url:e,compression_level:n};return this.http.post(r,o)}cancelRequest(){this.cancelRequest$.next()}ngOnDestroy(){this.cancelRequest$.next(),this.cancelRequest$.complete()}compressAndSave(e,n){console.log("writing compressed image");let r=this.site.site().apiHost+"/compress/convert-to-jpg/",o={url:e,compression_level:n};return this.http.post(r,o)}saveToMediaLibrary(e,n){return this.compressAndSave(e,n)}static \u0275fac=function(n){return new(n||t)(we(oi),we(qn))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),IY=()=>["create","upload"],AY=(t,i)=>i.full_url;function RY(t,i){if(t&1){let e=be();p(0,"button",12),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.toggleType(r))}),v(1),m()}if(t&2){let e=i.$implicit,n=E();ue("active",n.activeTypes().has(e)),u(),oe(" ",n.typeLabels[e]," ")}}function OY(t,i){if(t&1&&(p(0,"div",3),v(1),m()),t&2){let e=E();u(),M(e.noImagesTxt)}}function PY(t,i){t&1&&(p(0,"div",15)(1,"mat-icon"),v(2,"check_circle"),m()())}function FY(t,i){if(t&1){let e=be();p(0,"div",13),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.toggleSelect(r))}),U(1,"img",14),A(2,PY,3,0,"div",15),p(3,"div",16),v(4),m()()}if(t&2){let e=i.$implicit,n=E();ue("selected",n.isSelected(e))("disabled",n.isDisabled(e)),u(),S("src",e.thumb_url,Vr)("alt",e.filename),u(),R(n.isSelected(e)?2:-1),u(2),M(n.typeLabels[e.type])}}function NY(t,i){t&1&&(p(0,"div",6),U(1,"mat-spinner",17),m())}function LY(t,i){if(t&1){let e=be();p(0,"div",7)(1,"button",12),N("click",function(){ae(e);let r=E();return se(r.loadImages())}),v(2),m()()}if(t&2){let e=E();u(2),M(e.loadMoreTxt)}}var BY=(()=>{class t{dialogRef=g(En);data=g(Un);imageService=g(yv);titleTxt=$localize`Browse Images`;cancelTxt=$localize`Cancel`;addTxt=$localize`Add Selected`;loadMoreTxt=$localize`Load More`;noImagesTxt=$localize`No images found.`;images=Q([]);selectedUrls=Q(new Set);loading=Q(!1);nextCursor=Q(null);total=Q(0);maxSelectable=0;activeTypes=Q(new Set(["create","upload"]));typeLabels={create:$localize`Created`,upload:$localize`Uploaded`};ngOnInit(){this.maxSelectable=this.data.maxSelectable,this.loadImages()}toggleType(e){this.activeTypes.update(n=>{let r=new Set(n);return r.has(e)?r.size>1&&r.delete(e):r.add(e),r}),this.images.set([]),this.nextCursor.set(null),this.loadImages()}loadImages(){this.loading.set(!0);let e=Array.from(this.activeTypes()).join(","),n=this.nextCursor()||void 0;this.imageService.browseImages(e,n).subscribe({next:r=>{this.images.update(o=>[...o,...r.images]),this.nextCursor.set(r.next_cursor),this.total.set(r.total),this.loading.set(!1)},error:r=>{console.error("Error browsing images:",r),this.loading.set(!1)}})}toggleSelect(e){this.selectedUrls.update(n=>{let r=new Set(n);return r.has(e.full_url)?r.delete(e.full_url):r.size<this.maxSelectable&&r.add(e.full_url),r})}isSelected(e){return this.selectedUrls().has(e.full_url)}isDisabled(e){return!this.isSelected(e)&&this.selectedUrls().size>=this.maxSelectable}cancel(){this.dialogRef.close()}addSelected(){this.dialogRef.close(Array.from(this.selectedUrls()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-image-browser-dialog"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"filter-bar"],["mat-stroked-button","",3,"active"],[1,"empty-state"],[1,"image-grid"],[1,"image-card",3,"selected","disabled"],[1,"loading-spinner"],[1,"load-more"],["align","end"],[1,"selection-count"],["mat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click","disabled"],["mat-stroked-button","",3,"click"],[1,"image-card",3,"click"],["loading","lazy",3,"src","alt"],[1,"check-overlay"],[1,"type-label"],["diameter","36"]],template:function(n,r){n&1&&(p(0,"h2",0),v(1),m(),p(2,"mat-dialog-content")(3,"div",1),Je(4,RY,2,3,"button",2,Rn),m(),A(6,OY,2,1,"div",3),p(7,"div",4),Je(8,FY,5,8,"div",5,AY),m(),A(10,NY,2,0,"div",6),A(11,LY,3,1,"div",7),m(),p(12,"mat-dialog-actions",8)(13,"span",9),v(14),m(),p(15,"button",10),N("click",function(){return r.cancel()}),v(16),m(),p(17,"button",11),N("click",function(){return r.addSelected()}),v(18),m()()),n&2&&(u(),M(r.titleTxt),u(3),et(Bn(9,IY)),u(2),R(r.images().length===0&&!r.loading()?6:-1),u(2),et(r.images()),u(2),R(r.loading()?10:-1),u(),R(r.nextCursor()&&!r.loading()?11:-1),u(3),Cl(" ",r.selectedUrls().size," / ",r.maxSelectable," "),u(2),M(r.cancelTxt),u(),S("disabled",r.selectedUrls().size===0),u(),oe(" ",r.addTxt," "))},dependencies:[Mn,fi,Si,gi,Pt,nn,dn,cn,R_,ki,na],styles:[".filter-bar[_ngcontent-%COMP%]{display:flex;gap:8px;margin-bottom:16px}.filter-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:16px;font-size:13px}.filter-bar[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}.image-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-height:calc(80vh - 200px);overflow-y:auto;padding:4px}.image-card[_ngcontent-%COMP%]{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;cursor:pointer;border:3px solid transparent;transition:border-color .15s,opacity .15s}.image-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.image-card.selected[_ngcontent-%COMP%]{border-color:var(--mat-sys-primary)}.image-card.disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:none}.image-card[_ngcontent-%COMP%]:hover:not(.disabled){border-color:var(--mat-sys-outline)}.check-overlay[_ngcontent-%COMP%]{position:absolute;top:6px;right:6px;color:var(--mat-sys-primary);background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center}.check-overlay[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px}.type-label[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;padding:4px 8px;font-size:11px;color:#fff;background:#00000080;text-align:center}.empty-state[_ngcontent-%COMP%]{text-align:center;padding:48px 0;color:var(--mat-sys-on-surface-variant)}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:24px 0}.load-more[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px 0}.selection-count[_ngcontent-%COMP%]{flex:1;font-size:13px;color:var(--mat-sys-on-surface-variant);padding-left:8px}"],changeDetection:1})}return t})();function zY(t,i){t&1&&(p(0,"small"),v(1,"Username is required."),m())}function VY(t,i){t&1&&(p(0,"small"),v(1,"Username must be at least 4 characters long."),m())}function jY(t,i){if(t&1&&(p(0,"mat-error"),A(1,zY,2,0,"small"),A(2,VY,2,0,"small"),m()),t&2){let e=E();u(),R(e.loginForm.get("username")?.errors?.required?1:-1),u(),R(e.loginForm.get("username")?.errors?.minlength?2:-1)}}function HY(t,i){t&1&&(p(0,"span"),v(1,"This field is mandatory."),m())}function $Y(t,i){if(t&1&&(p(0,"mat-error"),A(1,HY,2,0,"span"),m()),t&2){let e=E();u(),R(e.loginForm.get("password")?.errors?.required?1:-1)}}var UY=(()=>{class t{formBuilder;loginForm;constructor(e){this.formBuilder=e}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",[Tt.required]],password:["",[Tt.required]]})}isValid(){return this.loginForm.valid}onSubmit(){this.loginForm.valid?console.log("Form Submitted",this.loginForm.value):console.log("Form is not valid")}static \u0275fac=function(n){return new(n||t)(Z(sh))};static \u0275cmp=q({type:t,selectors:[["tsai-login"]],decls:12,vars:3,consts:[[1,"container"],[3,"ngSubmit","formGroup"],["appearance","outline",1,"form-field"],["matInput","","type","text","formControlName","username","id","username"],["matInput","","formControlName","password","type","password"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"form",1),N("ngSubmit",function(){return r.onSubmit()}),p(2,"mat-form-field",2)(3,"mat-label"),v(4,"Username:"),m(),U(5,"input",3),Se(),A(6,jY,3,2,"mat-error"),m(),p(7,"mat-form-field",2)(8,"mat-label"),v(9," Password"),m(),U(10,"input",4),Se(),A(11,$Y,2,1,"mat-error"),m()()()),n&2&&(u(),S("formGroup",r.loginForm),u(4),ke(),u(),R(r.loginForm.get("username")?.invalid&&(r.loginForm.get("username")?.dirty||r.loginForm.get("username")?.touched)?6:-1),u(4),ke(),u(),R(r.loginForm.get("password")?.touched&&r.loginForm.get("password")?.invalid?11:-1))},dependencies:[cr,Ll,Ei,lr,Nl,Bl,go,Dd,ii,Gi,Wn,ni,Ko,Vn],styles:[".container[_ngcontent-%COMP%]{width:300px;margin:0 auto;padding-top:20px;text-align:center}div[_ngcontent-%COMP%]{margin-bottom:10px}label[_ngcontent-%COMP%]{margin-right:5px}input[_ngcontent-%COMP%]{margin-right:15px}button[_ngcontent-%COMP%]{margin-top:10px}small[_ngcontent-%COMP%]{color:red}"],changeDetection:1})}return t})(),WY=["cblogin"];function GY(t,i){if(t&1&&(p(0,"div",3)(1,"mat-error"),v(2),m()()),t&2){let e=E();u(2),M(e.errorMessage())}}var qY=(()=>{class t{dialogRef;data;loginComponent;loginTxt=$localize`Log In`;errorMessage=Q("");constructor(e,n){this.dialogRef=e,this.data=n}ngOnInit(){this.data.errorMessage&&this.errorMessage.set(this.data.errorMessage)}ngAfterViewInit(){}submitEnabled(){return this.loginComponent?this.loginComponent.isValid():!1}submit(){this.errorMessage.set(""),this.dialogRef.close({data:this.loginComponent.loginForm.value})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-login-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(WY,5),n&2){let o;K(o=X())&&(r.loginComponent=o.first)}},decls:10,vars:4,consts:[["cblogin",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"login-error"],["mat-dialog-actions","","align","center"],["mat-raised-button","",3,"click","disabled"]],template:function(n,r){n&1&&(p(0,"h1",1),v(1),m(),p(2,"div",2),U(3,"tsai-login",null,0),A(5,GY,3,1,"div",3),m(),p(6,"div",4)(7,"button",5),N("click",function(){return r.submit()}),v(8),m()(),U(9,"br")),n&2&&(u(),M(r.loginTxt),u(4),R(r.errorMessage()?5:-1),u(2),S("disabled",!r.submitEnabled()),u(),oe(" ",r.loginTxt," "))},dependencies:[Mn,fi,Si,gi,Pt,nn,UY,Vn,Ko,ii],styles:[".login-error[_ngcontent-%COMP%]{text-align:center;padding:8px 0}"],changeDetection:1})}return t})(),dL=(()=>{class t{http;site;get baseUrl(){return this.site.site().wpHost+"/wp-json/wp/v2"}constructor(e,n){this.http=e,this.site=n}isLoggedIn(e){let n=new Dn({"Content-Type":"application/json",Authorization:`Bearer ${e}`}),r=this.site.site().wpHost+"/wp-json/jwt-auth/v1/token/validate";return this.http.post(r,{},{withCredentials:!1,headers:n}).pipe(Le(o=>({loggedIn:o.success,user:o.data})),Yi(o=>Ne({loggedIn:!1,error:o.message})))}getLoginToken(e,n){let r=new Dn({"Content-Type":"application/json"}),o={username:e,password:n,site:window.location.host},a=this.site.site().apiHost+"/user/login/";return this.http.post(a,o,{headers:r})}getServiceLoginToken(){let e=new Dn({"Content-Type":"application/json"}),n={site:window.location.host},r=this.site.site().apiHost+"/user/service-login/";return this.http.post(r,n,{headers:e})}logout(e){let n=new Dn({"Content-Type":"application/json",Authorization:`Bearer ${e}`}),r={token:e},o=this.site.site().apiHost+"/user/logout/";return this.http.post(o,r,{withCredentials:!1,headers:n}).pipe(Le(a=>({detail:a.detail})),Yi(a=>Ne({detail:a.message})))}createPost(e,n,r,o,a="pending"){let s=new Dn({"Content-Type":"application/json",Authorization:`Bearer ${e}`}),l="";r.forEach(h=>{l+='<div class="chat-message">',l+=h,l+="</div><br />"});let c={title:n,content:l,status:a},d=this.site.site().wpHost+"/wp-json/wp/v2/posts";return o&&(d+="/"+o,console.log("update post")),this.http.post(d,c,{headers:s})}fetchRecentContent(e,n=5){let r=e?"publish,private":"publish",o=this.baseUrl+`/posts?_embed&per_page=${n}&status=${r}`;if(e){let a=new Dn({Authorization:`Bearer ${e}`});return this.http.get(o,{headers:a})}return this.http.get(o)}fetchFeaturedImages(e){return this.http.get(this.baseUrl+"/media?per_page=12&media_type=image")}getPostJsonFromUrl(e){console.log("fetch post at",e);let n="";return this.http.get(e)}fetchArticle(e,n){let r=new Dn({"Content-Type":"application/json",Authorization:`Bearer ${e}`});return this.http.get(this.baseUrl+"/posts/"+n)}setSiteIcon(e,n,r){return new it(o=>{let a=s=>new Promise((l,c)=>{let d=new FileReader;d.onload=()=>l(d.result.split(",")[1]),d.onerror=()=>c(d.error),d.readAsDataURL(s)});(async()=>{let l={image:await a(n)};if(r){let h=Object.keys(r),b=await Promise.all(h.map(f=>a(r[f])));l.app_icons=Object.fromEntries(h.map((f,_)=>[f,b[_]]))}let c=new Dn({"Content-Type":"application/json",Authorization:`Bearer ${e}`}),d=this.site.site().wpHost+"/wp-json/tsai/v1/site-icon";this.http.post(d,l,{headers:c}).subscribe({next:h=>{o.next(h),o.complete()},error:h=>o.error(h)})})().catch(s=>o.error(s))})}decodeHtmlEntities(e){let n=document.createElement("textarea");return n.innerHTML=e,n.textContent||""}convertWpPosts(e){let n=[],r=[];return e.forEach(o=>{let a={id:o.id,date:o.date,date_gmt:o.date_gmt,guid:{rendered:o.guid.rendered},modified:o.modified,modified_gmt:o.modified_gmt,slug:o.slug,status:o.status,type:o.type,link:o.link,title:{rendered:o.title.rendered},content:{rendered:o.content.rendered,protected:o.content.protected},excerpt:{rendered:o.excerpt.rendered,protected:o.excerpt.protected},author:o.author,featured_media:o.featured_media,comment_status:o.comment_status,ping_status:o.ping_status,sticky:o.sticky,template:o.template,format:o.format,meta:{footnotes:o.meta.footnotes},categories:[],tags:[],_links:{},_embedded:o._embedded,tsai_rating:o.tsai_rating};n.push(a)}),n.forEach(o=>{let a={title:o.title.rendered,url:o.link,imageUrl:"",fullImageUrl:"",excerpt:this.decodeHtmlEntities(o.excerpt.rendered),date:o.modified,author:o._embedded?.author?.[0]?.name??"Unknown",authorUrl:o._embedded?.author?.[0]?.link,category:o._embedded?.["wp:term"]?.[0]?.[0]?.name??"Uncategorized",categoryUrl:o._embedded?.["wp:term"]?.[0]?.[0]?.link,status:o.status,rating:o.tsai_rating};if(o._embedded?.["wp:featuredmedia"]?.[0]){let c=o._embedded["wp:featuredmedia"][0].media_details;c?.sizes?.thumbnail&&(a.imageUrl=c.sizes.thumbnail.source_url,a.fullImageUrl=o._embedded["wp:featuredmedia"][0].source_url)}a.title=this.decodeHtmlEntities(a.title);let s=new Date(a.date),l=new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(s);a.date=l,r.push(a)}),r}static \u0275fac=function(n){return new(n||t)(we(oi),we(qn))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sc=(()=>{class t{wp=g(dL);user=Q(void 0);constructor(){}doLogin(e,n){return this.wp.getLoginToken(e,n)}doServiceLogin(){return this.wp.getServiceLoginToken()}isLoggedIn(){return!!this.user()}logout(){this.user.set(void 0)}doLogout(){let e=this.user()?.wpToken||"xxx";return this.wp.logout(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uL=(()=>{class t{http;site;constructor(e,n){this.http=e,this.site=n}isLoggedIn(e){throw new Error("function not implemented")}getLoginToken(e,n){let o=this.site.site().drupalHost+"/session/token",a={headers:new Dn({"Content-Type":"application/json"}),responseType:"text"};return this.http.post(o,{},a)}logout(e){throw new Error("function not implemented")}createPost(e,n,r,o,a="1"){let s=this.site.site().drupalHost+this.site.site().drupalApi+"/node/chat",l={data:{type:"node--chat",attributes:{title:n,body:{value:"",format:"plain_text"},field_message3:r}}},c={headers:new Dn({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(s,l,c)}getCsrfToken(){let n=this.site.site().drupalHost+"/session/token",r={headers:new Dn({"Content-Type":"application/json"}),responseType:"text"};return this.http.post(n,{},r)}postPrompt(e,n){let r=this.site.site().drupalHost+this.site.site().drupalApi+"/node/prompt",o={data:{type:"node--prompt",attributes:{title:n.substring(0,50),body:{value:"",format:"plain_text"},field_message:n,field_image_prompt:!0}}},a={headers:new Dn({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(r,o,a)}fetchPrompts(e,n,r,o){let s=`&filter[field_image_prompt][value]=${o?"1":"0"}`,l=`/node/prompt?page[offset]=${e}&page[limit]=${n}&include=uid,field_categories`+s,c=this.site.site().drupalHost+this.site.site().drupalApi+l;return this.http.get(c)}static \u0275fac=function(n){return new(n||t)(we(oi),we(qn))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eL=t=>({display:t}),QY=()=>["expandedDetail"];function ZY(t,i){if(t&1&&(p(0,"th",11),v(1),m()),t&2){let e=E().$implicit;u(),M(e)}}function YY(t,i){if(t&1){let e=be();p(0,"button",15),N("click",function(){ae(e);let r=E().$implicit,o=E(2);return se(o.choosePrompt(r))}),v(1),m()}if(t&2){let e=E(3);u(),oe(" ",e.select," ")}}function KY(t,i){if(t&1&&(p(0,"td",12)(1,"div",13),v(2),A(3,YY,2,1,"button",14),m()()),t&2){let e=i.$implicit,n=E().$implicit;u(2),oe(" ",e[n]," "),u(),R(n==="Actions"?3:-1)}}function XY(t,i){if(t&1&&(xn(0,2),ot(1,ZY,2,1,"th",10)(2,KY,4,2,"td",5),Cn()),t&2){let e=i.$implicit;S("matColumnDef",Ve(e))}}function JY(t,i){t&1&&(p(0,"th",16),v(1,"\xA0"),m())}function eK(t,i){t&1&&(p(0,"mat-icon"),v(1,"keyboard_arrow_down"),m())}function tK(t,i){t&1&&(p(0,"mat-icon"),v(1,"keyboard_arrow_up"),m())}function nK(t,i){if(t&1){let e=be();p(0,"td",12)(1,"button",17),N("click",function(r){let o=ae(e).$implicit;return o.Expanded=!o.Expanded,se(r.stopPropagation())}),A(2,eK,2,0,"mat-icon"),A(3,tK,2,0,"mat-icon"),m()()}if(t&2){let e=i.$implicit;u(2),R(e.Expanded?-1:2),u(),R(e.Expanded?3:-1)}}function iK(t,i){if(t&1&&(p(0,"td",12)(1,"div",18)(2,"div",19)(3,"strong"),v(4),m(),v(5),m()()()),t&2){let e=i.$implicit,n=E();he("colspan",n.columnsToDisplayWithExpand.length),u(),S("@detailExpand",e.Expanded?"expanded":"collapsed"),u(3),oe("",n.fullText,":"),u(),oe(" ",e.Message," ")}}function rK(t,i){t&1&&U(0,"tr",20)}function oK(t,i){if(t&1){let e=be();p(0,"tr",21),N("click",function(){let r=ae(e).$implicit;return se(r.Expanded=!r.Expanded)}),m()}if(t&2){let e=i.$implicit;ue("expanded-row",e.Expanded)}}function aK(t,i){t&1&&U(0,"tr",22)}var sK=(()=>{class t{user;site;drupal;imagePrompt=Dt(!1);character=Dt.required();select=$localize`Select`;fullText=$localize`Prompt`;rowActions=$localize`row actions`;promptData=[];loaded=!1;dataSource=new Bd(this.promptData);columnsToDisplay=["Category","Title","Actions"];columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"];choosePromptEvent=new le;table;terms=[];constructor(e,n,r){this.user=e,this.site=n,this.drupal=r}ngOnInit(){}ngAfterViewInit(){this.fetchPrompts()}fetchPrompts(){let e=this,n=this.site.site().drupalUid;this.drupal.fetchPrompts(0,50,n,this.imagePrompt()).pipe(mt(1),Le(r=>{if(this.loaded=!0,!r)return console.log("no data received"),{prompts:[],terms:[]};let a=(r.included||[]).filter(c=>c.type.startsWith("taxonomy_term"));e.terms=a;let s=r.data,l=this.loadPrompts(s);return this.imagePrompt()||(l=this.filterPromptsByCategory(l)),l=this.sortPrompts(l),{prompts:l,terms:a}}),Yi(r=>(console.log("error:",r),Ne({prompts:[],terms:[]})))).subscribe(({prompts:r,terms:o})=>{this.terms=o,this.dataSource.data=r,this.table.renderRows()})}filterPromptsByCategory(e){let n=["Tech","Sales","Support","Legal"];return e.filter(r=>!r.Categories||r.Categories.length===0?!1:this.site.site()?.appId==="sas"?n.includes(r.Category):!n.includes(r.Category))}sortByCategory(e,n){return e.sort((r,o)=>r.Category===n&&o.Category!==n?-1:r.Category!==n&&o.Category===n?1:0)}sortPrompts(e){let n=e.sort((a,s)=>a.Category>s.Category?1:a.Category<s.Category?-1:0),r="Tech",o=this.character();return o&&(o.name==="Alma"?r="Sales":o.name==="Roberto"&&(r="Support")),this.sortByCategory(e,r),n}loadPrompts(e){let n=[];return e.forEach(r=>{let o=r.relationships,a=r.attributes,l=Date.parse(a.changed),c=new Date(l),d={},h=new Intl.DateTimeFormat("en-US",d).format(c),f=o.uid.data.id,_=o.field_categories.data,y=[];_&&_.forEach(D=>{let k=this.terms.find(T=>T.id===D.id);k?y.push(k.attributes.name):console.log("prompt is not categorized.")});let C={ID:a.drupal_internal__nid,Title:a.title,Message:a.field_message[0],Categories:y,Category:y.length?y[0]:"",Revision:a.drupal_internal__vid,Modified:h,Expanded:!1,Uid:f};n.push(C)}),n}choosePrompt(e){this.choosePromptEvent.emit(e)}static \u0275fac=function(n){return new(n||t)(Z(sc),Z(qn),Z(uL))};static \u0275cmp=q({type:t,selectors:[["tsai-choose-prompt"]],viewQuery:function(n,r){if(n&1&&Qe(zd,5),n&2){let o;K(o=X())&&(r.table=o.first)}},inputs:{imagePrompt:[1,"imagePrompt"],character:[1,"character"]},outputs:{choosePromptEvent:"choosePromptEvent"},decls:13,vars:11,consts:[[1,"loader",3,"ngStyle"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],[3,"matColumnDef"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","","class","prompts-header-row",4,"matHeaderRowDef"],["mat-row","","class","prompt-row",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-cell",""],["mat-cell",""],[1,"prompt-column-container"],["color","primary","mat-stroked-button","","aria-label","Select",1,"choose-prompt-button"],["color","primary","mat-stroked-button","","aria-label","Select",1,"choose-prompt-button",3,"click"],["mat-header-cell","","aria-label","row actions"],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"prompt-detail"],[1,"prompt-description"],["mat-header-row","",1,"prompts-header-row"],["mat-row","",1,"prompt-row",3,"click"],["mat-row","",1,"detail-row"]],template:function(n,r){n&1&&(p(0,"div",0),U(1,"mat-spinner"),m(),p(2,"table",1),Je(3,XY,3,2,"ng-container",2,Rn),xn(5,3),ot(6,JY,2,0,"th",4)(7,nK,4,2,"td",5),Cn(),xn(8,6),ot(9,iK,6,4,"td",5),Cn(),ot(10,rK,1,0,"tr",7)(11,oK,1,2,"tr",8)(12,aK,1,0,"tr",9),m()),n&2&&(S("ngStyle",tn(6,eL,r.loaded?"none":"block")),u(2),S("ngStyle",tn(8,eL,r.loaded?"table":"none"))("dataSource",r.dataSource),u(),et(r.columnsToDisplay),u(7),S("matHeaderRowDef",r.columnsToDisplayWithExpand),u(),S("matRowDefColumns",r.columnsToDisplayWithExpand),u(),S("matRowDefColumns",Bn(10,QY)))},dependencies:[Q_,zd,V_,U_,j_,z_,W_,H_,$_,G_,q_,zi,uo,Pt,nn,vo,dn,cn,ki,na],styles:[".loader[_ngcontent-%COMP%]{text-align:center}.loader[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:0 auto}table[_ngcontent-%COMP%]{width:100%}tr.detail-row[_ngcontent-%COMP%]{height:0}tr.prompt-row[_ngcontent-%COMP%]:not(.expanded-row):active{background:#efefef}.prompt-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.prompt-column-container[_ngcontent-%COMP%]{margin-top:10px}.prompt-column-container[_ngcontent-%COMP%] .choose-prompt-button[_ngcontent-%COMP%]{height:24px;margin:5px 0}.prompt-detail[_ngcontent-%COMP%]{display:block}.prompt-description[_ngcontent-%COMP%]{padding:20px 5px}"],data:{animation:[Gm("detailExpand",[Ss("collapsed,void",ho({height:"0px",minHeight:"0"})),Ss("expanded",ho({height:"*"})),Qm("expanded <=> collapsed",qm("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]},changeDetection:1})}return t})(),lK=(()=>{class t{dialog;dialogRef;data;choosePromptMsg=$localize`Choose a Prompt:`;closeMsg=$localize`Close`;constructor(e,n,r){this.dialog=e,this.dialogRef=n,this.data=r}choosePrompt(e){this.dialogRef.close({prompt:e})}static \u0275fac=function(n){return new(n||t)(Z(qr),Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-choose-prompt-dialog"]],decls:11,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"choosePromptEvent","imagePrompt","character"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"p"),v(4),m(),p(5,"p"),v(6),m(),p(7,"tsai-choose-prompt",2),N("choosePromptEvent",function(a){return r.choosePrompt(a)}),m()(),p(8,"div",3)(9,"button",4),v(10),m()()),n&2&&(u(),M(r.choosePromptMsg),u(3),M(r.data.msg),u(2),M(r.data.msg2),u(),S("imagePrompt",r.data.imagePrompt??!1)("character",r.data.characterData),u(3),M(r.closeMsg))},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,sK],encapsulation:2,changeDetection:1})}return t})();function cK(t,i){t&1&&(p(0,"mat-error"),v(1,"Please enter a valid email address"),m())}function dK(t,i){t&1&&(p(0,"mat-error"),v(1,"Email is "),p(2,"strong"),v(3,"required"),m()())}function uK(t,i){t&1&&(p(0,"span"),v(1,"This field is required."),m())}function mK(t,i){if(t&1&&(p(0,"mat-error"),A(1,uK,2,0,"span"),m()),t&2){let e=E();u(),R(e.form.get("comment")?.errors?.required?1:-1)}}var hK=(()=>{class t{formBuilder;dialogRef;data;shareTxt=$localize`Share`;closeTxt=$localize`Close`;commentTxt=$localize`Comment`;commentTipTxt=$localize`Enter your comment here`;p1=$localize`Share your conversation with the staff at Turman Solutions.`;form;constructor(e,n,r){this.formBuilder=e,this.dialogRef=n,this.data=r}ngOnInit(){console.log("dialog data",this.data),this.form=this.formBuilder.group({email:["",[Tt.required,Tt.email]],comment:["",[Tt.required]]})}ngAfterViewInit(){}isValid(){return this.form.valid}submitEnabled(){return this.form.valid}submit(){console.log("valid",this.form.value),this.dialogRef.close({data:this.form.value})}static \u0275fac=function(n){return new(n||t)(Z(sh),Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-share-dialog"]],decls:26,vars:12,consts:[["mat-dialog-title",""],[1,"dialog-header"],["mat-dialog-content",""],[1,"container"],[3,"formGroup"],[1,"my-form-field"],["appearance","outline",1,"form-field"],["matInput","","type","email","formControlName","email","id","email"],["matInput","","name","comment","formControlName","comment",3,"placeholder"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""],["mat-raised-button","",3,"click","disabled"]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1),v(3),m(),p(4,"div",2)(5,"div",3)(6,"form",4)(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),v(10,"Email:"),m(),U(11,"input",7),Se(),A(12,cK,2,0,"mat-error"),A(13,dK,4,0,"mat-error"),m()(),p(14,"div",5)(15,"mat-form-field",6)(16,"mat-label"),v(17),m(),U(18,"textarea",8),Se(),A(19,mK,2,1,"mat-error"),m()()()()(),p(20,"div",9)(21,"button",10),v(22),m(),p(23,"button",11),N("click",function(){return r.submit()}),v(24),m()(),U(25,"br")),n&2&&(u(),M(r.shareTxt),u(2),M(r.p1),u(3),S("formGroup",r.form),u(5),ke(),u(),R(r.form.get("email").hasError("email")&&!r.form.get("email").hasError("required")?12:-1),u(),R(r.form.get("email").hasError("required")?13:-1),u(4),M(r.commentTxt),u(),S("placeholder",Ve(r.commentTipTxt)),ke(),u(),R(r.form.get("comment")?.touched&&r.form.get("comment")?.invalid?19:-1),u(3),M(r.closeTxt),u(),S("disabled",!r.submitEnabled()),u(),oe(" ",r.shareTxt," "))},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,ii,Gi,Wn,ni,Ko,Vn,cr,Ll,Ei,lr,Nl,Bl,go,Dd],styles:[".dialog-header[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}"],changeDetection:1})}return t})(),Wh=(()=>{class t{site;constructor(e){this.site=e}pxToNum(e){let n=e;return n.endsWith("px")&&(n=n.substring(0,n.length-2)),parseInt(n,10)}numToPx(e){return e===0?"0":e+"px"}formatDate(e){let n=new Date(e),r=""+(n.getMonth()+1),o=""+n.getDate(),a=n.getFullYear();return r.length<2&&(r="0"+r),o.length<2&&(o="0"+o),[a,r,o].join("-")}formatDateShort(e){let n=new Date(e),r=""+(n.getMonth()+1),o=""+n.getDate(),a=n.getFullYear();r.length<2&&(r="0"+r),o.length<2&&(o="0"+o);let s=a.toString().substring(2);return[r,o,s].join("-")}truncateString(e,n=200){if(e.length<=n)return e;let r=e.slice(0,n);if(e.charAt(n)!==" "){let o=r.lastIndexOf(" ");o>-1&&(r=r.slice(0,o))}return r+"..."}createDefaultWidgetConfig(){return{endpoint:aa.unknown,messageHint:$localize`Enter your message`,message:"",messageType:$localize`Chat Message`,features:{prompt:!0,new:!0,save:!1,prompts:{enabled:!1,imagePrompt:!1},clear:!1,share:!1,send:!0,enhance:!1,refresh:!1,uploadImages:!1,uploadImagesImageSize:!1,downloadImages:!1,copyToClipboard:!0,copyToPrompt:!0,saveImagePrompt:!1,createImageFromText:!1,autoSend:{enabled:!1,addToViewer:!1,addUserName:!1},streamedResponses:!1,useLangChain:!1,useStructuredOutput:!1,modelSelection:!0,useAgentTools:!1},model:this.createDefaultModel()}}createDefaultCharacter(){return{slug:"",name:"",email:"tester@example.com",description:"You are a helpful assistant.",enabled:!0,date:new Date(Date.now()),model:this.createDefaultModel(),researchCurrentEvents:!1,createFeaturedImage:!1,createSecondaryImage:!1,enableFactChecking:!1,enableCorrections:!1,includePreviousArticles:!0,searchQuery:"",searchDomainsIncluded:void 0,searchDomainsExcluded:void 0,searchTopicType:"general",searchTimeRange:null,maxSearchResults:5,searchDepth:"basic",chunksPerSource:3,shared:!0}}createDefaultModel(){return{provider:tu.CLAUDE,name:"claude-sonnet-4-5-20250929",temperature:.7,maxTokens:16384,stream:!0}}convertAIMessageToHtml(e){let n=JSON.parse(e);return n=n.replace(/[\u00A0-\u9999<>\&]/g,function(r){return"&#"+r.charCodeAt(0)+";"}),n=this.addCodeTags(n),n}addCodeTags(e){function r(l){let c="",d=!1;for(let h=l;!d;h++){if(e.charAt(h)===`
`){d=!0;continue}c+=e[h]}return c}let o="",a="",s=!1;for(let l=0;l<e.length;l++){let c=e.charAt(l);if(c==="`"){if(a+="`",a==="```")if(s)o+="</code></pre></div>",s=!1,a="";else{let d=r(l+1);o+='<div class="code-block '+d+'"><pre><code>',l+=d.length,s=!0,a=""}continue}a.length&&(a="",s=!1),c===`
`&&!s?o+="<br>":o+=c}return o}logHidden(e){let n=e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");console.log(n)}strCount(e,n,r=!1){let o=0,a=0;if(n.length<=0)return e.length+1;for(;a=e.indexOf(n,a),a>=0;)o++,a+=r?1:n.length;return o}escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}static \u0275fac=function(n){return new(n||t)(we(qn))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sS=(()=>{class t{http;siteService;modelsSubject=new qt([]);loadingSubject=new qt(!1);errorSubject=new qt(null);models=Q([]);loading=Q(!1);error=Q(null);constructor(e,n){this.http=e,this.siteService=n,this.modelsSubject.subscribe(r=>this.models.set(r)),this.loadingSubject.subscribe(r=>this.loading.set(r)),this.errorSubject.subscribe(r=>this.error.set(r))}getAvailableModels(){let e=this.siteService.site();if(!e)return this.errorSubject.next("Site configuration not available"),Ne([]);this.loadingSubject.next(!0),this.errorSubject.next(null);let n=`${e.apiHost}/chat-lc/models-langchain/`;return this.http.get(n).pipe(Le(r=>{let o=r.models.map(a=>({provider:a.provider,name:a.name,description:a.description,maxTokens:a.max_tokens,supportsStreaming:a.supports_streaming,supportsStructuredOutput:a.supports_structured_output}));return this.modelsSubject.next(o),this.loadingSubject.next(!1),o}),Yi(r=>(console.error("Error fetching models:",r),this.errorSubject.next("Failed to load available models"),this.loadingSubject.next(!1),Ne([]))))}getModelsByProvider(e){return this.models().filter(n=>n.provider===e)}modelsByProvider(e){return Wt(()=>this.models().filter(n=>n.provider===e))}getFirstModelForProvider(e){let n=this.getModelsByProvider(e);return n.length>0?n[0]:null}isModelAvailable(e,n){return this.models().some(r=>r.provider===e&&r.name===n)}refreshModels(){return this.getAvailableModels()}static \u0275fac=function(n){return new(n||t)(we(oi),we(qn))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ga=(()=>{class t{http;site;user;constructor(e,n,r){this.http=e,this.site=n,this.user=r}clone(e){return{slug:e.slug,name:e.name,email:e.email,description:e.description,enabled:!!e.enabled,model:e.model,date:new Date,storageId:"",researchCurrentEvents:e.researchCurrentEvents,searchQuery:e.searchQuery,searchDomainsIncluded:e.searchDomainsIncluded,searchDomainsExcluded:e.searchDomainsExcluded,searchTopicType:e.searchTopicType,searchTimeRange:e.searchTimeRange,maxSearchResults:e.maxSearchResults,articleSchedule:e.articleSchedule,commentSchedule:e.commentSchedule,shared:!1,history:[...e.history||[],{timestamp:new Date().toISOString(),description:this.buildHistoryDescription(`Cloned from "${e.name}"`)}]}}buildHistoryDescription(e){let n=this.user.user()?.name,r=this.site.site()?.wpHost||"",o=r.split("://")[1]||r,a=n?` by ${n}`:"",s=o?` on ${o}`:"";return`${e}${a}${s}`}fetchModifiedFilteredAndSortedCharacters(){return this.fetchMyCharacters().pipe(Le(e=>e.sort((n,r)=>n.name<r.name?-1:n.name>r.name?1:0)))}fetchMyCharacters(){let e=this.site.site().apiHost+"/cms/characters/";return this.http.get(e).pipe(Le(n=>n.data))}fetchImportableCharacters(){let e=this.site.site().apiHost+"/cms/characters/importable/";return this.http.get(e).pipe(Le(n=>n.data),Le(n=>n.sort((r,o)=>r.name.localeCompare(o.name))))}loadCharacterBySlug(e){let n=this.site.site(),r=n.apiHost+"/cms/character/by-slug/"+encodeURIComponent(n.slug)+"/"+encodeURIComponent(e);return this.http.get(r).pipe(Le(o=>o.data))}fetchSiteDomains(){let e=this.site.site().apiHost+"/cms/site-domains/";return this.http.get(e).pipe(Le(n=>n.data))}fetchRemoteServers(){let e=this.site.site().apiHost+"/cms/remote-servers/";return this.http.get(e).pipe(Le(n=>n.data))}fetchRemoteCharacters(e){let n=this.site.site().apiHost+"/cms/remote-characters/?server_url="+encodeURIComponent(e);return this.http.get(n).pipe(Le(r=>r.data))}fetchScheduleHistory(){let e=this.site.site(),n=e.apiHost+"/cms/schedule/history?site="+encodeURIComponent(e.slug);return this.http.get(n).pipe(Le(r=>r.data))}postCharacter(e){let n={character:e},r=this.site.site().apiHost+"/cms/character/";return this.http.post(r,n)}patchCharacter(e){let n={character:e},r=this.site.site().apiHost+"/cms/character/";return this.http.patch(r,n)}deleteCharacter(e){let n=this.site.site().apiHost+"/cms/character/"+e.storageId;return this.http.delete(n)}static \u0275fac=function(n){return new(n||t)(we(oi),we(qn),we(sc))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tL=(t,i)=>i.label,pK=(t,i)=>i.name;function fK(t,i){t&1&&(p(0,"mat-error"),v(1,"Search query is required when research current events is enabled"),m())}function gK(t,i){if(t&1&&(p(0,"mat-form-field")(1,"mat-label"),v(2),m(),U(3,"input",73),Se(),p(4,"mat-hint"),v(5),m()()),t&2){let e=E(2);u(2),M(e.chunksPerSourceTxt),u(),ke(),u(2),M(e.chunksPerSourceHint)}}function _K(t,i){if(t&1&&(p(0,"mat-form-field",58)(1,"mat-label"),v(2),m(),U(3,"input",59),Se(),A(4,fK,2,0,"mat-error"),m(),p(5,"mat-form-field",60)(6,"mat-label"),v(7),m(),p(8,"mat-select",61)(9,"mat-option",62)(10,"mat-icon"),v(11,"public"),m(),v(12),m(),p(13,"mat-option",63)(14,"mat-icon"),v(15,"newspaper"),m(),v(16),m()(),Se(),p(17,"mat-hint"),v(18,"Choose between general web search or news-focused search"),m()(),p(19,"mat-form-field",60)(20,"mat-label"),v(21),m(),p(22,"mat-select",64)(23,"mat-option",44)(24,"mat-icon"),v(25,"all_inclusive"),m(),v(26),m(),p(27,"mat-option",65)(28,"mat-icon"),v(29,"today"),m(),v(30),m(),p(31,"mat-option",66)(32,"mat-icon"),v(33,"date_range"),m(),v(34),m(),p(35,"mat-option",67)(36,"mat-icon"),v(37,"calendar_month"),m(),v(38),m(),p(39,"mat-option",68)(40,"mat-icon"),v(41,"calendar_today"),m(),v(42),m()(),Se(),p(43,"mat-hint"),v(44),m()(),p(45,"mat-form-field")(46,"mat-label"),v(47),m(),U(48,"input",69),Se(),p(49,"mat-hint"),v(50),m()(),p(51,"mat-form-field",60)(52,"mat-label"),v(53),m(),p(54,"mat-select",70)(55,"mat-option",71)(56,"mat-icon"),v(57,"bolt"),m(),v(58),m(),p(59,"mat-option",72)(60,"mat-icon"),v(61,"search"),m(),v(62),m()(),Se(),p(63,"mat-hint"),v(64),m()(),A(65,gK,6,2,"mat-form-field")),t&2){let e=E();u(2),M(e.searchQueryTxt),u(),S("placeholder",e.searchQueryHint),ke(),u(),R(e.secondFormGroup.get("searchQuery")?.hasError("required")?4:-1),u(3),M(e.searchTopicTypeTxt),u(),ke(),u(4),oe(" ",e.searchTopicGeneralTxt," "),u(4),oe(" ",e.searchTopicNewsTxt," "),u(5),M(e.searchTimeRangeTxt),u(),ke(),u(),S("value",null),u(3),oe(" ",e.searchTimeRangeNoneTxt," "),u(4),oe(" ",e.searchTimeRangeDayTxt," "),u(4),oe(" ",e.searchTimeRangeWeekTxt," "),u(4),oe(" ",e.searchTimeRangeMonthTxt," "),u(4),oe(" ",e.searchTimeRangeYearTxt," "),u(2),M(e.searchTimeRangeHint),u(3),M(e.maxSearchResultsTxt),u(),ke(),u(2),M(e.maxSearchResultsHintTxt),u(3),M(e.searchDepthTxt),u(),ke(),u(4),oe(" ",e.searchDepthBasicTxt," "),u(4),oe(" ",e.searchDepthAdvancedTxt," "),u(2),M(e.searchDepthHint),u(),R(e.secondFormGroup.get("searchDepth")?.value==="advanced"?65:-1)}}function vK(t,i){if(t&1){let e=be();p(0,"mat-chip-option",74),N("click",function(){let r=ae(e).$index,o=E();return se(o.toggleDayOfWeek("articleDaysOfWeek",r))}),v(1),m()}if(t&2){let e=i.$implicit,n=i.$index,r=E();S("selected",r.isDayOfWeekSelected("articleDaysOfWeek",n)),u(),oe(" ",e," ")}}function bK(t,i){if(t&1){let e=be();p(0,"button",75),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.toggleDayOfMonth("articleDaysOfMonth",r))}),v(1),m()}if(t&2){let e=i.$implicit,n=E();ue("selected",n.isDayOfMonthSelected("articleDaysOfMonth",e)),u(),oe(" ",e," ")}}function yK(t,i){if(t&1){let e=be();p(0,"mat-chip-option",74),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.toggleHourRange("articlePreferredHours",r.hours))}),v(1),m()}if(t&2){let e=i.$implicit,n=E();ue("partial",n.isHourRangePartial("articlePreferredHours",e.hours)),S("selected",n.isHourRangeSelected("articlePreferredHours",e.hours)),u(),oe(" ",e.label," ")}}function xK(t,i){if(t&1){let e=be();p(0,"mat-chip-option",74),N("click",function(){let r=ae(e).$index,o=E();return se(o.toggleDayOfWeek("commentDaysOfWeek",r))}),v(1),m()}if(t&2){let e=i.$implicit,n=i.$index,r=E();S("selected",r.isDayOfWeekSelected("commentDaysOfWeek",n)),u(),oe(" ",e," ")}}function CK(t,i){if(t&1){let e=be();p(0,"button",75),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.toggleDayOfMonth("commentDaysOfMonth",r))}),v(1),m()}if(t&2){let e=i.$implicit,n=E();ue("selected",n.isDayOfMonthSelected("commentDaysOfMonth",e)),u(),oe(" ",e," ")}}function wK(t,i){if(t&1){let e=be();p(0,"mat-chip-option",74),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.toggleHourRange("commentPreferredHours",r.hours))}),v(1),m()}if(t&2){let e=i.$implicit,n=E();ue("partial",n.isHourRangePartial("commentPreferredHours",e.hours)),S("selected",n.isHourRangeSelected("commentPreferredHours",e.hours)),u(),oe(" ",e.label," ")}}function EK(t,i){if(t&1&&(p(0,"div",42)(1,"mat-icon"),v(2,"warning"),m(),v(3),m()),t&2){let e=E();u(3),oe(" ",e.modelsError()," ")}}function DK(t,i){if(t&1&&(p(0,"mat-option",44),v(1),m()),t&2){let e=i.$implicit;S("value",e),u(),M(e)}}function SK(t,i){t&1&&(p(0,"mat-option",46),v(1,"Loading models..."),m())}function kK(t,i){t&1&&(p(0,"mat-option",46),v(1,"No models available for this provider"),m())}function MK(t,i){t&1&&(p(0,"mat-option",46),v(1,"Please select a provider first"),m())}function TK(t,i){if(t&1&&(p(0,"span",76),v(1),m()),t&2){let e=E().$implicit;u(),oe(" - ",e.description)}}function IK(t,i){if(t&1&&(p(0,"mat-option",47),v(1),A(2,TK,2,1,"span",76),m()),t&2){let e=i.$implicit;S("value",e.name)("matTooltip",e.description||""),u(),oe(" ",e.name," "),u(),R(e.description?2:-1)}}function AK(t,i){if(t&1&&v(0),t&2){let e=E();M(e.step5Txt)}}function RK(t,i){if(t&1&&(p(0,"div"),v(1),m()),t&2){let e=E();u(),M(e.confirmEditTxt)}}function OK(t,i){if(t&1&&(p(0,"div"),v(1),m()),t&2){let e=E();u(),M(e.confirmCreateTxt)}}function PK(t,i){if(t&1){let e=be();p(0,"p",77),N("click",function(){ae(e);let r=E();return se(r.goToStep(0))}),v(1),m()}if(t&2){let e=E();u(),oe(" ",e.error1," ")}}function FK(t,i){if(t&1){let e=be();p(0,"p",78),N("click",function(){ae(e);let r=E();return se(r.goToStep(1))}),v(1),m()}if(t&2){let e=E();u(),oe(" ",e.error2," ")}}function NK(t,i){if(t&1){let e=be();p(0,"p",79),N("click",function(){ae(e);let r=E();return se(r.goToStep(2))}),v(1),m()}if(t&2){let e=E();u(),oe(" ",e.errorSchedule," ")}}function LK(t,i){if(t&1){let e=be();p(0,"p",80),N("click",function(){ae(e);let r=E();return se(r.goToStep(3))}),v(1),m()}if(t&2){let e=E();u(),oe(" ",e.error3," ")}}var BK=(()=>{class t{dialogService;utils;formBuilder;site;modelsService;charactersService;step1Txt=$localize`Info`;step2Txt=$localize`Options`;step3Txt=$localize`Schedule`;step4Txt=$localize`AI Model`;step5Txt=$localize`Confirm`;nextTxt=$localize`Next`;backTxt=$localize`Back`;confirmTxt=$localize`Confirm`;requiredTxt=$localize`Required Field`;minLengthTxt=$localize`Field has a minimum length of `;submitTxt=$localize`Submit`;nameTxt=$localize`Name`;nameTipTxt=$localize`Give a name to your character.`;shortNameTxt=$localize`Short Name`;shortNameTipTxt=$localize`Give a short name to your character.`;emailTxt=$localize`Email`;emailTipTxt=$localize`An email address to use for your character.`;descriptionTxt=$localize`Description`;descriptionTipTxt=$localize`Describe your character`;createFeaturedImageTxt=$localize`Create Featured Image`;createFeaturedImageTip=$localize`Generate a featured image for articles by default`;createSecondaryImageTxt=$localize`Create Secondary Image`;createSecondaryImageTip=$localize`Generate an additional image for articles by default`;enableFactCheckingTxt=$localize`Enable Fact-Checking`;enableFactCheckingTip=$localize`Add an AI-powered fact-checking comment to articles by default`;enableCorrectionsTxt=$localize`Enable Auto-Corrections`;enableCorrectionsTip=$localize`Post a corrections follow-up and edit the article when the fact-check finds genuine errors (requires fact-checking)`;includePreviousArticlesTxt=$localize`Include Previous Articles`;includePreviousArticlesTip=$localize`Reference previous articles for consistency by default`;researchCurrentEventsTxt=$localize`Research Current Events`;researchCurrentEventsTip=$localize`Search for real-time news and information`;searchQueryTxt=$localize`Search Query`;searchQueryHint=$localize`Required when research is enabled. e.g., "Angular latest features" or "extreme weather news"`;searchDomainsIncludedTxt=$localize`Search Domains Included`;searchDomainsIncludedTipTxt=$localize`Domains to include in searches (one per line)`;searchDomainsExcludedTxt=$localize`Search Domains Excluded`;searchDomainsExcludedTipTxt=$localize`Domains to exclude from searches (one per line)`;searchTopicTypeTxt=$localize`Search Topic Type`;searchTopicGeneralTxt=$localize`General`;searchTopicNewsTxt=$localize`News`;searchTimeRangeTxt=$localize`Time Range Filter`;searchTimeRangeHint=$localize`Limit results to a specific time period`;searchTimeRangeNoneTxt=$localize`All Time (No Filter)`;searchTimeRangeDayTxt=$localize`Past 24 Hours`;searchTimeRangeWeekTxt=$localize`Past Week`;searchTimeRangeMonthTxt=$localize`Past Month`;searchTimeRangeYearTxt=$localize`Past Year`;maxSearchResultsTxt=$localize`Max Search Results`;maxSearchResultsHintTxt=$localize`Maximum number of search results to include (1-20)`;searchDepthTxt=$localize`Search Depth`;searchDepthHint=$localize`Basic uses 1 credit, Advanced uses 2 credits but provides richer results`;searchDepthBasicTxt=$localize`Basic (1 credit)`;searchDepthAdvancedTxt=$localize`Advanced (2 credits)`;chunksPerSourceTxt=$localize`Chunks Per Source`;chunksPerSourceHint=$localize`Number of content chunks per source (1-3, only applies to Advanced depth)`;enabledTxt=$localize`Enabled`;enabledTipTxt=$localize`Enable or disable your character`;sharedTxt=$localize`Shared`;sharedTipTxt=$localize`Allow other sites to import this character`;modelTxt=$localize`AI Model`;modelTipTxt=$localize`Select the AI model and configuration for your character`;providerTxt=$localize`Provider`;modelNameTxt=$localize`Model Name`;temperatureTxt=$localize`Temperature`;temperatureTipTxt=$localize`Controls randomness (0-1, higher = more creative)`;maxTokensTxt=$localize`Max Tokens`;maxTokensTipTxt=$localize`Maximum response length (optional)`;streamTxt=$localize`Streaming`;streamTipTxt=$localize`Enable streaming responses`;articleScheduleTxt=$localize`Article Schedule`;articleScheduleTipTxt=$localize`Configure when articles are posted`;commentScheduleTxt=$localize`Comment Schedule`;commentScheduleTipTxt=$localize`Configure when comments are posted`;scheduleEmptyHintTxt=$localize`Pick at least one day for this character to post; with no days selected it won't post.`;daysOfWeekTxt=$localize`Days of Week`;daysOfMonthTxt=$localize`Days of Month`;preferredHoursTxt=$localize`Preferred Hours`;preferredHoursHintTxt=$localize`Leave empty for any time`;dayNames=[$localize`Sun`,$localize`Mon`,$localize`Tue`,$localize`Wed`,$localize`Thu`,$localize`Fri`,$localize`Sat`];hourRanges=[{label:$localize`Morning (6-11)`,hours:[6,7,8,9,10,11]},{label:$localize`Afternoon (12-17)`,hours:[12,13,14,15,16,17]},{label:$localize`Evening (18-23)`,hours:[18,19,20,21,22,23]},{label:$localize`Night (0-5)`,hours:[0,1,2,3,4,5]}];confirmCreateTxt=$localize`Create new character?`;confirmEditTxt=$localize`Confirm character changes?`;editData=Dt();saveEvent=new le;stepperOrientation;character;providers=Object.values(tu);availableModels=[];filteredModels=[];modelsLoading=Q(!1);modelsError=Q(null);constructor(e,n,r,o,a,s,l){this.dialogService=e,this.utils=n,this.formBuilder=r,this.site=a,this.modelsService=s,this.charactersService=l,this.character=this.utils.createDefaultCharacter(),this.stepperOrientation=o.observe("(min-width: 800px)").pipe(Le(({matches:c})=>c?"horizontal":"vertical"))}ngOnInit(){let e=this.editData();e?(this.character=e,console.log("edit character data",this.character)):console.log("default character data: ",this.character),this.buildForm(),this.loadModels()}loadModels(){this.modelsLoading.set(!0),this.modelsError.set(null),this.thirdFormGroup?.get("modelName")?.disable(),this.modelsService.getAvailableModels().subscribe({next:e=>{this.availableModels=e,this.modelsLoading.set(!1),console.log("Available models loaded:",e),this.thirdFormGroup?.get("modelName")?.enable(),this.character.model?.provider&&this.onProviderChange(this.character.model.provider)},error:e=>{console.error("Failed to load models:",e),this.modelsLoading.set(!1),this.modelsError.set("Failed to load available models. Model selection may be limited."),this.thirdFormGroup?.get("modelName")?.enable()}})}group;firstFormGroup;secondFormGroup;scheduleFormGroup;thirdFormGroup;daysOfMonth=Array.from({length:31},(e,n)=>n+1);buildForm(){let e=this.character.searchDomainsIncluded?.join(`
`)||"",n=this.character.searchDomainsExcluded?.join(`
`)||"";if(this.firstFormGroup=this.formBuilder.group({slug:[this.character.slug,[Tt.required]],name:[this.character.name,[Tt.required]],email:[this.character.email,[Tt.email,Tt.required]],description:[this.character.description,[Tt.required]],date:[this.character.date,[Tt.required]]}),!this.character.storageId){let r=this.firstFormGroup.get("name"),o=this.firstFormGroup.get("slug");r.valueChanges.pipe(Ar(150)).subscribe(a=>{if(o.dirty)return;let s=this.makeSlug(a||"");o.value!==s&&o.setValue(s)})}this.secondFormGroup=this.formBuilder.group({enabled:[this.character.enabled],shared:[this.character.shared!==!1],createFeaturedImage:[this.character.createFeaturedImage||!1],createSecondaryImage:[this.character.createSecondaryImage||!1],enableFactChecking:[this.character.enableFactChecking||!1],enableCorrections:[{value:this.character.enableCorrections||!1,disabled:!this.character.enableFactChecking}],includePreviousArticles:[this.character.includePreviousArticles!==!1],researchCurrentEvents:[this.character.researchCurrentEvents||!1],searchQuery:[this.character.searchQuery||""],searchDomainsIncluded:[e],searchDomainsExcluded:[n],searchTopicType:[this.character.searchTopicType||"general"],searchTimeRange:[this.character.searchTimeRange||null],maxSearchResults:[this.character.maxSearchResults??5,[Tt.required,Tt.min(1),Tt.max(20)]],searchDepth:[this.character.searchDepth||"basic"],chunksPerSource:[this.character.chunksPerSource??3,[Tt.required,Tt.min(1),Tt.max(3)]]}),this.scheduleFormGroup=this.formBuilder.group({articleDaysOfWeek:[this.character.articleSchedule?.daysOfWeek||[]],articleDaysOfMonth:[this.character.articleSchedule?.daysOfMonth||[]],articlePreferredHours:[this.character.articleSchedule?.preferredHours||[]],commentDaysOfWeek:[this.character.commentSchedule?.daysOfWeek||[]],commentDaysOfMonth:[this.character.commentSchedule?.daysOfMonth||[]],commentPreferredHours:[this.character.commentSchedule?.preferredHours||[]]}),this.thirdFormGroup=this.formBuilder.group({modelProvider:[this.character.model?.provider||null],modelName:[this.character.model?.name||""],temperature:[this.character.model?.temperature??.7,[Tt.min(0),Tt.max(1)]],maxTokens:[this.character.model?.maxTokens||null,[Tt.min(1)]],stream:[this.character.model?.stream??!0]}),this.thirdFormGroup.get("modelProvider")?.valueChanges.subscribe(r=>{this.onProviderChange(r)}),this.secondFormGroup.get("researchCurrentEvents")?.valueChanges.subscribe(r=>{let o=this.secondFormGroup.get("searchQuery");r?o?.setValidators([Tt.required]):o?.clearValidators(),o?.updateValueAndValidity()}),this.secondFormGroup.get("enableFactChecking")?.valueChanges.subscribe(r=>{let o=this.secondFormGroup.get("enableCorrections");r?o?.enable({emitEvent:!1}):(o?.setValue(!1,{emitEvent:!1}),o?.disable({emitEvent:!1}))})}isValid(){return!1}stepper;form1Error=$localize`Character information form is invalid`;form2Error=$localize`Options form is invalid`;formScheduleError=$localize`Schedule configuration form is invalid`;form3Error=$localize`Model configuration form is invalid`;step1ErrorMessage(){let e=this.firstFormGroup.get("slug");if(e?.hasError("slugTaken"))return $localize`The slug "${e.value}" is already used by another character on this site.`;if(this.firstFormGroup.status==="PENDING")return $localize`Checking slug availability...`;if(e?.hasError("required"))return $localize`Slug is required.`;if(this.firstFormGroup.get("name")?.hasError("required"))return $localize`Name is required.`;let n=this.firstFormGroup.get("email");return n?.hasError("required")?$localize`Email is required.`:n?.hasError("email")?$localize`Email is invalid.`:this.firstFormGroup.get("description")?.hasError("required")?$localize`Description is required.`:this.firstFormGroup.get("date")?.hasError("required")?$localize`Date is required.`:this.form1Error}goToStep(e){this.stepper&&(this.stepper.selectedIndex=e)}error1="";error2="";errorSchedule="";error3="";showSubmitErrors(){this.error1=this.firstFormGroup.valid?"":this.step1ErrorMessage(),this.error2=this.secondFormGroup.valid?"":this.form2Error,this.errorSchedule=this.scheduleFormGroup.valid?"":this.formScheduleError,this.error3=this.thirdFormGroup.valid?"":this.form3Error}onProviderChange(e){this.filteredModels=e?this.availableModels.filter(a=>a.provider===e):[];let n=this.thirdFormGroup.get("modelName");this.filteredModels.length>0?n?.enable():n?.disable();let r=n?.value;if(!(r&&this.filteredModels.some(a=>a.name===r))&&(n?.setValue(""),this.filteredModels.length>0)){let a=this.filteredModels[0];n?.setValue(a.name),a.maxTokens&&this.thirdFormGroup.get("maxTokens")?.setValue(a.maxTokens),a.supportsStreaming||this.thirdFormGroup.get("stream")?.setValue(!1)}}getSelectedModel(){let e=this.thirdFormGroup.get("modelName")?.value;return this.filteredModels.find(n=>n.name===e)||null}makeSlug(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}toggleDayOfWeek(e,n){let r=this.scheduleFormGroup.get(e);if(!r)return;let o=[...r.value||[]],a=o.indexOf(n);a===-1?o.push(n):o.splice(a,1),r.setValue(o.sort((s,l)=>s-l))}isDayOfWeekSelected(e,n){return this.scheduleFormGroup.get(e)?.value?.includes(n)||!1}toggleDayOfMonth(e,n){let r=this.scheduleFormGroup.get(e);if(!r)return;let o=[...r.value||[]],a=o.indexOf(n);a===-1?o.push(n):o.splice(a,1),r.setValue(o.sort((s,l)=>s-l))}isDayOfMonthSelected(e,n){return this.scheduleFormGroup.get(e)?.value?.includes(n)||!1}toggleHourRange(e,n){let r=this.scheduleFormGroup.get(e);if(!r)return;let o=[...r.value||[]];if(n.every(s=>o.includes(s))){let s=o.filter(l=>!n.includes(l));r.setValue(s.sort((l,c)=>l-c))}else{let s=[...new Set([...o,...n])];r.setValue(s.sort((l,c)=>l-c))}}isHourRangeSelected(e,n){let r=this.scheduleFormGroup.get(e);return r?.value?n.every(o=>r.value.includes(o)):!1}isHourRangePartial(e,n){let r=this.scheduleFormGroup.get(e);if(!r?.value)return!1;let o=n.some(s=>r.value.includes(s)),a=n.every(s=>r.value.includes(s));return o&&!a}buildSchedule(e){let n=this.scheduleFormGroup.get(`${e}DaysOfWeek`)?.value,r=this.scheduleFormGroup.get(`${e}DaysOfMonth`)?.value,o=this.scheduleFormGroup.get(`${e}PreferredHours`)?.value;if(!(!(n?.length>0)&&!(r?.length>0)))return{daysOfWeek:n?.length>0?n:void 0,daysOfMonth:r?.length>0?r:void 0,preferredHours:o?.length>0?o:void 0}}submit(){console.log("submit form 1: ",this.firstFormGroup),console.log("submit form 2: ",this.secondFormGroup),console.log("submit schedule form: ",this.scheduleFormGroup);let e=this.firstFormGroup.get("slug"),n=e?.value;if((!n||n==="")&&(n=this.makeSlug(this.firstFormGroup.get("name")?.value||""),e?.setValue(n)),this.showSubmitErrors(),!this.firstFormGroup.valid||!this.secondFormGroup.valid||!this.scheduleFormGroup.valid||!this.thirdFormGroup.valid){console.log("form is invalid");return}this.emitCharacter(n)}emitCharacter(e){let n=this.editData(),r,o=this.thirdFormGroup.get("modelProvider")?.value,a=this.thirdFormGroup.get("modelName")?.value;o&&a&&(r={provider:o,name:a,temperature:this.thirdFormGroup.get("temperature")?.value,maxTokens:this.thirdFormGroup.get("maxTokens")?.value||void 0,stream:this.thirdFormGroup.get("stream")?.value});let s=this.buildSchedule("article"),l=this.buildSchedule("comment"),c=this.secondFormGroup.get("searchDomainsIncluded")?.value||"",d=this.secondFormGroup.get("searchDomainsExcluded")?.value||"",h=c.split(`
`).map(_=>_.trim()).filter(_=>_.length>0),b=d.split(`
`).map(_=>_.trim()).filter(_=>_.length>0),f={slug:e,name:this.firstFormGroup.get("name")?.value,email:this.firstFormGroup.get("email")?.value,description:this.firstFormGroup.get("description")?.value,enabled:this.secondFormGroup.get("enabled")?.value,storageId:n?n.storageId:void 0,date:this.firstFormGroup.get("date")?.value,model:r,researchCurrentEvents:this.secondFormGroup.get("researchCurrentEvents")?.value||!1,createFeaturedImage:this.secondFormGroup.get("createFeaturedImage")?.value||!1,createSecondaryImage:this.secondFormGroup.get("createSecondaryImage")?.value||!1,enableFactChecking:this.secondFormGroup.get("enableFactChecking")?.value||!1,enableCorrections:this.secondFormGroup.get("enableCorrections")?.value||!1,includePreviousArticles:this.secondFormGroup.get("includePreviousArticles")?.value!==!1,searchQuery:this.secondFormGroup.get("searchQuery")?.value||"",searchDomainsIncluded:h.length>0?h:void 0,searchDomainsExcluded:b.length>0?b:void 0,searchTopicType:this.secondFormGroup.get("searchTopicType")?.value||"general",searchTimeRange:this.secondFormGroup.get("searchTimeRange")?.value||null,maxSearchResults:this.secondFormGroup.get("maxSearchResults")?.value??5,searchDepth:this.secondFormGroup.get("searchDepth")?.value||"basic",chunksPerSource:this.secondFormGroup.get("chunksPerSource")?.value??3,articleSchedule:s,commentSchedule:l,shared:this.secondFormGroup.get("shared")?.value!==!1,history:this.character.history};console.log("emit character: ",f),this.saveEvent.emit(f)}static \u0275fac=function(n){return new(n||t)(Z(Cv),Z(Wh),Z(sh),Z(Ts),Z(qn),Z(sS),Z(Ga))};static \u0275cmp=q({type:t,selectors:[["tsai-character-form"]],viewQuery:function(n,r){if(n&1&&Qe(Ud,5),n&2){let o;K(o=X())&&(r.stepper=o.first)}},inputs:{editData:[1,"editData"]},outputs:{saveEvent:"saveEvent"},decls:203,vars:92,consts:()=>{let e;e=$localize`Click to fix`;let n;n=$localize`Click to fix`;let r;r=$localize`Click to fix`;let o;o=$localize`Click to fix`;let a;return a=$localize`Used as the character's URL identifier. Auto-generated from name if blank.`,[a,[1,"example-stepper",3,"orientation"],[3,"stepControl","label"],[3,"formGroup"],[1,"section-one"],["type","text","matInput","","name","name","formControlName","name",3,"placeholder"],["type","text","matInput","","name","slug","formControlName","slug",3,"placeholder"],["type","email","matInput","","name","email","formControlName","email",3,"placeholder"],["matInput","","name","description","formControlName","description",3,"placeholder"],["mat-raised-button","","matStepperNext",""],[1,"section-two"],[1,"enabled-toggle"],["formControlName","enabled"],[1,"shared-toggle"],["formControlName","shared"],[1,"search-settings-heading"],[1,"research-section"],["formControlName","createFeaturedImage"],[1,"research-hint"],["formControlName","createSecondaryImage"],["formControlName","enableFactChecking"],["formControlName","enableCorrections"],["formControlName","includePreviousArticles"],["formControlName","researchCurrentEvents"],["matInput","","name","searchDomainsIncluded","formControlName","searchDomainsIncluded","rows","3",3,"placeholder"],["matInput","","name","searchDomainsExcluded","formControlName","searchDomainsExcluded","rows","3",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],[1,"section-schedule"],[1,"schedule-section"],[1,"schedule-hint"],[1,"calendar-options"],[1,"days-of-week"],["multiple","",1,"day-chips"],[3,"selected"],[1,"days-of-month"],[1,"month-day-grid"],["type","button","mat-mini-fab","",1,"day-button",3,"selected"],[1,"preferred-hours"],[1,"hours-hint"],["multiple","",1,"hour-chips"],[3,"selected","partial"],[1,"section-three"],[1,"error-message"],["formControlName","modelProvider"],[3,"value"],["formControlName","modelName"],["disabled",""],[3,"value","matTooltip"],["type","number","matInput","","formControlName","temperature","step","0.1","min","0","max","1",3,"matTooltip"],["type","number","matInput","","formControlName","maxTokens","min","1",3,"matTooltip"],[1,"stream-toggle"],["formControlName","stream",3,"matTooltip"],["matStepLabel",""],["title",e,1,"validation-error","clickable"],["title",n,1,"validation-error","clickable"],["title",r,1,"validation-error","clickable"],["title",o,1,"validation-error","clickable"],["mat-raised-button","",3,"click"],[1,"full-width","search-query-field"],["formControlName","searchQuery","matInput","","type","text",3,"placeholder"],[1,"full-width"],["formControlName","searchTopicType"],["value","general"],["value","news"],["formControlName","searchTimeRange"],["value","day"],["value","week"],["value","month"],["value","year"],["type","number","matInput","","name","maxSearchResults","formControlName","maxSearchResults","min","1","max","20"],["formControlName","searchDepth"],["value","basic"],["value","advanced"],["type","number","matInput","","name","chunksPerSource","formControlName","chunksPerSource","min","1","max","3"],[3,"click","selected"],["type","button","mat-mini-fab","",1,"day-button",3,"click"],[1,"model-description"],["title",e,1,"validation-error","clickable",3,"click"],["title",n,1,"validation-error","clickable",3,"click"],["title",r,1,"validation-error","clickable",3,"click"],["title",o,1,"validation-error","clickable",3,"click"]]},template:function(n,r){n&1&&(p(0,"mat-stepper",1),fr(1,"async"),p(2,"mat-step",2)(3,"form",3)(4,"section",4)(5,"mat-form-field")(6,"mat-label"),v(7),m(),U(8,"input",5),Se(),m(),p(9,"mat-form-field")(10,"mat-label"),v(11),m(),U(12,"input",6),Se(),p(13,"mat-hint"),vs(14,0),m()(),p(15,"mat-form-field")(16,"mat-label"),v(17),m(),U(18,"input",7),Se(),m(),p(19,"mat-form-field")(20,"mat-label"),v(21),m(),U(22,"textarea",8),Se(),m()(),p(23,"div")(24,"button",9),v(25),m()()()(),p(26,"mat-step",2)(27,"form",3)(28,"section",10)(29,"div",11)(30,"mat-slide-toggle",12),v(31),m(),Se(),m(),p(32,"div",13)(33,"mat-slide-toggle",14),v(34),m(),Se(),m(),U(35,"mat-divider"),p(36,"h4",15),v(37,"Article Defaults"),m(),p(38,"div",16)(39,"mat-checkbox",17),v(40),m(),Se(),p(41,"span",18),v(42),m()(),p(43,"div",16)(44,"mat-checkbox",19),v(45),m(),Se(),p(46,"span",18),v(47),m()(),p(48,"div",16)(49,"mat-checkbox",20),v(50),m(),Se(),p(51,"span",18),v(52),m()(),p(53,"div",16)(54,"mat-checkbox",21),v(55),m(),Se(),p(56,"span",18),v(57),m()(),p(58,"div",16)(59,"mat-checkbox",22),v(60),m(),Se(),p(61,"span",18),v(62),m()(),U(63,"mat-divider"),p(64,"h4",15),v(65,"Search Settings"),m(),p(66,"div",16)(67,"mat-checkbox",23),v(68),m(),Se(),p(69,"span",18),v(70),m()(),A(71,_K,66,21),p(72,"mat-form-field")(73,"mat-label"),v(74),m(),U(75,"textarea",24),Se(),m(),p(76,"mat-form-field")(77,"mat-label"),v(78),m(),U(79,"textarea",25),Se(),m()(),p(80,"div")(81,"button",26),v(82),m(),p(83,"button",9),v(84),m()()()(),p(85,"mat-step",2)(86,"form",3)(87,"section",27)(88,"div",28)(89,"h4"),v(90),m(),p(91,"p",29),v(92),m(),p(93,"p",29),v(94),m(),p(95,"div",30)(96,"div",31)(97,"label"),v(98),m(),p(99,"mat-chip-listbox",32),Je(100,vK,2,2,"mat-chip-option",33,ao),m()(),p(102,"div",34)(103,"label"),v(104),m(),p(105,"div",35),Je(106,bK,2,3,"button",36,Rn),m()(),p(108,"div",37)(109,"label"),v(110),m(),p(111,"span",38),v(112),m(),p(113,"mat-chip-listbox",39),Je(114,yK,2,4,"mat-chip-option",40,tL),m()()()(),U(116,"mat-divider"),p(117,"div",28)(118,"h4"),v(119),m(),p(120,"p",29),v(121),m(),p(122,"p",29),v(123),m(),p(124,"div",30)(125,"div",31)(126,"label"),v(127),m(),p(128,"mat-chip-listbox",32),Je(129,xK,2,2,"mat-chip-option",33,ao),m()(),p(131,"div",34)(132,"label"),v(133),m(),p(134,"div",35),Je(135,CK,2,3,"button",36,Rn),m()(),p(137,"div",37)(138,"label"),v(139),m(),p(140,"span",38),v(141),m(),p(142,"mat-chip-listbox",39),Je(143,wK,2,4,"mat-chip-option",40,tL),m()()()()(),p(145,"div")(146,"button",26),v(147),m(),p(148,"button",9),v(149),m()()()(),p(150,"mat-step",2)(151,"form",3)(152,"section",41)(153,"p"),v(154),m(),A(155,EK,4,1,"div",42),p(156,"mat-form-field")(157,"mat-label"),v(158),m(),p(159,"mat-select",43)(160,"mat-option",44),v(161,"None"),m(),Je(162,DK,2,2,"mat-option",44,Rn),m(),Se(),m(),p(164,"mat-form-field")(165,"mat-label"),v(166),m(),p(167,"mat-select",45),A(168,SK,2,0,"mat-option",46)(169,kK,2,0,"mat-option",46)(170,MK,2,0,"mat-option",46),Je(171,IK,3,4,"mat-option",47,pK),m(),Se(),m(),p(173,"mat-form-field")(174,"mat-label"),v(175),m(),U(176,"input",48),Se(),m(),p(177,"mat-form-field")(178,"mat-label"),v(179),m(),U(180,"input",49),Se(),m(),p(181,"div",50)(182,"mat-slide-toggle",51),v(183),m(),Se(),m()(),p(184,"div")(185,"button",26),v(186),m(),p(187,"button",9),v(188),m()()()(),p(189,"mat-step"),ot(190,AK,1,1,"ng-template",52),p(191,"section",41),A(192,RK,2,1,"div")(193,OK,2,1,"div"),A(194,PK,2,1,"p",53),A(195,FK,2,1,"p",54),A(196,NK,2,1,"p",55),A(197,LK,2,1,"p",56),m(),p(198,"div")(199,"button",26),v(200),m(),p(201,"button",57),N("click",function(){return r.submit()}),v(202),m()()()()),n&2&&(S("orientation",og(1,90,r.stepperOrientation)),u(2),S("label",Ve(r.step1Txt))("stepControl",r.firstFormGroup),u(),S("formGroup",r.firstFormGroup),u(4),M(r.nameTxt),u(),S("placeholder",Ve(r.nameTipTxt)),ke(),u(3),M(r.shortNameTxt),u(),S("placeholder",Ve(r.shortNameTipTxt)),ke(),u(5),M(r.emailTxt),u(),S("placeholder",Ve(r.emailTipTxt)),ke(),u(3),M(r.descriptionTxt),u(),S("placeholder",Ve(r.descriptionTipTxt)),ke(),u(3),M(r.nextTxt),u(),S("label",Ve(r.step2Txt))("stepControl",r.secondFormGroup),u(),S("formGroup",r.secondFormGroup),u(3),ke(),u(),M(r.enabledTxt),u(2),ke(),u(),M(r.sharedTxt),u(5),ke(),u(),oe(" ",r.createFeaturedImageTxt," "),u(2),M(r.createFeaturedImageTip),u(2),ke(),u(),oe(" ",r.createSecondaryImageTxt," "),u(2),M(r.createSecondaryImageTip),u(2),ke(),u(),oe(" ",r.enableFactCheckingTxt," "),u(2),M(r.enableFactCheckingTip),u(2),ke(),u(),oe(" ",r.enableCorrectionsTxt," "),u(2),M(r.enableCorrectionsTip),u(2),ke(),u(),oe(" ",r.includePreviousArticlesTxt," "),u(2),M(r.includePreviousArticlesTip),u(5),ke(),u(),oe(" ",r.researchCurrentEventsTxt," "),u(2),M(r.researchCurrentEventsTip),u(),R(r.secondFormGroup.get("researchCurrentEvents")?.value?71:-1),u(3),M(r.searchDomainsIncludedTxt),u(),S("placeholder",Ve(r.searchDomainsIncludedTipTxt)),ke(),u(3),M(r.searchDomainsExcludedTxt),u(),S("placeholder",Ve(r.searchDomainsExcludedTipTxt)),ke(),u(3),oe(" ",r.backTxt," "),u(2),M(r.nextTxt),u(),S("label",Ve(r.step3Txt))("stepControl",r.scheduleFormGroup),u(),S("formGroup",r.scheduleFormGroup),u(4),M(r.articleScheduleTxt),u(2),M(r.articleScheduleTipTxt),u(2),M(r.scheduleEmptyHintTxt),u(4),M(r.daysOfWeekTxt),u(2),et(r.dayNames),u(4),M(r.daysOfMonthTxt),u(2),et(r.daysOfMonth),u(4),M(r.preferredHoursTxt),u(2),M(r.preferredHoursHintTxt),u(2),et(r.hourRanges),u(5),M(r.commentScheduleTxt),u(2),M(r.commentScheduleTipTxt),u(2),M(r.scheduleEmptyHintTxt),u(4),M(r.daysOfWeekTxt),u(2),et(r.dayNames),u(4),M(r.daysOfMonthTxt),u(2),et(r.daysOfMonth),u(4),M(r.preferredHoursTxt),u(2),M(r.preferredHoursHintTxt),u(2),et(r.hourRanges),u(4),M(r.backTxt),u(2),M(r.nextTxt),u(),S("label",Ve(r.step4Txt))("stepControl",r.thirdFormGroup),u(),S("formGroup",r.thirdFormGroup),u(3),M(r.modelTipTxt),u(),R(r.modelsError()?155:-1),u(3),M(r.providerTxt),u(),ke(),u(),S("value",null),u(2),et(r.providers),u(4),M(r.modelNameTxt),u(),ke(),u(),R(r.modelsLoading()?168:r.filteredModels.length===0&&r.thirdFormGroup.get("modelProvider")?.value?169:r.thirdFormGroup.get("modelProvider")?.value?-1:170),u(3),et(r.filteredModels),u(4),M(r.temperatureTxt),u(),S("matTooltip",r.temperatureTipTxt),ke(),u(3),M(r.maxTokensTxt),u(),S("matTooltip",r.maxTokensTipTxt),ke(),u(2),S("matTooltip",r.streamTipTxt),ke(),u(),oe(" ",r.streamTxt," "),u(3),M(r.backTxt),u(2),M(r.nextTxt),u(4),R(r.editData()?192:193),u(2),R(r.error1?194:-1),u(),R(r.error2?195:-1),u(),R(r.errorSchedule?196:-1),u(),R(r.error3?197:-1),u(3),M(r.backTxt),u(2),M(r.confirmTxt))},dependencies:[zi,cr,Ll,Ei,Y0,lr,Nl,q0,G0,Bl,go,Dd,ii,Gi,Wn,ni,Nd,Ko,Vn,Pt,nn,Rs,jd,Zl,Gn,Sr,RE,X_,$d,Ud,IE,AE,Y_,Ph,ta,ea,dr,dn,cn,ur,Fh,R_,hE,uE,CN,Cg],styles:["section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.example-stepper[_ngcontent-%COMP%]{margin-top:8px}button[_ngcontent-%COMP%]{margin-right:10px}.toggle[_ngcontent-%COMP%]{margin-bottom:20px}.mat-hint[_ngcontent-%COMP%]{color:red}mat-form-field[_ngcontent-%COMP%]{width:100%}.validation-error[_ngcontent-%COMP%]{color:red}.validation-error.clickable[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.validation-error.clickable[_ngcontent-%COMP%]:hover{opacity:.8}.enabled-toggle[_ngcontent-%COMP%], .shared-toggle[_ngcontent-%COMP%], .stream-toggle[_ngcontent-%COMP%]{margin-bottom:20px}.error-message[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;color:#d32f2f;background-color:#ffebee;padding:12px;border-radius:4px;border-left:4px solid #d32f2f;margin-bottom:16px;font-size:14px}.error-message[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.model-description[_ngcontent-%COMP%]{color:#0009;font-size:.875em;font-style:italic}.research-section[_ngcontent-%COMP%]{margin:16px 0;padding:12px;background:var(--mat-sys-surface-variant);border-radius:8px;display:flex;flex-direction:column;gap:8px}.research-hint[_ngcontent-%COMP%]{font-size:12px;color:var(--mat-sys-on-surface-variant);margin-left:32px;font-style:italic}.search-query-field[_ngcontent-%COMP%]{margin-top:8px}.full-width[_ngcontent-%COMP%]{width:100%}.section-schedule[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.schedule-section[_ngcontent-%COMP%]{margin-bottom:24px}.schedule-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:4px;font-size:16px;font-weight:500}.schedule-section[_ngcontent-%COMP%] .schedule-hint[_ngcontent-%COMP%]{font-size:12px;color:var(--mat-sys-on-surface-variant);margin-bottom:16px}.schedule-mode[_ngcontent-%COMP%]{margin-bottom:16px}.schedule-mode[_ngcontent-%COMP%] .mode-label[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;margin-bottom:8px}.schedule-mode[_ngcontent-%COMP%] .mode-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.schedule-mode[_ngcontent-%COMP%] .mode-option[_ngcontent-%COMP%]{display:flex;flex-direction:column}.schedule-mode[_ngcontent-%COMP%] .mode-option[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14px}.schedule-mode[_ngcontent-%COMP%] .mode-option[_ngcontent-%COMP%] .mode-desc[_ngcontent-%COMP%]{font-size:12px;color:var(--mat-sys-on-surface-variant)}.calendar-options[_ngcontent-%COMP%]{margin-top:16px;padding:16px;background:var(--mat-sys-surface-variant);border-radius:8px}.calendar-options[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:16px}.calendar-options[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-bottom:0}.calendar-options[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;margin-bottom:8px}.days-of-week[_ngcontent-%COMP%] .day-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.days-of-month[_ngcontent-%COMP%] .month-day-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;max-width:350px}.days-of-month[_ngcontent-%COMP%] .month-day-grid[_ngcontent-%COMP%] .day-button[_ngcontent-%COMP%]{width:40px;height:40px;font-size:12px;background-color:var(--mat-sys-surface);color:var(--mat-sys-on-surface)}.days-of-month[_ngcontent-%COMP%] .month-day-grid[_ngcontent-%COMP%] .day-button.selected[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}.preferred-hours[_ngcontent-%COMP%] .hours-hint[_ngcontent-%COMP%]{display:block;font-size:12px;color:var(--mat-sys-on-surface-variant);margin-bottom:8px}.preferred-hours[_ngcontent-%COMP%] .hour-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.preferred-hours[_ngcontent-%COMP%] .hour-chips[_ngcontent-%COMP%] .partial[_ngcontent-%COMP%]{opacity:.7}.search-settings-heading[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:8px}"],changeDetection:1})}return t})(),zK=["widget"],VK=(()=>{class t{dialogRef;data;characterForm;closeTxt=$localize`Close`;constructor(e,n){this.dialogRef=e,this.data=n}ngOnInit(){console.log("dialog data",this.data)}ngAfterViewInit(){}submitEnabled(){return this.characterForm?this.characterForm.isValid():!1}configSave(e){console.log("character saved",e),this.dialogRef.close({data:e})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-character-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(zK,5),n&2){let o;K(o=X())&&(r.characterForm=o.first)}},decls:8,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"saveEvent","editData"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"tsai-character-form",2),N("saveEvent",function(a){return r.configSave(a)}),m()(),p(4,"div",3)(5,"button",4),v(6),m()(),U(7,"br")),n&2&&(u(),M(r.data.title),u(2),S("editData",r.data.editCharacterData),u(3),M(r.closeTxt))},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,ii,BK],encapsulation:2,changeDetection:1})}return t})(),lc=(()=>{class t{http;site;user;constructor(e,n,r){this.http=e,this.site=n,this.user=r}fetchWidget(e){let n=this.site.site();if(!n||!n.drupalHost||!n.drupalApi)throw new Error("Site configuration not loaded. Please ensure the application has finished initializing.");let r="/node/widget/"+e,o=n.drupalHost+n.drupalApi+r;return this.http.get(o)}clone(e){let n=JSON.parse(JSON.stringify(e));return n.storageId=void 0,n.siteId=void 0,n.shared=!1,n.history=[...n.history||[],{timestamp:new Date().toISOString(),description:this.buildHistoryDescription(`Cloned from "${e.card?.title}"`)}],n}buildHistoryDescription(e){let n=this.user.user()?.name,r=this.site.site()?.wpHost||"",o=r.split("://")[1]||r,a=n?` by ${n}`:"",s=o?` on ${o}`:"";return`${e}${a}${s}`}fetchMyWidgets(){let e=this.site.site().apiHost+"/cms/widgets/";return this.http.get(e).pipe(Le(n=>n.data.map(r=>this.mapWidgetData(r))))}fetchImportableWidgets(){let e=this.site.site().apiHost+"/cms/widgets/importable/";return this.http.get(e).pipe(Le(n=>n.data.map(r=>this.mapWidgetData(r))),Le(n=>n.sort((r,o)=>r.name.localeCompare(o.name))))}fetchSiteDomains(){let e=this.site.site().apiHost+"/cms/site-domains/";return this.http.get(e).pipe(Le(n=>n.data))}fetchRemoteServers(){let e=this.site.site().apiHost+"/cms/remote-servers/";return this.http.get(e).pipe(Le(n=>n.data))}fetchRemoteWidgets(e){let n=this.site.site().apiHost+"/cms/remote-widgets/?server_url="+encodeURIComponent(e);return this.http.get(n).pipe(Le(r=>r.data.map(o=>this.mapWidgetData(o))))}mapWidgetData(e){return{storageId:e.storageId||"",siteId:e.siteId||"",id:e.id||"",name:e.name||"",category:e.category||"",date:new Date(e.date),enabled:e.enabled?"true":"false",hidden:e.hidden?"true":"false",config:e.config,shared:e.shared!==!1,systemWide:e.systemWide||!1}}postWidget(e){let n=this.site.site().apiHost+"/cms/widget/";return this.http.post(n,{widget:e})}patchWidget(e){let n=this.site.site().apiHost+"/cms/widget/";return this.http.patch(n,{widget:e})}deleteWidget(e){let n=this.site.site().apiHost+"/cms/widget/"+e.storageId;return this.http.delete(n)}static \u0275fac=function(n){return new(n||t)(we(oi),we(qn),we(sc))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xv=(()=>{class t{widgetService;characters;http;site;user;constructor(e,n,r,o,a){this.widgetService=e,this.characters=n,this.http=r,this.site=o,this.user=a}postComment(e,n,r){let o={url:n,character:e,user_instructions:r},a=this.site.site().apiHost+"/comment/comment/";return this.http.post(a,o)}fetchBuildInfo(){return this.http.get("build-info.json")}fetchModels(){let e=this.site.site().apiHost+"/chat/models";return this.http.get(e)}fetchModelsLangChain(){let e=this.site.site().apiHost+"/chat-lc/models-langchain/";return this.http.get(e)}storeData(e){let n=this.site.site().apiHost+"/chat/store/";return this.http.post(n,e)}storeDataLangChain(e){let n=this.site.site().apiHost+"/chat-lc/store/";return this.http.post(n,e)}storeDataQuiz(e){let n=this.site.site().apiHost+"/quiz/store/";return this.http.post(n,e)}fetchQuizLeaderboard(){let e=this.site.site().apiHost+"/quiz/leaderboard";return this.http.get(e)}fetchUsageSummary(e=30){let n=this.site.site().apiHost+"/usage/summary?since_days="+e;return this.http.get(n)}fetchUsageDetail(e=30){let n=this.site.site().apiHost+"/usage/detail?since_days="+e;return this.http.get(n)}exportUsageCsv(e=30){let n=this.site.site().apiHost+"/usage/export?since_days="+e;return this.http.get(n,{responseType:"blob"})}fetchCreditStatus(){let e=this.site.site().apiHost+"/credits/status";return this.http.get(e)}updateCreditSettings(e){let n=this.site.site().apiHost+"/credits/settings";return this.http.put(n,e)}fetchCreditPortalLink(){let e=this.site.site().apiHost+"/credits/portal-link";return this.http.get(e)}getArticleSeries(){let e=this.site.site().slug,n=this.site.site().apiHost+"/article/series/"+e;return this.http.get(n)}storeArticleRequest(e,n,r,o,a,s,l,c,d,h){let b=this.site.site().apiHost+"/article/store/",f={character:e,character_description_override:n};return r!==void 0&&(f.research_current_events=r),o!==void 0&&(f.enable_fact_checking=o),a!==void 0&&(f.enable_corrections=a),s!==void 0&&(f.generate_featured_image=s),l!==void 0&&(f.generate_secondary_image=l),c!==void 0&&(f.include_previous_articles=c),d&&(f.series_name=d),h&&(f.continue_series_id=h),this.http.post(b,f)}createArticleStreamTest(e,n,r,o,a,s,l){return new it(c=>(this.storeArticleRequest(e,n,r,o,void 0,a,s,l).subscribe({next:d=>{let h=d.message,b=this.site.site().apiHost+"/article/test-stream/"+h;console.log("Opening SSE connection to:",b);let f=new EventSource(b);f.onmessage=_=>{if(console.log("SSE message received:",_.data),_.data==="__chatbot_end__"){console.log("Stream ended"),f.close(),c.complete();return}try{let y=JSON.parse(_.data);c.next(y)}catch(y){console.error("Error parsing SSE data:",y,_.data)}},f.onerror=_=>{console.error("SSE error:",_),f.close(),c.error(_)},c.eventSource=f},error:d=>{console.error("Error storing article request:",d),c.error(d)}}),()=>{c.eventSource&&(console.log("Cleaning up EventSource"),c.eventSource.close())}))}createArticleStream(e,n,r,o,a,s,l,c,d,h,b,f){return new it(_=>{let y={character:e,character_description_override:n};r!==void 0&&(y.research_current_events=r),o!==void 0&&(y.enable_fact_checking=o),a!==void 0&&(y.enable_corrections=a),s!==void 0&&(y.generate_featured_image=s),l!==void 0&&(y.generate_secondary_image=l),c!==void 0&&(y.include_previous_articles=c),d&&(y.series_name=d),h&&(y.continue_series_id=h),b&&(y.seed_image_url=b),f&&(y.seed_image_instructions=f);let C=this.site.site().apiHost+"/article/store/";return this.http.post(C,y).subscribe({next:D=>{let k=D.message,T=this.site.site().apiHost+"/article/stream/"+k;console.log("[createArticleStream] Opening SSE connection to:",T);let F=new EventSource(T);F.onmessage=L=>{if(console.log("[createArticleStream] SSE message received:",L.data),L.data==="__chatbot_end__"){console.log("[createArticleStream] Stream ended"),F.close(),_.complete();return}try{let B=JSON.parse(L.data);if(B.progress===-1){console.log("[createArticleStream] Keepalive received, connection alive");return}_.next(B)}catch(B){console.error("[createArticleStream] Error parsing SSE data:",B,L.data)}},F.onerror=L=>{console.error("[createArticleStream] SSE error:",L),F.close(),_.error(L)},_.eventSource=F},error:D=>{console.error("[createArticleStream] Error storing article request:",D),_.error(D)}}),()=>{_.eventSource&&(console.log("[createArticleStream] Cleaning up EventSource"),_.eventSource.close())}})}storeResponsesImageRequest(e,n,r="gpt-4.1-mini",o=!0){let a={prompt:e,user:n,model:r,stream:o},s=this.site.site().apiHost+"/image-responses/store-image/";return this.http.post(s,a)}storeGptImage2Request(e,n,r="auto",o="medium",a="png",s="auto",l=0,c,d,h="gpt-5",b=!0){let f={prompt:e,user:n,driver_model:h,stream:b,size:r,quality:o,output_format:a,background:s};l&&l>0&&(f.partial_images=l),c&&c.length>0&&(f.input_images=c),d&&(f.previous_response_id=d);let _=this.site.site().apiHost+"/gpt-image-2/store/";return this.http.post(_,f)}generateResponsesImageDirect(e,n,r="gpt-4.1-mini"){let o={prompt:e,user:n,model:r,stream:!1},a=this.site.site().apiHost+"/image-responses/generate-image/";return this.http.post(a,o)}static \u0275fac=function(n){return new(n||t)(we(lc),we(Ga),we(oi),we(qn),we(sc))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jK=(()=>{class t{chatService;snackBar;inProgressArticles=Q(new Map);constructor(e,n){this.chatService=e,this.snackBar=n}startArticleCreation(e,n,r,o,a,s=!1,l,c,d,h,b,f,_,y,C,D){let k=`article_${Date.now()}`,T={key:k,character:e,characterDescriptionOverride:n,progress:0,message:"Starting article creation...",status:"starting",startTime:new Date};this.inProgressArticles.update(B=>{let V=new Map(B);return V.set(k,T),V});let L=(s?this.chatService.createArticleStreamTest(e,n,l,c,h,b,f):this.chatService.createArticleStream(e,n,l,c,d,h,b,f,_,y,C,D)).subscribe({next:B=>{this.inProgressArticles.update(V=>{let ne=new Map(V),Re=ne.get(k);return Re&&(Re.progress=B.progress,Re.message=B.message,Re.status=B.status,ne.set(k,Re)),ne}),r&&r(B),B.status==="complete"&&(this.handleCompletion(k,B),o&&o(B)),B.status==="error"&&(this.handleError(k,B.error||"Unknown error"),a&&a(B.error))},error:B=>{console.error("[ArticleProcessingService] Stream error:",B),this.handleError(k,"Article creation failed"),a&&a(B)},complete:()=>{console.log("[ArticleProcessingService] Stream completed for:",k)}});return this.inProgressArticles.update(B=>{let V=new Map(B),ne=V.get(k);return ne&&(ne.subscription=L,V.set(k,ne)),V}),k}cancelArticle(e){let n=this.inProgressArticles().get(e);if(n){let r=n.subscription;r&&r.unsubscribe(),this.inProgressArticles.update(o=>{let a=new Map(o);return a.delete(e),a}),console.log("[ArticleProcessingService] Cancelled article:",e)}}getArticleState(e){return this.inProgressArticles().get(e)}getInProgressCount(){return this.inProgressArticles().size}handleCompletion(e,n){this.snackBar.open("Article created successfully!",void 0,{duration:5e3,horizontalPosition:"center",verticalPosition:"bottom"}),this.inProgressArticles.update(r=>{let o=new Map(r);return o.delete(e),o}),console.log("[ArticleProcessingService] Article completed:",e,n)}handleError(e,n){this.snackBar.open(`Article creation failed: ${n}`,"Dismiss",{duration:5e3,horizontalPosition:"center",verticalPosition:"bottom"}),this.inProgressArticles.update(r=>{let o=new Map(r);return o.delete(e),o}),console.error("[ArticleProcessingService] Article error:",e,n)}static \u0275fac=function(n){return new(n||t)(we(xv),we(Lh))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(t,i)=>i.label,$K=(t,i)=>i.id;function UK(t,i){if(t&1&&(p(0,"div",13)(1,"span",16),v(2,"Description Override:"),m(),p(3,"span",17),v(4),m()()),t&2){let e=E(2);u(4),M(e.generateFormSummary().characterDescriptionOverride)}}function WK(t,i){if(t&1&&(p(0,"div",15)(1,"span",18),v(2),m(),p(3,"span",19),v(4),m()()),t&2){let e=i.$implicit;u(2),M(e.icon),u(2),M(e.label)}}function GK(t,i){if(t&1){let e=be();p(0,"div",3)(1,"div",9),N("click",function(){ae(e);let r=E();return se(r.toggleFormCollapse())}),p(2,"span",10),v(3,"Selected Options"),m(),p(4,"span",11),v(5,"\u25BC"),m()(),p(6,"div",12),A(7,UK,5,1,"div",13),p(8,"div",14),Je(9,WK,5,2,"div",15,HK),m()()()}if(t&2){let e=E();u(7),R(e.generateFormSummary().characterDescriptionOverride?7:-1),u(2),et(e.generateFormSummary().enabledFeatures)}}function qK(t,i){if(t&1){let e=be();p(0,"div",4)(1,"div",20)(2,"span",21),v(3),m(),p(4,"span",22),v(5),m()(),U(6,"mat-progress-bar",23),p(7,"div",24)(8,"span",25),v(9),m(),p(10,"button",26),N("click",function(){ae(e);let r=E();return se(r.cancel())}),v(11),m()()()}if(t&2){let e=E();u(3),M(e.progressMessage()),u(2),M(e.formatElapsedTime()),u(),S("value",e.progressPercent()),u(3),oe("",e.progressPercent(),"%"),u(2),oe(" ",e.cancelTxt," ")}}function QK(t,i){if(t&1&&(p(0,"div",33)(1,"div",40),v(2),m(),p(3,"span",32),v(4),m(),p(5,"mat-form-field",28)(6,"mat-label"),v(7),m(),U(8,"input",41),Se(),m(),p(9,"mat-form-field",28)(10,"mat-label"),v(11),m(),U(12,"textarea",42),Se(),m()()),t&2){let e=E(2);u(2),M(e.seedImageSectionTxt),u(2),M(e.seedImageSectionTip),u(3),M(e.seedImageUrlLabel),u(),S("formControl",e.seedImageUrlControl),ke(),u(3),M(e.seedImageInstructionsLabel),u(),S("formControl",e.seedImageInstructionsControl),ke()}}function ZK(t,i){t&1&&U(0,"mat-progress-spinner",43)}function YK(t,i){if(t&1&&(p(0,"mat-option",44),v(1),m()),t&2){let e=i.$implicit;S("value",e.id),u(),dm(" ",e.name," (",e.count," ",e.count===1?"part":"parts",") ")}}function KK(t,i){if(t&1&&(p(0,"mat-form-field",28)(1,"mat-label"),v(2,"New Series Name"),m(),U(3,"input",46),Se(),m()),t&2){let e=E(4);u(3),S("formControl",e.newSeriesNameControl),ke()}}function XK(t,i){t&1&&(p(0,"div",45),v(1," Next part number will be auto-assigned "),m())}function JK(t,i){if(t&1&&(p(0,"mat-form-field",28)(1,"mat-label"),v(2,"Select Series"),m(),p(3,"mat-select",31)(4,"mat-option",44),v(5,"Start New Series"),m(),Je(6,YK,2,4,"mat-option",44,$K),m(),Se(),m(),A(8,KK,4,1,"mat-form-field",28),A(9,XK,2,0,"div",45)),t&2){let e=E(3);u(3),S("formControl",e.seriesSelectionControl),ke(),u(),S("value","new"),u(2),et(e.availableSeries()),u(2),R(e.seriesSelectionControl.value==="new"?8:-1),u(),R(e.seriesSelectionControl.value!==null&&e.seriesSelectionControl.value!=="new"?9:-1)}}function eX(t,i){if(t&1&&(p(0,"div",35),A(1,ZK,1,0,"mat-progress-spinner",43)(2,JK,10,4),m()),t&2){let e=E(2);u(),R(e.seriesLoading()?1:2)}}function tX(t,i){if(t&1&&(p(0,"div",36)(1,"mat-error"),v(2),m()()),t&2){let e=E(2);u(2),M(e.formError)}}function nX(t,i){if(t&1){let e=be();p(0,"div",39)(1,"button",47),N("click",function(){ae(e);let r=E(2);return se(r.toggleFormCollapse())}),v(2," Collapse to Summary "),m()()}}function iX(t,i){if(t&1){let e=be();p(0,"form",27)(1,"mat-form-field",28)(2,"mat-label"),v(3),m(),U(4,"textarea",29,0),Se(),m(),p(6,"div",30)(7,"mat-checkbox",31),v(8),m(),Se(),p(9,"span",32),v(10),m()(),p(11,"div",30)(12,"mat-checkbox",31),v(13),m(),Se(),p(14,"span",32),v(15),m()(),A(16,QK,13,6,"div",33),p(17,"div",30)(18,"mat-checkbox",31),v(19),m(),Se(),p(20,"span",32),v(21),m()(),p(22,"div",30)(23,"mat-checkbox",31),v(24),m(),Se(),p(25,"span",32),v(26),m()(),p(27,"div",30)(28,"mat-checkbox",31),v(29),m(),Se(),p(30,"span",32),v(31),m()(),p(32,"div",30)(33,"mat-checkbox",31),v(34),m(),Se(),p(35,"span",32),v(36),m()(),p(37,"div",30)(38,"mat-checkbox",34),N("change",function(){ae(e);let r=E();return se(r.onSeriesToggle())}),v(39),m(),Se(),p(40,"span",32),v(41),m()(),A(42,eX,3,1,"div",35),A(43,tX,3,1,"div",36),p(44,"div",37)(45,"button",38),N("click",function(){ae(e);let r=E();return se(r.add())}),v(46),m()(),A(47,nX,3,0,"div",39),m()}if(t&2){let e=E();ue("dimmed",e.loading()&&!e.formCollapsed()),u(3),M(e.characterDescriptionOverrideLabel),u(),S("formControl",e.characterDescriptionOverrideControl),ke(),u(3),S("formControl",e.generateFeaturedImageControl),ke(),u(),oe(" ",e.generateFeaturedImageTxt," "),u(2),M(e.generateFeaturedImageTip),u(2),S("formControl",e.generateSecondaryImageControl),ke(),u(),oe(" ",e.generateSecondaryImageTxt," "),u(2),M(e.generateSecondaryImageTip),u(),R(e.generateFeaturedImageControl.value?16:-1),u(2),S("formControl",e.researchCurrentEventsControl),ke(),u(),oe(" ",e.researchCurrentEventsTxt," "),u(2),M(e.researchCurrentEventsTip),u(2),S("formControl",e.enableFactCheckingControl),ke(),u(),oe(" ",e.enableFactCheckingTxt," "),u(2),M(e.enableFactCheckingTip),u(2),S("formControl",e.enableCorrectionsControl),ke(),u(),oe(" ",e.enableCorrectionsTxt," "),u(2),M(e.enableCorrectionsTip),u(2),S("formControl",e.includePreviousArticlesControl),ke(),u(),oe(" ",e.includePreviousArticlesTxt," "),u(2),M(e.includePreviousArticlesTip),u(2),S("formControl",e.partOfSeriesControl),ke(),u(),oe(" ",e.partOfSeriesTxt," "),u(2),M(e.partOfSeriesTip),u(),R(e.partOfSeriesControl.value?42:-1),u(),R(e.formError!==""?43:-1),u(2),S("disabled",e.loading()),u(),oe(" ",e.createTxt," "),u(),R(e.loading()&&!e.formCollapsed()?47:-1)}}var rX=(()=>{class t{dialogRef;data;articleProcessingService;chatService;characterDescriptionOverrideControl=new $n("");researchCurrentEventsControl=new $n(!1);enableFactCheckingControl=new $n(!1);enableCorrectionsControl=new $n({value:!1,disabled:!0});generateFeaturedImageControl=new $n(!1);generateSecondaryImageControl=new $n(!1);includePreviousArticlesControl=new $n(!0);partOfSeriesControl=new $n(!1);seriesSelectionControl=new $n(null);newSeriesNameControl=new $n("");seedImageUrlControl=new $n("");seedImageInstructionsControl=new $n("");closeTxt=$localize`Close`;createTxt=$localize`Create Article`;cancelTxt=$localize`Cancel`;characterDescriptionOverrideLabel=$localize`Character Description Override`;characterDescriptionOverrideHint=$localize`Override the character's description (e.g. You are a science writer who specializes in biology)`;researchCurrentEventsTxt=$localize`Research Current Events`;researchCurrentEventsTip=$localize`Search for real-time news and information to include in the article`;enableFactCheckingTxt=$localize`Enable Fact-Checking`;enableFactCheckingTip=$localize`Add an AI-powered fact-checking comment to the article`;enableCorrectionsTxt=$localize`Enable Auto-Corrections`;enableCorrectionsTip=$localize`Post a corrections follow-up after the fact-check (requires fact-checking)`;generateFeaturedImageTxt=$localize`Generate Featured Image`;generateFeaturedImageTip=$localize`Create a featured image for the article`;generateSecondaryImageTxt=$localize`Generate Secondary Image`;generateSecondaryImageTip=$localize`Create an additional content-related image to embed in the article`;includePreviousArticlesTxt=$localize`Include Previous Articles`;includePreviousArticlesTip=$localize`Reference the character's previous articles for consistency`;partOfSeriesTxt=$localize`Part of a Series`;partOfSeriesTip=$localize`Create this article as part of a multi-part series`;seedImageSectionTxt=$localize`Reference Image (optional)`;seedImageSectionTip=$localize`Anchor the featured image on a reference you provide. For a new series, this applies only to Part 1 — subsequent parts inherit the look from Part 1's image.`;seedImageUrlLabel=$localize`Reference Image URL`;seedImageInstructionsLabel=$localize`How to use this image`;loading=Q(!1);progressMessage=Q("");progressPercent=Q(0);elapsedSeconds=Q(0);formCollapsed=Q(!1);formError="";character;availableSeries=Q([]);seriesLoading=Q(!1);processKey;timerInterval;constructor(e,n,r,o){this.dialogRef=e,this.data=n,this.articleProcessingService=r,this.chatService=o}ngOnInit(){this.character=this.data.characterData,this.character&&(this.researchCurrentEventsControl.setValue(this.character.researchCurrentEvents||!1),this.generateFeaturedImageControl.setValue(this.character.createFeaturedImage||!1),this.generateSecondaryImageControl.setValue(this.character.createSecondaryImage||!1),this.enableFactCheckingControl.setValue(this.character.enableFactChecking||!1),this.enableCorrectionsControl.setValue(this.character.enableCorrections||!1),this.includePreviousArticlesControl.setValue(this.character.includePreviousArticles!==!1)),this.enableFactCheckingControl.value?this.enableCorrectionsControl.enable():this.enableCorrectionsControl.disable(),this.enableFactCheckingControl.valueChanges.subscribe(e=>{e?this.enableCorrectionsControl.enable():(this.enableCorrectionsControl.setValue(!1),this.enableCorrectionsControl.disable())})}ngAfterViewInit(){}onSeriesToggle(){this.partOfSeriesControl.value&&this.loadAvailableSeries()}loadAvailableSeries(){this.seriesLoading.set(!0),this.chatService.getArticleSeries().subscribe({next:e=>{this.availableSeries.set(e),this.seriesLoading.set(!1)},error:e=>{console.error("Failed to load series:",e),this.availableSeries.set([]),this.seriesLoading.set(!1)}})}ngOnDestroy(){this.timerInterval&&clearInterval(this.timerInterval)}startTimer(){this.elapsedSeconds.set(0),this.timerInterval=setInterval(()=>{this.elapsedSeconds.update(e=>e+1)},1e3)}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}formatElapsedTime(){let e=this.elapsedSeconds(),n=Math.floor(e/60),r=e%60;return`${n}:${r.toString().padStart(2,"0")}`}disableFormControls(){this.characterDescriptionOverrideControl.disable(),this.researchCurrentEventsControl.disable(),this.enableFactCheckingControl.disable(),this.enableCorrectionsControl.disable(),this.generateFeaturedImageControl.disable(),this.generateSecondaryImageControl.disable(),this.includePreviousArticlesControl.disable(),this.partOfSeriesControl.disable(),this.seriesSelectionControl.disable(),this.newSeriesNameControl.disable(),this.seedImageUrlControl.disable(),this.seedImageInstructionsControl.disable()}enableFormControls(){this.characterDescriptionOverrideControl.enable(),this.researchCurrentEventsControl.enable(),this.enableFactCheckingControl.enable(),this.enableFactCheckingControl.value?this.enableCorrectionsControl.enable():this.enableCorrectionsControl.disable(),this.generateFeaturedImageControl.enable(),this.generateSecondaryImageControl.enable(),this.includePreviousArticlesControl.enable(),this.partOfSeriesControl.enable(),this.seriesSelectionControl.enable(),this.newSeriesNameControl.enable(),this.seedImageUrlControl.enable(),this.seedImageInstructionsControl.enable()}generateFormSummary(){let e=[];if(this.generateFeaturedImageControl.value&&e.push({icon:"\u2713",label:this.generateFeaturedImageTxt}),this.generateSecondaryImageControl.value&&e.push({icon:"\u2713",label:this.generateSecondaryImageTxt}),this.researchCurrentEventsControl.value&&e.push({icon:"\u2713",label:this.researchCurrentEventsTxt}),this.enableFactCheckingControl.value&&e.push({icon:"\u2713",label:this.enableFactCheckingTxt}),this.enableCorrectionsControl.value&&e.push({icon:"\u2713",label:this.enableCorrectionsTxt}),this.includePreviousArticlesControl.value&&e.push({icon:"\u2713",label:this.includePreviousArticlesTxt}),this.partOfSeriesControl.value){let o=this.seriesSelectionControl.value;if(o==="new"){let a=this.newSeriesNameControl.value||"New Series";e.push({icon:"\u2713",label:`New Series: ${a}`})}else if(o){let a=this.availableSeries().find(s=>s.id===o);e.push({icon:"\u2713",label:`Series: ${a?.name||"Unknown"} (Part ${(a?.count||0)+1})`})}}this.generateFeaturedImageControl.value&&(this.seedImageUrlControl.value||this.seedImageInstructionsControl.value)&&e.push({icon:"\u2713",label:"Reference image supplied"});let n=this.characterDescriptionOverrideControl.value||"";return{characterDescriptionOverride:n.length>100?n.substring(0,100)+"...":n,enabledFeatures:e.length>0?e:[{icon:"\u25CB",label:"Default settings"}]}}toggleFormCollapse(){this.loading()&&this.formCollapsed.update(e=>!e)}add(){this.formError="",this.loading.set(!0),this.formCollapsed.set(!0),this.disableFormControls(),this.progressMessage.set("Starting article creation..."),this.progressPercent.set(0);let e=this.characterDescriptionOverrideControl.value||"",n=this.researchCurrentEventsControl.value||!1,r=this.enableFactCheckingControl.value||!1,o=this.enableCorrectionsControl.value||!1,a=this.generateFeaturedImageControl.value??!0,s=this.generateSecondaryImageControl.value??!0,l=this.includePreviousArticlesControl.value??!0,c,d;if(this.partOfSeriesControl.value){let _=this.seriesSelectionControl.value;_==="new"?c=this.newSeriesNameControl.value||void 0:typeof _=="number"&&(d=_)}let h=this.generateFeaturedImageControl.value&&this.seedImageUrlControl.value?.trim()||void 0,b=this.generateFeaturedImageControl.value&&this.seedImageInstructionsControl.value?.trim()||void 0;console.log("Creating article with character description override:",e),console.log("Research current events:",n),console.log("Enable fact-checking:",r),console.log("Enable corrections:",o),console.log("Generate featured image:",a),console.log("Generate secondary image:",s),console.log("Include previous articles:",l),c&&console.log("New series:",c),d&&console.log("Continue series ID:",d),this.startTimer();let f=!1;this.processKey=this.articleProcessingService.startArticleCreation(this.character,e,_=>{console.log("Progress event:",_),this.progressMessage.set(_.message),this.progressPercent.set(_.progress)},_=>{this.stopTimer(),this.loading.set(!1),console.log("Article created:",_.article),this.dialogRef.close({data:{msg:"Article created successfully!",article:_.article,article_id:_.article_id}})},_=>{this.stopTimer(),this.loading.set(!1),this.formCollapsed.set(!1),this.enableFormControls(),this.formError=_||"Error creating article. Please try again.",console.error("Article creation error:",_)},f,n,r,o,a,s,l,c,d,h,b)}cancel(){console.log("Cancelling article creation..."),this.processKey&&(this.articleProcessingService.cancelArticle(this.processKey),this.processKey=void 0),this.stopTimer(),this.loading.set(!1),this.formCollapsed.set(!1),this.enableFormControls(),this.progressMessage.set("Article creation cancelled"),this.formError="Article creation was cancelled"}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un),Z(jK),Z(xv))};static \u0275cmp=q({type:t,selectors:[["tsai-new-article-dialog"]],decls:15,vars:7,consts:[["autosize","cdkTextareaAutosize"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"summary-container"],[1,"progress-card"],[1,"form-wrapper"],[1,"example-form",3,"dimmed"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""],[1,"summary-header",3,"click"],[1,"summary-title"],[1,"expand-icon"],[1,"summary-content"],[1,"summary-item"],[1,"summary-features"],[1,"feature-chip"],[1,"summary-label"],[1,"summary-value"],[1,"feature-icon"],[1,"feature-label"],[1,"progress-header"],[1,"progress-message"],[1,"elapsed-time"],["mode","determinate",3,"value"],[1,"progress-footer"],[1,"progress-percent"],["mat-stroked-button","","color","warn",3,"click"],[1,"example-form"],[1,"full-width"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"formControl"],[1,"research-section"],[3,"formControl"],[1,"research-hint"],[1,"seed-image-section"],[3,"change","formControl"],[1,"series-options"],[1,"error-container"],[1,"reply-container"],["mat-raised-button","",3,"click","disabled"],[1,"collapse-hint"],[1,"seed-image-header"],["matInput","","placeholder","https://example.com/anchor.jpg",3,"formControl"],["matInput","","rows","3","placeholder","e.g. use this person as the main character",3,"formControl"],["diameter","24","mode","indeterminate"],[3,"value"],[1,"series-info"],["matInput","","placeholder","Enter series name",3,"formControl"],["mat-stroked-button","","type","button",3,"click"]],template:function(n,r){n&1&&(p(0,"h1",1),v(1),m(),p(2,"div",2)(3,"p")(4,"strong"),v(5),m(),v(6),m(),A(7,GK,11,1,"div",3),A(8,qK,12,5,"div",4),p(9,"div",5),A(10,iX,48,31,"form",6),m()(),p(11,"div",7)(12,"button",8),v(13),m()(),U(14,"br")),n&2&&(u(),M(r.data.title),u(4),oe("",r.characterDescriptionOverrideLabel,":"),u(),oe(" ",r.characterDescriptionOverrideHint," "),u(),R(r.loading()&&r.formCollapsed()?7:-1),u(),R(r.loading()?8:-1),u(2),R(!r.loading()||r.loading()&&!r.formCollapsed()?10:-1),u(3),oe(" ",r.closeTxt," "))},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,ii,Gi,Wn,ni,Ko,M_,cr,Ll,Ei,lr,Nl,Pa,Vn,Bl,K0,ki,na,Jo,tE,zs,jd,Zl,ta,ea,dr],styles:[".example-form[_ngcontent-%COMP%]{min-width:150px;max-width:900px;width:100%}.full-width[_ngcontent-%COMP%]{width:100%}.error-container[_ngcontent-%COMP%]{text-align:center;margin:10px 0 20px}.reply-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.spinner-container[_ngcontent-%COMP%]{margin-left:15px}.form-wrapper[_ngcontent-%COMP%]{position:relative}.example-form.dimmed[_ngcontent-%COMP%]{opacity:.4;pointer-events:none;transition:opacity .3s ease-in-out}.summary-container[_ngcontent-%COMP%]{background:var(--mat-sys-surface-variant);border-radius:12px;padding:16px;margin-bottom:16px;border:1px solid var(--mat-sys-outline-variant)}.summary-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:8px 0;-webkit-user-select:none;user-select:none}.summary-header[_ngcontent-%COMP%]:hover .summary-title[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.summary-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:var(--mat-sys-on-surface);transition:color .2s ease}.expand-icon[_ngcontent-%COMP%]{font-size:12px;color:var(--mat-sys-on-surface-variant);transition:transform .3s ease}.summary-content[_ngcontent-%COMP%]{margin-top:12px;display:flex;flex-direction:column;gap:12px}.summary-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.summary-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--mat-sys-on-surface-variant);text-transform:uppercase;letter-spacing:.5px}.summary-value[_ngcontent-%COMP%]{font-size:14px;color:var(--mat-sys-on-surface);line-height:1.4}.summary-features[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.feature-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-radius:16px;font-size:13px;font-weight:500}.feature-icon[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.feature-label[_ngcontent-%COMP%]{white-space:nowrap}.collapse-hint[_ngcontent-%COMP%]{margin-top:16px;text-align:center}.collapse-hint[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:13px;opacity:.8}.collapse-hint[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{opacity:1}.progress-card[_ngcontent-%COMP%]{background:var(--mat-sys-surface);padding:24px;border-radius:12px;margin-top:16px;margin-bottom:16px;box-shadow:0 4px 8px #00000029,0 8px 16px #0000001f;border:1px solid var(--mat-sys-outline-variant);animation:_ngcontent-%COMP%_slideDown .3s ease-out}@keyframes _ngcontent-%COMP%_slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.progress-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.progress-message[_ngcontent-%COMP%]{font-size:15px;color:var(--mat-sys-on-surface);font-weight:600}.elapsed-time[_ngcontent-%COMP%]{font-size:13px;color:var(--mat-sys-on-surface-variant);font-family:monospace;background:var(--mat-sys-surface-variant);padding:4px 10px;border-radius:6px}.progress-footer[_ngcontent-%COMP%]{margin-top:16px;display:flex;justify-content:space-between;align-items:center}.progress-percent[_ngcontent-%COMP%]{font-size:14px;color:var(--mat-sys-primary);font-weight:600}.research-section[_ngcontent-%COMP%]{margin:16px 0;padding:12px;background:var(--mat-sys-surface-variant);border-radius:8px;display:flex;flex-direction:column;gap:8px}.research-hint[_ngcontent-%COMP%]{font-size:12px;color:var(--mat-sys-on-surface-variant);margin-left:32px;font-style:italic}.series-options[_ngcontent-%COMP%]{margin:8px 0 16px 32px;display:flex;flex-direction:column;gap:12px}.series-info[_ngcontent-%COMP%]{font-size:13px;color:var(--mat-sys-on-surface-variant);font-style:italic;padding:4px 0}.seed-image-section[_ngcontent-%COMP%]{margin:16px 0 16px 24px;padding:12px;background:var(--mat-sys-surface-variant);border-radius:8px;display:flex;flex-direction:column;gap:8px}.seed-image-header[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--mat-sys-on-surface)}@media(max-width:600px){.progress-card[_ngcontent-%COMP%]{padding:16px}.summary-features[_ngcontent-%COMP%]{flex-direction:column}.feature-chip[_ngcontent-%COMP%]{width:100%;justify-content:flex-start}}"],changeDetection:1})}return t})();function oX(t,i){t&1&&(p(0,"mat-error"),v(1,"URL is "),p(2,"strong"),v(3,"required"),m()())}function aX(t,i){if(t&1&&(p(0,"mat-error"),v(1),m()),t&2){let e=E();u(),M(e.urlError)}}function sX(t,i){t&1&&v(0," \xA0 ")}function lX(t,i){t&1&&(p(0,"span",10),U(1,"mat-spinner",13),m()),t&2&&(u(),S("diameter",40))}var cX=(()=>{class t{dialogRef;data;chatService;urlControl=new $n("",[Tt.required]);instructionsControl=new $n("");closeTxt=$localize`Close`;replyTxt=$localize`Reply`;instructions1=$localize`Instructions: `;instructions2=$localize`Paste the url of the post in the box. Be sure the post
allows comments. If you want the character to reply to an existing comment, paste the Reply link
for that comment.
`;specialInstructions=$localize`Special Instructions: `;loading=!1;urlError="";character;constructor(e,n,r){this.dialogRef=e,this.data=n,this.chatService=r}ngOnInit(){this.character=this.data.characterData}ngAfterViewInit(){}reply(){let e=this;this.urlError="",e.loading=!0;let n=this.urlControl.value;if(!n)return;let r=this.instructionsControl.value;if(console.log("url is ",this.urlControl.value),console.log("instructions are: ",this.instructionsControl.value),!n?.startsWith("http")){this.urlError=$localize`Invalid url`;return}e.chatService.postComment(e.character,n,r||"").pipe(mt(1)).subscribe({next(o){if(!o){console.log("no results from post comment");return}e.loading=!1,console.log("post comment result is ",o),e.dialogRef.close({data:{msg:"Reply added successfully for post at "+n}})},error(o){e.loading=!1,e.urlError=$localize`Error: `+o.error.detail,console.log("error encountered posting comment: ",o.error.detail)},complete(){}})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un),Z(xv))};static \u0275cmp=q({type:t,selectors:[["tsai-reply-dialog"]],decls:29,vars:13,consts:[["autosize","cdkTextareaAutosize"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-form"],[1,"full-width"],["type","text","matInput","","placeholder","Ex. https://example.com/my-article/",3,"formControl"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"formControl"],[1,"error-container"],[1,"reply-container"],["mat-raised-button","",3,"click","disabled"],[1,"spinner-container"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mode","indeterminate",3,"diameter"]],template:function(n,r){n&1&&(p(0,"h1",1),v(1),m(),p(2,"div",2)(3,"p")(4,"strong"),v(5),m(),v(6),m(),p(7,"form",3)(8,"mat-form-field",4)(9,"mat-label"),v(10,"URL"),m(),U(11,"input",5),Se(),A(12,oX,4,0,"mat-error"),m(),p(13,"mat-form-field",4)(14,"mat-label"),v(15),m(),U(16,"textarea",6,0),Se(),m(),p(18,"div",7),A(19,aX,2,1,"mat-error")(20,sX,1,0),m(),p(21,"div",8)(22,"button",9),N("click",function(){return r.reply()}),v(23),m(),A(24,lX,2,1,"span",10),m()()(),p(25,"div",11)(26,"button",12),v(27),m()(),U(28,"br")),n&2&&(u(),M(r.data.title),u(4),M(r.instructions1),u(),oe(" ",r.instructions2," "),u(5),S("formControl",r.urlControl),ke(),u(),R(r.urlControl.hasError("required")?12:-1),u(3),M(r.specialInstructions),u(),S("formControl",r.instructionsControl),ke(),u(3),R(r.urlError!==""?19:20),u(3),S("disabled",r.loading),u(),oe(" ",r.replyTxt," "),u(),R(r.loading?24:-1),u(2),S("disabled",r.loading),u(),oe(" ",r.closeTxt," "))},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,ii,Gi,Wn,ni,Ko,M_,cr,Ll,Ei,lr,Nl,Pa,Vn,Bl,K0,ki,na],styles:[".example-form[_ngcontent-%COMP%]{min-width:150px;max-width:900px;width:100%}.full-width[_ngcontent-%COMP%]{width:100%}.error-container[_ngcontent-%COMP%]{text-align:center;margin:10px 0 20px}.reply-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.spinner-container[_ngcontent-%COMP%]{margin-left:15px}"],changeDetection:1})}return t})(),dX=(()=>{class t{dialogRef;data;title="";yesTxt=$localize`Yes`;cancelTxt=$localize`Cancel`;constructor(e,n){this.dialogRef=e,this.data=n}ngOnInit(){this.title=this.data.title||"Untitled"}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-confirmation-dialog"]],decls:12,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"dialog-actions"],["mat-button","",3,"click"]],template:function(n,r){n&1&&(kt(0,"h1",0),v(1),Mt(),kt(2,"div",1)(3,"p"),v(4),Mt(),kt(5,"p"),v(6),Mt()(),kt(7,"div",2)(8,"button",3),Ea("click",function(){return r.dialogRef.close()}),v(9),Mt(),kt(10,"button",3),Ea("click",function(){return r.dialogRef.close({confirm:!0})}),v(11),Mt()()),n&2&&(u(),M(r.title),u(3),M(r.data.msg),u(2),M(r.data.msg2),u(3),M(r.cancelTxt),u(2),oe(" ",r.yesTxt," "))},styles:[".dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:15px}"],changeDetection:1})}return t})(),uX=(t,i)=>i.name;function mX(t,i){if(t&1&&(p(0,"div",43)(1,"mat-icon"),v(2,"warning"),m(),v(3),m()),t&2){let e=E();u(3),oe(" ",e.modelsError()," ")}}function hX(t,i){if(t&1&&(p(0,"mat-option",45),v(1),m()),t&2){let e=i.$implicit;S("value",e),u(),M(e)}}function pX(t,i){t&1&&(p(0,"mat-option",47),v(1,"Loading models..."),m())}function fX(t,i){t&1&&(p(0,"mat-option",47),v(1,"No models available for this provider"),m())}function gX(t,i){t&1&&(p(0,"mat-option",47),v(1,"Please select a provider first"),m())}function _X(t,i){if(t&1&&(p(0,"span",60),v(1),m()),t&2){let e=E().$implicit;u(),oe(" - ",e.description)}}function vX(t,i){if(t&1&&(p(0,"mat-option",48),v(1),A(2,_X,2,1,"span",60),m()),t&2){let e=i.$implicit;S("value",e.name)("matTooltip",e.description||""),u(),oe(" ",e.name," "),u(),R(e.description?2:-1)}}function bX(t,i){if(t&1&&v(0),t&2){let e=E();M(e.step4Txt)}}function yX(t,i){if(t&1&&(p(0,"div"),v(1),m()),t&2){let e=E();u(),M(e.confirmEditTxt)}}function xX(t,i){if(t&1&&(p(0,"div"),v(1),m()),t&2){let e=E();u(),M(e.confirmCreateTxt)}}function CX(t,i){if(t&1&&(p(0,"p",58),v(1),m()),t&2){let e=E();u(),M(e.error1)}}function wX(t,i){if(t&1&&(p(0,"p",58),v(1),m()),t&2){let e=E();u(),M(e.error2)}}function EX(t,i){if(t&1&&(p(0,"p",58),v(1),m()),t&2){let e=E();u(),M(e.error3)}}var DX=(()=>{class t{utils;formBuilder;modelsService;dialogService;step1Txt=$localize`Appearance`;step2Txt=$localize`Features`;step3Txt=$localize`AI Model`;step4Txt=$localize`Confirmation`;nextTxt=$localize`Next`;backTxt=$localize`Back`;confirmTxt=$localize`Confirm`;requiredTxt=$localize`Required Field`;minLengthTxt=$localize`Field has a minimum length of `;submitTxt=$localize`Submit`;messageTxt=$localize`Initial User Message`;messageHintTxt=$localize`Ex. How many inches in a foot?`;messageHintLabelTxt=$localize`Hint for user initial message`;messageHintLabelHintTxt=$localize`Enter your question here`;instructionsTxt=$localize`Instructions`;instructionsHintTxt=$localize`Instructions for the conversation.`;appearanceTxt=$localize`Appearance`;cardIdTxt=$localize`Slug`;cardIdTipTxt=$localize`A short name for the url (use dashes and lowercase).`;cardTitleTxt=$localize`Name`;cardTitleTipTxt=$localize`Name is used on dashboards and navigation.`;cardSubtitleTxt=$localize`Category`;cardSubtitleTipTxt=$localize`Category is used on dashboards and elsewhere.`;cardDescriptionTxt=$localize`Description`;cardDescriptionTipTxt=$localize`Description is used primarily on the dashboard and detail page for the widget.`;cardHelpTxt=$localize`Help`;cardHelpTipTxt=$localize`Widget help.`;cardIconTxt=$localize`Icon`;cardIconTipTxt=$localize`Widget Icon`;cardEnabledTxt=$localize`Enabled`;cardEnabledTipTxt=$localize`Whether or not the widget is enabled.`;cardHiddenTxt=$localize`Hidden`;cardHiddenTipTxt=$localize`Whether or not the widget is hidden.`;sharedTxt=$localize`Shared`;sharedTipTxt=$localize`Allow other sites to import this widget`;featuresTxt=$localize`Features`;promptTxt=$localize`Prompt`;promptTipTxt=$localize`Enable the user to respond with text input.`;newTxt=$localize`New`;newTipTxt=$localize`Allow the user to create a new conversation.`;saveTxt=$localize`Save`;saveTipTxt=$localize`Allow the user to save the conversation to a CMS.`;clearTxt=$localize`Clear`;clearTipTxt=$localize`Allow user to clear the current prompt.`;shareTxt=$localize`Share`;shareTipTxt=$localize`Share this content with others.`;sendTxt=$localize`Send`;sendTipTxt=$localize`Allow user to send responses.`;refreshTxt=$localize`Refresh`;refreshTipTxt=$localize`Allow the user to refresh the conversation.`;copyToClipboardTxt=$localize`Copy to Clipboard`;copyToClipboardTipTxt=$localize`Allow user to copy parts of the conversation to their clipboard.`;copyToPromptTxt=$localize`Copy to Prompt`;copyToPromptTipTxt=$localize`Allow user to copy parts of the conversation to the current prompt.`;createImageFromTextTxt=$localize`Create Image from Text`;createImageFromTextTipTxt=$localize`Allow user to create an image from parts of the conversation.`;streamedResponsesTxt=$localize`Streamed Responses`;streamedResponsesTipTxt=$localize`Receive AI responses tokens as they are produced by the LLM.`;modelTxt=$localize`AI Model`;modelTipTxt=$localize`Select the AI model and configuration for your widget`;providerTxt=$localize`Provider`;modelNameTxt=$localize`Model Name`;temperatureTxt=$localize`Temperature`;temperatureTipTxt=$localize`Controls randomness (0-1, higher = more creative)`;maxTokensTxt=$localize`Max Tokens`;maxTokensTipTxt=$localize`Maximum response length (optional)`;streamTxt=$localize`Streaming`;streamTipTxt=$localize`Enable streaming responses`;useLangChainTxt=$localize`Use LangChain`;useLangChainTipTxt=$localize`Enable LangChain for advanced AI orchestration`;useStructuredOutputTxt=$localize`Use Structured Output`;useStructuredOutputTipTxt=$localize`Enable structured JSON output from AI responses`;modelSelectionTxt=$localize`Model Selection`;modelSelectionTipTxt=$localize`Allow users to select different AI models`;autoSendTxt=$localize`AutoSend`;autoSendEnabledTxt=$localize`Enabled`;autoSendEnabledTipTxt=$localize`Initial message sent automatically.`;addToViewerTxt=$localize`Add to Viewer`;addToViewerTipTxt=$localize`Show initial message in viewer.`;addUserNameTxt=$localize`Add User Name`;addUserNameTipTxt=$localize`Add user name to initial message.`;introTxt=$localize`Intro`;introTipTxt=$localize`Initial message body`;promptsTxt=$localize`Prompts`;promptsEnabledTxt=$localize`Enabled`;promptsEnabledTipTxt=$localize`Enable user to access stored prompts.`;promptsImagePromptTxt=$localize`Image Prompt`;promptsImagePromptTipTxt=$localize`User can respond with an image.`;confirmCreateTxt=$localize`Create new widget?`;confirmEditTxt=$localize`Confirm widget changes?`;editConfig=Dt();configSaveEvent=new le;stepperOrientation;widgetData;config=Q({});providers=Object.values(tu);availableModels=[];filteredModels=[];modelsLoading=Q(!1);modelsError=Q(null);constructor(e,n,r,o,a){this.utils=e,this.formBuilder=n,this.modelsService=o,this.dialogService=a,this.widgetData=this.utils.createDefaultWidgetConfig(),this.stepperOrientation=r.observe("(min-width: 800px)").pipe(Le(({matches:s})=>s?"horizontal":"vertical"))}ngOnInit(){let e=this.editConfig();console.log("edit config",e),e?this.widgetData=e:(console.log("default widget data: ",this.widgetData),this.widgetData.message="",this.widgetData.messageHint="",this.widgetData.instructions="You are a helpful assistant.",this.widgetData.features.streamedResponses=!0,this.widgetData.features.clear=!0,this.widgetData.features.save=!0,this.widgetData.card={id:"",title:$localize``,subtitle:$localize`Chatbot Widget`,description:$localize``,help:$localize``,icon:"auto_awesome",quickLinks:[],link:{name:$localize`Action Link Title`,href:"#"},weight:10,enabled:!0,hidden:!1,dynamic:!0}),this.buildForm(),this.loadModels()}loadModels(){this.modelsLoading.set(!0),this.modelsError.set(null),this.thirdFormGroup?.get("modelName")?.disable(),this.modelsService.getAvailableModels().subscribe({next:e=>{this.availableModels=e,this.modelsLoading.set(!1),console.log("Available models loaded:",e),this.thirdFormGroup?.get("modelName")?.enable(),this.widgetData.model?.provider&&this.onProviderChange(this.widgetData.model.provider)},error:e=>{console.error("Failed to load models:",e),this.modelsLoading.set(!1),this.modelsError.set("Failed to load available models. Model selection may be limited."),this.thirdFormGroup?.get("modelName")?.enable()}})}group;firstFormGroup;secondFormGroup;thirdFormGroup;buildForm(){this.firstFormGroup=this.formBuilder.group({id:[this.widgetData.card?.id],title:[this.widgetData.card?.title,[Tt.required]],subtitle:[this.widgetData.card?.subtitle,[Tt.required]],description:[this.widgetData.card?.description,[Tt.required]],help:[this.widgetData.card?.help,[Tt.required]],icon:[this.widgetData.card?.icon,[Tt.required,Tt.minLength(3)]],message:[this.widgetData.message],messageHint:[this.widgetData.messageHint],instructions:this.widgetData.instructions||"",enabled:this.widgetData.card?.enabled,hidden:this.widgetData.card?.hidden,shared:[this.widgetData.shared!==!1]}),this.secondFormGroup=this.formBuilder.group({prompt:this.widgetData.features.prompt,new:this.widgetData.features.new,save:this.widgetData.features.save,clear:this.widgetData.features.clear,share:this.widgetData.features.share,send:this.widgetData.features.send,refresh:this.widgetData.features.refresh,copyToClipboard:this.widgetData.features.copyToClipboard,copyToPrompt:this.widgetData.features.copyToPrompt,streamedResponses:this.widgetData.features.streamedResponses,createImageFromText:this.widgetData.features.createImageFromText,autoSend:this.formBuilder.group({enabled:this.widgetData.features.autoSend.enabled,addToViewer:this.widgetData.features.autoSend.addToViewer,addUserName:this.widgetData.features.autoSend.addUserName,intro:this.widgetData.features.autoSend.intro}),prompts:this.formBuilder.group({enabled:this.widgetData.features.prompts.enabled,imagePrompt:this.widgetData.features.prompts.imagePrompt}),images:this.formBuilder.group({uploadImages:this.widgetData.features.uploadImages,uploadImagesImageSize:this.widgetData.features.uploadImagesImageSize,downloadImages:this.widgetData.features.downloadImages,saveImagePrompt:this.widgetData.features.saveImagePrompt})}),this.thirdFormGroup=this.formBuilder.group({modelProvider:[this.widgetData.model?.provider||null],modelName:[this.widgetData.model?.name||""],temperature:[this.widgetData.model?.temperature??.7,[Tt.min(0),Tt.max(1)]],maxTokens:[this.widgetData.model?.maxTokens||null,[Tt.min(1)]],stream:[this.widgetData.model?.stream??!0],useLangChain:[this.widgetData.features.useLangChain??!1],useStructuredOutput:[this.widgetData.features.useStructuredOutput??!1],modelSelection:[this.widgetData.features.modelSelection??!0]}),this.thirdFormGroup.get("modelProvider")?.valueChanges.subscribe(e=>{this.onProviderChange(e)})}onProviderChange(e){this.filteredModels=e?this.availableModels.filter(a=>a.provider===e):[];let n=this.thirdFormGroup.get("modelName");this.filteredModels.length>0?n?.enable():n?.disable();let r=n?.value;if(!(r&&this.filteredModels.some(a=>a.name===r))&&(n?.setValue(""),this.filteredModels.length>0)){let a=this.filteredModels[0];n?.setValue(a.name),a.maxTokens&&this.thirdFormGroup.get("maxTokens")?.setValue(a.maxTokens),a.supportsStreaming||this.thirdFormGroup.get("stream")?.setValue(!1)}}getSelectedModel(){let e=this.thirdFormGroup.get("modelName")?.value;return this.filteredModels.find(n=>n.name===e)||null}openIconPicker(){let e=this.firstFormGroup.get("icon")?.value;this.dialogService.openIconPickerDialog({currentIcon:e}).afterClosed().subscribe(r=>{r?.icon&&this.firstFormGroup.get("icon")?.setValue(r.icon)})}isValid(){return!1}appearanceFormError=$localize`Appearance form is invalid`;featuresFormError=$localize`Features form is invalid`;modelFormError=$localize`Model configuration form is invalid`;error1="";error2="";error3="";showSubmitErrors(){this.error1=this.firstFormGroup.valid?"":this.appearanceFormError,this.error2=this.secondFormGroup.valid?"":this.featuresFormError,this.error3=this.thirdFormGroup.valid?"":this.modelFormError}submit(){if(console.log("submit form 1: ",this.firstFormGroup),console.log("submit form 2: ",this.secondFormGroup),this.showSubmitErrors(),!this.firstFormGroup.valid||!this.secondFormGroup.valid||!this.thirdFormGroup.valid){console.log("form is invalid");return}let e,n=this.thirdFormGroup.get("modelProvider")?.value,r=this.thirdFormGroup.get("modelName")?.value;n&&r&&(e={provider:n,name:r,temperature:this.thirdFormGroup.get("temperature")?.value,maxTokens:this.thirdFormGroup.get("maxTokens")?.value||void 0,stream:this.thirdFormGroup.get("stream")?.value});let o=this.editConfig(),a={storageId:o?o.storageId:void 0,shared:this.firstFormGroup.get("shared")?.value!==!1,endpoint:aa.unknown,messageType:$localize`Chat Message`,message:this.firstFormGroup.get("message")?.value,messageHint:this.firstFormGroup.get("messageHint")?.value,instructions:this.firstFormGroup.get("instructions")?.value,card:{id:this.firstFormGroup.get("id")?.value,title:this.firstFormGroup.get("title")?.value,subtitle:this.firstFormGroup.get("subtitle")?.value,description:this.firstFormGroup.get("description")?.value,help:this.firstFormGroup.get("help")?.value,icon:this.firstFormGroup.get("icon")?.value,quickLinks:[],link:{name:$localize`Action Link Title`,href:"#"},weight:10,enabled:this.firstFormGroup.get("enabled")?.value,hidden:this.firstFormGroup.get("hidden")?.value,dynamic:!0},features:{prompt:this.secondFormGroup.get("prompt")?.value,new:this.secondFormGroup.get("new")?.value,save:this.secondFormGroup.get("save")?.value,clear:this.secondFormGroup.get("clear")?.value,share:this.secondFormGroup.get("share")?.value,send:this.secondFormGroup.get("send")?.value,enhance:this.secondFormGroup.get("enhance")?.value??!1,refresh:this.secondFormGroup.get("refresh")?.value,copyToClipboard:this.secondFormGroup.get("copyToClipboard")?.value,copyToPrompt:this.secondFormGroup.get("copyToPrompt")?.value,streamedResponses:this.secondFormGroup.get("streamedResponses")?.value,createImageFromText:this.secondFormGroup.get("createImageFromText")?.value,autoSend:{enabled:this.secondFormGroup.get("autoSend.enabled")?.value,addToViewer:this.secondFormGroup.get("autoSend.addToViewer")?.value,addUserName:this.secondFormGroup.get("autoSend.addUserName")?.value,intro:this.secondFormGroup.get("autoSend.intro")?.value},prompts:{enabled:this.secondFormGroup.get("prompts.enabled")?.value,imagePrompt:this.secondFormGroup.get("prompts.imagePrompt")?.value},uploadImages:this.secondFormGroup.get("images.uploadImages")?.value,uploadImagesImageSize:this.secondFormGroup.get("images.uploadImagesImageSize")?.value,downloadImages:this.secondFormGroup.get("images.downloadImages")?.value,saveImagePrompt:this.secondFormGroup.get("images.saveImagePrompt")?.value,useLangChain:this.thirdFormGroup.get("useLangChain")?.value,useStructuredOutput:this.thirdFormGroup.get("useStructuredOutput")?.value,modelSelection:this.thirdFormGroup.get("modelSelection")?.value},model:e};console.log("widget config: ",a),this.configSaveEvent.emit(a)}static \u0275fac=function(n){return new(n||t)(Z(Wh),Z(sh),Z(Ts),Z(sS),Z(Cv))};static \u0275cmp=q({type:t,selectors:[["tsai-widget-form"]],inputs:{editConfig:[1,"editConfig"]},outputs:{configSaveEvent:"configSaveEvent"},decls:175,vars:123,consts:()=>{let e;return e=$localize`Browse icons`,[[1,"example-stepper",3,"orientation"],[3,"stepControl","label"],[3,"formGroup"],[1,"widget-field","title-widget"],["type","text","matInput","","name","title","formControlName","title",3,"placeholder"],[1,"widget-field"],["type","text","matInput","","name","subtitle","formControlName","subtitle",3,"placeholder"],["matInput","","name","description","formControlName","description",3,"placeholder"],["type","text","matInput","","name","help","formControlName","help",3,"placeholder"],[1,"icon-picker-field"],["matPrefix","",1,"icon-preview"],["type","text","matInput","","name","icon","formControlName","icon",3,"placeholder"],["type","button","mat-icon-button","","matTooltip",e,3,"click"],[1,"widget-field-wrapper"],["matInput","","name","message","formControlName","message",3,"placeholder"],["type","text","matInput","","name","messageHint","formControlName","messageHint",3,"placeholder"],["matInput","","name","instructions","formControlName","instructions",3,"placeholder"],[1,"shared-toggle"],["formControlName","shared"],["mat-raised-button","","matStepperNext",""],[1,"features-container"],[1,"features"],["formControlName","prompt",3,"matTooltip"],["formControlName","new",3,"matTooltip"],["formControlName","save",3,"matTooltip"],["formControlName","clear",3,"matTooltip"],["formControlName","share",3,"matTooltip"],["formControlName","send",3,"matTooltip"],["formControlName","refresh",3,"matTooltip"],["formControlName","copyToClipboard",3,"matTooltip"],["formControlName","copyToPrompt",3,"matTooltip"],["formControlName","streamedResponses",3,"matTooltip"],["formControlName","createImageFromText",3,"matTooltip"],["formGroupName","prompts",1,"prompts"],[1,"label"],["formControlName","enabled",3,"matTooltip"],["formControlName","imagePrompt",3,"matTooltip"],["formGroupName","autoSend",1,"autosend"],["formControlName","addToViewer",3,"matTooltip"],["formControlName","addUserName",3,"matTooltip"],["matInput","","name","intro","formControlName","intro",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],[1,"model-configuration"],[1,"error-message"],["formControlName","modelProvider"],[3,"value"],["formControlName","modelName"],["disabled",""],[3,"value","matTooltip"],["type","number","matInput","","formControlName","temperature","step","0.1","min","0","max","1",3,"matTooltip"],["type","number","matInput","","formControlName","maxTokens","min","1",3,"matTooltip"],[1,"stream-toggle"],["formControlName","stream",3,"matTooltip"],["formControlName","useLangChain",3,"matTooltip"],["formControlName","useStructuredOutput",3,"matTooltip"],["formControlName","modelSelection",3,"matTooltip"],["matStepLabel",""],[1,"section-three"],[1,"validation-error"],["mat-raised-button","",3,"click"],[1,"model-description"]]},template:function(n,r){n&1&&(p(0,"mat-stepper",0),fr(1,"async"),p(2,"mat-step",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),v(6),m(),U(7,"input",4),Se(),m(),p(8,"mat-form-field",5)(9,"mat-label"),v(10),m(),U(11,"input",6),Se(),m(),p(12,"mat-form-field",5)(13,"mat-label"),v(14),m(),U(15,"textarea",7),Se(),m(),p(16,"mat-form-field",5)(17,"mat-label"),v(18),m(),U(19,"input",8),Se(),m(),p(20,"div",9)(21,"mat-form-field",5)(22,"mat-label"),v(23),m(),p(24,"mat-icon",10),v(25),m(),U(26,"input",11),Se(),m(),p(27,"button",12),N("click",function(){return r.openIconPicker()}),p(28,"mat-icon"),v(29,"apps"),m()()(),p(30,"div",13)(31,"mat-form-field",5)(32,"mat-label"),v(33),m(),U(34,"textarea",14),Se(),m()(),p(35,"div",13)(36,"mat-form-field",5)(37,"mat-label"),v(38),m(),U(39,"input",15),Se(),m()(),p(40,"div",13)(41,"mat-form-field",5)(42,"mat-label"),v(43),m(),U(44,"textarea",16),Se(),m()(),p(45,"div",17)(46,"mat-slide-toggle",18),v(47),m(),Se(),m(),p(48,"div")(49,"button",19),v(50),m()()()(),p(51,"mat-step",1)(52,"form",2)(53,"section")(54,"div",20)(55,"section",21)(56,"span")(57,"mat-checkbox",22),v(58),m(),Se(),m(),p(59,"span")(60,"mat-checkbox",23),v(61),m(),Se(),m(),p(62,"span")(63,"mat-checkbox",24),v(64),m(),Se(),m(),p(65,"span")(66,"mat-checkbox",25),v(67),m(),Se(),m(),p(68,"span")(69,"mat-checkbox",26),v(70),m(),Se(),m(),p(71,"span")(72,"mat-checkbox",27),v(73),m(),Se(),m(),p(74,"span")(75,"mat-checkbox",28),v(76),m(),Se(),m(),p(77,"span")(78,"mat-checkbox",29),v(79),m(),Se(),m(),p(80,"span")(81,"mat-checkbox",30),v(82),m(),Se(),m(),p(83,"span")(84,"mat-checkbox",31),v(85),m(),Se(),m(),p(86,"span")(87,"mat-checkbox",32),v(88),m(),Se(),m()(),p(89,"section",33)(90,"span",34),v(91),m(),p(92,"mat-checkbox",35),v(93),m(),Se(),p(94,"mat-checkbox",36),v(95),m(),Se(),m(),p(96,"section",37)(97,"span",34),v(98),m(),p(99,"mat-checkbox",35),v(100),m(),Se(),p(101,"mat-checkbox",38),v(102),m(),Se(),p(103,"mat-checkbox",39),v(104),m(),Se(),p(105,"mat-form-field",5)(106,"mat-label"),v(107),m(),U(108,"textarea",40),Se(),m()()()(),p(109,"div")(110,"button",41),v(111),m(),p(112,"button",19),v(113),m()()()(),p(114,"mat-step",1)(115,"form",2)(116,"section",42)(117,"h3"),v(118),m(),A(119,mX,4,1,"div",43),p(120,"mat-form-field")(121,"mat-label"),v(122),m(),p(123,"mat-select",44)(124,"mat-option",45),v(125,"None"),m(),Je(126,hX,2,2,"mat-option",45,Rn),m(),Se(),m(),p(128,"mat-form-field")(129,"mat-label"),v(130),m(),p(131,"mat-select",46),A(132,pX,2,0,"mat-option",47)(133,fX,2,0,"mat-option",47)(134,gX,2,0,"mat-option",47),Je(135,vX,3,4,"mat-option",48,uX),m(),Se(),m(),p(137,"mat-form-field")(138,"mat-label"),v(139),m(),U(140,"input",49),Se(),m(),p(141,"mat-form-field")(142,"mat-label"),v(143),m(),U(144,"input",50),Se(),m(),p(145,"div",51)(146,"mat-slide-toggle",52),v(147),m(),Se(),m(),p(148,"div",51)(149,"mat-slide-toggle",53),v(150),m(),Se(),m(),p(151,"div",51)(152,"mat-slide-toggle",54),v(153),m(),Se(),m(),p(154,"div",51)(155,"mat-slide-toggle",55),v(156),m(),Se(),m()(),p(157,"div")(158,"button",41),v(159),m(),p(160,"button",19),v(161),m()()()(),p(162,"mat-step"),ot(163,bX,1,1,"ng-template",56),p(164,"section",57),A(165,yX,2,1,"div")(166,xX,2,1,"div"),A(167,CX,2,1,"p",58),A(168,wX,2,1,"p",58),A(169,EX,2,1,"p",58),m(),p(170,"div")(171,"button",41),v(172),m(),p(173,"button",59),N("click",function(){return r.submit()}),v(174),m()()()()),n&2&&(S("orientation",og(1,121,r.stepperOrientation)),u(2),S("label",Ve(r.step1Txt))("stepControl",r.firstFormGroup),u(),S("formGroup",r.firstFormGroup),u(3),M(r.cardTitleTxt),u(),S("placeholder",Ve(r.cardTitleTipTxt)),ke(),u(3),M(r.cardSubtitleTxt),u(),S("placeholder",Ve(r.cardSubtitleTipTxt)),ke(),u(3),M(r.cardDescriptionTxt),u(),S("placeholder",Ve(r.cardDescriptionTipTxt)),ke(),u(3),M(r.cardHelpTxt),u(),S("placeholder",Ve(r.cardHelpTipTxt)),ke(),u(4),M(r.cardIconTxt),u(2),M(r.firstFormGroup.get("icon")?.value),u(),S("placeholder",Ve(r.cardIconTipTxt)),ke(),u(7),M(r.messageTxt),u(),S("placeholder",Ve(r.messageHintTxt)),ke(),u(4),M(r.messageHintLabelTxt),u(),S("placeholder",Ve(r.messageHintLabelHintTxt)),ke(),u(4),M(r.instructionsTxt),u(),S("placeholder",Ve(r.instructionsHintTxt)),ke(),u(2),ke(),u(),M(r.sharedTxt),u(3),M(r.nextTxt),u(),S("label",Ve(r.step2Txt))("stepControl",r.secondFormGroup),u(),S("formGroup",r.secondFormGroup),u(5),S("matTooltip",Ve(r.promptTipTxt)),ke(),u(),M(r.promptTxt),u(2),S("matTooltip",Ve(r.newTipTxt)),ke(),u(),M(r.newTxt),u(2),S("matTooltip",Ve(r.saveTipTxt)),ke(),u(),M(r.saveTxt),u(2),S("matTooltip",Ve(r.clearTipTxt)),ke(),u(),M(r.clearTxt),u(2),S("matTooltip",Ve(r.shareTipTxt)),ke(),u(),M(r.shareTxt),u(2),S("matTooltip",Ve(r.sendTipTxt)),ke(),u(),M(r.sendTxt),u(2),S("matTooltip",Ve(r.refreshTipTxt)),ke(),u(),M(r.refreshTxt),u(2),S("matTooltip",Ve(r.copyToClipboardTipTxt)),ke(),u(),M(r.copyToClipboardTxt),u(2),S("matTooltip",Ve(r.copyToPromptTipTxt)),ke(),u(),M(r.copyToPromptTxt),u(2),S("matTooltip",Ve(r.streamedResponsesTipTxt)),ke(),u(),M(r.streamedResponsesTxt),u(2),S("matTooltip",Ve(r.createImageFromTextTipTxt)),ke(),u(),M(r.createImageFromTextTxt),u(3),oe("",r.promptsTxt,":"),u(),S("matTooltip",Ve(r.promptsEnabledTipTxt)),ke(),u(),M(r.promptsEnabledTxt),u(),S("matTooltip",Ve(r.promptsImagePromptTipTxt)),ke(),u(),M(r.promptsImagePromptTxt),u(3),oe("",r.autoSendTxt,":"),u(),S("matTooltip",Ve(r.autoSendEnabledTipTxt)),ke(),u(),M(r.autoSendEnabledTxt),u(),S("matTooltip",Ve(r.addToViewerTipTxt)),ke(),u(),M(r.addToViewerTxt),u(),S("matTooltip",Ve(r.addUserNameTipTxt)),ke(),u(),M(r.addUserNameTxt),u(3),M(r.introTxt),u(),S("placeholder",Ve(r.introTipTxt)),ke(),u(3),oe(" ",r.backTxt," "),u(2),M(r.nextTxt),u(),S("label",Ve(r.step3Txt))("stepControl",r.thirdFormGroup),u(),S("formGroup",r.thirdFormGroup),u(3),M(r.modelTipTxt),u(),R(r.modelsError()?119:-1),u(3),M(r.providerTxt),u(),ke(),u(),S("value",null),u(2),et(r.providers),u(4),M(r.modelNameTxt),u(),ke(),u(),R(r.modelsLoading()?132:r.filteredModels.length===0&&r.thirdFormGroup.get("modelProvider")?.value?133:r.thirdFormGroup.get("modelProvider")?.value?-1:134),u(3),et(r.filteredModels),u(4),M(r.temperatureTxt),u(),S("matTooltip",r.temperatureTipTxt),ke(),u(3),M(r.maxTokensTxt),u(),S("matTooltip",r.maxTokensTipTxt),ke(),u(2),S("matTooltip",r.streamTipTxt),ke(),u(),oe(" ",r.streamTxt," "),u(2),S("matTooltip",r.useLangChainTipTxt),ke(),u(),oe(" ",r.useLangChainTxt," "),u(2),S("matTooltip",r.useStructuredOutputTipTxt),ke(),u(),oe(" ",r.useStructuredOutputTxt," "),u(2),S("matTooltip",r.modelSelectionTipTxt),ke(),u(),oe(" ",r.modelSelectionTxt," "),u(3),M(r.backTxt),u(2),M(r.nextTxt),u(4),R(r.editConfig()?165:166),u(2),R(r.error1?167:-1),u(),R(r.error2?168:-1),u(),R(r.error3?169:-1),u(3),M(r.backTxt),u(2),M(r.confirmTxt))},dependencies:[zi,cr,Ll,Ei,Y0,lr,Nl,q0,G0,Bl,go,Dd,X0,ii,Gi,Wn,ni,D_,Vn,Pt,nn,vo,jd,Zl,Gn,Sr,RE,X_,$d,Ud,IE,AE,ta,ea,dr,dn,cn,Y_,Ph,Cg],styles:["section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.example-stepper[_ngcontent-%COMP%]{margin-top:8px}.title-widget[_ngcontent-%COMP%]{margin-top:16px}button[_ngcontent-%COMP%]{margin-right:10px}.toggle[_ngcontent-%COMP%], .shared-toggle[_ngcontent-%COMP%]{margin-bottom:20px}.mat-hint[_ngcontent-%COMP%]{color:red}.features-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}mat-form-field[_ngcontent-%COMP%]{width:100%}.features[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%]{border:1px solid darkgray;border-radius:5px;padding:5px;margin-top:5px;margin-bottom:5px;width:100%}.features[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:#fff}.icon-picker-field[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.icon-picker-field[_ngcontent-%COMP%] .widget-field[_ngcontent-%COMP%]{flex:1}.icon-picker-field[_ngcontent-%COMP%] .icon-preview[_ngcontent-%COMP%]{margin-right:8px}.validation-error[_ngcontent-%COMP%]{color:red}"],changeDetection:1})}return t})(),SX=["widget"],kX=(()=>{class t{dialogRef;data;form;closeTxt=$localize`Close`;constructor(e,n){this.dialogRef=e,this.data=n}ngOnInit(){console.log("dialog data",this.data),console.log("widget",this.form)}ngAfterViewInit(){console.log("widget",this.form)}submitEnabled(){return this.form?this.form.isValid():!1}configSave(e){console.log("config saved",e),this.dialogRef.close({data:e})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-dynamic-widget-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(SX,5),n&2){let o;K(o=X())&&(r.form=o.first)}},decls:8,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"configSaveEvent","editConfig"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"tsai-widget-form",2),N("configSaveEvent",function(a){return r.configSave(a)}),m()(),p(4,"div",3)(5,"button",4),v(6),m()(),U(7,"br")),n&2&&(u(),M(r.data.title),u(2),S("editConfig",r.data.editWidgetConfig),u(3),M(r.closeTxt))},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,DX,ii],encapsulation:2,changeDetection:1})}return t})(),MX=(t,i)=>i.timestamp;function TX(t,i){t&1&&(p(0,"mat-chip",4)(1,"mat-icon",7),v(2,"check_circle"),m(),v(3," Enabled "),m())}function IX(t,i){t&1&&(p(0,"mat-chip",5)(1,"mat-icon",7),v(2,"cancel"),m(),v(3," Disabled "),m())}function AX(t,i){t&1&&(p(0,"mat-chip",8)(1,"mat-icon",7),v(2,"verified"),m(),v(3," System "),m())}function RX(t,i){if(t&1&&(p(0,"span",10)(1,"mat-icon"),v(2,"add_circle_outline"),m(),v(3),fr(4,"date"),m()),t&2){let e=E();u(3),oe(" Created ",Vo(4,1,e.character().dateCreated,"mediumDate")," ")}}function OX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Article days"),m(),p(3,"span",18),v(4),m()(),p(5,"div",16)(6,"span",17),v(7,"Article hours"),m(),p(8,"span",18),v(9),m()()),t&2){let e,n=E();u(4),M(n.formatScheduleDays(n.character().articleSchedule)),u(5),M(n.formatHours((e=n.character().articleSchedule)==null?null:e.preferredHours))}}function PX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Comment days"),m(),p(3,"span",18),v(4),m()(),p(5,"div",16)(6,"span",17),v(7,"Comment hours"),m(),p(8,"span",18),v(9),m()()),t&2){let e,n=E();u(4),M(n.formatScheduleDays(n.character().commentSchedule)),u(5),M(n.formatHours((e=n.character().commentSchedule)==null?null:e.preferredHours))}}function FX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Query"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().searchQuery)}}function NX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Topic"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().searchTopicType)}}function LX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Time range"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().searchTimeRange)}}function BX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Max results"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().maxSearchResults)}}function zX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Search depth"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().searchDepth)}}function VX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Chunks per source"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().chunksPerSource)}}function jX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Include"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().searchDomainsIncluded.join(", "))}}function HX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Exclude"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().searchDomainsExcluded.join(", "))}}function $X(t,i){if(t&1&&(A(0,FX,5,1,"div",16),A(1,NX,5,1,"div",16),A(2,LX,5,1,"div",16),A(3,BX,5,1,"div",16),A(4,zX,5,1,"div",16),A(5,VX,5,1,"div",16),A(6,jX,5,1,"div",16),A(7,HX,5,1,"div",16)),t&2){let e=E();R(e.character().searchQuery?0:-1),u(),R(e.character().searchTopicType?1:-1),u(),R(e.character().searchTimeRange?2:-1),u(),R(e.character().maxSearchResults?3:-1),u(),R(e.character().searchDepth?4:-1),u(),R(e.hasAdvancedSearch&&e.character().chunksPerSource?5:-1),u(),R(e.character().searchDomainsIncluded&&e.character().searchDomainsIncluded.length>0?6:-1),u(),R(e.character().searchDomainsExcluded&&e.character().searchDomainsExcluded.length>0?7:-1)}}function UX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Temperature"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().model.temperature)}}function WX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Max tokens"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().model.maxTokens)}}function GX(t,i){if(t&1&&(p(0,"div",16)(1,"span",17),v(2,"Streaming"),m(),p(3,"span",18),v(4),m()()),t&2){let e=E(2);u(4),M(e.character().model.stream?"Yes":"No")}}function qX(t,i){if(t&1&&(p(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon"),v(4,"smart_toy"),m(),p(5,"span"),v(6,"AI Model"),m()(),p(7,"mat-panel-description"),v(8),m()(),p(9,"div",15)(10,"div",16)(11,"span",17),v(12,"Provider"),m(),p(13,"span",18),v(14),m()(),p(15,"div",16)(16,"span",17),v(17,"Model"),m(),p(18,"span",19),v(19),m()(),A(20,UX,5,1,"div",16),A(21,WX,5,1,"div",16),A(22,GX,5,1,"div",16),m()()),t&2){let e=E();u(8),M(e.modelSummary),u(6),M(e.character().model.provider),u(5),M(e.character().model.name),u(),R(e.character().model.temperature!=null?20:-1),u(),R(e.character().model.maxTokens!=null?21:-1),u(),R(e.character().model.stream!=null?22:-1)}}function QX(t,i){if(t&1&&(p(0,"div",20)(1,"span",21),v(2),fr(3,"date"),m(),p(4,"span",22),v(5),m()()),t&2){let e=i.$implicit;u(2),M(Vo(3,2,e.timestamp,"medium")),u(3),M(e.description)}}function ZX(t,i){if(t&1&&(p(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon"),v(4,"history"),m(),p(5,"span"),v(6,"History"),m()(),p(7,"mat-panel-description"),v(8),m()(),p(9,"div",15),Je(10,QX,6,5,"div",20,MX),m()()),t&2){let e=E();u(8),M(e.historySummary),u(2),et(e.character().history.slice().reverse())}}var YX=(()=>{class t{character=Dt.required();dayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];get hasModel(){return!!this.character().model}get sharedLabel(){return this.character().shared!==!1?"Shared":"Private"}get isSystemWide(){return!!this.character().systemWide}get hasAdvancedSearch(){return this.character().searchDepth==="advanced"}get scheduleSummary(){let e=this.formatSchedulePart("Articles",this.character().articleSchedule),n=this.formatSchedulePart("Comments",this.character().commentSchedule);return!e&&!n?"No schedule":[e,n].filter(Boolean).join(" \xB7 ")}formatSchedulePart(e,n){if(!n||!(n.daysOfWeek?.length||n.daysOfMonth?.length))return"";let r=[];return n.daysOfWeek?.length&&r.push(this.formatDaysOfWeek(n.daysOfWeek)),n.daysOfMonth?.length&&r.push(this.formatDaysOfMonth(n.daysOfMonth)),n.preferredHours?.length&&r.push(this.formatHours(n.preferredHours)),`${e}: ${r.join(" ")}`}get researchSummary(){let e=this.character();if(!e.researchCurrentEvents)return"Disabled";let n=[];return e.searchQuery&&n.push(`"${e.searchQuery}"`),e.searchTopicType&&n.push(e.searchTopicType),e.searchTimeRange&&n.push(`past ${e.searchTimeRange}`),n.join(" \xB7 ")}get modelSummary(){let e=this.character().model;if(!e)return"";let n=[`${e.provider} / ${e.name}`];return e.temperature!=null&&n.push(`temp ${e.temperature}`),n.join(" \xB7 ")}get historySummary(){let e=this.character().history?.length??0;return`${e} event${e===1?"":"s"}`}get hasArticleSchedule(){let e=this.character().articleSchedule;return!!e&&!!(e.daysOfWeek?.length||e.daysOfMonth?.length)}get hasCommentSchedule(){let e=this.character().commentSchedule;return!!e&&!!(e.daysOfWeek?.length||e.daysOfMonth?.length)}get hasScheduleDetails(){return this.hasArticleSchedule||this.hasCommentSchedule}get hasHistory(){return!!this.character().history?.length}get hasResearch(){return!!this.character().researchCurrentEvents}formatDaysOfWeek(e){return!e||e.length===0?"None":e.length===7?"Daily":e.map(n=>this.dayNames[n]).join(", ")}formatDaysOfMonth(e){return!e||e.length===0?"None":e.join(", ")}formatHours(e){if(!e||e.length===0)return"Any";let n=[...e].sort((s,l)=>s-l),r=[],o=n[0],a=n[0];for(let s=1;s<n.length;s++)n[s]===a+1||(r.push(this.formatHourRange(o,a)),o=n[s]),a=n[s];return r.push(this.formatHourRange(o,a)),r.join(", ")}formatHourRange(e,n){return e===n?this.formatHour(e):`${this.formatHour(e)}-${this.formatHour(n)}`}formatHour(e){return e===0?"12AM":e===12?"12PM":e<12?`${e}AM`:`${e-12}PM`}formatScheduleDays(e){if(!e)return"";let n=[];return e.daysOfWeek&&e.daysOfWeek.length>0&&n.push(this.formatDaysOfWeek(e.daysOfWeek)),e.daysOfMonth&&e.daysOfMonth.length>0&&n.push("Days of month: "+this.formatDaysOfMonth(e.daysOfMonth)),n.join(" | ")||"Not configured"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-character-detail"]],inputs:{character:[1,"character"]},decls:111,vars:27,consts:[[1,"character-detail"],[1,"detail-header"],[1,"header-info"],[1,"header-top"],["highlighted","",1,"status-enabled"],[1,"status-disabled"],[1,"status-shared"],["matChipAvatar",""],[1,"status-system"],[1,"header-meta"],[1,"meta-item"],[1,"detail-section","description-section"],[1,"section-header"],[1,"description-text"],["multi","",1,"detail-accordion"],[1,"section-body"],[1,"field-row"],[1,"field-label"],[1,"field-value"],[1,"field-value","model-name"],[1,"history-event"],[1,"history-timestamp"],[1,"history-description"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-chip-set"),A(5,TX,4,0,"mat-chip",4)(6,IX,4,0,"mat-chip",5),p(7,"mat-chip",6)(8,"mat-icon",7),v(9),m(),v(10),m(),A(11,AX,4,0,"mat-chip",8),m()(),p(12,"div",9)(13,"span",10)(14,"mat-icon"),v(15,"email"),m(),v(16),m(),p(17,"span",10)(18,"mat-icon"),v(19,"label"),m(),v(20),m(),A(21,RX,5,4,"span",10),p(22,"span",10)(23,"mat-icon"),v(24,"edit_calendar"),m(),v(25),fr(26,"date"),m()()()(),U(27,"mat-divider"),p(28,"div",11)(29,"div",12)(30,"mat-icon"),v(31,"description"),m(),p(32,"span"),v(33,"Description"),m()(),p(34,"p",13),v(35),m()(),U(36,"mat-divider"),p(37,"mat-accordion",14)(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title")(41,"mat-icon"),v(42,"edit_note"),m(),p(43,"span"),v(44,"Posting & Generation"),m()()(),p(45,"div",15)(46,"div",16)(47,"span",17),v(48,"Featured image"),m(),p(49,"span",18),v(50),m()(),p(51,"div",16)(52,"span",17),v(53,"Secondary image"),m(),p(54,"span",18),v(55),m()(),p(56,"div",16)(57,"span",17),v(58,"Fact-checking"),m(),p(59,"span",18),v(60),m()(),p(61,"div",16)(62,"span",17),v(63,"Auto-corrections"),m(),p(64,"span",18),v(65),m()(),p(66,"div",16)(67,"span",17),v(68,"Previous articles"),m(),p(69,"span",18),v(70),m()()()(),p(71,"mat-expansion-panel")(72,"mat-expansion-panel-header")(73,"mat-panel-title")(74,"mat-icon"),v(75,"schedule"),m(),p(76,"span"),v(77,"Schedule"),m()(),p(78,"mat-panel-description"),v(79),m()(),p(80,"div",15)(81,"div",16)(82,"span",17),v(83,"Article schedule"),m(),p(84,"span",18),v(85),m()(),A(86,OX,10,2),p(87,"div",16)(88,"span",17),v(89,"Comment schedule"),m(),p(90,"span",18),v(91),m()(),A(92,PX,10,2),m()(),p(93,"mat-expansion-panel")(94,"mat-expansion-panel-header")(95,"mat-panel-title")(96,"mat-icon"),v(97,"travel_explore"),m(),p(98,"span"),v(99,"Research"),m()(),p(100,"mat-panel-description"),v(101),m()(),p(102,"div",15)(103,"div",16)(104,"span",17),v(105,"Status"),m(),p(106,"span",18),v(107),m()(),A(108,$X,8,8),m()(),A(109,qX,23,6,"mat-expansion-panel"),A(110,ZX,12,1,"mat-expansion-panel"),m()()),n&2&&(u(5),R(r.character().enabled?5:6),u(4),M(r.character().shared!==!1?"public":"lock"),u(),oe(" ",r.sharedLabel," "),u(),R(r.isSystemWide?11:-1),u(5),oe(" ",r.character().email," "),u(4),oe(" ",r.character().slug," "),u(),R(r.character().dateCreated?21:-1),u(4),oe(" Modified ",Vo(26,24,r.character().date,"mediumDate")," "),u(10),M(r.character().description),u(15),M(r.character().createFeaturedImage?"Yes":"No"),u(5),M(r.character().createSecondaryImage?"Yes":"No"),u(5),M(r.character().enableFactChecking?"Yes":"No"),u(5),M(r.character().enableCorrections?"Yes":"No"),u(5),M(r.character().includePreviousArticles!==!1?"Yes":"No"),u(9),M(r.scheduleSummary),u(6),M(r.hasArticleSchedule?"Scheduled":"Not scheduled"),u(),R(r.hasArticleSchedule?86:-1),u(5),M(r.hasCommentSchedule?"Scheduled":"Not scheduled"),u(),R(r.hasCommentSchedule?92:-1),u(9),M(r.researchSummary),u(6),M(r.hasResearch?"Enabled":"Disabled"),u(),R(r.hasResearch?108:-1),u(),R(r.hasModel?109:-1),u(),R(r.hasHistory?110:-1))},dependencies:[R_,Ah,sN,mE,dn,cn,ur,Fh,HE,RN,J_,ev,jE,AN,Jc],styles:['.character-detail[_ngcontent-%COMP%]{padding:16px 24px}.detail-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding-bottom:16px}.detail-header[_ngcontent-%COMP%] .header-info[_ngcontent-%COMP%]{flex:1;min-width:0}.detail-header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.detail-header[_ngcontent-%COMP%] .header-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px;color:var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6));font-size:.875rem}.detail-header[_ngcontent-%COMP%] .meta-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px}.detail-header[_ngcontent-%COMP%] .meta-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.status-enabled[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #2e7d32}.status-disabled[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #c62828}.status-shared[_ngcontent-%COMP%]{--mdc-chip-label-text-color: var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6))}.status-system[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #6a1b9a}.description-section[_ngcontent-%COMP%] .description-text[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;line-height:1.5;max-height:200px;overflow-y:auto}.detail-section[_ngcontent-%COMP%]{padding:12px 0}.section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-weight:500;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;color:var(--mat-sys-primary, #1976d2);margin-bottom:8px}.section-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.section-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.field-row[_ngcontent-%COMP%]{display:flex;gap:8px;font-size:.875rem;line-height:1.6}.field-label[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6));min-width:120px;flex-shrink:0}.field-label[_ngcontent-%COMP%]:after{content:":"}.field-value[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface, rgba(0, 0, 0, .87))}.field-value.model-name[_ngcontent-%COMP%]{word-break:break-all}.detail-accordion[_ngcontent-%COMP%]{display:block;margin-top:12px}.detail-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{background:transparent;box-shadow:none;border-radius:0;border-top:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12))}.detail-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:last-of-type{border-bottom:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12))}.detail-accordion[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 16px;height:48px}.detail-accordion[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0 16px 16px}.detail-accordion[_ngcontent-%COMP%] .mat-panel-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-weight:500;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;color:var(--mat-sys-primary, #1976d2);flex-grow:1}.detail-accordion[_ngcontent-%COMP%] .mat-panel-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.detail-accordion[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%], .detail-accordion[_ngcontent-%COMP%] mat-panel-description[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6));font-size:.85rem;align-items:center;flex-grow:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:0}.history-event[_ngcontent-%COMP%]{display:flex;gap:12px;font-size:.875rem;line-height:1.6}.history-timestamp[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6));min-width:180px;flex-shrink:0}.history-description[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface, rgba(0, 0, 0, .87))}@media(max-width:768px){.character-detail[_ngcontent-%COMP%]{padding:12px 16px}.detail-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.field-label[_ngcontent-%COMP%]{min-width:100px}}'],changeDetection:1})}return t})(),KX=t=>({"border-radius":t});function XX(t,i){if(t&1&&(p(0,"span",1),U(1,"img",2),m()),t&2){let e=E();u(),S("ngClass",tn(2,KX,e.borderRadius()))("src",e.gravatarUrl(),Vr)}}function JX(t,i){if(t&1&&(p(0,"mat-icon"),v(1),m()),t&2){let e=E();u(),M(e.altIcon())}}var mL=(()=>{class t{email=Dt("test@example.com");altIcon=Dt("person");size=Dt("100");borderRadius=Dt(!1);character=Dt(void 0);gravatarUrl=Q("");constructor(){}ngOnInit(){this.useGravatars()&&this.getGravatarUrl(this.email())}useGravatars(){return window.location.hostname==="localhost"?!1:window.location.hostname==="localhost"?!0:window.location.protocol==="https:"}getGravatarUrl(e){if(!this.useGravatars()){console.log("gravatars not supported");return}let n=this;async function r(o){let a=new TextEncoder().encode(o),s=await window.crypto.subtle.digest("SHA-256",a);return Array.from(new Uint8Array(s)).map(d=>d.toString(16).padStart(2,"0")).join("")}r(e).then(o=>{if(n.character()){let a=n.character()?.name;n.gravatarUrl.set(`https://www.gravatar.com/avatar/${o}?s=${n.size()}&name=${a}&d=initials`)}else n.gravatarUrl.set(`https://www.gravatar.com/avatar/${o}?s=${n.size()}`)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-gravatar"]],inputs:{email:[1,"email"],altIcon:[1,"altIcon"],size:[1,"size"],borderRadius:[1,"borderRadius"],character:[1,"character"]},decls:3,vars:1,consts:[[1,"tsai-gravatar"],[1,"gravatar-container"],["alt","Gravatar Image",3,"ngClass","src"]],template:function(n,r){n&1&&(p(0,"span",0),A(1,XX,2,4,"span",1)(2,JX,2,1,"mat-icon"),m()),n&2&&(u(),R(r.useGravatars()?1:2))},dependencies:[zi,ym,dn,cn],encapsulation:2,changeDetection:1})}return t})(),eJ=()=>["expandedDetail"],tJ=()=>[10,25,50],nJ=(t,i)=>i.api_url;function iJ(t,i){if(t&1&&(p(0,"mat-option",6),v(1),m()),t&2){let e=i.$implicit;S("value",e.api_url),u(),M(e.name)}}function rJ(t,i){if(t&1&&(p(0,"mat-option",6),v(1),m()),t&2){let e=i.$implicit;S("value",e),u(),M(e)}}function oJ(t,i){t&1&&(p(0,"div",11),U(1,"mat-spinner",18),m())}function aJ(t,i){if(t&1){let e=be();p(0,"th",36)(1,"mat-checkbox",37),N("change",function(r){ae(e);let o=E(2);return se(r?o.toggleAllRows():null)}),m()()}if(t&2){let e=E(2);u(),S("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function sJ(t,i){if(t&1){let e=be();p(0,"td",38)(1,"mat-checkbox",39),N("click",function(r){return r.stopPropagation()})("change",function(r){let o=ae(e).$implicit,a=E(2);return se(r?a.selection.toggle(o):null)}),m()()}if(t&2){let e=i.$implicit,n=E(2);u(),S("checked",n.selection.isSelected(e))}}function lJ(t,i){t&1&&(p(0,"th",36),v(1,"Avatar"),m())}function cJ(t,i){if(t&1&&(p(0,"td",38),U(1,"tsai-gravatar",40),m()),t&2){let e=i.$implicit;u(),S("character",e)("size","40")("email",e.email)}}function dJ(t,i){t&1&&(p(0,"th",41),v(1,"Name"),m())}function uJ(t,i){if(t&1&&(p(0,"td",38)(1,"span",42),v(2),m()()),t&2){let e=i.$implicit;u(2),M(e.name)}}function mJ(t,i){t&1&&(p(0,"th",41),v(1,"Site"),m())}function hJ(t,i){if(t&1&&(p(0,"td",38)(1,"span",43),v(2),m()()),t&2){let e=i.$implicit;u(2),M(e.siteId)}}function pJ(t,i){t&1&&(p(0,"th",36),v(1,"Description"),m())}function fJ(t,i){if(t&1&&(p(0,"td",38)(1,"span",44),v(2),fr(3,"slice"),m()()),t&2){let e=i.$implicit;u(2),M(aC(3,1,e.description,0,50))}}function gJ(t,i){t&1&&(p(0,"th",41),v(1,"Modified"),m())}function _J(t,i){if(t&1&&(p(0,"td",38)(1,"span"),v(2),fr(3,"date"),m()()),t&2){let e=i.$implicit;u(2),M(Vo(3,1,e.date,"short"))}}function vJ(t,i){t&1&&U(0,"th",36)}function bJ(t,i){t&1&&(p(0,"mat-icon"),v(1,"keyboard_arrow_up"),m())}function yJ(t,i){t&1&&(p(0,"mat-icon"),v(1,"keyboard_arrow_down"),m())}function xJ(t,i){if(t&1){let e=be();p(0,"td",38)(1,"button",45),N("click",function(r){let o=ae(e).$implicit,a=E(2);return a.expandedElement=a.expandedElement===o?null:o,se(r.stopPropagation())}),A(2,bJ,2,0,"mat-icon")(3,yJ,2,0,"mat-icon"),m()()}if(t&2){let e=i.$implicit,n=E(2);u(2),R(n.expandedElement===e?2:3)}}function CJ(t,i){if(t&1&&(p(0,"td",38)(1,"div",46),U(2,"tsai-character-detail",47),m()()),t&2){let e=i.$implicit,n=E(2);he("colspan",n.displayedColumns.length),u(),S("@detailExpand",e===n.expandedElement?"expanded":"collapsed"),u(),S("character",e)}}function wJ(t,i){t&1&&U(0,"tr",48)}function EJ(t,i){if(t&1){let e=be();p(0,"tr",49),N("click",function(){let r=ae(e).$implicit,o=E(2);return se(o.selection.toggle(r))}),m()}if(t&2){let e=i.$implicit,n=E(2);ue("expanded-row",n.expandedElement===e)}}function DJ(t,i){t&1&&U(0,"tr",50)}function SJ(t,i){if(t&1&&(p(0,"tr",51)(1,"td",52),v(2," No characters found. "),m()()),t&2){let e=E(2);u(),he("colspan",e.displayedColumns.length)}}function kJ(t,i){if(t&1&&(p(0,"div",12)(1,"table",19),xn(2,20),ot(3,aJ,2,2,"th",21)(4,sJ,2,1,"td",22),Cn(),xn(5,23),ot(6,lJ,2,0,"th",21)(7,cJ,2,3,"td",22),Cn(),xn(8,24),ot(9,dJ,2,0,"th",25)(10,uJ,3,1,"td",22),Cn(),xn(11,26),ot(12,mJ,2,0,"th",25)(13,hJ,3,1,"td",22),Cn(),xn(14,27),ot(15,pJ,2,0,"th",21)(16,fJ,4,5,"td",22),Cn(),xn(17,28),ot(18,gJ,2,0,"th",25)(19,_J,4,4,"td",22),Cn(),xn(20,29),ot(21,vJ,1,0,"th",21)(22,xJ,4,1,"td",22),Cn(),xn(23,30),ot(24,CJ,3,3,"td",22),Cn(),ot(25,wJ,1,0,"tr",31)(26,EJ,1,2,"tr",32)(27,DJ,1,0,"tr",33)(28,SJ,3,1,"tr",34),m(),U(29,"mat-paginator",35),m()),t&2){let e=E();u(),S("dataSource",e.dataSource),u(24),S("matHeaderRowDef",e.displayedColumns),u(),S("matRowDefColumns",e.displayedColumns),u(),S("matRowDefColumns",Bn(5,eJ)),u(2),S("pageSizeOptions",Bn(6,tJ))}}var MJ=(()=>{class t{dialogRef;data;charactersService;title="";cancelTxt=$localize`Cancel`;importTxt=$localize`Import`;filterTxt=$localize`Filter`;allSitesTxt=$localize`All Sites`;localServerTxt=$localize`This Server (Other Sites)`;displayedColumns=["select","icon","name","siteId","description","date","expand"];dataSource=new Bd([]);selection=new Ls(!0,[]);expandedElement=null;loading=Q(!1);siteIds=Q([]);selectedSiteFilter=Q("");remoteServers=Q([]);selectedSource=Q("local");paginator;sort;allCharacters=[];constructor(e,n,r){this.dialogRef=e,this.data=n,this.charactersService=r}ngOnInit(){this.title=this.data.title||$localize`Import Characters`,this.loadRemoteServers(),this.loadCharacters()}ngAfterViewInit(){this.connectTableControls()}loadRemoteServers(){this.charactersService.fetchRemoteServers().subscribe({next:e=>this.remoteServers.set(e),error:()=>this.remoteServers.set([])})}loadCharacters(){this.loading.set(!0),this.selection.clear(),this.allCharacters=[],this.selectedSource()==="local"?this.charactersService.fetchImportableCharacters().subscribe({next:e=>{this.allCharacters=e,this.updateDataAndFilters(),this.loading.set(!1)},error:()=>{this.loading.set(!1)}}):this.charactersService.fetchRemoteCharacters(this.selectedSource()).subscribe({next:e=>{this.allCharacters=e,this.updateDataAndFilters(),this.loading.set(!1)},error:()=>{this.loading.set(!1)}})}connectTableControls(){this.paginator&&(this.dataSource.paginator=this.paginator,this.paginator.pageSize=10),this.sort&&(this.dataSource.sort=this.sort)}updateDataAndFilters(){let e=[...new Set(this.allCharacters.map(n=>n.siteId).filter(n=>!!n))].sort();this.siteIds.set(e),this.selectedSiteFilter.set(""),this.applyFilters(),setTimeout(()=>this.connectTableControls())}onSourceChange(e){this.selectedSource.set(e),this.loadCharacters()}onSiteFilterChange(e){this.selectedSiteFilter.set(e),this.applyFilters()}applyTextFilter(e){let n=e.target.value.trim().toLowerCase();this.dataSource.filter=n,this.dataSource.paginator&&this.dataSource.paginator.firstPage()}applyFilters(){let e=this.selectedSiteFilter();e?this.dataSource.data=this.allCharacters.filter(n=>n.siteId===e):this.dataSource.data=this.allCharacters}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.filteredData.length;return e===n&&n>0}toggleAllRows(){this.isAllSelected()?this.selection.clear():this.selection.select(...this.dataSource.filteredData)}importSelected(){this.dialogRef.close({characters:this.selection.selected})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un),Z(Ga))};static \u0275cmp=q({type:t,selectors:[["tsai-import-characters-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(Kl,5)(Xl,5),n&2){let o;K(o=X())&&(r.paginator=o.first),K(o=X())&&(r.sort=o.first)}},decls:34,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"import-dialog-content"],[1,"import-controls"],[1,"source-select"],[3,"selectionChange","value"],["value","local"],[3,"value"],[1,"site-filter"],["value",""],[1,"text-filter"],["matInput","","placeholder","Search...",3,"keyup"],[1,"loading-container"],[1,"table-container"],["mat-dialog-actions","",1,"dialog-actions"],[1,"selection-count"],[1,"spacer"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],["diameter","40"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","name","matSortDirection","asc",1,"import-table",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","icon"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","siteId"],["matColumnDef","description"],["matColumnDef","date"],["matColumnDef","expand"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","element-row",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["aria-label","Select page",3,"pageSizeOptions"],["mat-header-cell",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"click","change","checked"],[1,"character-gravatar",3,"character","size","email"],["mat-header-cell","","mat-sort-header",""],[1,"character-name"],[1,"character-site"],[1,"character-description"],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"element-detail"],[3,"character"],["mat-header-row",""],["mat-row","",1,"element-row",3,"click"],["mat-row","",1,"detail-row"],[1,"mat-row"],[1,"mat-cell"]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),v(6,"Source"),m(),p(7,"mat-select",4),N("selectionChange",function(a){return r.onSourceChange(a.value)}),p(8,"mat-option",5),v(9),m(),Je(10,iJ,2,2,"mat-option",6,nJ),m()(),p(12,"mat-form-field",7)(13,"mat-label"),v(14,"Site"),m(),p(15,"mat-select",4),N("selectionChange",function(a){return r.onSiteFilterChange(a.value)}),p(16,"mat-option",8),v(17),m(),Je(18,rJ,2,2,"mat-option",6,Rn),m()(),p(20,"mat-form-field",9)(21,"mat-label"),v(22),m(),p(23,"input",10),N("keyup",function(a){return r.applyTextFilter(a)}),m()()(),A(24,oJ,2,0,"div",11),A(25,kJ,30,7,"div",12),m(),p(26,"div",13)(27,"span",14),v(28),m(),U(29,"span",15),p(30,"button",16),N("click",function(){return r.dialogRef.close()}),v(31),m(),p(32,"button",17),N("click",function(){return r.importSelected()}),v(33),m()()),n&2&&(u(),M(r.title),u(6),S("value",r.selectedSource()),u(2),M(r.localServerTxt),u(),et(r.remoteServers()),u(5),S("value",r.selectedSiteFilter()),u(2),M(r.allSitesTxt),u(),et(r.siteIds()),u(4),M(r.filterTxt),u(2),R(r.loading()?24:-1),u(),R(r.loading()?-1:25),u(3),oe(" ",r.selection.selected.length," selected "),u(3),M(r.cancelTxt),u(),S("disabled",r.selection.selected.length===0),u(),Cl(" ",r.importTxt," (",r.selection.selected.length,") "))},dependencies:[Pt,nn,vo,jd,Zl,Vn,Wn,ni,dn,cn,ii,Gi,NE,Kl,ki,na,ta,ea,dr,BE,Xl,LE,Q_,zd,V_,U_,j_,z_,W_,H_,$_,G_,q_,EE,Gn,YX,mL,Jc,BC],styles:[".import-dialog-content[_ngcontent-%COMP%]{min-height:400px}.import-controls[_ngcontent-%COMP%]{display:flex;gap:12px;margin-bottom:8px;flex-wrap:wrap}.import-controls[_ngcontent-%COMP%] .source-select[_ngcontent-%COMP%]{min-width:200px}.import-controls[_ngcontent-%COMP%] .site-filter[_ngcontent-%COMP%]{min-width:140px}.import-controls[_ngcontent-%COMP%] .text-filter[_ngcontent-%COMP%]{flex:1;min-width:150px}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:200px}.table-container[_ngcontent-%COMP%]{max-height:50vh;overflow:auto}.import-table[_ngcontent-%COMP%]{width:100%}.import-table[_ngcontent-%COMP%] .character-name[_ngcontent-%COMP%]{font-weight:500}.import-table[_ngcontent-%COMP%] .character-site[_ngcontent-%COMP%]{font-style:italic;opacity:.8}.import-table[_ngcontent-%COMP%] .character-description[_ngcontent-%COMP%]{font-size:.85em;opacity:.8}.import-table[_ngcontent-%COMP%] tr.detail-row[_ngcontent-%COMP%]{height:0}.import-table[_ngcontent-%COMP%] tr.element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.import-table[_ngcontent-%COMP%] .element-detail[_ngcontent-%COMP%]{overflow:hidden}.dialog-actions[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px}.dialog-actions[_ngcontent-%COMP%] .selection-count[_ngcontent-%COMP%]{font-size:.9em;opacity:.7}.dialog-actions[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}"],data:{animation:[Gm("detailExpand",[Ss("collapsed,void",ho({height:"0px",minHeight:"0"})),Ss("expanded",ho({height:"*"})),Qm("expanded <=> collapsed",qm("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]},changeDetection:1})}return t})(),TJ=()=>["expandedDetail"],IJ=()=>[10,25,50],AJ=(t,i)=>i.api_url;function RJ(t,i){if(t&1&&(p(0,"mat-option",6),v(1),m()),t&2){let e=i.$implicit;S("value",e.api_url),u(),M(e.name)}}function OJ(t,i){if(t&1&&(p(0,"mat-option",6),v(1),m()),t&2){let e=i.$implicit;S("value",e),u(),M(e)}}function PJ(t,i){t&1&&(p(0,"div",11),U(1,"mat-spinner",18),m())}function FJ(t,i){if(t&1){let e=be();p(0,"th",36)(1,"mat-checkbox",37),N("change",function(r){ae(e);let o=E(2);return se(r?o.toggleAllRows():null)}),m()()}if(t&2){let e=E(2);u(),S("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function NJ(t,i){if(t&1){let e=be();p(0,"td",38)(1,"mat-checkbox",39),N("click",function(r){return r.stopPropagation()})("change",function(r){let o=ae(e).$implicit,a=E(2);return se(r?a.selection.toggle(o):null)}),m()()}if(t&2){let e=i.$implicit,n=E(2);u(),S("checked",n.selection.isSelected(e))}}function LJ(t,i){t&1&&(p(0,"th",36),v(1,"Icon"),m())}function BJ(t,i){if(t&1&&(p(0,"td",38)(1,"mat-icon"),v(2),m()()),t&2){let e=i.$implicit;u(2),M(e.config.card?.icon||"widgets")}}function zJ(t,i){t&1&&(p(0,"th",40),v(1,"Name"),m())}function VJ(t,i){if(t&1&&(p(0,"td",38)(1,"span",41),v(2),m()()),t&2){let e=i.$implicit;u(2),M(e.name)}}function jJ(t,i){t&1&&(p(0,"th",40),v(1,"Site"),m())}function HJ(t,i){if(t&1&&(p(0,"td",38)(1,"span",42),v(2),m()()),t&2){let e=i.$implicit;u(2),M(e.siteId)}}function $J(t,i){t&1&&(p(0,"th",40),v(1,"Category"),m())}function UJ(t,i){if(t&1&&(p(0,"td",38)(1,"span",43),v(2),m()()),t&2){let e=i.$implicit;u(2),M(e.category)}}function WJ(t,i){t&1&&(p(0,"th",40),v(1,"Modified"),m())}function GJ(t,i){if(t&1&&(p(0,"td",38)(1,"span"),v(2),fr(3,"date"),m()()),t&2){let e=i.$implicit;u(2),M(Vo(3,1,e.date,"short"))}}function qJ(t,i){t&1&&U(0,"th",36)}function QJ(t,i){t&1&&(p(0,"mat-icon"),v(1,"keyboard_arrow_up"),m())}function ZJ(t,i){t&1&&(p(0,"mat-icon"),v(1,"keyboard_arrow_down"),m())}function YJ(t,i){if(t&1){let e=be();p(0,"td",38)(1,"button",44),N("click",function(r){let o=ae(e).$implicit,a=E(2);return a.expandedElement=a.expandedElement===o?null:o,se(r.stopPropagation())}),A(2,QJ,2,0,"mat-icon")(3,ZJ,2,0,"mat-icon"),m()()}if(t&2){let e=i.$implicit,n=E(2);u(2),R(n.expandedElement===e?2:3)}}function KJ(t,i){t&1&&v(0," Prompt ")}function XJ(t,i){t&1&&v(0," | Save ")}function JJ(t,i){t&1&&v(0," | Send ")}function eee(t,i){t&1&&v(0," | Stream ")}function tee(t,i){t&1&&v(0," | LangChain ")}function nee(t,i){t&1&&v(0," | Image ")}function iee(t,i){if(t&1&&(p(0,"td",38)(1,"div",45)(2,"div",46)(3,"div",47)(4,"span",48),v(5,"Instructions:"),m(),p(6,"span",49),v(7),m()(),p(8,"div",47)(9,"span",48),v(10,"Message:"),m(),p(11,"span",49),v(12),m()(),p(13,"div",47)(14,"span",48),v(15,"Message Hint:"),m(),p(16,"span",49),v(17),m()(),p(18,"div",50)(19,"span",48),v(20,"Features:"),m(),p(21,"span",49),A(22,KJ,1,0),A(23,XJ,1,0),A(24,JJ,1,0),A(25,eee,1,0),A(26,tee,1,0),A(27,nee,1,0),m()()()()()),t&2){let e=i.$implicit,n=E(2);he("colspan",n.displayedColumns.length),u(),S("@detailExpand",e===n.expandedElement?"expanded":"collapsed"),u(6),M(e.config.instructions||"None"),u(5),M(e.config.message),u(5),M(e.config.messageHint),u(5),R(e.config.features.prompt?22:-1),u(),R(e.config.features.save?23:-1),u(),R(e.config.features.send?24:-1),u(),R(e.config.features.streamedResponses?25:-1),u(),R(e.config.features.useLangChain?26:-1),u(),R(e.config.features.createImageFromText?27:-1)}}function ree(t,i){t&1&&U(0,"tr",51)}function oee(t,i){if(t&1){let e=be();p(0,"tr",52),N("click",function(){let r=ae(e).$implicit,o=E(2);return se(o.selection.toggle(r))}),m()}if(t&2){let e=i.$implicit,n=E(2);ue("expanded-row",n.expandedElement===e)}}function aee(t,i){t&1&&U(0,"tr",53)}function see(t,i){if(t&1&&(p(0,"tr",54)(1,"td",55),v(2," No widgets found. "),m()()),t&2){let e=E(2);u(),he("colspan",e.displayedColumns.length)}}function lee(t,i){if(t&1&&(p(0,"div",12)(1,"table",19),xn(2,20),ot(3,FJ,2,2,"th",21)(4,NJ,2,1,"td",22),Cn(),xn(5,23),ot(6,LJ,2,0,"th",21)(7,BJ,3,1,"td",22),Cn(),xn(8,24),ot(9,zJ,2,0,"th",25)(10,VJ,3,1,"td",22),Cn(),xn(11,26),ot(12,jJ,2,0,"th",25)(13,HJ,3,1,"td",22),Cn(),xn(14,27),ot(15,$J,2,0,"th",25)(16,UJ,3,1,"td",22),Cn(),xn(17,28),ot(18,WJ,2,0,"th",25)(19,GJ,4,4,"td",22),Cn(),xn(20,29),ot(21,qJ,1,0,"th",21)(22,YJ,4,1,"td",22),Cn(),xn(23,30),ot(24,iee,28,11,"td",22),Cn(),ot(25,ree,1,0,"tr",31)(26,oee,1,2,"tr",32)(27,aee,1,0,"tr",33)(28,see,3,1,"tr",34),m(),U(29,"mat-paginator",35),m()),t&2){let e=E();u(),S("dataSource",e.dataSource),u(24),S("matHeaderRowDef",e.displayedColumns),u(),S("matRowDefColumns",e.displayedColumns),u(),S("matRowDefColumns",Bn(5,TJ)),u(2),S("pageSizeOptions",Bn(6,IJ))}}var cee=(()=>{class t{dialogRef;data;widgetsService;title="";cancelTxt=$localize`Cancel`;importTxt=$localize`Import`;filterTxt=$localize`Filter`;allSitesTxt=$localize`All Sites`;localServerTxt=$localize`This Server (Other Sites)`;displayedColumns=["select","icon","name","siteId","category","date","expand"];dataSource=new Bd([]);selection=new Ls(!0,[]);expandedElement=null;loading=Q(!1);siteIds=Q([]);selectedSiteFilter=Q("");remoteServers=Q([]);selectedSource=Q("local");paginator;sort;allWidgets=[];constructor(e,n,r){this.dialogRef=e,this.data=n,this.widgetsService=r}ngOnInit(){this.title=this.data.title||$localize`Import Widgets`,this.loadRemoteServers(),this.loadWidgets()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.paginator.pageSize=10}loadRemoteServers(){this.widgetsService.fetchRemoteServers().subscribe({next:e=>this.remoteServers.set(e),error:()=>this.remoteServers.set([])})}loadWidgets(){this.loading.set(!0),this.selection.clear(),this.allWidgets=[],this.selectedSource()==="local"?this.widgetsService.fetchImportableWidgets().subscribe({next:e=>{this.allWidgets=e,this.updateDataAndFilters(),this.loading.set(!1)},error:()=>{this.loading.set(!1)}}):this.widgetsService.fetchRemoteWidgets(this.selectedSource()).subscribe({next:e=>{this.allWidgets=e,this.updateDataAndFilters(),this.loading.set(!1)},error:()=>{this.loading.set(!1)}})}updateDataAndFilters(){let e=[...new Set(this.allWidgets.map(n=>n.siteId))].sort();this.siteIds.set(e),this.selectedSiteFilter.set(""),this.applyFilters()}onSourceChange(e){this.selectedSource.set(e),this.loadWidgets()}onSiteFilterChange(e){this.selectedSiteFilter.set(e),this.applyFilters()}applyTextFilter(e){let n=e.target.value.trim().toLowerCase();this.dataSource.filter=n,this.dataSource.paginator&&this.dataSource.paginator.firstPage()}applyFilters(){let e=this.selectedSiteFilter();e?this.dataSource.data=this.allWidgets.filter(n=>n.siteId===e):this.dataSource.data=this.allWidgets}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.filteredData.length;return e===n&&n>0}toggleAllRows(){this.isAllSelected()?this.selection.clear():this.selection.select(...this.dataSource.filteredData)}importSelected(){this.dialogRef.close({widgets:this.selection.selected})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un),Z(lc))};static \u0275cmp=q({type:t,selectors:[["tsai-import-widgets-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(Kl,5)(Xl,5),n&2){let o;K(o=X())&&(r.paginator=o.first),K(o=X())&&(r.sort=o.first)}},decls:34,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"import-dialog-content"],[1,"import-controls"],[1,"source-select"],[3,"selectionChange","value"],["value","local"],[3,"value"],[1,"site-filter"],["value",""],[1,"text-filter"],["matInput","","placeholder","Search...",3,"keyup"],[1,"loading-container"],[1,"table-container"],["mat-dialog-actions","",1,"dialog-actions"],[1,"selection-count"],[1,"spacer"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],["diameter","40"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","name","matSortDirection","asc",1,"import-table",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","icon"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","siteId"],["matColumnDef","category"],["matColumnDef","date"],["matColumnDef","expand"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","element-row",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["aria-label","Select page",3,"pageSizeOptions"],["mat-header-cell",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"click","change","checked"],["mat-header-cell","","mat-sort-header",""],[1,"widget-name"],[1,"widget-site"],[1,"widget-category"],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"element-detail"],[1,"widget-detail-content"],[1,"detail-section"],[1,"detail-label"],[1,"detail-value"],[1,"detail-section","features-list"],["mat-header-row",""],["mat-row","",1,"element-row",3,"click"],["mat-row","",1,"detail-row"],[1,"mat-row"],[1,"mat-cell"]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),v(6,"Source"),m(),p(7,"mat-select",4),N("selectionChange",function(a){return r.onSourceChange(a.value)}),p(8,"mat-option",5),v(9),m(),Je(10,RJ,2,2,"mat-option",6,AJ),m()(),p(12,"mat-form-field",7)(13,"mat-label"),v(14,"Site"),m(),p(15,"mat-select",4),N("selectionChange",function(a){return r.onSiteFilterChange(a.value)}),p(16,"mat-option",8),v(17),m(),Je(18,OJ,2,2,"mat-option",6,Rn),m()(),p(20,"mat-form-field",9)(21,"mat-label"),v(22),m(),p(23,"input",10),N("keyup",function(a){return r.applyTextFilter(a)}),m()()(),A(24,PJ,2,0,"div",11),A(25,lee,30,7,"div",12),m(),p(26,"div",13)(27,"span",14),v(28),m(),U(29,"span",15),p(30,"button",16),N("click",function(){return r.dialogRef.close()}),v(31),m(),p(32,"button",17),N("click",function(){return r.importSelected()}),v(33),m()()),n&2&&(u(),M(r.title),u(6),S("value",r.selectedSource()),u(2),M(r.localServerTxt),u(),et(r.remoteServers()),u(5),S("value",r.selectedSiteFilter()),u(2),M(r.allSitesTxt),u(),et(r.siteIds()),u(4),M(r.filterTxt),u(2),R(r.loading()?24:-1),u(),R(r.loading()?-1:25),u(3),oe(" ",r.selection.selected.length," selected "),u(3),M(r.cancelTxt),u(),S("disabled",r.selection.selected.length===0),u(),Cl(" ",r.importTxt," (",r.selection.selected.length,") "))},dependencies:[Pt,nn,vo,jd,Zl,Vn,Wn,ni,dn,cn,ii,Gi,NE,Kl,ki,na,ta,ea,dr,BE,Xl,LE,Q_,zd,V_,U_,j_,z_,W_,H_,$_,G_,q_,EE,Gn,Jc],styles:[".import-dialog-content[_ngcontent-%COMP%]{min-height:400px}.import-controls[_ngcontent-%COMP%]{display:flex;gap:12px;margin-bottom:8px;flex-wrap:wrap}.import-controls[_ngcontent-%COMP%] .source-select[_ngcontent-%COMP%]{min-width:200px}.import-controls[_ngcontent-%COMP%] .site-filter[_ngcontent-%COMP%]{min-width:140px}.import-controls[_ngcontent-%COMP%] .text-filter[_ngcontent-%COMP%]{flex:1;min-width:150px}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:200px}.table-container[_ngcontent-%COMP%]{max-height:50vh;overflow:auto}.import-table[_ngcontent-%COMP%]{width:100%}.import-table[_ngcontent-%COMP%] .widget-name[_ngcontent-%COMP%]{font-weight:500}.import-table[_ngcontent-%COMP%] .widget-site[_ngcontent-%COMP%]{font-style:italic;opacity:.8}.import-table[_ngcontent-%COMP%] .widget-category[_ngcontent-%COMP%]{font-size:.85em;opacity:.8}.import-table[_ngcontent-%COMP%] tr.detail-row[_ngcontent-%COMP%]{height:0}.import-table[_ngcontent-%COMP%] tr.element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.import-table[_ngcontent-%COMP%] .element-detail[_ngcontent-%COMP%]{overflow:hidden}.widget-detail-content[_ngcontent-%COMP%]{padding:12px 16px}.widget-detail-content[_ngcontent-%COMP%] .detail-section[_ngcontent-%COMP%]{margin-bottom:8px}.widget-detail-content[_ngcontent-%COMP%] .detail-section[_ngcontent-%COMP%] .detail-label[_ngcontent-%COMP%]{font-weight:700;font-size:.85em;margin-right:8px}.widget-detail-content[_ngcontent-%COMP%] .detail-section[_ngcontent-%COMP%] .detail-value[_ngcontent-%COMP%]{font-size:.9em}.widget-detail-content[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] .detail-value[_ngcontent-%COMP%]{font-size:.8em;opacity:.8}.dialog-actions[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px}.dialog-actions[_ngcontent-%COMP%] .selection-count[_ngcontent-%COMP%]{font-size:.9em;opacity:.7}.dialog-actions[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}"],data:{animation:[Gm("detailExpand",[Ss("collapsed,void",ho({height:"0px",minHeight:"0"})),Ss("expanded",ho({height:"*"})),Qm("expanded <=> collapsed",qm("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]},changeDetection:1})}return t})(),hL=(t,i)=>i.date.getTime();function dee(t,i){if(t&1&&(p(0,"p",3)(1,"a",9)(2,"mat-icon"),v(3,"event"),m(),v(4),m(),p(5,"a",10)(6,"mat-icon"),v(7,"download"),m(),v(8),m()()),t&2){let e=E();u(),S("href",e.subscribeUrl(),Vr),u(3),oe("",e.subscribeTxt," "),u(),S("href",e.downloadUrl(),Vr),u(3),oe("",e.downloadTxt," ")}}function uee(t,i){if(t&1&&(p(0,"p",4),v(1),m()),t&2){let e=E();u(),M(e.noUpcomingTxt)}}function mee(t,i){if(t&1&&(p(0,"span",13),v(1),m()),t&2){let e=E().$implicit,n=E(3);u(),oe(" \u2014 ",n.formatHours(e.hours))}}function hee(t,i){if(t&1&&(p(0,"li")(1,"strong"),v(2),m(),p(3,"span",12),v(4),m(),A(5,mee,2,1,"span",13),m()),t&2){let e=i.$implicit;u(2),M(e.character.name),u(2),oe("(",e.type,")"),u(),R(e.hours.length>0?5:-1)}}function pee(t,i){if(t&1&&(p(0,"div",11)(1,"h3"),v(2),fr(3,"date"),m(),p(4,"ul"),Je(5,hee,6,3,"li",null,ao),m()()),t&2){let e=i.$implicit;u(2),M(Vo(3,1,e.date,"EEEE, MMMM d")),u(3),et(e.entries)}}function fee(t,i){if(t&1&&Je(0,pee,7,4,"div",11,hL),t&2){let e=E();et(e.upcomingEvents())}}function gee(t,i){if(t&1&&(p(0,"p",4),v(1),m()),t&2){let e=E();u(),M(e.noRecentTxt)}}function _ee(t,i){if(t&1&&(p(0,"span"),v(1," \u2014 "),p(2,"a",16),v(3),m()()),t&2){let e=E(2).$implicit;u(2),S("href",e.url,Vr),u(),M(e.title||e.url)}}function vee(t,i){if(t&1&&(p(0,"span"),v(1),m()),t&2){let e=E(2).$implicit;u(),oe(" \u2014 ",e.title)}}function bee(t,i){if(t&1&&A(0,_ee,4,2,"span")(1,vee,2,1,"span"),t&2){let e=E().$implicit;R(e.url?0:e.title?1:-1)}}function yee(t,i){if(t&1&&(p(0,"span",15),v(1),m()),t&2){let e=E(4);u(),oe(" \u2014 \u26A0\uFE0F ",e.failedTxt)}}function xee(t,i){if(t&1&&(p(0,"li")(1,"strong"),v(2),m(),p(3,"span",12),v(4),m(),A(5,bee,2,1)(6,yee,2,1,"span",15),m()),t&2){let e=i.$implicit;ue("failed",e.status==="failed"),u(2),M(e.character),u(2),oe("(",e.type,")"),u(),R(e.status==="success"?5:6)}}function Cee(t,i){if(t&1&&(p(0,"div",11)(1,"h3"),v(2),fr(3,"date"),m(),p(4,"ul"),Je(5,xee,7,5,"li",14,ao),m()()),t&2){let e=i.$implicit;u(2),M(Vo(3,1,e.date,"EEEE, MMMM d")),u(3),et(e.entries)}}function wee(t,i){if(t&1&&Je(0,Cee,7,4,"div",11,hL),t&2){let e=E();et(e.recentActivity())}}var Eee=30,Dee=(()=>{class t{dialogRef;data;siteService=g(qn);charactersService=g(Ga);title="";closeTxt=$localize`Close`;subscribeTxt=$localize`Subscribe in your calendar`;downloadTxt=$localize`Download .ics`;upcomingHeadingTxt=$localize`Upcoming calendar posts (next 30 days)`;noUpcomingTxt=$localize`No characters are scheduled to post in the next 30 days.`;recentHeadingTxt=$localize`Recent posts`;noRecentTxt=$localize`No recent posting activity.`;failedTxt=$localize`failed to post`;characters=Q([]);history=Q([]);calendarUrl=Wt(()=>{let e=this.siteService.site();return!e?.apiHost||!e?.slug?"":`${e.apiHost}/cms/schedule.ics?site=${encodeURIComponent(e.slug)}`});downloadUrl=Wt(()=>this.calendarUrl());subscribeUrl=Wt(()=>this.calendarUrl().replace(/^https?:\/\//i,"webcal://"));upcomingEvents=Wt(()=>{let e=this.characters(),n=new Date;n.setHours(0,0,0,0);let r=[];for(let o=0;o<Eee;o++){let a=new Date(n);a.setDate(n.getDate()+o);let s=[];for(let l of e){let c=this.matchScheduleForDay(l,l.articleSchedule,"article",a);c&&s.push(c);let d=this.matchScheduleForDay(l,l.commentSchedule,"comment",a);d&&s.push(d)}s.length>0&&(s.sort((l,c)=>l.character.name.localeCompare(c.character.name)),r.push({date:a,entries:s}))}return r});recentActivity=Wt(()=>{let e=this.history(),n=new Map;for(let r of e){if(!r.date)continue;let o={character:r.character,type:r.kind,status:r.status,url:r.url,title:r.title},a=n.get(r.date);a?a.push(o):n.set(r.date,[o])}return Array.from(n.keys()).sort((r,o)=>o.localeCompare(r)).map(r=>({date:this.parseLocalDate(r),entries:n.get(r)}))});constructor(e,n){this.dialogRef=e,this.data=n}ngOnInit(){this.title=this.data.title||$localize`Posting Schedule`,this.characters.set(this.data.characters||[]),this.charactersService.fetchScheduleHistory().subscribe({next:e=>this.history.set(e||[]),error:()=>this.history.set([])})}parseLocalDate(e){let[n,r,o]=e.split("-").map(a=>parseInt(a,10));return new Date(n,(r||1)-1,o||1)}matchScheduleForDay(e,n,r,o){if(!n||!(n.daysOfWeek&&n.daysOfWeek.length>0||n.daysOfMonth&&n.daysOfMonth.length>0))return null;let s=o.getDay(),l=o.getDate(),c=n.daysOfWeek?.includes(s),d=n.daysOfMonth?.includes(l);if(!c&&!d)return null;let h=n.preferredHours?[...n.preferredHours].sort((b,f)=>b-f):[];return{character:e,type:r,hours:h}}formatHours(e){if(!e||e.length===0)return $localize`Any time`;let n=[...e].sort((s,l)=>s-l),r=[],o=n[0],a=n[0];for(let s=1;s<n.length;s++)n[s]===a+1||(r.push(this.formatHourRange(o,a)),o=n[s]),a=n[s];return r.push(this.formatHourRange(o,a)),r.join(", ")}formatHourRange(e,n){return e===n?this.formatHour(e):`${this.formatHour(e)}-${this.formatHour(n)}`}formatHour(e){return e===0?"12AM":e===12?"12PM":e<12?`${e}AM`:`${e-12}PM`}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-schedule-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"schedule-dialog-content"],[1,"section-heading"],[1,"calendar-links"],[1,"empty"],[1,"section-divider"],["mat-dialog-actions","",1,"dialog-actions"],[1,"spacer"],["mat-button","",3,"click"],["mat-stroked-button","","color","primary",3,"href"],["mat-stroked-button","",3,"href"],[1,"schedule-day"],[1,"entry-type"],[1,"entry-hours"],[3,"failed"],[1,"entry-failed"],["target","_blank","rel","noopener",3,"href"]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"h2",2),v(4),m(),A(5,dee,9,4,"p",3),A(6,uee,2,1,"p",4)(7,fee,2,0),U(8,"hr",5),p(9,"h2",2),v(10),m(),A(11,gee,2,1,"p",4)(12,wee,2,0),m(),p(13,"div",6),U(14,"span",7),p(15,"button",8),N("click",function(){return r.dialogRef.close()}),v(16),m()()),n&2&&(u(),M(r.title),u(3),M(r.upcomingHeadingTxt),u(),R(r.downloadUrl()?5:-1),u(),R(r.upcomingEvents().length===0?6:7),u(4),M(r.recentHeadingTxt),u(),R(r.recentActivity().length===0?11:12),u(5),M(r.closeTxt))},dependencies:[Pt,nn,Mn,fi,Si,gi,dn,cn,Jc],styles:[".schedule-dialog-content[_ngcontent-%COMP%]{max-height:65vh;overflow-y:auto;min-width:480px}.schedule-dialog-content[_ngcontent-%COMP%] .section-heading[_ngcontent-%COMP%]{margin:16px 0 8px;font-size:1.1rem}.schedule-dialog-content[_ngcontent-%COMP%] .section-divider[_ngcontent-%COMP%]{margin:16px 0}.schedule-dialog-content[_ngcontent-%COMP%] .calendar-links[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.schedule-dialog-content[_ngcontent-%COMP%] .calendar-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%]{margin-bottom:12px}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:8px 0 4px;font-size:1rem}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%] .entry-type[_ngcontent-%COMP%]{font-style:italic;opacity:.75;margin-left:4px}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%] .entry-hours[_ngcontent-%COMP%]{opacity:.85}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%] li.failed[_ngcontent-%COMP%]{opacity:.75}.schedule-dialog-content[_ngcontent-%COMP%] .schedule-day[_ngcontent-%COMP%] .entry-failed[_ngcontent-%COMP%]{color:#b3261e}.schedule-dialog-content[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{font-style:italic;opacity:.7}.schedule-dialog-content[_ngcontent-%COMP%] .prob-list[_ngcontent-%COMP%]{margin:0;padding-left:20px}.schedule-dialog-content[_ngcontent-%COMP%] .prob-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:4px 0}.schedule-dialog-content[_ngcontent-%COMP%] .prob-list[_ngcontent-%COMP%] .prob-rates[_ngcontent-%COMP%]{opacity:.85}.dialog-actions[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px}.dialog-actions[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}"],changeDetection:1})}return t})(),pL=[{name:"Action",icons:["accessibility","accessible","account_balance","account_box","account_circle","add_shopping_cart","admin_panel_settings","alarm","analytics","anchor","announcement","api","app_blocking","arrow_circle_down","arrow_circle_up","assessment","assignment","assignment_ind","assignment_turned_in","auto_awesome","autorenew","backup","book","bookmark","bookmark_border","bug_report","build","cached","calendar_today","camera_enhance","card_giftcard","card_membership","card_travel","change_history","check_circle","check_circle_outline","chrome_reader_mode","code","commute","compare_arrows","contact_support","copyright","credit_card","dashboard","date_range","delete","delete_forever","delete_outline","description","dns","done","done_all","donut_large","donut_small","drag_indicator","eco","edit_calendar","eject","euro_symbol","event","event_seat","exit_to_app","explore","extension","face","fact_check","favorite","favorite_border","feedback","filter_list","find_in_page","find_replace","fingerprint","flight_land","flight_takeoff","flip_to_back","flip_to_front","g_translate","gavel","get_app","grade","group_work","help","help_outline","highlight_off","history","home","hourglass_empty","hourglass_full","http","https","important_devices","info","input","integration_instructions","inventory","label","label_important","language","launch","leaderboard","lightbulb","line_style","line_weight","list","lock","lock_open","login","logout","loyalty","manage_accounts","maximize","mediation","minimize","model_training","note_add","offline_bolt","opacity","open_in_browser","open_in_new","open_with","pageview","pan_tool","payment","pending","perm_identity","pets","picture_in_picture","plagiarism","polymer","power_settings_new","preview","print","privacy_tip","published_with_changes","query_builder","question_answer","receipt","record_voice_over","redeem","remove_shopping_cart","reorder","report_problem","restore","rocket_launch","room","rounded_corner","rowing","rule","savings","schedule","search","settings","settings_applications","settings_backup_restore","settings_ethernet","settings_input_antenna","settings_phone","settings_power","shop","shopping_bag","shopping_basket","shopping_cart","smart_button","source","speaker_notes","spellcheck","star_rate","stars","sticky_note_2","store","subject","supervised_user_circle","support","swap_horiz","swap_vert","tab","task_alt","text_rotate_up","theaters","thumb_down","thumb_up","thumbs_up_down","timeline","toc","today","toll","touch_app","tour","track_changes","translate","trending_down","trending_flat","trending_up","turned_in","turned_in_not","update","upgrade","verified","verified_user","view_agenda","view_carousel","view_column","view_headline","view_list","view_module","view_stream","visibility","visibility_off","voice_over_off","work","work_outline","wysiwyg","zoom_in","zoom_out"]},{name:"Communication",icons:["alternate_email","business","call","call_end","call_made","call_merge","call_missed","call_received","call_split","cancel_presentation","chat","chat_bubble","chat_bubble_outline","comment","contact_mail","contact_phone","contacts","desktop_access_disabled","dialer_sip","dialpad","domain_disabled","duo","email","forum","forward_to_inbox","hourglass_bottom","hourglass_top","import_contacts","import_export","invert_colors_off","key","list_alt","live_help","location_off","location_on","mail_outline","mark_email_read","mark_email_unread","message","mobile_screen_share","more_time","nat","no_sim","pause_presentation","person_add_disabled","phone","phone_disabled","phone_enabled","phonelink_erase","portable_wifi_off","present_to_all","qr_code","qr_code_scanner","read_more","ring_volume","rss_feed","screen_share","sentiment_satisfied_alt","sip","speaker_phone","stay_current_landscape","stay_current_portrait","swap_calls","textsms","unsubscribe","voicemail","vpn_key"]},{name:"Content",icons:["add","add_box","add_circle","add_circle_outline","archive","attribute","backspace","ballot","biotech","block","bolt","calculate","clear","content_copy","content_cut","content_paste","create","deselect","drafts","dynamic_feed","file_copy","filter_list_alt","flag","font_download","forward","gesture","how_to_reg","how_to_vote","inbox","insights","inventory_2","link","link_off","low_priority","mail","markunread","move_to_inbox","next_week","outlined_flag","policy","push_pin","redo","remove","remove_circle","remove_circle_outline","reply","reply_all","report","report_off","save","save_alt","select_all","send","shield","sort","square_foot","stacked_bar_chart","stream","tag","text_format","undo","unarchive","waves","weekend","where_to_vote"]},{name:"Editor",icons:["add_chart","add_comment","align_horizontal_center","align_horizontal_left","align_horizontal_right","align_vertical_bottom","align_vertical_center","align_vertical_top","area_chart","attach_file","attach_money","auto_graph","bar_chart","border_all","border_color","bubble_chart","checklist","data_array","data_object","drag_handle","draw","edit","edit_note","format_align_center","format_align_justify","format_align_left","format_align_right","format_bold","format_clear","format_color_fill","format_color_reset","format_color_text","format_indent_decrease","format_indent_increase","format_italic","format_list_bulleted","format_list_numbered","format_paint","format_quote","format_shapes","format_size","format_strikethrough","format_underlined","functions","height","highlight","horizontal_rule","insert_chart","insert_comment","insert_drive_file","insert_emoticon","insert_invitation","insert_link","insert_photo","line_axis","linear_scale","merge_type","mode","mode_comment","mode_edit","monetization_on","money_off","multiline_chart","notes","numbers","pie_chart","post_add","publish","scatter_plot","schema","score","short_text","show_chart","space_bar","stacked_line_chart","strikethrough_s","subscript","superscript","table_chart","table_rows","text_fields","title","vertical_align_bottom","vertical_align_center","vertical_align_top","wrap_text"]},{name:"File",icons:["approval","attach_email","cloud","cloud_circle","cloud_done","cloud_download","cloud_off","cloud_queue","cloud_upload","create_new_folder","difference","download","download_done","download_for_offline","drive_file_move","drive_file_rename_outline","drive_folder_upload","file_download","file_download_done","file_open","file_present","file_upload","folder","folder_delete","folder_off","folder_open","folder_shared","folder_special","folder_zip","format_overline","grid_view","newspaper","note_add","request_page","rule_folder","snippet_folder","text_snippet","topic","upload","upload_file","workspaces"]},{name:"Image",icons:["add_a_photo","add_photo_alternate","adjust","animation","auto_fix_high","auto_fix_normal","auto_stories","blur_circular","blur_linear","blur_off","blur_on","brightness_1","brightness_2","brightness_3","brightness_4","brightness_5","brightness_6","brightness_7","broken_image","brush","camera","camera_alt","camera_front","camera_rear","camera_roll","cases","center_focus_strong","center_focus_weak","collections","color_lens","colorize","compare","contrast","crop","crop_free","crop_original","dehaze","details","dirty_lens","edit","exposure","filter","filter_1","filter_2","filter_3","filter_4","filter_5","filter_6","filter_7","filter_8","filter_9","filter_b_and_w","filter_center_focus","filter_drama","filter_frames","filter_hdr","filter_none","filter_tilt_shift","filter_vintage","flare","flash_auto","flash_off","flash_on","flip","gradient","grain","grid_on","hdr_off","hdr_on","healing","image","image_aspect_ratio","image_search","iso","landscape","lens","looks","looks_3","looks_4","looks_5","looks_6","looks_one","looks_two","loupe","monochrome_photos","movie_creation","movie_filter","music_note","nature","nature_people","navigate_before","navigate_next","palette","panorama","panorama_fish_eye","panorama_horizontal","panorama_vertical","panorama_wide_angle","photo","photo_album","photo_camera","photo_filter","photo_library","photo_size_select_actual","photo_size_select_large","picture_as_pdf","portrait","receipt_long","remove_red_eye","rotate_90_degrees_ccw","rotate_left","rotate_right","shutter_speed","slideshow","straighten","style","tag_faces","texture","timelapse","timer","tonality","transform","tune","view_comfy","view_compact","vignette","wb_auto","wb_cloudy","wb_incandescent","wb_iridescent","wb_shade","wb_sunny","wb_twilight"]},{name:"Maps",icons:["add_business","add_location","add_location_alt","add_road","agriculture","alt_route","atm","badge","beenhere","bike_scooter","category","celebration","cleaning_services","compass_calibration","delivery_dining","design_services","diamond","dinner_dining","directions","directions_bike","directions_boat","directions_bus","directions_car","directions_railway","directions_run","directions_subway","directions_transit","directions_walk","dry_cleaning","edit_attributes","edit_location","edit_road","electric_bike","electric_car","electric_scooter","electrical_services","emergency","engineering","ev_station","factory","fastfood","flight","forest","handyman","hardware","home_repair_service","hotel","layers","layers_clear","local_activity","local_airport","local_atm","local_bar","local_cafe","local_car_wash","local_convenience_store","local_dining","local_fire_department","local_florist","local_gas_station","local_grocery_store","local_hospital","local_hotel","local_laundry_service","local_library","local_mall","local_movies","local_offer","local_parking","local_pharmacy","local_phone","local_pizza","local_play","local_police","local_post_office","local_printshop","local_see","local_shipping","local_taxi","map","maps_home_work","medical_services","menu_book","money","moped","multiple_stop","museum","my_location","navigation","near_me","nightlife","no_meals","park","pedal_bike","person_pin","person_pin_circle","pest_control","pest_control_rodent","pin_drop","place","plumbing","railway_alert","ramen_dining","rate_review","restaurant","restaurant_menu","route","run_circle","sailing","satellite","set_meal","snowmobile","store_mall_directory","streetview","subway","terrain","traffic","train","tram","transfer_within_a_station","transit_enterexit","trip_origin","two_wheeler","volunteer_activism","warehouse","wine_bar","wrong_location","zoom_out_map"]},{name:"Navigation",icons:["app_settings_alt","apps","arrow_back","arrow_back_ios","arrow_downward","arrow_drop_down","arrow_drop_down_circle","arrow_drop_up","arrow_forward","arrow_forward_ios","arrow_left","arrow_right","arrow_upward","campaign","cancel","check","chevron_left","chevron_right","close","double_arrow","east","expand_less","expand_more","first_page","fullscreen","fullscreen_exit","home_work","last_page","legend_toggle","menu","menu_open","more_horiz","more_vert","north","north_east","north_west","offline_share","payments","pivot_table_chart","refresh","south","south_east","south_west","subdirectory_arrow_left","subdirectory_arrow_right","switch_left","switch_right","unfold_less","unfold_more","waterfall_chart","west"]},{name:"Notification",icons:["account_tree","adb","add_alert","error","error_outline","event_available","event_busy","event_note","folder_special","live_tv","mark_chat_read","mark_chat_unread","more","notification_add","notification_important","notifications","notifications_active","notifications_none","notifications_off","notifications_paused","online_prediction","phone_callback","phone_forwarded","phone_in_talk","phone_locked","phone_missed","phone_paused","power","power_off","priority_high","running_with_errors","sd_card","sd_card_alert","sim_card_alert","sms","sms_failed","support_agent","sync","sync_disabled","sync_problem","system_update","time_to_leave","tv_off","vibration","voice_chat","vpn_lock","warning","warning_amber","wifi","wifi_off"]},{name:"Social",icons:["architecture","cake","construction","domain","elderly","emoji_emotions","emoji_events","emoji_flags","emoji_food_beverage","emoji_nature","emoji_objects","emoji_people","emoji_symbols","emoji_transportation","engineering","female","fireplace","follow_the_signs","group","group_add","groups","health_and_safety","hearing","hearing_disabled","history_edu","ios_share","king_bed","location_city","luggage","male","masks","military_tech","mood","mood_bad","nights_stay","no_luggage","notifications_none","outdoor_grill","pages","party_mode","people","people_alt","people_outline","person","person_add","person_off","person_outline","person_remove","personal_video","plus_one","poll","precision_manufacturing","psychology","public","public_off","real_estate_agent","recommend","recycling","reduce_capacity","safety_divider","sanitizer","school","science","self_improvement","sentiment_dissatisfied","sentiment_neutral","sentiment_satisfied","sentiment_very_dissatisfied","sentiment_very_satisfied","share","sick","single_bed","sports","sports_baseball","sports_basketball","sports_cricket","sports_esports","sports_football","sports_golf","sports_handball","sports_hockey","sports_kabaddi","sports_martial_arts","sports_motorsports","sports_rugby","sports_score","sports_soccer","sports_tennis","sports_volleyball","switch_account","thumb_down_alt","thumb_up_alt","travel_explore","water_drop","whatshot","woman","workspace_premium"]},{name:"Device",icons:["add_to_home_screen","airplanemode_active","battery_alert","battery_charging_full","battery_full","battery_std","battery_unknown","bluetooth","bluetooth_connected","bluetooth_disabled","bluetooth_searching","brightness_auto","brightness_high","brightness_low","brightness_medium","cable","cast","cast_connected","computer","dark_mode","desktop_mac","desktop_windows","developer_board","developer_mode","device_hub","devices","dock","dvr","flashlight_off","flashlight_on","gps_fixed","gps_not_fixed","gps_off","graphic_eq","headphones","headset","headset_mic","home_mini","keyboard","keyboard_alt","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","keyboard_backspace","keyboard_capslock","keyboard_hide","keyboard_return","keyboard_tab","keyboard_voice","laptop","laptop_chromebook","laptop_mac","laptop_windows","light_mode","memory","mobile_friendly","mobile_off","monitor","mouse","nightlight","phone_android","phone_iphone","point_of_sale","power_input","router","scanner","screen_lock_landscape","screen_lock_portrait","screen_lock_rotation","screen_rotation","sd_storage","security_update","sell","send_to_mobile","settings_system_daydream","signal_cellular_alt","signal_wifi_off","smartphone","speaker","speaker_group","storage","tablet","tablet_android","tablet_mac","thermostat","toys","tv","usb","watch","widgets"]},{name:"AV",icons:["album","art_track","av_timer","branding_watermark","call_to_action","closed_caption","control_camera","equalizer","explicit","fast_forward","fast_rewind","featured_play_list","featured_video","fiber_dvr","fiber_manual_record","fiber_new","fiber_pin","fiber_smart_record","forward_10","forward_30","forward_5","games","hearing","high_quality","interpreter_mode","library_add","library_books","library_music","loop","mic","mic_none","mic_off","missed_video_call","movie","music_video","new_releases","not_interested","note","pause","pause_circle","play_arrow","play_circle","play_disabled","playlist_add","playlist_add_check","playlist_play","podcasts","queue","queue_music","queue_play_next","radio","recent_actors","repeat","repeat_on","repeat_one","replay","replay_10","replay_30","replay_5","shuffle","skip_next","skip_previous","slow_motion_video","snooze","sort_by_alpha","speed","stop","stop_circle","subscriptions","subtitles","surround_sound","video_call","video_label","video_library","video_settings","videocam","videocam_off","volume_down","volume_mute","volume_off","volume_up","web","web_asset"]}],nL=pL.flatMap(t=>t.icons),See=(t,i)=>i.name;function kee(t,i){if(t&1&&(p(0,"div",10)(1,"mat-icon",15),v(2),m(),p(3,"span",16),v(4),m()()),t&2){let e=E();u(2),M(e.selectedIcon()),u(2),M(e.selectedIcon())}}function Mee(t,i){if(t&1){let e=be();p(0,"button",19),N("click",function(){let r=ae(e).$implicit,o=E(2);return se(o.selectIcon(r))}),p(1,"mat-icon"),v(2),m()()}if(t&2){let e=i.$implicit,n=E(2);ue("selected",n.selectedIcon()===e),S("matTooltip",e),u(2),M(e)}}function Tee(t,i){t&1&&(p(0,"p",18),vs(1,4),m())}function Iee(t,i){if(t&1&&(p(0,"div",11),Je(1,Mee,3,4,"button",17,Rn),A(3,Tee,2,0,"p",18),m()),t&2){let e=E();u(),et(e.filteredIcons()),u(2),R(e.filteredIcons().length===0?3:-1)}}function Aee(t,i){if(t&1){let e=be();p(0,"button",19),N("click",function(){let r=ae(e).$implicit,o=E(3);return se(o.selectIcon(r))}),p(1,"mat-icon"),v(2),m()()}if(t&2){let e=i.$implicit,n=E(3);ue("selected",n.selectedIcon()===e),S("matTooltip",e),u(2),M(e)}}function Ree(t,i){if(t&1&&(p(0,"mat-tab",20)(1,"div",11),Je(2,Aee,3,4,"button",17,Rn),m()()),t&2){let e=i.$implicit;S("label",e.name),u(2),et(e.icons)}}function Oee(t,i){if(t&1&&(p(0,"mat-tab-group"),Je(1,Ree,4,1,"mat-tab",20,See),m()),t&2){let e=E();u(),et(e.categories)}}var Pee=(()=>{class t{dialogRef;data;categories=pL;searchQuery="";selectedIcon=Q(null);searchSignal=Q("");filteredIcons=Wt(()=>{let e=this.searchSignal().toLowerCase();return e?nL.filter(n=>n.includes(e)):nL});constructor(e,n){this.dialogRef=e,this.data=n,n?.currentIcon&&this.selectedIcon.set(n.currentIcon)}onSearchChange(e){this.searchSignal.set(e)}selectIcon(e){this.selectedIcon.set(e)}onCancel(){this.dialogRef.close()}onConfirm(){let e=this.selectedIcon();e&&this.dialogRef.close({icon:e})}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-icon-picker-dialog"]],decls:17,vars:4,consts:()=>{let e;e=$localize`Select Icon`;let n;n=$localize`Search icons`;let r;r=$localize`Cancel`;let o;o=$localize`Select`;let a;return a=$localize`No icons found`,[e,n,r,o,a,["mat-dialog-title",""],[1,"icon-picker-content"],["appearance","outline",1,"search-field"],["matInput","",3,"ngModelChange","ngModel"],["matSuffix",""],[1,"selected-preview"],[1,"icon-grid"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"preview-icon"],[1,"preview-name"],["mat-icon-button","",3,"selected","matTooltip"],[1,"no-results"],["mat-icon-button","",3,"click","matTooltip"],[3,"label"]]},template:function(n,r){n&1&&(p(0,"h2",5),vs(1,0),m(),p(2,"mat-dialog-content",6)(3,"mat-form-field",7)(4,"mat-label"),vs(5,1),m(),p(6,"input",8),Bi("ngModelChange",function(a){return nr(r.searchQuery,a)||(r.searchQuery=a),a}),N("ngModelChange",function(a){return r.onSearchChange(a)}),m(),Se(),p(7,"mat-icon",9),v(8,"search"),m()(),A(9,kee,5,2,"div",10),A(10,Iee,4,1,"div",11)(11,Oee,3,0,"mat-tab-group"),m(),p(12,"mat-dialog-actions",12)(13,"button",13),N("click",function(){return r.onCancel()}),vs(14,2),m(),p(15,"button",14),N("click",function(){return r.onConfirm()}),vs(16,3),m()()),n&2&&(u(6),Li("ngModel",r.searchQuery),ke(),u(3),R(r.selectedIcon()?9:-1),u(),R(r.searchQuery?10:11),u(5),S("disabled",!r.selectedIcon()))},dependencies:[cr,Ei,lr,Fa,Mn,fi,Si,gi,Pt,nn,vo,dn,cn,Vn,Wn,ni,S_,ii,Gi,VN,ZE,zN,Gn,Sr],styles:[".icon-picker-content[_ngcontent-%COMP%]{min-height:400px;max-height:60vh;overflow-y:auto}.search-field[_ngcontent-%COMP%]{width:100%}.selected-preview[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:8px 12px;margin-bottom:12px;border-radius:8px;background:#ffffff0d}.selected-preview[_ngcontent-%COMP%] .preview-icon[_ngcontent-%COMP%]{font-size:36px;width:36px;height:36px}.selected-preview[_ngcontent-%COMP%] .preview-name[_ngcontent-%COMP%]{font-size:14px;opacity:.8}.icon-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px;padding:8px 0}.icon-grid[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%]{grid-column:1/-1;text-align:center;opacity:.6;padding:24px}button.selected[_ngcontent-%COMP%]{background:rgba(var(--mat-sys-primary),.2);border-radius:8px;outline:2px solid var(--mat-sys-primary)} .mat-mdc-tab-body-wrapper{max-height:350px;overflow-y:auto}"],changeDetection:1})}return t})(),Cv=(()=>{class t{dialog;constructor(e){this.dialog=e}openLoginWindow(e){return this.dialog.open(qY,{width:"400px",height:"500px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e,backdropClass:"login-backdrop"})}openPromptsDialog(e,n){let r=$localize`Available prompts shown below.`;return this.dialog.open(lK,{enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,restoreFocus:!1,panelClass:"choose-prompt-panel",data:{msg:r,msg2:"",imagePrompt:e,characterData:n}})}openShareDialog(e){return this.dialog.open(hK,{width:"500px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,panelClass:"share-panel",data:e})}openWidgetCreateDialog(e){return this.dialog.open(kX,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openNewArticleDialog(e){return this.dialog.open(rX,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openReplyDialog(e){return this.dialog.open(cX,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openCharacterCreateDialog(e){return this.dialog.open(VK,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openConfirmationDialog(e){return this.dialog.open(dX,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openImportWidgetsDialog(e){return this.dialog.open(cee,{width:"min(90vw, 1080px)",maxWidth:"min(90vw, 1080px)",maxHeight:"80vh",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openIconPickerDialog(e){return this.dialog.open(Pee,{width:"600px",maxHeight:"80vh",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:e})}openImportCharactersDialog(e){return this.dialog.open(MJ,{width:"min(90vw, 1080px)",maxWidth:"min(90vw, 1080px)",maxHeight:"80vh",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e})}openScheduleDialog(e){return this.dialog.open(Dee,{width:"700px",maxHeight:"85vh",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:e})}static \u0275fac=function(n){return new(n||t)(we(qr))};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fee=["autosize"],Nee=["prompterinput"],Lee=(t,i)=>i.name;function Bee(t,i){if(t&1){let e=be();p(0,"div",15),U(1,"img",16),p(2,"button",17),N("click",function(){let r=ae(e).$implicit,o=E(3);return se(o.removeImage(r))}),p(3,"mat-icon"),v(4,"close"),m()()()}if(t&2){let e=i.$implicit;u(),S("src",e,Vr)}}function zee(t,i){if(t&1&&(p(0,"div",12),Je(1,Bee,5,1,"div",15,Rn),m()),t&2){let e=E(2);u(),et(e.attachedImages())}}function Vee(t,i){if(t&1){let e=be();p(0,"div",2),A(1,zee,3,0,"div",12),p(2,"mat-form-field",13)(3,"mat-label"),v(4),m(),p(5,"textarea",14,1),Bi("ngModelChange",function(r){ae(e);let o=E();return nr(o.message,r)||(o.message=r),se(r)}),m(),Se(),m()()}if(t&2){let e=E();u(),R(e.attachedImages().length>0?1:-1),u(3),M(e.widgetConfig().messageHint),u(),Li("ngModel",e.message),ke()}}function jee(t,i){if(t&1&&(p(0,"mat-option",19),v(1),m()),t&2){let e=i.$implicit,n=E(2);S("value",n.getModelValue(e)),u(),oe(" ",n.getModelDisplayText(e)," ")}}function Hee(t,i){if(t&1){let e=be();p(0,"mat-form-field",4)(1,"mat-label"),v(2,"Model"),m(),p(3,"mat-select",18),N("selectionChange",function(r){ae(e);let o=E();return se(o.onModelChange(r.value))}),Je(4,jee,2,2,"mat-option",19,Lee),m()()}if(t&2){let e=E();u(3),S("value",e.selectedModelValue()),u(),et(e.availableModels())}}function $ee(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e);let r=E();return se(r.send())}),p(1,"mat-icon"),v(2,"send"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.sendTip))("disabled",!e.sendEnabled()),u(3),oe(" ",e.sendMsg," ")}}function Uee(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e);let r=E();return se(r.enhance())}),p(1,"mat-icon"),v(2,"auto_awesome"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.enhanceTip))("disabled",!e.sendEnabled()),u(3),oe(" ",e.enhanceMsg," ")}}function Wee(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e);let r=E();return se(r.share())}),p(1,"mat-icon"),v(2,"ios_share"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.shareTip))("disabled",!e.shareEnabled()),u(3),oe(" ",e.shareMsg," ")}}function Gee(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e);let r=E();return se(r.clear())}),p(1,"mat-icon"),v(2,"clear"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.clearTip))("disabled",!e.message()),u(3),oe(" ",e.clearMsg," ")}}function qee(t,i){if(t&1){let e=be();p(0,"button",21),N("click",function(){ae(e);let r=E();return se(r.refresh())}),p(1,"mat-icon"),v(2,"refresh"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.refreshTip))("disabled",!e.refreshEnabled()),u(3),oe(" ",e.refreshTxt," ")}}function Qee(t,i){if(t&1){let e=be();p(0,"button",22),N("click",function(){ae(e);let r=E();return se(r.hit())}),p(1,"mat-icon"),v(2,"swipe_down"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.hitTip)),u(3),oe(" ",e.hitMsg," ")}}function Zee(t,i){if(t&1){let e=be();p(0,"button",22),N("click",function(){ae(e);let r=E();return se(r.stick())}),p(1,"mat-icon"),v(2,"back_hand"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.stickTip)),u(3),oe(" ",e.stickMsg," ")}}function Yee(t,i){if(t&1){let e=be();p(0,"button",23),N("click",function(){ae(e);let r=E();return se(r.newConversation())}),p(1,"mat-icon"),v(2,"create"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.newTip))("disabled",!e.newEnabled()),u(3),oe(" ",e.newTxt," ")}}function Kee(t,i){if(t&1){let e=be();p(0,"button",24),N("click",function(){ae(e);let r=E();return se(r.save())}),p(1,"mat-icon"),v(2,"cloud_upload"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.saveTip))("disabled",!e.saveEnabled()),u(3),oe(" ",e.saveTxt," ")}}function Xee(t,i){if(t&1){let e=be();p(0,"button",22),N("click",function(){ae(e);let r=E();return se(r.showPrompts())}),p(1,"mat-icon"),v(2,"text_snippet"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.promptsTip)),u(3),oe(" ",e.promptsMsg," ")}}function Jee(t,i){if(t&1){let e=be();p(0,"button",25),N("click",function(){ae(e);let r=E();return se(r.toggleWebSearch())}),p(1,"mat-icon"),v(2),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.webSearchEnabled()?e.webSearchOnTip:e.webSearchOffTip))("matButton",e.webSearchEnabled()?"filled":"elevated")("disabled",e.inProgress()),he("aria-pressed",e.webSearchEnabled()),u(2),M(e.webSearchEnabled()?"travel_explore":"public_off"),u(),oe(" ",e.webSearchEnabled()?e.webSearchOnMsg:e.webSearchOffMsg," ")}}function ete(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e),E();let r=pn(20);return r.value="",se(r.click())}),p(1,"mat-icon"),v(2,"upload_file"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.uploadTip))("disabled",!e.canAttachMore()),u(3),oe(" ",e.uploadMsg," ")}}function tte(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e);let r=E();return se(r.openUrlImportDialog())}),p(1,"mat-icon"),v(2,"link"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.urlImportTip))("disabled",!e.canAttachMore()),u(3),oe(" ",e.urlImportMsg," ")}}function nte(t,i){if(t&1){let e=be();p(0,"button",20),N("click",function(){ae(e);let r=E();return se(r.openImageBrowser())}),p(1,"mat-icon"),v(2,"photo_library"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.browseTip))("disabled",!e.canAttachMore()),u(3),oe(" ",e.browseMsg," ")}}function ite(t,i){if(t&1){let e=be();p(0,"button",22),N("click",function(){ae(e);let r=E();return se(r.showSimilarContent())}),p(1,"mat-icon"),v(2,"thumb_up"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.similarTip)),u(3),oe(" ",e.similarMsg," ")}}function rte(t,i){if(t&1){let e=be();p(0,"button",22),N("click",function(){ae(e);let r=E();return se(r.showDifferentContent())}),p(1,"mat-icon"),v(2,"refresh"),m(),v(3),m()}if(t&2){let e=E();S("matTooltip",Ve(e.differentTip)),u(3),oe(" ",e.differentMsg," ")}}var cc=(()=>{class t{dialogService;utils;site;imageService;modelsService;dialog;widgetConfig=Dt.required();character=Dt(void 0);message=Q("");static MAX_ATTACHED_IMAGES=4;attachedImages=Q([]);canAttachMore=Wt(()=>this.attachedImages().length<t.MAX_ATTACHED_IMAGES);availableModels=Q([]);selectedModelValue=Q("");selectedModel=Wt(()=>{let e=this.character();if(e?.model)return e.model;let n=this.widgetConfig();return n?.model?n.model:null});modelDisplayText=Wt(()=>{let e=this.selectedModel();return e?`${e.provider} - ${e.name}`:"No model selected"});shareEnabled=Dt(!1);saveEnabled=Dt(!1);newEnabled=Dt(!1);refreshEnabled=Dt(!1);autosize;_injector=g(ze);triggerResize(){Bt(()=>{this.autosize.resizeToFitContent(!0)},{injector:this._injector})}inProgress=Dt.required();webSearchEnabled=Dt(!1);webSearchToggleEvent=new le;sendMessageEvent=new le;enhanceEvent=new le;saveEvent=new le;shareEvent=new le;newEvent=new le;refreshEvent=new le;uploadEvent=new le;showPromptsEvent=new le;modelChangeEvent=new le;prompterinput;refreshTip=$localize`Clear the current conversation and start another.`;refreshTxt=$localize`Restart`;newTip=$localize`Clear the current conversation and start another.`;newTxt=$localize`Clear All`;saveTip=$localize`Save the current conversation`;saveTxt=$localize`Save`;clearTip=$localize`Clear your message`;clearMsg=$localize`Clear`;promptsTip=$localize`Find a prompt to get you started`;promptsMsg=$localize`Prompts`;webSearchOnTip=$localize`Web search is on. Click to turn it off.`;webSearchOffTip=$localize`Web search is off. Click to search the web before answering — slower, but current.`;webSearchOnMsg=$localize`Web search on`;webSearchOffMsg=$localize`Web search off`;uploadTip=$localize`Upload an image from your device.`;uploadMsg=$localize`Upload`;urlImportTip=$localize`Import an image from a URL.`;urlImportMsg=$localize`URL`;browseTip=$localize`Browse previously created and uploaded images.`;browseMsg=$localize`Browse`;shareTip=$localize`Share this content with others.`;shareMsg=$localize`Share,,,`;sendTip=$localize`Send your message to Chatbot.`;sendMsg=$localize`Send`;enhanceTip=$localize`Enhance your image description with AI`;enhanceMsg=$localize`Enhance`;similarTip=$localize`See another quote like this`;similarMsg=$localize`Similar`;differentTip=$localize`Switch to a different philosophical topic`;differentMsg=$localize`Different`;hitTip=$localize`Take another card`;hitMsg=$localize`Hit`;stickTip=$localize`Do not take a card`;stickMsg=$localize`Stick`;uploadFileType="image/png,image/jpeg,image/gif";constructor(e,n,r,o,a,s){this.dialogService=e,this.utils=n,this.site=r,this.imageService=o,this.modelsService=a,this.dialog=s,xi(()=>{let l=this.availableModels(),c=this.selectedModel();if(!c||l.length===0)return;let d=`${c.provider}::${c.name}`;this.selectedModelValue()!==d&&this.selectedModelValue.set(d)})}ngOnInit(){this.modelsService.getAvailableModels().subscribe({next:e=>{let n=this.widgetConfig()?.modelProviders,r=n&&n.length>0?e.filter(a=>n.includes(a.provider)):e;this.availableModels.set(r);let o=this.selectedModel();o&&this.selectedModelValue.set(`${o.provider}::${o.name}`)},error:e=>{console.error("Error fetching models:",e)}})}ngAfterViewInit(){}clear(){this.message.set("")}save(){this.saveEvent.emit(!0)}share(){this.shareEvent.emit(!0)}refresh(){this.refreshEvent.emit(!0),this.message.set("")}newConversation(){this.newEvent.emit(!0),this.message.set("")}showPrompts(){this.showPromptsEvent.emit(!0)}toggleWebSearch(){this.webSearchToggleEvent.emit()}uploadFileName="";uploadFileSent=!1;uploadCompleteEvent=new le;fileSentEvent=new le;uploadSub;onFileSelected(e){let n=e.target.files[0];if(!n){console.log("file not selected");return}this.fileSentEvent.emit(!0),this.uploadFileSent=!0,this.uploadFileName=n.name,this.uploadSub=this.imageService.sendFile(n).subscribe(r=>{let o=r.data?.rel_path||r.rel_path;if(o){let a=this.site.site().drupalHost+o;this.attachedImages.update(s=>[...s,a])}this.uploadCompleteEvent.emit(r)},r=>{console.log("error: ",r)})}removeImage(e){this.attachedImages.update(n=>n.filter(r=>r!==e))}openUrlImportDialog(){this.dialog.open(TY,{width:"450px"}).afterClosed().subscribe(n=>{n&&(this.fileSentEvent.emit(!0),this.imageService.uploadFromUrl(n).subscribe({next:r=>{let o=r.data?.rel_path||r.rel_path;if(o){let a=this.site.site().drupalHost+o;this.attachedImages.update(s=>[...s,a])}this.uploadCompleteEvent.emit(r)},error:r=>{console.log("URL import error: ",r)}}))})}openImageBrowser(){let e=t.MAX_ATTACHED_IMAGES-this.attachedImages().length;this.dialog.open(BY,{width:"90vw",maxWidth:"1200px",height:"80vh",data:{maxSelectable:e}}).afterClosed().subscribe(r=>{r?.length&&this.attachedImages.update(o=>[...o,...r])})}sendEnabled(){return this.widgetConfig().features.prompt?this.message().length>0:!1}enhance(){let e={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:this.message(),bodyOriginal:this.message()};e.id=++Do.sNextID,this.enhanceEvent.emit(e)}send(){let e={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:this.message(),bodyOriginal:this.message(),imageCount:0,imageSize:""};this.attachedImages().length>0&&(e.images=[...this.attachedImages()]),e.id=++Do.sNextID,this.sendMessageEvent.emit(e),this.message.set(""),this.attachedImages.set([])}showSimilarContent(){let e=this.message();e+=" Make this quote similar to the last one.";let n={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:e,bodyOriginal:e,addToViewer:!1,progressMessage:$localize`Researching similar quotes. Please wait...`};n.id=++Do.sNextID,this.sendMessageEvent.emit(n)}showDifferentContent(){let e=this.message();e+=" Make this quote different than the last one.";let n={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:e,bodyOriginal:e,addToViewer:!1,progressMessage:$localize`Researching philosophical quotes. Please wait...`};n.id=++Do.sNextID,this.sendMessageEvent.emit(n)}hit(){let n={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:"hit",bodyOriginal:"hit",addToViewer:!0,progressMessage:$localize`Take a card. Please wait...`};n.id=++Do.sNextID,this.sendMessageEvent.emit(n)}stick(){let e="stick",n={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:e,bodyOriginal:e,addToViewer:!0,progressMessage:$localize`Sticking. Please wait...`};n.id=++Do.sNextID,this.sendMessageEvent.emit(n)}onModelChange(e){let[n,r]=e.split("::"),o=this.availableModels().find(a=>a.provider===n&&a.name===r);o&&this.modelChangeEvent.emit(o)}getModelValue(e){return`${e.provider}::${e.name}`}getModelDisplayText(e){return`${e.provider} - ${e.name}`}static \u0275fac=function(n){return new(n||t)(Z(Cv),Z(Wh),Z(qn),Z(yv),Z(sS),Z(qr))};static \u0275cmp=q({type:t,selectors:[["tsai-prompter"]],viewQuery:function(n,r){if(n&1&&Qe(Fee,5)(Nee,5),n&2){let o;K(o=X())&&(r.autosize=o.first),K(o=X())&&(r.prompterinput=o.first)}},inputs:{widgetConfig:[1,"widgetConfig"],character:[1,"character"],shareEnabled:[1,"shareEnabled"],saveEnabled:[1,"saveEnabled"],newEnabled:[1,"newEnabled"],refreshEnabled:[1,"refreshEnabled"],inProgress:[1,"inProgress"],webSearchEnabled:[1,"webSearchEnabled"]},outputs:{webSearchToggleEvent:"webSearchToggleEvent",sendMessageEvent:"sendMessageEvent",enhanceEvent:"enhanceEvent",saveEvent:"saveEvent",shareEvent:"shareEvent",newEvent:"newEvent",refreshEvent:"refreshEvent",uploadEvent:"uploadEvent",showPromptsEvent:"showPromptsEvent",modelChangeEvent:"modelChangeEvent",uploadCompleteEvent:"uploadCompleteEvent",fileSentEvent:"fileSentEvent"},decls:21,vars:19,consts:[["fileUpload",""],["autosize","cdkTextareaAutosize"],[1,"prompter-input-wrapper"],[1,"custom-toolbar"],[1,"model-selector"],["mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"clear-all",3,"disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",3,"matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"new",3,"disabled","matTooltip"],["mat-raised-button","","aria-label","Save","matTooltipPosition","above",3,"disabled","matTooltip"],["matTooltipPosition","above",3,"matButton","disabled","matTooltip"],["type","file","name","fileToUpload","id","fileToUpload",1,"file-input",3,"change","accept"],[1,"attached-images-preview"],[1,"prompter-input"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"ngModelChange","ngModel"],[1,"image-thumbnail-container"],["alt","Attached image",1,"image-thumbnail",3,"src"],["mat-icon-button","","matTooltip","Remove image","matTooltipPosition","above",1,"remove-image-btn",3,"click"],[3,"selectionChange","value"],[3,"value"],["mat-raised-button","","matTooltipPosition","above",3,"click","disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"clear-all",3,"click","disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"new",3,"click","disabled","matTooltip"],["mat-raised-button","","aria-label","Save","matTooltipPosition","above",3,"click","disabled","matTooltip"],["matTooltipPosition","above",3,"click","matButton","disabled","matTooltip"]],template:function(n,r){n&1&&(A(0,Vee,7,3,"div",2),p(1,"div",3),A(2,Hee,6,1,"mat-form-field",4),A(3,$ee,4,4,"button",5),A(4,Uee,4,4,"button",5),A(5,Wee,4,4,"button",5),A(6,Gee,4,4,"button",5),A(7,qee,4,4,"button",6),A(8,Qee,4,3,"button",7),A(9,Zee,4,3,"button",7),A(10,Yee,4,4,"button",8),A(11,Kee,4,4,"button",9),A(12,Xee,4,3,"button",7),A(13,Jee,4,7,"button",10),A(14,ete,4,4,"button",5),A(15,tte,4,4,"button",5),A(16,nte,4,4,"button",5),A(17,ite,4,3,"button",7),A(18,rte,4,3,"button",7),m(),p(19,"input",11,0),N("change",function(a){return r.onFileSelected(a)}),m()),n&2&&(R(r.widgetConfig()?.features?.prompt?0:-1),u(2),R(r.widgetConfig()?.features?.modelSelection&&r.availableModels().length>0?2:-1),u(),R(r.widgetConfig()?.features?.send?3:-1),u(),R(r.widgetConfig()?.features?.enhance?4:-1),u(),R(r.widgetConfig()?.features?.share?5:-1),u(),R(r.widgetConfig()?.features?.clear?6:-1),u(),R(r.widgetConfig()?.features?.refresh?7:-1),u(),R(r.widgetConfig()?.endpoint==="blackjack"?8:-1),u(),R(r.widgetConfig()?.endpoint==="blackjack"?9:-1),u(),R(r.widgetConfig()?.features?.new?10:-1),u(),R(r.widgetConfig()?.features?.save?11:-1),u(),R(r.widgetConfig()?.features?.prompts?.enabled?12:-1),u(),R(r.widgetConfig()?.features?.useAgentTools?13:-1),u(),R(r.widgetConfig()?.features?.uploadImages?14:-1),u(),R(r.widgetConfig()?.features?.uploadImages?15:-1),u(),R(r.widgetConfig()?.features?.uploadImages?16:-1),u(),R(r.widgetConfig()?.endpoint==="ancientPhilosophy"?17:-1),u(),R(r.widgetConfig()?.endpoint==="ancientPhilosophy"?18:-1),u(),S("accept",r.uploadFileType))},dependencies:[ii,Gi,Wn,ni,M_,Vn,Mn,cr,Ei,lr,Fa,dn,cn,A_,Pt,nn,vo,Jo,ta,ea,dr,Gn,Sr],styles:["@media (max-width: var(--tsai-break-point-small)){.custom-toolbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:none}.prompter-input-wrapper[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%]{margin-top:10px}}@media (max-width: var(--tsai-break-point-xsmall)){.custom-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:70px!important}}.custom-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:5px}.custom-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px 4px;height:50px!important;min-width:90px;border-radius:7px}.custom-toolbar[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%]{width:200px;min-width:150px;margin:5px 4px}.custom-toolbar[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.custom-toolbar[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper{height:50px;padding-top:0;padding-bottom:0}.custom-toolbar[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding-top:12px;padding-bottom:0;min-height:50px}.custom-toolbar[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%] .mat-mdc-floating-label{top:24px}.custom-toolbar[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%] .mat-mdc-select{font-size:14px}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}#image-count[_ngcontent-%COMP%], #image-size[_ngcontent-%COMP%]{width:150px;margin-top:20px;margin-left:15px}.file-input[_ngcontent-%COMP%]{display:none}.prompter-input-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.prompter-input-wrapper[_ngcontent-%COMP%] .prompter-input[_ngcontent-%COMP%]{flex:1}.prompter-input-wrapper[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%]{width:250px;min-width:200px}.prompter-input-wrapper[_ngcontent-%COMP%] .attached-images-preview[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;padding:10px;background:var(--mat-sys-surface-variant);border-radius:8px}.prompter-input-wrapper[_ngcontent-%COMP%] .attached-images-preview[_ngcontent-%COMP%] .image-thumbnail-container[_ngcontent-%COMP%]{position:relative;width:100px;height:100px}.prompter-input-wrapper[_ngcontent-%COMP%] .attached-images-preview[_ngcontent-%COMP%] .image-thumbnail-container[_ngcontent-%COMP%] .image-thumbnail[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:4px;border:2px solid var(--mat-sys-outline-variant)}.prompter-input-wrapper[_ngcontent-%COMP%] .attached-images-preview[_ngcontent-%COMP%] .image-thumbnail-container[_ngcontent-%COMP%] .remove-image-btn[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;min-width:24px;background:var(--mat-sys-error);color:var(--mat-sys-on-error)}.prompter-input-wrapper[_ngcontent-%COMP%] .attached-images-preview[_ngcontent-%COMP%] .image-thumbnail-container[_ngcontent-%COMP%] .remove-image-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;line-height:18px}.prompter-input-wrapper[_ngcontent-%COMP%] .attached-images-preview[_ngcontent-%COMP%] .image-thumbnail-container[_ngcontent-%COMP%] .remove-image-btn[_ngcontent-%COMP%]:hover{background:var(--mat-sys-error);opacity:.9}@media (min-width: var(--tsai-break-point-medium)){.prompter-input-wrapper[_ngcontent-%COMP%]{flex-direction:row;align-items:flex-start;gap:15px}.prompter-input-wrapper[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%]{width:250px;margin-top:0}}"],changeDetection:1})}return t})(),iL=(()=>{class t{sanitizer;id=Dt();markdown="";htmlString="";md;constructor(e){this.sanitizer=e}ngAfterViewInit(){this.md=new XD}addToken(e){this.markdown+=e,this.htmlString=this.md.render(this.markdown)}restoreContent(e){this.markdown=e,this.htmlString=this.md.render(e)}static \u0275fac=function(n){return new(n||t)(Z(ys))};static \u0275cmp=q({type:t,selectors:[["tsai-streamed-message"]],inputs:{id:[1,"id"]},decls:1,vars:1,consts:[[1,"streamed-message",3,"innerHTML"]],template:function(n,r){n&1&&yn(0,"span",0),n&2&&en("innerHTML",r.sanitizer.bypassSecurityTrustHtml(r.htmlString),nm)},encapsulation:2,changeDetection:1})}return t})(),ote=t=>({width:t}),ate=(t,i)=>i.id;function ste(t,i){if(t&1&&(p(0,"span"),v(1),m()),t&2){let e=E(2).$implicit;u(),M(e.name)}}function lte(t,i){if(t&1&&(p(0,"a",3)(1,"mat-icon"),v(2),m(),A(3,ste,2,1,"span"),m()),t&2){let e=E().$implicit,n=E();S("matTooltip",Ve(e.tooltip))("href",Ve(n.fullUrl()),Vr),u(2),M(e.icon),u(),R(n.miniSize?-1:3)}}function cte(t,i){if(t&1&&(p(0,"span"),v(1),m()),t&2){let e=E(2).$implicit;u(),M(e.name)}}function dte(t,i){if(t&1){let e=be();p(0,"button",5),N("click",function(){ae(e);let r=E().$implicit,o=E();return se(o.performAction(r.id))}),p(1,"mat-icon"),v(2),m(),A(3,cte,2,1,"span"),m()}if(t&2){let e=E().$implicit,n=E();S("matTooltip",Ve(e.tooltip)),u(2),M(e.icon),u(),R(n.miniSize?-1:3)}}function ute(t,i){if(t&1&&(A(0,lte,4,6,"a",3),A(1,dte,4,4,"button",4)),t&2){let e=i.$implicit;R(e.id===3?0:-1),u(),R(e.enabled&&e.id!==3?1:-1)}}var mte=(()=>{class t{url=Dt.required();fullUrl=Dt.required();altText=Dt("");width;disabledActions=Dt([]);saveToLibraryEvent=new le;useAsReferenceEvent=new le;miniSize=!1;actions=[];ngOnInit(){this.width&&this.width<250&&(this.miniSize=!0);let e=[];e.push({id:0,name:$localize`Save`,href:"#",icon:"save",tooltip:$localize`Save image to Media Library`}),e.push({id:3,name:$localize`New Tab`,href:"#",icon:"open_in_new",tooltip:$localize`Open image in new tab.`}),e.push({id:4,name:$localize`Reference`,href:"#",icon:"add_photo_alternate",tooltip:$localize`Use as reference for next image generation`}),e.forEach(n=>{this.disabledActions()?.indexOf(n.id)===-1?n.enabled=!0:n.enabled=!1,this.actions.push(n)})}ngAfterViewInit(){}performAction(e){let n=this.actions.find(r=>r.id===e);if(!n){console.log("invalid action id");return}switch(n.href=this.url(),console.log("perform action",n),e){case 0:this.saveToLibraryEvent.emit(n);break;case 3:break;case 4:this.useAsReferenceEvent.emit(n);break;default:console.log("invalid action id")}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-image-enhancer"]],inputs:{url:[1,"url"],fullUrl:[1,"fullUrl"],altText:[1,"altText"],width:"width",disabledActions:[1,"disabledActions"]},outputs:{saveToLibraryEvent:"saveToLibraryEvent",useAsReferenceEvent:"useAsReferenceEvent"},decls:5,vars:8,consts:[[1,"image-container",3,"ngStyle","ngClass"],[3,"src","alt"],[1,"image-overlay"],["color","accent","mat-raised-button","","target","_blank",1,"action",3,"matTooltip","href"],["mat-raised-button","","color","accent",1,"action",3,"matTooltip"],["mat-raised-button","","color","accent",1,"action",3,"click","matTooltip"]],template:function(n,r){n&1&&(p(0,"div",0),U(1,"img",1),p(2,"div",2),Je(3,ute,2,2,null,null,ate),m()()),n&2&&(S("ngStyle",tn(6,ote,r.width?r.width+"px":"auto"))("ngClass",r.miniSize?"mini":"large"),u(),S("src",Ve(r.url()),Vr)("alt",Ve(r.altText())),u(2),et(r.actions))},dependencies:[zi,ym,uo,Pt,nn,dn,cn,Gn,Sr],styles:["[_nghost-%COMP%]:hover .image-overlay[_ngcontent-%COMP%]{display:flex}.image-container[_ngcontent-%COMP%]{position:relative;text-align:center;display:inline-block}.image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;display:block}.image-container.mini[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.image-container.mini[_ngcontent-%COMP%] .image-overlay[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{padding:0;height:32px;width:32px;min-width:32px}.image-overlay[_ngcontent-%COMP%]{padding-top:5px;display:none;position:absolute;top:0;left:0;width:100%;justify-content:center;align-items:left;flex-wrap:wrap;background-color:#fff0}.image-overlay[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{height:30px;margin:2px}"],changeDetection:1})}return t})(),hte=(t,i,e)=>({"human-message":t,"ai-message":i,"auto-send":e}),pte=()=>[0,4],fte=()=>[],fL=t=>({display:t}),gte=(t,i)=>i.id;function _te(t,i){if(t&1&&(p(0,"div",0),v(1),m()),t&2){let e=E();u(),Cl(" ",e.messages().length," ",e.messages().length===1?e.messageTxt:e.messagesTxt,`
`)}}function vte(t,i){if(t&1&&(p(0,"div",1)(1,"mat-icon"),v(2,"not_interested"),m(),p(3,"span"),v(4),m()()),t&2){let e=E();u(4),M(e.txt1)}}function bte(t,i){if(t&1&&(p(0,"span",3),v(1),m()),t&2){let e=E(2);u(),oe("",e.youTxt,": ")}}function yte(t,i){if(t&1&&(p(0,"span",3),v(1),m()),t&2){let e=E(3);u(),oe("",e.character()?.name,": ")}}function xte(t,i){if(t&1&&(p(0,"span",3),v(1),m()),t&2){let e=E(3);u(),oe("",e.chatbotTxt,": ")}}function Cte(t,i){if(t&1&&A(0,yte,2,1,"span",3)(1,xte,2,1,"span",3),t&2){let e=E(2);R(e.character()?0:1)}}function wte(t,i){if(t&1&&(p(0,"div",4),U(1,"mat-spinner",11),p(2,"span",12),v(3),m()()),t&2){let e=E().$implicit;u(3),M(e.progressMessage)}}function Ete(t,i){if(t&1){let e=be();p(0,"div",13)(1,"span",14)(2,"tsai-image-enhancer",15),N("saveToLibraryEvent",function(){let r=ae(e).$index,o=E(2).$implicit,a=E();return se(a.saveImage(o,r))})("useAsReferenceEvent",function(r){ae(e);let o=E(3);return se(o.useAsReference(r))}),m()()()}if(t&2){let e=i.$implicit,n=E(2).$implicit;S("ngClass",n.userId===0?"user-image":"ai-image"),u(2),S("url",e)("fullUrl",e)("disabledActions",n.userId===0?Bn(4,pte):Bn(5,fte))}}function Dte(t,i){if(t&1&&(p(0,"span"),Je(1,Ete,3,6,"div",13,ao),m()),t&2){let e=E().$implicit;u(),et(e.images)}}function Ste(t,i){if(t&1&&(p(0,"span",22),v(1),fr(2,"number"),m()),t&2){let e=E().$implicit;u(),oe("",Vo(2,1,e.score*100,"1.0-0"),"% relevant")}}function kte(t,i){if(t&1&&(p(0,"span",26),v(1),m()),t&2){let e=E().$implicit;u(),M(e.published_date)}}function Mte(t,i){if(t&1&&(p(0,"div",19)(1,"div",20)(2,"a",21),v(3),m(),A(4,Ste,3,4,"span",22),m(),p(5,"p",23),v(6),m(),p(7,"div",24)(8,"span",25),v(9),m(),A(10,kte,2,1,"span",26),m()()),t&2){let e=i.$implicit;u(2),S("href",e.url,Vr),u(),oe(" ",e.title," "),u(),R(e.score?4:-1),u(2),M(e.content),u(3),M(e.url),u(),R(e.published_date?10:-1)}}function Tte(t,i){if(t&1&&(p(0,"div",5)(1,"div",16)(2,"mat-icon"),v(3,"search"),m(),p(4,"span",17),v(5),m()(),p(6,"div",18),Je(7,Mte,11,6,"div",19,ao),m()()),t&2){let e=E().$implicit;u(5),M(e.metadata?.searchQuery),u(2),et(e.metadata?.searchResults)}}function Ite(t,i){if(t&1&&U(0,"tsai-streamed-message",6),t&2){let e=E().$implicit;S("id",e==null?null:e.id)}}function Ate(t,i){if(t&1&&U(0,"span",7),t&2){let e=E().$implicit,n=E();S("innerHTML",n.sanitizer.bypassSecurityTrustHtml(e.body),nm)}}function Rte(t,i){if(t&1&&(p(0,"span",8)(1,"mat-icon",27),v(2,"info"),m()()),t&2){let e=E().$implicit;u(),S("matTooltip",rC("Model: ",e.model.provider," - ",e.model.name))}}function Ote(t,i){if(t&1){let e=be();p(0,"span",9)(1,"button",28),N("click",function(){ae(e);let r=E().$implicit,o=E();return se(o.copyToClipboard(r))}),p(2,"mat-icon"),v(3,"content_copy"),m()()()}if(t&2){let e=E(2);S("ngStyle",tn(3,fL,e.inProgress()?"none":"inline")),u(),S("matTooltip",Ve(e.clipboardCopyTip))}}function Pte(t,i){if(t&1){let e=be();p(0,"span",9)(1,"button",29),N("click",function(){ae(e);let r=E().$implicit,o=E();return se(o.copyToPrompt(r))}),p(2,"mat-icon"),v(3,"save_alt"),m()()()}if(t&2){let e=E(2);S("ngStyle",tn(3,fL,e.inProgress()?"none":"inline")),u(),S("matTooltip",Ve(e.promptCopyTip))}}function Fte(t,i){if(t&1){let e=be();p(0,"span",10)(1,"button",30),N("click",function(){ae(e);let r=E().$implicit,o=E();return se(o.saveImagePrompt(r))}),p(2,"mat-icon"),v(3,"cloud_upload"),m()()()}if(t&2){let e=E(2);u(),S("matTooltip",Ve(e.saveImageTip))}}function Nte(t,i){if(t&1){let e=be();p(0,"span",10)(1,"button",30),N("click",function(){ae(e);let r=E().$implicit,o=E();return se(o.createImageFromText(r.body))}),p(2,"mat-icon"),v(3,"image"),m()()()}if(t&2){let e=E(2);u(),S("matTooltip",Ve(e.createImageTip))}}function Lte(t,i){if(t&1&&(p(0,"div",2),A(1,bte,2,1,"span",3)(2,Cte,2,1),A(3,wte,4,1,"div",4),A(4,Dte,3,0,"span"),A(5,Tte,9,1,"div",5),p(6,"span"),A(7,Ite,1,1,"tsai-streamed-message",6),A(8,Ate,1,1,"span",7),A(9,Rte,3,3,"span",8),A(10,Ote,4,5,"span",9),A(11,Pte,4,5,"span",9),A(12,Fte,4,2,"span",10),A(13,Nte,4,2,"span",10),m()()),t&2){let e,n=i.$implicit,r=E();S("id",ui("message-",n.id))("ngClass",um(14,hte,n.userId===0,n.userId===1,(e=r.widgetConfig())==null||e.features==null||e.features.autoSend==null?null:e.features.autoSend.enabled)),u(),R(n.userId===0?1:2),u(2),R(n.progressMessage?3:-1),u(),R(n.images?.length?4:-1),u(),R(n.metadata?.searchResults?5:-1),u(2),R(r.widgetConfig()?.features?.streamedResponses&&n.userId===1?7:-1),u(),R(n.userId===0||!r.widgetConfig()?.features?.streamedResponses?8:-1),u(),R(n.userId===1&&n.model?9:-1),u(),R(r.widgetConfig()?.features?.copyToClipboard?10:-1),u(),R(r.widgetConfig()?.features?.copyToPrompt?11:-1),u(),R(r.widgetConfig()?.features?.saveImagePrompt?12:-1),u(),R(r.widgetConfig()?.features?.createImageFromText?13:-1)}}var dc=(()=>{class t{dialog;sanitizer;changeDetector;widgetConfig=Dt.required();character=Dt.required();messages=Dt([]);showMessageCount=Dt(!0);inProgress=Dt.required();saveImageEvent=new le;copyToClipboardEvent=new le;copyToPromptEvent=new le;saveImagePromptEvent=new le;createImageFromTextEvent=new le;useAsReferenceEvent=new le;streamedMessages;txt1=$localize`Tip: You can enhance any images you see in chatbot by hovering over the
image and accessing the image toolbar. You can also upload an image from
your device using the button below.`;youTxt=$localize`You`;chatbotTxt=$localize`Chatbot`;saveTxt=$localize`Save`;saveTip=$localize`Save image to Media Library`;tabTip=$localize`Open image in new tab.`;tabTxt=$localize`New Tab`;dlTxt=$localize`Click Image to Download`;clipboardCopyTip=$localize`Copy to clipboard`;promptCopyTip=$localize`Copy to prompt`;saveImageTip=$localize`Save image prompt`;createImageTip=$localize`Create image from this text`;imageTxt=$localize`Image`;messageTxt=$localize`Message`;messagesTxt=$localize`Messages`;router=g(mi);constructor(e,n,r){this.dialog=e,this.sanitizer=n,this.changeDetector=r,xi(()=>{console.log("viewer widgetConfig changed:",this.widgetConfig())})}ngAfterViewInit(){}findStreamedMessage(e){let n=this.streamedMessages.toArray();return n.length?n.find(o=>e===o.id()):void 0}copyToClipboard(e){console.log("copy to clipboard:",e),this.copyToClipboardEvent.emit(e.body)}copyToPrompt(e){console.log("copy to prompot:",e),this.copyToPromptEvent.emit(e.body)}saveImagePrompt(e){console.log("save image prompot:",e),this.saveImagePromptEvent.emit(e.body)}createImageFromText(e){this.router.navigate(["/image-studio"],{queryParams:{prompt:e}})}useAsReference(e){this.useAsReferenceEvent.emit(e.href)}saveImage(e,n){if(console.log("save image",e,n),e.images){let r=e.images[n];this.saveImageEvent.emit({url:r,msg:e})}else console.log("image not found")}static \u0275fac=function(n){return new(n||t)(Z(qr),Z(ys),Z(Ge))};static \u0275cmp=q({type:t,selectors:[["tsai-viewer"]],viewQuery:function(n,r){if(n&1&&Qe(iL,5),n&2){let o;K(o=X())&&(r.streamedMessages=o)}},inputs:{widgetConfig:[1,"widgetConfig"],character:[1,"character"],messages:[1,"messages"],showMessageCount:[1,"showMessageCount"],inProgress:[1,"inProgress"]},outputs:{saveImageEvent:"saveImageEvent",copyToClipboardEvent:"copyToClipboardEvent",copyToPromptEvent:"copyToPromptEvent",saveImagePromptEvent:"saveImagePromptEvent",createImageFromTextEvent:"createImageFromTextEvent",useAsReferenceEvent:"useAsReferenceEvent"},decls:4,vars:2,consts:[[1,"msg-count"],[1,"no-image"],[1,"message",3,"id","ngClass"],[1,"user-label"],[1,"progress-indicator"],[1,"search-results-container"],[3,"id"],[1,"message-body",3,"innerHTML"],[1,"text-tool","model-info"],[1,"text-tool",3,"ngStyle"],[1,"text-tool"],["diameter","32"],[1,"progress-text"],[1,"image-outer",3,"ngClass"],[1,"image-container"],[3,"saveToLibraryEvent","useAsReferenceEvent","url","fullUrl","disabledActions"],[1,"search-results-header"],[1,"search-query"],[1,"search-results-list"],[1,"search-result-item"],[1,"result-header"],["target","_blank",1,"result-title",3,"href"],[1,"result-score"],[1,"result-content"],[1,"result-meta"],[1,"result-url"],[1,"result-date"],["matTooltipPosition","above",1,"model-info-icon",3,"matTooltip"],["mat-flat-button","",1,"copy-to-clipboard",3,"click","matTooltip"],["mat-flat-button","",1,"copy-to-prompt",3,"click","matTooltip"],["mat-flat-button","",1,"save-image-prompt",3,"click","matTooltip"]],template:function(n,r){n&1&&(A(0,_te,2,2,"div",0),A(1,vte,5,1,"div",1),Je(2,Lte,14,18,"div",2,gte)),n&2&&(R(r.showMessageCount()?0:-1),u(),R(r.messages().length===0&&r.widgetConfig()?.features?.uploadImages?1:-1),u(),et(r.messages()))},dependencies:[zi,ym,uo,jN,ur,Pt,nn,Gn,Sr,dn,cn,A_,ki,na,iL,mte,LC],styles:[".msg-count[_ngcontent-%COMP%]{text-align:center;margin:0 auto;padding:12px 0;font-size:small}.no-image[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;height:175px}.no-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px}.no-image[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:300px;margin:20px 0;font-size:small}.message[_ngcontent-%COMP%]{padding:10px 15px}.message[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:8px 0;background-color:var(--mat-sys-surface-variant);border-radius:8px;border-left:3px solid var(--mat-sys-primary)}.message[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{flex-shrink:0}.message[_ngcontent-%COMP%] .progress-indicator[_ngcontent-%COMP%] .progress-text[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:14px;font-weight:500}.message[_ngcontent-%COMP%] .text-tool[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:34px;min-width:24px;margin-left:5px;padding:0;height:24px}.message[_ngcontent-%COMP%] .text-tool[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:8px}.message[_ngcontent-%COMP%] .text-tool.model-info[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:24px;margin-left:5px;vertical-align:middle}.message[_ngcontent-%COMP%] .text-tool.model-info[_ngcontent-%COMP%] .model-info-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px;line-height:24px;color:var(--mat-sys-on-surface-variant);cursor:help}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%]{text-align:center;position:relative;margin-bottom:5px;z-index:400}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover .hidden-actions[_ngcontent-%COMP%]{display:block!important}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{text-align:center}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .hidden-actions[_ngcontent-%COMP%]{height:125px;margin:0 auto -125px;display:none}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .hidden-actions[_ngcontent-%COMP%] .action-container[_ngcontent-%COMP%]{padding-top:22px}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .hidden-actions[_ngcontent-%COMP%] .action-container[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{height:45px;margin:3px 2px}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .hidden-actions[_ngcontent-%COMP%] .click-to-download[_ngcontent-%COMP%]{pointer-events:none;font-size:smaller;margin:0 auto;padding:5px;z-index:500;position:relative;color:#fff}.message[_ngcontent-%COMP%] .image-outer[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;border:3px solid transparent}.human-message[_ngcontent-%COMP%] .user-label[_ngcontent-%COMP%]{font-weight:700;margin-right:4px;color:var(--mat-sys-tertiary)}.human-message[_ngcontent-%COMP%] .hidden-actions[_ngcontent-%COMP%]{background-color:transparent;text-align:center}.ai-message[_ngcontent-%COMP%] .user-label[_ngcontent-%COMP%]{font-weight:700;margin-right:4px;color:var(--mat-sys-tertiary)}.ai-message[_ngcontent-%COMP%] .hidden-actions[_ngcontent-%COMP%]{background-color:transparent;text-align:center}.search-results-container[_ngcontent-%COMP%]{margin:16px 0;padding:16px;background-color:var(--mat-sys-surface-variant);border-radius:8px;border-left:4px solid var(--mat-sys-tertiary)}.search-results-container[_ngcontent-%COMP%] .search-results-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--mat-sys-outline-variant)}.search-results-container[_ngcontent-%COMP%] .search-results-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-tertiary);font-size:20px;width:20px;height:20px}.search-results-container[_ngcontent-%COMP%] .search-results-header[_ngcontent-%COMP%] .search-query[_ngcontent-%COMP%]{font-weight:600;color:var(--mat-sys-on-surface);font-size:14px}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%]{padding:12px;background-color:var(--mat-sys-surface);border-radius:6px;border:1px solid var(--mat-sys-outline-variant);transition:box-shadow .2s ease}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%]:hover{box-shadow:0 2px 8px var(--mat-sys-shadow)}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-header[_ngcontent-%COMP%] .result-title[_ngcontent-%COMP%]{flex:1;font-weight:600;font-size:14px;color:var(--mat-sys-primary);text-decoration:none;line-height:1.4}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-header[_ngcontent-%COMP%] .result-title[_ngcontent-%COMP%]:hover{text-decoration:underline}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-header[_ngcontent-%COMP%] .result-score[_ngcontent-%COMP%]{flex-shrink:0;font-size:11px;color:var(--mat-sys-on-surface-variant);background-color:var(--mat-sys-primary-container);padding:2px 8px;border-radius:12px;font-weight:500}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-content[_ngcontent-%COMP%]{font-size:13px;color:var(--mat-sys-on-surface-variant);line-height:1.5;margin:0 0 8px}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-meta[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--mat-sys-on-surface-variant)}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-meta[_ngcontent-%COMP%] .result-url[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-results-container[_ngcontent-%COMP%] .search-results-list[_ngcontent-%COMP%] .search-result-item[_ngcontent-%COMP%] .result-meta[_ngcontent-%COMP%] .result-date[_ngcontent-%COMP%]{flex-shrink:0;font-style:italic}"],changeDetection:1})}return t})();function Bte(t,i){if(t&1&&(p(0,"div",1),v(1),m()),t&2){let e=E();u(),M(e.phConfig()?.character?.name)}}function zte(t,i){if(t&1&&(p(0,"span",5),U(1,"tsai-gravatar",9),m()),t&2){let e,n=E();u(),S("character",(e=n.phConfig())==null?null:e.character)("size","150")("email",n.phConfig()?.character.email)}}function Vte(t,i){if(t&1&&(p(0,"span")(1,"mat-icon",10),v(2),m(),v(3,"\xA0"),m(),v(4)),t&2){let e=E();u(2),M(e.phConfig()?.icon.toLowerCase()),u(2),oe(" ",e.phConfig()?.title," ")}}function jte(t,i){if(t&1&&(p(0,"mat-icon",8),v(1,"help"),m()),t&2){let e=E();S("matTooltip",Ve(e.phConfig()?.help))}}function Hte(t,i){t&1&&(p(0,"span"),v(1,"\xA0"),m())}var uc=(()=>{class t{router;site;phConfig=Q(void 0);constructor(e,n){this.router=e,this.site=n}ngOnInit(){}setConfig(e){console.log("Setting PageHeader config",e),this.phConfig.set(e)}static \u0275fac=function(n){return new(n||t)(Z(mi),Z(qn))};static \u0275cmp=q({type:t,selectors:[["tsai-page-header"]],decls:12,vars:3,consts:[[1,"page-header"],[1,"center","top-bar","large-pad"],[1,"container"],[1,"spacer"],[1,"header-title"],[1,"gravatar"],[1,"right-side"],[1,"help-icon"],[3,"matTooltip"],[3,"character","size","email"],[1,"hide-on-small"]],template:function(n,r){n&1&&(p(0,"div",0),A(1,Bte,2,1,"div",1),p(2,"div",2)(3,"span",3),v(4,"\xA0"),m(),p(5,"span",4),A(6,zte,2,3,"span",5)(7,Vte,5,2),m(),p(8,"span",6)(9,"span",7),A(10,jte,2,2,"mat-icon",8)(11,Hte,2,0,"span"),m()()()()),n&2&&(u(),R(r.phConfig()?.character?1:-1),u(5),R(r.phConfig()?.character?6:r.phConfig()?.icon?7:-1),u(4),R(r.phConfig()?.help?10:11))},dependencies:[dn,cn,Gn,Sr,mL],styles:[".page-header[_ngcontent-%COMP%]{padding:8px 0;margin:10px 5px 12px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-primary-container);box-shadow:0 2px 10px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}.page-header[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%]{font-size:x-large;font-weight:700}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{width:150px;margin-left:20px}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .live[_ngcontent-%COMP%]{color:var(--mat-sys-tertiary);background-color:var(--mat-sys-tertiary-container);padding:5px;margin-right:10px}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .demo-title[_ngcontent-%COMP%]{width:150px;margin-left:10px;font-size:large}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .gravatar[_ngcontent-%COMP%]{width:150px;text-align:center}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{text-align:center;font-size:large;font-weight:600;letter-spacing:.02em;color:var(--mat-sys-on-primary-container)}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:bottom;color:var(--mat-sys-primary)}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%]{width:150px;margin-right:10px;text-align:right}.page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%] .help-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:24px;height:24px;font-size:24px}"],changeDetection:1})}return t})();function $te(t,i){if(t&1){let e=be();p(0,"button",11),N("click",function(){let r=ae(e).$implicit,o=E();return se(o.followLink(r))}),p(1,"span",12)(2,"span"),v(3),m()()()}if(t&2){let e=i.$implicit;u(3),M(e.name)}}function Ute(t,i){t&1&&v(0,"...")}var mc=(()=>{class t{router;site;charactersService;switchCharacterTxt=$localize`Switch Character`;editTxt=$localize`Edit Character`;editTipTxt=$localize`Set Character description, email, etc.`;newArticleTxt=$localize`Create Article`;newArticleTipTxt=$localize`Create a new post/article.`;replyTxt=$localize`Comment/Reply`;replyTipTxt=$localize`Add a comment or reply to a post/article`;changeCharacterEvent=hm();createArticleEvent=hm();createReplyEvent=hm();character=Dt();characters=Q([]);constructor(e,n,r){this.router=e,this.site=n,this.charactersService=r}ngOnInit(){let e=this;this.charactersService.fetchModifiedFilteredAndSortedCharacters().subscribe(n=>{e.characters.set(n)})}ngAfterViewInit(){}followLink(e){this.router.navigate(["/character",e.slug])}edit(){this.changeCharacterEvent.emit(this.character())}newArticle(){this.createArticleEvent.emit(this.character())}reply(){this.createReplyEvent.emit(this.character())}static \u0275fac=function(n){return new(n||t)(Z(mi),Z(qn),Z(Ga))};static \u0275cmp=q({type:t,selectors:[["tsai-character-header"]],inputs:{character:[1,"character"]},outputs:{changeCharacterEvent:"changeCharacterEvent",createArticleEvent:"createArticleEvent",createReplyEvent:"createReplyEvent"},decls:33,vars:15,consts:[["menu","matMenu"],[1,"character-header","large-pad"],[1,"left"],["mat-icon-button","","aria-label","Switch Character",3,"matMenuTriggerFor","matTooltip"],["mat-menu-item",""],[1,"right"],["mat-raised-button","","matTooltipPosition","above",1,"edit-button",3,"click","matTooltip"],[1,"hide-on-small"],[1,""],["mat-raised-button","","matTooltipPosition","above",1,"new-article-button",3,"click","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"reply-button",3,"click","matTooltip"],["mat-menu-item","",3,"click"],[1,"name-container"]],template:function(n,r){if(n&1){let o=be();p(0,"div",1)(1,"div",2)(2,"span")(3,"button",3)(4,"mat-icon"),v(5,"view_list"),m()(),p(6,"mat-menu",null,0),Je(8,$te,4,1,"button",4,ao),m()()(),p(10,"div",5)(11,"button",6),N("click",function(s){return ae(o),r.edit(),se(s.stopPropagation())}),p(12,"mat-icon",7),v(13,"edit"),m(),p(14,"span",8),v(15),m()(),p(16,"button",9),N("click",function(s){return ae(o),r.newArticle(),se(s.stopPropagation())}),p(17,"mat-icon",7),v(18,"article"),m(),p(19,"span",8),v(20),m()(),p(21,"button",10),N("click",function(s){return ae(o),r.reply(),se(s.stopPropagation())}),p(22,"mat-icon",7),v(23,"reply"),m(),p(24,"span",8),v(25),m()()()(),p(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),v(29),A(30,Ute,1,0),m()(),v(31),m(),U(32,"mat-divider")}if(n&2){let o=pn(7);u(3),S("matTooltip",Ve(r.switchCharacterTxt))("matMenuTriggerFor",o),u(5),et(r.characters()),u(3),S("matTooltip",Ve(r.editTipTxt)),u(4),M(r.editTxt),u(),S("matTooltip",Ve(r.newArticleTipTxt)),u(4),M(r.newArticleTxt),u(),S("matTooltip",Ve(r.replyTipTxt)),u(4),M(r.replyTxt),u(4),oe(" ",r.character()?.description?.substring(0,100)," "),u(),R(r.character()?.description.length>100?30:-1),u(),oe(" ",r.character()?.description,`
`)}},dependencies:[dn,cn,Gn,Sr,m0,Pt,nn,vo,A_,ur,Fh,HE,J_,ev,jE,$3,Jd,$h,H3],styles:[".character-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.character-header[_ngcontent-%COMP%] .name-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;width:100%}.character-header[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .character-header[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:350px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.character-header[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{justify-content:flex-end}.character-header[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:5px}.character-header[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{justify-content:flex-start;margin-left:10px}"],changeDetection:1})}return t})(),Gh=(()=>{class t{textCards=[];imageCards=[];helpCards=[];hideNavigation=Q(!1);constructor(){this.imageCards=[{id:"image-studio",title:$localize`Studio`,subtitle:$localize`Image Widget`,description:$localize`Create and edit images using GPT Image. Supports text-to-image, image editing, live previews, and transparent backgrounds.`,icon:"palette",link:{name:$localize`Open Studio`,href:"/image-studio"},weight:0,enabled:!0,hidden:!1,routeKey:aa.imageStudio2,dynamic:!1}],this.textCards=[{title:$localize`Ask Me Anything`,subtitle:$localize`Chat Widget`,description:$localize`This chat widget is general purpose and uses AI APIs (OpenAI). It's capable of
amazing things including writing code and poetry, answering math and history questions, and much more. The
api is trained with data up until roughly one year ago.`,icon:"wechat",link:{name:$localize`Try It Out`,href:"/ask-me-anything"},help:$localize`Ask any question and provide details where appropriate. Chatbot will consider all the messages in the current conversation (i.e. on this page) when responding.`,weight:1,enabled:!0,hidden:!1,routeKey:aa.chat,dynamic:!1},{title:$localize`Character Manager`,subtitle:$localize`Manage Your Characters`,description:$localize`Create, edit, and use characters.`,icon:"face",link:{name:$localize`Manage Characters`,href:"/characters"},weight:13,enabled:!0,hidden:!1,dynamic:!1},{title:$localize`Widget Manager`,subtitle:$localize`Narrow AI Widget`,description:$localize`Create, edit, and use narrow AI widgets.`,icon:"widgets",link:{name:$localize`Manage Widgets`,href:"/widgets"},weight:14,enabled:!0,hidden:!1,dynamic:!1}],this.helpCards=[{id:"about",title:$localize`About`,subtitle:$localize`Site Information`,description:$localize``,icon:"info",weight:7,enabled:!0,hidden:!1,dynamic:!0},{id:"support",title:$localize`Support`,subtitle:$localize`Site Information`,description:$localize``,icon:"contact_support",weight:8,enabled:!0,hidden:!1,dynamic:!0},{id:"api",title:$localize`Available Models`,subtitle:$localize`OpenAI Models`,description:$localize`List of available OpenAI models.`,icon:"api",quickLinks:[{name:$localize`View All`,href:"models"}],link:{name:$localize`View All`,href:"models"},weight:9,enabled:!0,hidden:!1,dynamic:!0},{id:"langchain-models",title:$localize`LangChain Models`,subtitle:$localize`Available AI Models`,description:$localize`Multi-provider AI models (OpenAI and Claude).`,icon:"psychology",weight:10,enabled:!0,hidden:!1,dynamic:!0}],this.textCards.sort(this.sortByWeight),this.imageCards.sort(this.sortByWeight),this.helpCards.sort(this.sortByWeight)}sortByWeight(e,n){return e.weight<n.weight?-1:e.weight>n.weight?1:0}scrollToBottom(){let e=document.getElementsByTagName("tsai-prompter")[0];if(!e)return;let n=e.getBoundingClientRect(),r=window.scrollY+n.top-window.innerHeight/2+n.height/2;window.scrollTo({top:Math.max(0,r),behavior:"auto"})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wte=(()=>{class t{changes=new Map;constructor(){}set(e,n){console.log("set unsaved changes key:",e),this.changes.set(e,n)}unset(e){this.changes.delete(e),console.log("unset unsaved changes key:",e)}clear(){this.changes.clear()}hasUnsavedChanges(){return this.changes.size>0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lS=(()=>{class t{constructor(){}get(e){let n=localStorage.getItem(e);if(n!==null){let r=JSON.parse(n);if(new Date(r.expirationDate)>new Date)return r.value;localStorage.removeItem(e)}return null}set(e,n,r=60){let o=new Date(new Date().getTime()+6e4*r),a={value:n,expirationDate:o.toISOString()};localStorage.setItem(e,JSON.stringify(a))}remove(e){localStorage.removeItem(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gte=(()=>{class t{data;title=$localize`Chatbot Says:`;wait=$localize`One moment please...`;constructor(e){this.data=e}static \u0275fac=function(n){return new(n||t)(Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-progress-dialog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["id","spinner"],["mode","indeterminate"]],template:function(n,r){n&1&&(p(0,"h1",0),v(1),m(),p(2,"div",1)(3,"p"),v(4),m(),p(5,"p"),v(6),m(),p(7,"div",2),U(8,"mat-progress-bar",3),m(),p(9,"p"),v(10),m()()),n&2&&(u(),M(r.title),u(3),M(r.data.msg),u(2),M(r.data.msg2),u(4),M(r.wait))},dependencies:[Mn,fi,gi,Pt,Jo,tE],encapsulation:2,changeDetection:1})}return t})(),wv=(()=>{class t extends aS{static Sid=0;prompterContainer=null;onWindowScroll(e){let n=this;function r(o){let a=o.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight,l=window.innerWidth||document.documentElement.clientWidth,c=a.top<=s&&a.bottom>=0,d=a.left<=l&&a.right>=0;return c&&d}n.prompterContainer||(n.prompterContainer=document.getElementById("prompter-container-"+n.id)),n.prompterContainer&&(r(n.prompterContainer)?n.showJumpToButton.set(!1):n.showJumpToButton.set(!0))}widgetConfig=Q(void 0);character=Q(void 0);selectedModel=Q(void 0);dynamicConfig=Dt(!1);showPageHeader=Dt(!0);showCharacterHeader=Dt(!0);showMessageCount=Dt(!0);inProgress=Q(!1);dialogRef;evtSource;quizStatus=Q(null);webSearchEnabled=Q(!1);pageHeader;characterHeader;viewer;prompter;jumpToTxt=$localize`Jump to Bottom`;id;messages=Q([]);newEnabled=Q(!1);refreshEnabled=Q(!1);shareEnabled=Q(!1);saveEnabled=Q(!1);showJumpToButton=Q(!1);router=g(mi);route=g(Vi);dialog=g(qr);dialogService=g(Cv);wp=g(dL);navService=g(Gh);_snackBar=g(Lh);site=g(qn);user=g(sc);utils=g(Wh);drupal=g(uL);unsavedChanges=g(Wte);titleService=g(Ng);characterService=g(Ga);chatService=g(xv);cache=g(lS);changeDetector=g(Ge);widgetsService=g(lc);constructor(){super(),this.id=++t.Sid}ngOnInit(){}ngAfterViewInit(){console.log("messenger base view init");let e=["/ask-me-anything","/image-studio","/article-studio","/character","/widget"],n=r=>e.some(o=>r.startsWith(o));this.router.events.pipe(ct(r=>r instanceof or)).subscribe(r=>{let o=this.router.url;if(!o){console.log("no url found");return}n(o)&&this.activate()}),this.router.events.pipe(ct(r=>r instanceof Wo)).subscribe(()=>{let r=this.router.url;if(!r){console.log("no url found");return}n(r)&&this.deactivate()}),this.activate()}activate(){this.showJumpToButton.set(!1)}deactivate(){console.log("deactivated",this.widgetConfig().endpoint.toString())}setConfig(e,n=!1){console.log("config is ",e,"dynamic",n);let r=this;this.widgetConfig.set(e),this.setPageConfig(n),e.features.useAgentTools&&this.webSearchEnabled.set(this.cache.get(this.webSearchCacheKey())==="on"),this.widgetConfig().features.autoSend.enabled&&setTimeout(()=>{r.autoSendMessage()}),console.log("handle params"),this.handleParams()}setPageConfig(e){if(console.log("page header: ",this.pageHeader),!e){let n=this.navService.imageCards.find(r=>r.routeKey===this.widgetConfig().endpoint)||this.navService.textCards.find(r=>r.routeKey===this.widgetConfig().endpoint);n?this.widgetConfig().card=n:this.widgetConfig().card||console.log("card not found")}this.pageHeader&&this.pageHeader.setConfig({title:this.widgetConfig().card?.title||"",icon:this.widgetConfig().card?.icon||"",help:this.widgetConfig().card?.description||""}),this.titleService.setTitle("Chatbot - "+this.widgetConfig().card?.title)}autoSendMessage(){this.setInProgress(!0);let e=this.widgetConfig().message;if(this.widgetConfig().features.autoSend.addUserName){let r=this.widgetConfig().features.autoSend;e=r.intro||"";let o=r.userName!==void 0?r.userName:this.user.user()?.name;if(o){let a=" "+$localize`My name is `;e+=a+o+"."}}let n={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:e,bodyOriginal:e,imageCount:0,imageSize:"",addToViewer:this.widgetConfig().features.autoSend.addToViewer,progressMessage:$localize`Please wait.`};n.id=++Do.sNextID,this.widgetConfig().message="",this.sendMessage(n)}setInProgress(e){this.inProgress.set(e)}getInProgress(){return this.inProgress}handleParams(){}uploadEvent(e){}saveImage(e){}setCharacter(e){this.character.set(e),this.updateHeaderWithCharacter(e)}handleModelChange(e){console.log("Model changed to:",e),this.selectedModel.set(e)}webSearchCacheKey(){return"webSearch:"+this.widgetConfig().endpoint}toggleWebSearch(){this.webSearchEnabled.update(e=>!e),this.cache.set(this.webSearchCacheKey(),this.webSearchEnabled()?"on":"off",1440*365)}getStreamEndpoint(){let e=this.widgetConfig().features;return e.quizMode?"/quiz/stream/":e.useLangChain?e.useAgentTools&&this.webSearchEnabled()?"/chat-lc/stream-agent/":e.useStructuredOutput?"/chat-lc/stream-responses/":"/chat-lc/stream-langchain/":"/chat/stream/"}getStoreMethod(e,n){return n.startsWith("/quiz/")?this.chatService.storeDataQuiz(e):n.startsWith("/chat-lc/")?this.chatService.storeDataLangChain(e):this.chatService.storeData(e)}decorateRequest(e){}handleToolFrame(e,n){return e.type==="quiz_status"&&e.status?(this.quizStatus.set(e.status),!0):e.type==="image"?(n.progressMessage=void 0,n.images||(n.images=[]),n.images.push(e.url),n.body||(n.body=$localize`Image generated successfully`,n.bodyOriginal=n.body),this.messages.update(r=>[...r]),this.scrollToBottom(),!0):e.type==="search_results"?(n.progressMessage=void 0,n.metadata||(n.metadata={}),n.metadata.searchResults=e.results,n.metadata.searchQuery=e.query,this.messages.update(r=>[...r]),this.scrollToBottom(),!0):!1}showsModelBadge(){return!0}progressMessage(){return this.webSearchEnabled()?$localize`Searching the web…`:$localize`Processing…`}getEffectiveModel(){let e=this.selectedModel();if(e)return{provider:e.provider,name:e.name,stream:e.supportsStreaming};let n=this.character()?.model;return n||this.widgetConfig()?.model}updateHeaderWithCharacter(e){let n=this.pageHeader?.phConfig();if(!n){console.log("no header config set, cannot update with character");return}let r=G({},n);r.character=e,r.title=e.name,this.pageHeader&&this.pageHeader.setConfig(r)}copyToClipboard(e){navigator.clipboard.writeText(e),this._snackBar.open($localize`Text copied to clipboard.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})}copyToPrompt(e){this.prompter.message.set(e),this._snackBar.open($localize`Text copied to prompt.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})}saveImagePrompt(e){let n=this;function r(){let o=$localize`Saving prompt...`;return n.dialog.open(Gte,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:o,msg2:""}})}this.openProgressDialog($localize`Saving prompt...`),this.drupal.getCsrfToken().subscribe(o=>{n.drupal.postPrompt(o,e).subscribe(a=>{this._snackBar.dismiss(),this._snackBar.open($localize`Prompt saved!`,"",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]})},a=>{this._snackBar.dismiss(),console.log("error in posting:",a)})},o=>{console.log("csrf err is ",o),this._snackBar.dismiss(),this._snackBar.open($localize`Error encountered: `,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]})}),this._snackBar.open($localize`Image prompt saved.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})}createImageFromText(e){this.router.navigate(["/image-studio"],{queryParams:{prompt:e.body}})}enhancePrompt(e){let n=e.body;this.setInProgress(!0),this.prompter.message.set("");let r={userId:Mr.human,body:n,instructions:"You are writing a prompt for generating images. Use the user input as a starting point and provide more details. Use less than 150 words.",conversation:[]},o=this;this.chatService.storeData(r).subscribe({next(a){let s=a.message,l=o.site.site().apiHost+"/chat/stream/"+s;o.evtSource&&o.evtSource.close(),o.evtSource=new EventSource(l);let c=!1;o.evtSource.onmessage=function(d){let h=new RegExp(oc.CB_NEW_LINE,"g"),b=d.data.replace(h,oc.NEW_LINE);!b&&!c?c=!0:b==="__chatbot_end__"?(o.evtSource.close(),o.setInProgress(!1),o._snackBar.open($localize`Prompt enhanced.`,$localize`Undo`,{duration:8e3,panelClass:["custom-snack","custom-snack-info"]}).onAction().subscribe(()=>{o.prompter.message.set(n)})):o.prompter.message.update(f=>f+b)},o.evtSource.onerror=function(){o.evtSource.close(),o.setInProgress(!1),o.prompter.message.set(n),o._snackBar.open($localize`Enhancement failed. Original prompt restored.`,void 0,{duration:5e3,panelClass:["custom-snack","custom-snack-error"]})}},error(){o.setInProgress(!1),o.prompter.message.set(n),o._snackBar.open($localize`Enhancement failed. Original prompt restored.`,void 0,{duration:5e3,panelClass:["custom-snack","custom-snack-error"]})}})}ngOnDestroy(){}convertConversation(){let e=this.user.user()?.nicename||this.user.user().name,n=[];return this.messages().forEach(r=>{let o='<div class="human-label" style="font-weight:bold">'+e+":</div> ";r.userId==1&&(o='<div class="ai-label" style="font-weight:bold">'+$localize`Chatbot`+":</div> ");let a=this.viewer.findStreamedMessage(r.id);console.log("streamed message:",a),a?o+=a?.htmlString:o+=r.body,n.push(o)}),n}openProgressDialog(e){this._snackBar.open(e,void 0,{duration:0,panelClass:["custom-snack","custom-snack-info"]})}share(){let e=this;console.log("share");let n={msg:"",msg2:""};this.dialogService.openShareDialog(n).afterClosed().subscribe(o=>{if(!o){console.log("dialog closed with no data.");return}console.log("dialog result is ",o),this.openProgressDialog($localize`Sharing conversation...`);let a=this.user.user().wpToken,s=this.convertConversation();s.push("This conversation is from: "+o.data.email),s.push("The comment is: "+o.data.comment);let l="Message from "+o.data.email;e.wp.createPost(a,l,s,"").pipe(mt(1)).subscribe({next(c){console.log("share success: ",c),e.dialog.closeAll(),e._snackBar.open($localize`Conversation shared!`,"",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]})},error(c){console.log("error encountered: ",c),e.dialog.closeAll(),e._snackBar.open($localize`Error encountered: `,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]})},complete(){console.log("share complete")}})})}save(){let e=this,n=this.cache.get("autoSave")||"off",r=!0;n!=="off"&&(r=!1),r&&this.openProgressDialog($localize`Saving conversation...`);let o=this.user.user().wpToken,a=this.convertConversation(),s=this.utils.truncateString(e.messages()[0].body,128),l="pending";n==="publish"&&(l="publish"),e.wp.createPost(o,s,a,this.widgetConfig().updateId,l).pipe(mt(1)).subscribe({next(c){console.log("save success: ",c),e.widgetConfig().updateId=c.id,console.log("save id: ",e.widgetConfig().updateId),e.widgetConfig().updateId=c.id.toString(),e.saveEnabled.set(!1),e.dialog.closeAll(),console.log("auto save: ",n);let d=$localize`Conversation saved!`;n==="on"?d=$localize`Conversation saved as pending!`:n==="publish"&&(d=$localize`Conversation published!`),e._snackBar.open(d,"",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]})},error(c){console.log("error encountered: ",c),e.dialog.closeAll(),e._snackBar.open($localize`Error encountered: `,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]})},complete(){console.log("save complete")}})}refresh(){this.messages.set([]),this.refreshEnabled.set(!1),this.shareEnabled.set(!1),this.saveEnabled.set(!1),this.quizStatus.set(null),this.unsavedChanges.unset(this.widgetConfig().endpoint.toString()),this.titleService.setTitle("Chatbot - "+this.widgetConfig().card?.title),this.autoSendMessage()}newConversation(){this.messages.set([]),this.newEnabled.set(!1),this.shareEnabled.set(!1),this.saveEnabled.set(!1),this.quizStatus.set(null),this.unsavedChanges.unset(this.widgetConfig().endpoint.toString()),this.titleService.setTitle("Chatbot - "+this.widgetConfig().card?.title),this.prompter?.attachedImages&&this.prompter.attachedImages.set([])}useAsReference(e){this.prompter?.attachedImages&&this.prompter.canAttachMore()&&this.prompter.attachedImages.update(n=>[...n,e])}showPrompts(){let e=this;document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this.dialogService.openPromptsDialog(e.widgetConfig().features.prompts.imagePrompt,this.character()).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.prompter.message.set(o.Message),this._snackBar.open($localize`Selected prompt has been inserted.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})})}scrollToBottom(){this.navService.scrollToBottom()}delayedScrollToBottom(e=1e3){setTimeout(()=>{this.navService.scrollToBottom()},e)}editCharacter(e){let n=this,o={title:$localize`Edit AI Character`,msg:"",msg2:"",editCharacterData:this.character()};this.dialogRef=this.dialogService.openCharacterCreateDialog(o),this.dialogRef.afterClosed().pipe(mt(1)).subscribe({next(a){if(console.log("edit character dialog results",a),!a){console.log("no results from dialog");return}let s=a.data?.storageId;if(console.log("storage id is ",s),!s){console.log("no storage id");return}let l=a.data;n.patchCharacter(l),console.log("character patched")},error(a){console.log("error encountered: ",a)},complete(){n.dialogRef=void 0,console.log("dialogref cleared")}})}patchCharacter(e){let n=this;this.characterService.patchCharacter(e).pipe(mt(1)).subscribe({next(r){console.log("patch character response: ",r);let o=r.data;console.log("character: ",o),n.character.set(o),n._snackBar.open($localize`Character has been modified.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})},error(r){console.log("error encountered patching character: ",r)},complete(){}})}editWidget(){let e=this,r={title:$localize`Edit Widget`,msg:"",msg2:"",editWidgetConfig:this.widgetConfig()};this.dialogRef=this.dialogService.openWidgetCreateDialog(r),this.dialogRef.afterClosed().pipe(mt(1)).subscribe({next(o){if(console.log("edit widget dialog results",o),!o){console.log("no results from dialog");return}let a=o.data?.storageId;if(console.log("storage id is ",a),!a){console.log("no storage id");return}let s=o.data;e.patchWidgetConfig(s)},error(o){console.log("error encountered: ",o)},complete(){e.dialogRef=void 0,console.log("dialogref cleared")}})}patchWidgetConfig(e){let n=this,r={storageId:e.storageId||"",siteId:"",id:e.card?.id||"",name:e.card?.title||"",category:"",date:new Date,enabled:"true",hidden:"false",config:e,shared:e.shared!==!1};this.widgetsService.patchWidget(r).pipe(mt(1)).subscribe({next(o){console.log("patch widget response: ",o),n.widgetConfig.set(e),n._snackBar.open($localize`Widget has been modified.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})},error(o){console.log("error encountered patching widget: ",o)},complete(){}})}createArticle(){console.log("new article");let e=this;console.log(this.character()?.name+" is writing an article");let n=" ("+this.character()?.name+")",r={title:$localize`Create an Article`+n,msg:"",msg2:"",characterData:this.character()};this.dialogRef=this.dialogService.openNewArticleDialog(r),this.dialogRef.afterClosed().pipe(mt(1)).subscribe({next(o){if(!o){console.log("no results from dialog");return}console.log("new article dialog results",o)},error(o){console.log("error encountered: ",o)},complete(){e.dialogRef=void 0,console.log("dialogref cleared")}})}createReply(){console.log("reply");let e=this;console.log(this.character()?.name+"is repling");let n=" ("+(this.character()?.name??"")+")",r={title:$localize`Reply To Article/Comment`+n,msg:"",msg2:"",characterData:this.character()};this.dialogRef=this.dialogService.openReplyDialog(r),this.dialogRef.afterClosed().pipe(mt(1)).subscribe({next(o){if(!o){console.log("no results from dialog");return}console.log("reply dialog results",o),e._snackBar.open(o.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]})},error(o){console.log("error encountered: ",o)},complete(){e.dialogRef=void 0,console.log("dialogref cleared")}})}sendMessage(e,n=Mr.ai){let r=this;e.addToViewer!==!1&&this.messages.update(d=>[...d,e]),this.setInProgress(!0);let o={path:this.router.url,description:"Widget changed"};this.unsavedChanges.set(this.widgetConfig().endpoint.toString(),o);let a=r.messages().slice(0,r.messages().length-1),s="";this.widgetConfig().instructions?s=this.widgetConfig().instructions:this.character()&&(s="Your name is "+this.character().name+". ",s+=this.character().description),console.log("instructions: ",s);let l="Chat: ",c="";if(a.length?c=a[0].body:c=e.body,l+=this.utils.truncateString(c,128),this.titleService.setTitle(l),this.widgetConfig().features.streamedResponses){r.sendStreamedMessage(e,a,s);return}console.error("invalid response type")}sendStreamedMessage(e,n,r){let o=this;console.log("send streamed message: ",e);let a={userId:Mr.ai,endpoint:this.widgetConfig().endpoint,body:"",bodyOriginal:"",model:this.showsModelBadge()?this.getEffectiveModel():void 0};a.id=++Do.sNextID,this.messages.update(s=>[...s,a]),setTimeout(()=>{let s=this.viewer.findStreamedMessage(a.id);if(!s){console.log("Unable to find streamed message");return}let l={userId:e.userId,body:e.bodyOriginal,instructions:r||"",conversation:n,model:o.getEffectiveModel()};o.widgetConfig().features.useLangChain&&(l.use_structured_output=o.widgetConfig().features.useStructuredOutput||!1,o.widgetConfig().responseSchema&&(l.response_schema=o.widgetConfig().responseSchema)),o.decorateRequest(l);let c=!1,d=!1,h=o.getStreamEndpoint();o.getStoreMethod(l,h).subscribe({next(b){let f=b.message,_=o.site.site().apiHost+h+f;o.evtSource&&(o.evtSource?.close(),delete o.evtSource),o.evtSource=new EventSource(_),e.progressMessage=void 0,o.messages.update(y=>[...y]),o.evtSource.onmessage=function(y){let C=new RegExp(oc.CB_NEW_LINE,"g"),D=y.data;if(D==="{progress}"){a.progressMessage||(a.progressMessage=o.progressMessage(),a.body="",a.bodyOriginal="",o.messages.update(F=>[...F]));return}if(D.startsWith("{"))try{let F=JSON.parse(D);if(o.handleToolFrame(F,a))return}catch{}let k=D.replace(C,oc.NEW_LINE),T=D.replace(C,oc.NEW_LINE);!k&&!c?(console.log("stream initialized"),c=!0):k==="__chatbot_end__"?(d=!0,setTimeout(()=>{console.log("close"),o.evtSource.close(),o.newEnabled.set(!0),o.refreshEnabled.set(!0),o.shareEnabled.set(!0),o.saveEnabled.set(!0),o.setInProgress(!1),o.scrollToBottom(),o.prompter.prompterinput&&o.prompter.prompterinput.nativeElement.focus(),(o.cache.get("autoSave")||"off")!=="off"&&o.save()},500)):(a.progressMessage=void 0,s?.addToken(T),a.body+=k,a.bodyOriginal+=k,o.messages.update(F=>[...F]),o.scrollToBottom())},o.evtSource.onerror=function(y){d||(console.error("[MessengerBase] SSE error:",y),o.evtSource.close(),e.progressMessage=void 0,a.progressMessage=void 0,o.messages.update(C=>[...C]),o.setInProgress(!1))}},error(b){console.error("An error occurred:",b),e.progressMessage=void 0,o.setInProgress(!1)},complete(){console.log("Done.")}})},0)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Y({type:t,selectors:[["","cbMessengerBase",""]],viewQuery:function(n,r){if(n&1&&Qe(uc,5)(mc,5)(dc,5)(cc,5),n&2){let o;K(o=X())&&(r.pageHeader=o.first),K(o=X())&&(r.characterHeader=o.first),K(o=X())&&(r.viewer=o.first),K(o=X())&&(r.prompter=o.first)}},hostBindings:function(n,r){n&1&&N("scroll",function(a){return r.onWindowScroll(a)},Dx)},inputs:{dynamicConfig:[1,"dynamicConfig"],showPageHeader:[1,"showPageHeader"],showCharacterHeader:[1,"showCharacterHeader"],showMessageCount:[1,"showMessageCount"]},features:[Ee]})}return t})();function qte(t,i){if(t&1&&(p(0,"span",3),v(1),m()),t&2){let e=E();u(),M(e.widgetConfig().card?.subtitle)}}var nu=(()=>{class t{editTxt=$localize`Edit Widget`;editTipTxt=$localize`Edit widget configuration`;widgetConfig=Dt.required();editWidgetEvent=hm();edit(){this.editWidgetEvent.emit(this.widgetConfig())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-widget-header"]],inputs:{widgetConfig:[1,"widgetConfig"]},outputs:{editWidgetEvent:"editWidgetEvent"},decls:12,vars:5,consts:[[1,"widget-header","large-pad"],[1,"left"],[1,"widget-title"],[1,"widget-subtitle"],[1,"right"],["mat-raised-button","","matTooltipPosition","above",1,"edit-button",3,"click","matTooltip"],[1,"hide-on-small"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"span",2),v(3),m(),A(4,qte,2,1,"span",3),m(),p(5,"div",4)(6,"button",5),N("click",function(a){return r.edit(),a.stopPropagation()}),p(7,"mat-icon",6),v(8,"edit"),m(),p(9,"span"),v(10),m()()()(),U(11,"mat-divider")),n&2&&(u(3),M(r.widgetConfig().card?.title),u(),R(r.widgetConfig().card?.subtitle?4:-1),u(2),S("matTooltip",Ve(r.editTipTxt)),u(4),M(r.editTxt))},dependencies:[dn,cn,Gn,Sr,Pt,nn,ur,Fh],styles:[".widget-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.widget-header[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .widget-header[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.widget-header[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{justify-content:flex-end}.widget-header[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:5px}.widget-header[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{justify-content:flex-start;margin-left:10px;gap:8px}.widget-header[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .widget-title[_ngcontent-%COMP%]{font-weight:500}.widget-header[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .widget-subtitle[_ngcontent-%COMP%]{opacity:.7;font-size:.9em}"],changeDetection:1})}return t})(),rL=t=>({display:t});function Qte(t,i){t&1&&U(0,"tsai-page-header")}function Zte(t,i){if(t&1){let e=be();p(0,"tsai-character-header",9),N("changeCharacterEvent",function(r){ae(e);let o=E();return se(o.editCharacter(r))})("createArticleEvent",function(){ae(e);let r=E();return se(r.createArticle())})("createReplyEvent",function(){ae(e);let r=E();return se(r.createReply())}),m()}if(t&2){let e=E();S("character",e.character())}}function Yte(t,i){if(t&1){let e=be();p(0,"tsai-widget-header",10),N("editWidgetEvent",function(){ae(e);let r=E();return se(r.editWidget())}),m()}if(t&2){let e=E();S("widgetConfig",e.widgetConfig())}}var Kte=(()=>{class t extends wv{destroy$=new ce;constructor(){super()}setConfig(e,n=!1){super.setConfig(e,n)}ngOnInit(){super.ngOnInit()}ngAfterViewInit(){super.ngAfterViewInit()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}handleParams(){this.route.queryParams.pipe(Ue(this.destroy$)).subscribe(e=>{console.log("chat handle params queryParams",e),e.msg&&this.handleCreateChatParams(e.msg)})}handleCreateChatParams(e){if(!e||typeof e!="string"){console.error("Invalid msg parameter:",e),this._snackBar.open($localize`Invalid message parameter.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});return}if(!e.trim()){console.error("Empty msg parameter after trimming");return}if(!this.widgetConfig()){console.error("Widget config not ready for parameter handling"),this._snackBar.open($localize`Component not ready. Please try again.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});return}if(!this.viewer){console.error("Viewer component not ready for parameter handling");return}let r;try{r=decodeURIComponent(e)}catch(a){console.error("Failed to decode msg parameter:",a),this._snackBar.open($localize`Invalid message encoding.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});return}this._snackBar.open($localize`Creating chat conversation from message.`,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let o={userId:Mr.human,endpoint:this.widgetConfig().endpoint,body:r,bodyOriginal:r};o.id=++Do.sNextID,this.sendMessage(o),setTimeout(()=>{this.router.navigate(["/ask-me-anything"],{replaceUrl:!0})},100)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-chat-messenger"]],features:[Ee],decls:12,vars:27,consts:[[1,"messenger",3,"ngStyle","id"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[3,"widgetConfig"],[1,"messenger-container"],[3,"copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","useAsReferenceEvent","widgetConfig","character","inProgress","messages","showMessageCount"],[1,"prompter-container",3,"id"],[3,"webSearchToggleEvent","sendMessageEvent","enhanceEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","modelChangeEvent","widgetConfig","character","inProgress","newEnabled","refreshEnabled","shareEnabled","saveEnabled","webSearchEnabled"],[3,"changeCharacterEvent","createArticleEvent","createReplyEvent","character"],[3,"editWidgetEvent","widgetConfig"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return r.scrollToBottom()}),p(3,"mat-icon"),v(4,"arrow_downward"),m()()(),A(5,Qte,1,0,"tsai-page-header"),A(6,Zte,1,1,"tsai-character-header",3),A(7,Yte,1,1,"tsai-widget-header",4),p(8,"div",5)(9,"tsai-viewer",6),N("copyToClipboardEvent",function(a){return r.copyToClipboard(a)})("copyToPromptEvent",function(a){return r.copyToPrompt(a)})("saveImageEvent",function(a){return r.saveImage(a)})("saveImagePromptEvent",function(a){return r.saveImagePrompt(a)})("createImageFromTextEvent",function(a){return r.createImageFromText(a)})("useAsReferenceEvent",function(a){return r.useAsReference(a)}),m(),p(10,"div",7)(11,"tsai-prompter",8),N("webSearchToggleEvent",function(){return r.toggleWebSearch()})("sendMessageEvent",function(a){return r.sendMessage(a)})("enhanceEvent",function(a){return r.enhancePrompt(a)})("saveEvent",function(){return r.save()})("shareEvent",function(){return r.share()})("newEvent",function(){return r.newConversation()})("refreshEvent",function(){return r.refresh()})("showPromptsEvent",function(){return r.showPrompts()})("uploadCompleteEvent",function(a){return r.uploadEvent(a)})("modelChangeEvent",function(a){return r.handleModelChange(a)}),m()()()()),n&2&&(S("id",ui("messenger-",r.id))("ngStyle",tn(23,rL,(r.widgetConfig(),"block"))),u(),S("ngStyle",tn(25,rL,r.showJumpToButton()?"block":"none")),u(),he("aria-label",r.jumpToTxt),u(3),R(r.showPageHeader()&&!r.navService.hideNavigation()?5:-1),u(),R(r.showCharacterHeader()&&r.character()?6:-1),u(),R(r.dynamicConfig()&&r.widgetConfig()?7:-1),u(2),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("messages",r.messages())("showMessageCount",r.showMessageCount()),u(),S("id",ui("prompter-container-",r.id)),u(),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("newEnabled",r.newEnabled())("refreshEnabled",r.refreshEnabled())("shareEnabled",r.shareEnabled())("saveEnabled",r.saveEnabled())("webSearchEnabled",r.webSearchEnabled()))},dependencies:[zi,uo,cc,dc,ur,Mn,Jo,Pt,Rs,Gn,zs,dn,cn,uc,mc,nu,ki],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})}return t})(),oL=t=>({display:t});function Xte(t,i){t&1&&U(0,"tsai-page-header")}function Jte(t,i){if(t&1){let e=be();p(0,"tsai-character-header",9),N("changeCharacterEvent",function(r){ae(e);let o=E();return se(o.editCharacter(r))})("createArticleEvent",function(){ae(e);let r=E();return se(r.createArticle())})("createReplyEvent",function(){ae(e);let r=E();return se(r.createReply())}),m()}if(t&2){let e=E();S("character",e.character())}}function ene(t,i){if(t&1){let e=be();p(0,"tsai-widget-header",10),N("editWidgetEvent",function(){ae(e);let r=E();return se(r.editWidget())}),m()}if(t&2){let e=E();S("widgetConfig",e.widgetConfig())}}var cS=(()=>{class t extends wv{constructor(){super()}ngOnInit(){super.ngOnInit()}ngAfterViewInit(){super.ngAfterViewInit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-responses-messenger"]],features:[Ee],decls:12,vars:27,consts:[[1,"messenger",3,"ngStyle","id"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[3,"widgetConfig"],[1,"messenger-container"],[3,"copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","useAsReferenceEvent","widgetConfig","character","inProgress","messages","showMessageCount"],[1,"prompter-container",3,"id"],[3,"webSearchToggleEvent","sendMessageEvent","enhanceEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","modelChangeEvent","widgetConfig","character","inProgress","newEnabled","refreshEnabled","shareEnabled","saveEnabled","webSearchEnabled"],[3,"changeCharacterEvent","createArticleEvent","createReplyEvent","character"],[3,"editWidgetEvent","widgetConfig"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return r.scrollToBottom()}),p(3,"mat-icon"),v(4,"arrow_downward"),m()()(),A(5,Xte,1,0,"tsai-page-header"),A(6,Jte,1,1,"tsai-character-header",3),A(7,ene,1,1,"tsai-widget-header",4),p(8,"div",5)(9,"tsai-viewer",6),N("copyToClipboardEvent",function(a){return r.copyToClipboard(a)})("copyToPromptEvent",function(a){return r.copyToPrompt(a)})("saveImageEvent",function(a){return r.saveImage(a)})("saveImagePromptEvent",function(a){return r.saveImagePrompt(a)})("createImageFromTextEvent",function(a){return r.createImageFromText(a)})("useAsReferenceEvent",function(a){return r.useAsReference(a)}),m(),p(10,"div",7)(11,"tsai-prompter",8),N("webSearchToggleEvent",function(){return r.toggleWebSearch()})("sendMessageEvent",function(a){return r.sendMessage(a)})("enhanceEvent",function(a){return r.enhancePrompt(a)})("saveEvent",function(){return r.save()})("shareEvent",function(){return r.share()})("newEvent",function(){return r.newConversation()})("refreshEvent",function(){return r.refresh()})("showPromptsEvent",function(){return r.showPrompts()})("uploadCompleteEvent",function(a){return r.uploadEvent(a)})("modelChangeEvent",function(a){return r.handleModelChange(a)}),m()()()()),n&2&&(S("id",ui("messenger-",r.id))("ngStyle",tn(23,oL,(r.widgetConfig(),"block"))),u(),S("ngStyle",tn(25,oL,r.showJumpToButton()?"block":"none")),u(),he("aria-label",r.jumpToTxt),u(3),R(r.showPageHeader()&&!r.navService.hideNavigation()?5:-1),u(),R(r.showCharacterHeader()&&r.character()?6:-1),u(),R(r.dynamicConfig()&&r.widgetConfig()?7:-1),u(2),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("messages",r.messages())("showMessageCount",r.showMessageCount()),u(),S("id",ui("prompter-container-",r.id)),u(),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("newEnabled",r.newEnabled())("refreshEnabled",r.refreshEnabled())("shareEnabled",r.shareEnabled())("saveEnabled",r.saveEnabled())("webSearchEnabled",r.webSearchEnabled()))},dependencies:[zi,uo,cc,dc,ur,Mn,Jo,Pt,Rs,Gn,zs,dn,cn,uc,mc,nu,ki],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})}return t})(),aL=t=>({display:t});function tne(t,i){t&1&&U(0,"tsai-page-header")}function nne(t,i){if(t&1){let e=be();p(0,"tsai-character-header",9),N("changeCharacterEvent",function(r){ae(e);let o=E();return se(o.editCharacter(r))})("createArticleEvent",function(){ae(e);let r=E();return se(r.createArticle())})("createReplyEvent",function(){ae(e);let r=E();return se(r.createReply())}),m()}if(t&2){let e=E();S("character",e.character())}}function ine(t,i){if(t&1){let e=be();p(0,"tsai-widget-header",10),N("editWidgetEvent",function(){ae(e);let r=E();return se(r.editWidget())}),m()}if(t&2){let e=E();S("widgetConfig",e.widgetConfig())}}var rne=(()=>{class t extends cS{articleDraft=Q(void 0);improvements=Q([]);getStreamEndpoint(){return"/chat-lc/stream-article-studio/"}showsModelBadge(){return!1}decorateRequest(e){e.wp_token=this.user.user()?.wpToken}handleToolFrame(e,n){if(e.type==="article_draft"){let r={title:e.title,body:e.body,link:e.link,postId:e.postId,status:e.status};return this.articleDraft()?.postId!==r.postId&&this.improvements.set([]),this.articleDraft.set(r),!0}return e.type==="article_improved"?(this.improvements.update(r=>[...r,{postId:e.postId,operation:e.operation,detail:e.detail}]),!0):super.handleToolFrame(e,n)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["tsai-article-studio-messenger"]],features:[Ee],decls:12,vars:27,consts:[[1,"messenger",3,"ngStyle","id"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[3,"widgetConfig"],[1,"messenger-container"],[3,"copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","useAsReferenceEvent","widgetConfig","character","inProgress","messages","showMessageCount"],[1,"prompter-container",3,"id"],[3,"webSearchToggleEvent","sendMessageEvent","enhanceEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","modelChangeEvent","widgetConfig","character","inProgress","newEnabled","refreshEnabled","shareEnabled","saveEnabled","webSearchEnabled"],[3,"changeCharacterEvent","createArticleEvent","createReplyEvent","character"],[3,"editWidgetEvent","widgetConfig"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return r.scrollToBottom()}),p(3,"mat-icon"),v(4,"arrow_downward"),m()()(),A(5,tne,1,0,"tsai-page-header"),A(6,nne,1,1,"tsai-character-header",3),A(7,ine,1,1,"tsai-widget-header",4),p(8,"div",5)(9,"tsai-viewer",6),N("copyToClipboardEvent",function(a){return r.copyToClipboard(a)})("copyToPromptEvent",function(a){return r.copyToPrompt(a)})("saveImageEvent",function(a){return r.saveImage(a)})("saveImagePromptEvent",function(a){return r.saveImagePrompt(a)})("createImageFromTextEvent",function(a){return r.createImageFromText(a)})("useAsReferenceEvent",function(a){return r.useAsReference(a)}),m(),p(10,"div",7)(11,"tsai-prompter",8),N("webSearchToggleEvent",function(){return r.toggleWebSearch()})("sendMessageEvent",function(a){return r.sendMessage(a)})("enhanceEvent",function(a){return r.enhancePrompt(a)})("saveEvent",function(){return r.save()})("shareEvent",function(){return r.share()})("newEvent",function(){return r.newConversation()})("refreshEvent",function(){return r.refresh()})("showPromptsEvent",function(){return r.showPrompts()})("uploadCompleteEvent",function(a){return r.uploadEvent(a)})("modelChangeEvent",function(a){return r.handleModelChange(a)}),m()()()()),n&2&&(S("id",ui("messenger-",r.id))("ngStyle",tn(23,aL,(r.widgetConfig(),"block"))),u(),S("ngStyle",tn(25,aL,r.showJumpToButton()?"block":"none")),u(),he("aria-label",r.jumpToTxt),u(3),R(r.showPageHeader()&&!r.navService.hideNavigation()?5:-1),u(),R(r.showCharacterHeader()&&r.character()?6:-1),u(),R(r.dynamicConfig()&&r.widgetConfig()?7:-1),u(2),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("messages",r.messages())("showMessageCount",r.showMessageCount()),u(),S("id",ui("prompter-container-",r.id)),u(),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("newEnabled",r.newEnabled())("refreshEnabled",r.refreshEnabled())("shareEnabled",r.shareEnabled())("saveEnabled",r.saveEnabled())("webSearchEnabled",r.webSearchEnabled()))},dependencies:[zi,uo,cc,dc,ur,Mn,Jo,Pt,Rs,Gn,zs,dn,cn,uc,mc,nu,ki],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})}return t})(),sL=t=>({display:t});function one(t,i){t&1&&U(0,"tsai-page-header")}function ane(t,i){if(t&1){let e=be();p(0,"tsai-character-header",9),N("changeCharacterEvent",function(r){ae(e);let o=E();return se(o.editCharacter(r))})("createArticleEvent",function(){ae(e);let r=E();return se(r.createArticle())})("createReplyEvent",function(){ae(e);let r=E();return se(r.createReply())}),m()}if(t&2){let e=E();S("character",e.character())}}function sne(t,i){if(t&1){let e=be();p(0,"tsai-widget-header",10),N("editWidgetEvent",function(){ae(e);let r=E();return se(r.editWidget())}),m()}if(t&2){let e=E();S("widgetConfig",e.widgetConfig())}}var lne=(()=>{class t extends cS{studioCharacter=Q(void 0);articlePreview=Q(void 0);getStreamEndpoint(){return"/chat-lc/stream-character-studio/"}showsModelBadge(){return!1}handleToolFrame(e,n){return e.type==="character_updated"&&e.character?(this.studioCharacter.set(e.character),!0):e.type==="article_preview"?(this.articlePreview.set({title:e.title,body:e.body,link:e.link,postId:e.postId}),!0):super.handleToolFrame(e,n)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=rt(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["tsai-character-studio-messenger"]],features:[Ee],decls:12,vars:27,consts:[[1,"messenger",3,"ngStyle","id"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[3,"widgetConfig"],[1,"messenger-container"],[3,"copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","useAsReferenceEvent","widgetConfig","character","inProgress","messages","showMessageCount"],[1,"prompter-container",3,"id"],[3,"webSearchToggleEvent","sendMessageEvent","enhanceEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","modelChangeEvent","widgetConfig","character","inProgress","newEnabled","refreshEnabled","shareEnabled","saveEnabled","webSearchEnabled"],[3,"changeCharacterEvent","createArticleEvent","createReplyEvent","character"],[3,"editWidgetEvent","widgetConfig"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return r.scrollToBottom()}),p(3,"mat-icon"),v(4,"arrow_downward"),m()()(),A(5,one,1,0,"tsai-page-header"),A(6,ane,1,1,"tsai-character-header",3),A(7,sne,1,1,"tsai-widget-header",4),p(8,"div",5)(9,"tsai-viewer",6),N("copyToClipboardEvent",function(a){return r.copyToClipboard(a)})("copyToPromptEvent",function(a){return r.copyToPrompt(a)})("saveImageEvent",function(a){return r.saveImage(a)})("saveImagePromptEvent",function(a){return r.saveImagePrompt(a)})("createImageFromTextEvent",function(a){return r.createImageFromText(a)})("useAsReferenceEvent",function(a){return r.useAsReference(a)}),m(),p(10,"div",7)(11,"tsai-prompter",8),N("webSearchToggleEvent",function(){return r.toggleWebSearch()})("sendMessageEvent",function(a){return r.sendMessage(a)})("enhanceEvent",function(a){return r.enhancePrompt(a)})("saveEvent",function(){return r.save()})("shareEvent",function(){return r.share()})("newEvent",function(){return r.newConversation()})("refreshEvent",function(){return r.refresh()})("showPromptsEvent",function(){return r.showPrompts()})("uploadCompleteEvent",function(a){return r.uploadEvent(a)})("modelChangeEvent",function(a){return r.handleModelChange(a)}),m()()()()),n&2&&(S("id",ui("messenger-",r.id))("ngStyle",tn(23,sL,(r.widgetConfig(),"block"))),u(),S("ngStyle",tn(25,sL,r.showJumpToButton()?"block":"none")),u(),he("aria-label",r.jumpToTxt),u(3),R(r.showPageHeader()&&!r.navService.hideNavigation()?5:-1),u(),R(r.showCharacterHeader()&&r.character()?6:-1),u(),R(r.dynamicConfig()&&r.widgetConfig()?7:-1),u(2),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("messages",r.messages())("showMessageCount",r.showMessageCount()),u(),S("id",ui("prompter-container-",r.id)),u(),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("newEnabled",r.newEnabled())("refreshEnabled",r.refreshEnabled())("shareEnabled",r.shareEnabled())("saveEnabled",r.saveEnabled())("webSearchEnabled",r.webSearchEnabled()))},dependencies:[zi,uo,cc,dc,ur,Mn,Jo,Pt,Rs,Gn,zs,dn,cn,uc,mc,nu,ki],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})}return t})(),lL=t=>({display:t});function cne(t,i){t&1&&U(0,"tsai-page-header")}function dne(t,i){if(t&1){let e=be();p(0,"tsai-character-header",9),N("changeCharacterEvent",function(r){ae(e);let o=E();return se(o.editCharacter(r))})("createArticleEvent",function(){ae(e);let r=E();return se(r.createArticle())})("createReplyEvent",function(){ae(e);let r=E();return se(r.createReply())}),m()}if(t&2){let e=E();S("character",e.character())}}function une(t,i){if(t&1){let e=be();p(0,"tsai-widget-header",10),N("editWidgetEvent",function(){ae(e);let r=E();return se(r.editWidget())}),m()}if(t&2){let e=E();S("widgetConfig",e.widgetConfig())}}var So=(()=>{class t extends wv{constructor(){super()}setConfig(e,n=!1){super.setConfig(e,n)}ngOnInit(){super.ngOnInit()}ngAfterViewInit(){super.ngAfterViewInit()}setPageConfig(e){console.log("PlayerMessenger setPageConfig, URL:",this.router.url);let n=this.router.url;n.includes("/widgets/")?this.pageHeader.setConfig({title:this.widgetConfig().card?.title||"",icon:this.widgetConfig().card?.icon||"",help:this.widgetConfig().card?.description||"",breadcrumbs:[{name:"Home",icon:"home",href:"/"},{name:"Widgets",icon:"widgets",href:"/widgets"}]}):n.includes("/character/")?this.pageHeader.setConfig({title:this.widgetConfig().card?.title||"",icon:this.widgetConfig().card?.icon||"",help:this.widgetConfig().card?.description||"",breadcrumbs:[{name:"Home",icon:"home",href:"/"},{name:"Characters",icon:"people",href:"/character"}]}):n==="/widget"?(this.pageHeader.setConfig({title:this.widgetConfig().card?.title||"",icon:this.widgetConfig().card?.icon||"",help:this.widgetConfig().card?.description||"",breadcrumbs:[{name:"Home",icon:"home",href:"/"}]}),console.log("PlayerMessenger setPageConfig, widget home")):n==="/player"?(this.pageHeader.setConfig({title:this.widgetConfig().card?.title||"",icon:this.widgetConfig().card?.icon||"",help:this.widgetConfig().card?.description||"",breadcrumbs:[{name:"Home",icon:"home",href:"/"}]}),console.log("PlayerMessenger setPageConfig, widget home")):super.setPageConfig(e)}handleParams(){}getMessageCount(){return this.messages().length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=q({type:t,selectors:[["tsai-player-messenger"]],features:[Ee],decls:12,vars:27,consts:[[1,"messenger",3,"ngStyle","id"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[3,"widgetConfig"],[1,"messenger-container"],[3,"copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","useAsReferenceEvent","widgetConfig","character","inProgress","messages","showMessageCount"],[1,"prompter-container",3,"id"],[3,"webSearchToggleEvent","sendMessageEvent","enhanceEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","modelChangeEvent","widgetConfig","character","inProgress","newEnabled","refreshEnabled","shareEnabled","saveEnabled","webSearchEnabled"],[3,"changeCharacterEvent","createArticleEvent","createReplyEvent","character"],[3,"editWidgetEvent","widgetConfig"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return r.scrollToBottom()}),p(3,"mat-icon"),v(4,"arrow_downward"),m()()(),A(5,cne,1,0,"tsai-page-header"),A(6,dne,1,1,"tsai-character-header",3),A(7,une,1,1,"tsai-widget-header",4),p(8,"div",5)(9,"tsai-viewer",6),N("copyToClipboardEvent",function(a){return r.copyToClipboard(a)})("copyToPromptEvent",function(a){return r.copyToPrompt(a)})("saveImageEvent",function(a){return r.saveImage(a)})("saveImagePromptEvent",function(a){return r.saveImagePrompt(a)})("createImageFromTextEvent",function(a){return r.createImageFromText(a)})("useAsReferenceEvent",function(a){return r.useAsReference(a)}),m(),p(10,"div",7)(11,"tsai-prompter",8),N("webSearchToggleEvent",function(){return r.toggleWebSearch()})("sendMessageEvent",function(a){return r.sendMessage(a)})("enhanceEvent",function(a){return r.enhancePrompt(a)})("saveEvent",function(){return r.save()})("shareEvent",function(){return r.share()})("newEvent",function(){return r.newConversation()})("refreshEvent",function(){return r.refresh()})("showPromptsEvent",function(){return r.showPrompts()})("uploadCompleteEvent",function(a){return r.uploadEvent(a)})("modelChangeEvent",function(a){return r.handleModelChange(a)}),m()()()()),n&2&&(S("id",ui("messenger-",r.id))("ngStyle",tn(23,lL,(r.widgetConfig(),"block"))),u(),S("ngStyle",tn(25,lL,r.showJumpToButton()?"block":"none")),u(),he("aria-label",r.jumpToTxt),u(3),R(r.showPageHeader()&&!r.navService.hideNavigation()?5:-1),u(),R(r.showCharacterHeader()&&r.character()?6:-1),u(),R(r.dynamicConfig()&&r.widgetConfig()?7:-1),u(2),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("messages",r.messages())("showMessageCount",r.showMessageCount()),u(),S("id",ui("prompter-container-",r.id)),u(),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("newEnabled",r.newEnabled())("refreshEnabled",r.refreshEnabled())("shareEnabled",r.shareEnabled())("saveEnabled",r.saveEnabled())("webSearchEnabled",r.webSearchEnabled()))},dependencies:[zi,uo,cc,dc,ur,Mn,Jo,Pt,Rs,Gn,zs,dn,cn,uc,mc,nu,ki],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})}return t})(),mne=(()=>{class t{dialogRef;data;imageService=g(yv);saveTxt=$localize`Save Image`;saveImageTxt=$localize`Save`;closeTxt=$localize`Cancel`;qualityTxt=$localize`Quality`;highestTxt=$localize`Highest`;lowestTxt=$localize`Lowest`;compressionTxt=$localize`Set compression level and save. Smaller images mean your web pages will load faster.`;sizeTxt=$localize`Size`;subscription;disabled=!1;max=100;min=0;showTicks=!1;step=1;thumbLabel=!0;value=50;url;constructor(e,n){this.dialogRef=e,this.data=n}ngOnInit(){this.url=this.data.url,console.log("url is ",this.url)}ngAfterViewInit(){this.getSize()}cancelRequest(){this.imageService.cancelRequest()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}formatLabel(e){return`${e}%`}size=Q("");sizeSuffix=Q("KB");setSize(e){let n=e/1024;this.size.set(n.toPrecision(4))}getSize(){let e=this;this.subscription=this.imageService.getSize(this.url,this.value).subscribe(n=>{e.setSize(n.image_size)},n=>{console.log("Error:",n)})}submit(){this.dialogRef.close({data:this.value})}valueChange(){this.getSize()}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["cb-image-compress-dialog"]],inputs:{url:"url"},decls:21,vars:17,consts:[["slider",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-label-container"],["id","example-name-label",1,"example-name-label"],[1,"example-value-label"],[1,"example-margin",3,"disabled","max","min","step","discrete","showTickMarks","displayWith"],["matSliderThumb","",3,"valueChange","ngModelChange","ngModel"],[1,"size-container"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""],["mat-raised-button","",3,"click"]],template:function(n,r){if(n&1){let o=be();p(0,"h1",1),v(1),m(),p(2,"div",2)(3,"p"),v(4),m(),p(5,"div",3)(6,"label",4),v(7),m(),p(8,"label",5),v(9),m()(),p(10,"mat-slider",6)(11,"input",7,0),N("valueChange",function(){return r.valueChange()}),Bi("ngModelChange",function(s){return ae(o),nr(r.value,s)||(r.value=s),se(s)}),m(),Se(),m()(),p(13,"div",8),v(14),m(),p(15,"div",9)(16,"button",10),v(17),m(),p(18,"button",11),N("click",function(){return r.submit()}),v(19),m()(),U(20,"br")}if(n&2){let o=pn(12);u(),M(r.saveTxt),u(3),M(r.compressionTxt),u(3),M(r.qualityTxt),u(2),M(o.value),u(),S("disabled",r.disabled)("max",r.max)("min",r.min)("step",r.step)("discrete",r.thumbLabel)("showTickMarks",r.showTicks)("displayWith",r.formatLabel),u(),Li("ngModel",r.value),ke(),u(3),dm("",r.sizeTxt,": ",r.size()," ",r.sizeSuffix()),u(3),M(r.closeTxt),u(2),M(r.saveTxt)}},dependencies:[Mn,Yo,fi,Si,gi,Pt,nn,ii,q3,G3,nS,cr,Ei,lr,Fa],styles:[".example-h2[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.example-section[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-content:center;align-items:center}.example-margin[_ngcontent-%COMP%]{margin:8px}.example-width[_ngcontent-%COMP%]{max-width:180px;width:100%}.mat-mdc-slider[_ngcontent-%COMP%]{max-width:300px;width:100%}.mat-mdc-card[_ngcontent-%COMP%] + .mat-mdc-card[_ngcontent-%COMP%]{margin-top:8px}.example-result-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 8px}.example-label-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:20px 10px 0;max-width:100%}.example-result-card[_ngcontent-%COMP%] .example-value-label[_ngcontent-%COMP%]{font-weight:600}mat-slider[_ngcontent-%COMP%]{width:100%;max-width:100%!important}.instructions-container[_ngcontent-%COMP%], .size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"],changeDetection:1})}return t})(),hne=["mysubmit"],Uh=(t,i)=>i.value;function pne(t,i){if(t&1&&(p(0,"mat-option",5),v(1),m()),t&2){let e=i.$implicit;S("value",e.value),u(),M(e.label)}}function fne(t,i){if(t&1&&(p(0,"mat-option",5),v(1),m()),t&2){let e=i.$implicit;S("value",e.value),u(),M(e.label)}}function gne(t,i){if(t&1&&(p(0,"mat-option",5),v(1),m()),t&2){let e=i.$implicit;S("value",e.value),u(),M(e.label)}}function _ne(t,i){if(t&1&&(p(0,"mat-option",5),v(1),m()),t&2){let e=i.$implicit;S("value",e.value),u(),M(e.label)}}function vne(t,i){if(t&1&&(p(0,"mat-option",5),v(1),m()),t&2){let e=i.$implicit;S("value",e.value),u(),M(e.label)}}function bne(t,i){if(t&1){let e=be();p(0,"mat-form-field",3)(1,"mat-label"),v(2),m(),p(3,"input",11),Bi("ngModelChange",function(r){ae(e);let o=E();return nr(o.driverModelValue,r)||(o.driverModelValue=r),se(r)}),m(),Se(),m()}if(t&2){let e=E();u(2),M(e.driverModelTxt),u(),Li("ngModel",e.driverModelValue),ke()}}var yne=(()=>{class t{dialogRef;data;titleTxt=$localize`Image Settings (v2)`;sizeTxt=$localize`Size`;qualityTxt=$localize`Quality`;formatTxt=$localize`Format`;backgroundTxt=$localize`Background`;partialImagesTxt=$localize`Live Previews`;driverModelTxt=$localize`Driver Model`;advancedTxt=$localize`Advanced`;closeTxt=$localize`Close`;submitTxt=$localize`Generate`;showAdvanced=!1;sizeOptions=[{value:Hs.auto,label:$localize`Auto`},{value:Hs._1024x1024,label:"1024x1024"},{value:Hs._1536x1024,label:"1536x1024 (Landscape)"},{value:Hs._1024x1536,label:"1024x1536 (Portrait)"}];qualityOptions=[{value:ac.low,label:$localize`Low`},{value:ac.medium,label:$localize`Medium`},{value:ac.high,label:$localize`High`}];formatOptions=[{value:Ua.png,label:"PNG"},{value:Ua.jpeg,label:"JPEG"},{value:Ua.webp,label:"WebP"}];backgroundOptions=[{value:Wa.auto,label:$localize`Auto`},{value:Wa.opaque,label:$localize`Opaque`},{value:Wa.transparent,label:$localize`Transparent (PNG only)`}];partialImagesOptions=[{value:0,label:$localize`Off`},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"}];sizeValue=Hs.auto;qualityValue=ac.medium;formatValue=Ua.png;backgroundValue=Wa.auto;partialImagesValue=2;driverModelValue="gpt-5";submitButton;constructor(e,n){this.dialogRef=e,this.data=n,n?.size&&(this.sizeValue=n.size),n?.quality&&(this.qualityValue=n.quality),n?.outputFormat&&(this.formatValue=n.outputFormat),n?.background&&(this.backgroundValue=n.background),n?.partialImages!==void 0&&(this.partialImagesValue=n.partialImages),n?.driverModel&&(this.driverModelValue=n.driverModel)}ngAfterViewInit(){setTimeout(()=>{this.submitButton.focus()},500)}onBackgroundChange(e){this.backgroundValue=e,e===Wa.transparent&&(this.formatValue=Ua.png)}submit(){this.backgroundValue===Wa.transparent&&(this.formatValue=Ua.png);let e={size:this.sizeValue,quality:this.qualityValue,outputFormat:this.formatValue,background:this.backgroundValue,partialImages:this.partialImagesValue,driverModel:this.driverModelValue};this.dialogRef.close(e)}static \u0275fac=function(n){return new(n||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["tsai-gpt-image-2-config-dialog"]],viewQuery:function(n,r){if(n&1&&Qe(hne,5),n&2){let o;K(o=X())&&(r.submitButton=o.first)}},decls:43,vars:17,consts:[["mysubmit",""],["mat-dialog-title",""],[1,"config-form"],["appearance","outline"],[3,"valueChange","value"],[3,"value"],[3,"valueChange","value","disabled"],[3,"ngModelChange","ngModel"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary",3,"click"],["matInput","",3,"ngModelChange","ngModel"]],template:function(n,r){if(n&1){let o=be();p(0,"h2",1),v(1),m(),p(2,"mat-dialog-content")(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),v(6),m(),p(7,"mat-select",4),Bi("valueChange",function(s){return ae(o),nr(r.sizeValue,s)||(r.sizeValue=s),se(s)}),Je(8,pne,2,2,"mat-option",5,Uh),m()(),p(10,"mat-form-field",3)(11,"mat-label"),v(12),m(),p(13,"mat-select",4),Bi("valueChange",function(s){return ae(o),nr(r.qualityValue,s)||(r.qualityValue=s),se(s)}),Je(14,fne,2,2,"mat-option",5,Uh),m()(),p(16,"mat-form-field",3)(17,"mat-label"),v(18),m(),p(19,"mat-select",6),Bi("valueChange",function(s){return ae(o),nr(r.formatValue,s)||(r.formatValue=s),se(s)}),Je(20,gne,2,2,"mat-option",5,Uh),m()(),p(22,"mat-form-field",3)(23,"mat-label"),v(24),m(),p(25,"mat-select",4),N("valueChange",function(s){return r.onBackgroundChange(s)}),Je(26,_ne,2,2,"mat-option",5,Uh),m()(),p(28,"mat-form-field",3)(29,"mat-label"),v(30),m(),p(31,"mat-select",4),Bi("valueChange",function(s){return ae(o),nr(r.partialImagesValue,s)||(r.partialImagesValue=s),se(s)}),Je(32,vne,2,2,"mat-option",5,Uh),m()(),p(34,"mat-slide-toggle",7),Bi("ngModelChange",function(s){return ae(o),nr(r.showAdvanced,s)||(r.showAdvanced=s),se(s)}),v(35),m(),Se(),A(36,bne,4,2,"mat-form-field",3),m()(),p(37,"mat-dialog-actions",8)(38,"button",9),v(39),m(),p(40,"button",10,0),N("click",function(){return r.submit()}),v(42),m()()}n&2&&(u(),M(r.titleTxt),u(5),M(r.sizeTxt),u(),Li("value",r.sizeValue),u(),et(r.sizeOptions),u(4),M(r.qualityTxt),u(),Li("value",r.qualityValue),u(),et(r.qualityOptions),u(4),M(r.formatTxt),u(),Li("value",r.formatValue),S("disabled",r.backgroundValue==="transparent"),u(),et(r.formatOptions),u(4),M(r.backgroundTxt),u(),S("value",r.backgroundValue),u(),et(r.backgroundOptions),u(4),M(r.partialImagesTxt),u(),Li("value",r.partialImagesValue),u(),et(r.partialImagesOptions),u(2),Li("ngModel",r.showAdvanced),ke(),u(),oe(" ",r.advancedTxt," "),u(),R(r.showAdvanced?36:-1),u(3),M(r.closeTxt),u(3),M(r.submitTxt))},dependencies:[cr,Ei,lr,Fa,Mn,Yo,fi,Si,gi,Pt,nn,ta,Wn,ni,ea,dr,Y_,Ph,Vn,ii,Gi],styles:[".config-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;min-width:320px;padding-top:8px}"],changeDetection:1})}return t})(),cL=t=>({display:t});function xne(t,i){t&1&&U(0,"tsai-page-header")}function Cne(t,i){if(t&1){let e=be();p(0,"tsai-character-header",9),N("changeCharacterEvent",function(r){ae(e);let o=E();return se(o.editCharacter(r))})("createArticleEvent",function(){ae(e);let r=E();return se(r.createArticle())})("createReplyEvent",function(){ae(e);let r=E();return se(r.createReply())}),m()}if(t&2){let e=E();S("character",e.character())}}function wne(t,i){if(t&1){let e=be();p(0,"tsai-widget-header",10),N("editWidgetEvent",function(){ae(e);let r=E();return se(r.editWidget())}),m()}if(t&2){let e=E();S("widgetConfig",e.widgetConfig())}}var Ene=(()=>{class t extends wv{imageService;lastSize=Hs.auto;lastQuality=ac.medium;lastFormat=Ua.png;lastBackground=Wa.auto;lastPartialImages=2;lastDriverModel="gpt-5";destroy$=new ce;constructor(e){super(),this.imageService=e}ngOnInit(){super.ngOnInit();let e=this.cache.get("gptImage2Config");if(e)try{let n=JSON.parse(e);this.lastSize=n.size||Hs.auto,this.lastQuality=n.quality||ac.medium,this.lastFormat=n.outputFormat||Ua.png,this.lastBackground=n.background||Wa.auto,this.lastPartialImages=n.partialImages??2,this.lastDriverModel=n.driverModel||"gpt-5"}catch{}}ngAfterViewInit(){super.ngAfterViewInit()}saveImage(e){let n=this,r={title:"Save Image",msg:"",msg2:"",url:e.url};this.dialog.open(mne,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:r}).afterClosed().pipe(mt(1)).subscribe({next(a){if(!a)return;let s=a.data;n.imageService.saveToMediaLibrary(e.url,s).pipe(mt(1)).subscribe({next(){n._snackBar.open($localize`Image saved to Media Library.`,void 0,{duration:3e3})},error(l){console.log("Error saving image: ",l),n._snackBar.open($localize`Error saving image.`,void 0,{duration:4e3})}})},error(a){console.log("error encountered: ",a)}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}sendMessage(e){setTimeout(()=>{this.prompter.message.set(e.body),e.images?.length&&this.prompter.attachedImages.set([...e.images])}),this.dialog.open(yne,{width:"440px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{msg:"",msg2:"",size:this.lastSize,quality:this.lastQuality,outputFormat:this.lastFormat,background:this.lastBackground,partialImages:this.lastPartialImages,driverModel:this.lastDriverModel}}).afterClosed().subscribe(r=>{r&&(this.prompter.message.set(""),this.prompter.attachedImages.set([]),this.sendImageDirectly(e,r))})}sendImageDirectly(e,n,r=!1){r||(this.prompter.message.set(""),this.prompter.attachedImages.set([])),this.lastSize=n.size,this.lastQuality=n.quality,this.lastFormat=n.outputFormat,this.lastBackground=n.background,this.lastPartialImages=n.partialImages,this.lastDriverModel=n.driverModel,this.cache.set("gptImage2Config",JSON.stringify(n));let o=e.images||[];delete e.images,e.addToViewer!==!1&&this.messages.update(s=>[...s,e]),this.setInProgress(!0);let a={path:this.router.url,description:"Image Studio 2 changed"};this.unsavedChanges.set(this.widgetConfig().endpoint.toString(),a),this.sendGptImage2Request(e,n,o.length>0?o:void 0)}handleParams(){this.route.queryParams.pipe(Ue(this.destroy$)).subscribe(e=>{if(!e.prompt)return;let n=decodeURIComponent(e.prompt),r={size:e.size||this.lastSize,quality:e.quality||this.lastQuality,outputFormat:e.outputFormat||this.lastFormat,background:e.background||this.lastBackground,partialImages:e.partialImages!==void 0?parseInt(e.partialImages,10):this.lastPartialImages,driverModel:e.driverModel||this.lastDriverModel},o=new Do;o.userId=0,o.endpoint=this.widgetConfig().endpoint,o.body=n,o.bodyOriginal=n,this.sendImageDirectly(o,r,!0),this.router.navigate(["/image-studio"],{replaceUrl:!0})})}sendGptImage2Request(e,n,r){let o=this,a={userId:Mr.ai,endpoint:this.widgetConfig().endpoint,body:"",bodyOriginal:"",progressMessage:$localize`Generating image...`};a.id=++Do.sNextID,this.messages.update(l=>[...l,a]);let s;this.chatService.storeGptImage2Request(e.bodyOriginal,"studio-user",n.size,n.quality,n.outputFormat,n.background,n.partialImages,r,void 0,n.driverModel).subscribe({next(l){let c=l.message,d=o.site.site().apiHost+"/gpt-image-2/stream/"+c;o.evtSource&&(o.evtSource.close(),delete o.evtSource);let h=!1;o.evtSource=new EventSource(d),o.evtSource.onmessage=function(b){let f=b.data;if(f==="{progress}"){a.progressMessage=$localize`Generating image...`,o.messages.update(_=>[..._]);return}if(f===oc.CB_END_STREAM){h=!0,setTimeout(()=>{o.evtSource.close(),o.newEnabled.set(!0),o.saveEnabled.set(!0),o.setInProgress(!1),o.scrollToBottom(),o.prompter?.prompterinput&&o.prompter.prompterinput.nativeElement.focus(),o.prompter?.attachedImages&&a.images?.length&&o.prompter.attachedImages.set([a.images[a.images.length-1]])},500);return}if(f.startsWith("Error:")){a.progressMessage=void 0,a.body=f,a.bodyOriginal=f,o.messages.update(_=>[..._]);return}if(f.startsWith("partial:")){let _=f.substring(8),y=_.indexOf(":");if(y>0){let C=_.substring(y+1);s=C,a.progressMessage=$localize`Refining preview...`,a.images||(a.images=[]),a.images.length===1&&a.images[0]===s||(a.images=[C]),o.messages.update(D=>[...D]),o.scrollToBottom()}return}a.progressMessage=void 0,a.images=[f],a.body=$localize`Image generated successfully`,a.bodyOriginal=a.body,o.messages.update(_=>[..._]),o.scrollToBottom()},o.evtSource.onerror=function(b){h||(console.error("[GptImage2Messenger] SSE error:",b),o.evtSource.close(),o.setInProgress(!1))}},error(l){console.error("[GptImage2Messenger] Store request error:",l),o.setInProgress(!1)}})}static \u0275fac=function(n){return new(n||t)(Z(yv))};static \u0275cmp=q({type:t,selectors:[["tsai-gpt-image-2-messenger"]],features:[Ee],decls:12,vars:27,consts:[[1,"messenger",3,"ngStyle","id"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[3,"widgetConfig"],[1,"messenger-container"],[3,"copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","useAsReferenceEvent","widgetConfig","character","inProgress","messages","showMessageCount"],[1,"prompter-container",3,"id"],[3,"webSearchToggleEvent","sendMessageEvent","enhanceEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","modelChangeEvent","widgetConfig","character","inProgress","newEnabled","refreshEnabled","shareEnabled","saveEnabled","webSearchEnabled"],[3,"changeCharacterEvent","createArticleEvent","createReplyEvent","character"],[3,"editWidgetEvent","widgetConfig"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return r.scrollToBottom()}),p(3,"mat-icon"),v(4,"arrow_downward"),m()()(),A(5,xne,1,0,"tsai-page-header"),A(6,Cne,1,1,"tsai-character-header",3),A(7,wne,1,1,"tsai-widget-header",4),p(8,"div",5)(9,"tsai-viewer",6),N("copyToClipboardEvent",function(a){return r.copyToClipboard(a)})("copyToPromptEvent",function(a){return r.copyToPrompt(a)})("saveImageEvent",function(a){return r.saveImage(a)})("saveImagePromptEvent",function(a){return r.saveImagePrompt(a)})("createImageFromTextEvent",function(a){return r.createImageFromText(a)})("useAsReferenceEvent",function(a){return r.useAsReference(a)}),m(),p(10,"div",7)(11,"tsai-prompter",8),N("webSearchToggleEvent",function(){return r.toggleWebSearch()})("sendMessageEvent",function(a){return r.sendMessage(a)})("enhanceEvent",function(a){return r.enhancePrompt(a)})("saveEvent",function(){return r.save()})("shareEvent",function(){return r.share()})("newEvent",function(){return r.newConversation()})("refreshEvent",function(){return r.refresh()})("showPromptsEvent",function(){return r.showPrompts()})("uploadCompleteEvent",function(a){return r.uploadEvent(a)})("modelChangeEvent",function(a){return r.handleModelChange(a)}),m()()()()),n&2&&(S("id",ui("messenger-",r.id))("ngStyle",tn(23,cL,(r.widgetConfig(),"block"))),u(),S("ngStyle",tn(25,cL,r.showJumpToButton()?"block":"none")),u(),he("aria-label",r.jumpToTxt),u(3),R(r.showPageHeader()&&!r.navService.hideNavigation()?5:-1),u(),R(r.showCharacterHeader()&&r.character()?6:-1),u(),R(r.dynamicConfig()&&r.widgetConfig()?7:-1),u(2),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("messages",r.messages())("showMessageCount",r.showMessageCount()),u(),S("id",ui("prompter-container-",r.id)),u(),S("widgetConfig",r.widgetConfig())("character",r.character())("inProgress",r.inProgress())("newEnabled",r.newEnabled())("refreshEnabled",r.refreshEnabled())("shareEnabled",r.shareEnabled())("saveEnabled",r.saveEnabled())("webSearchEnabled",r.webSearchEnabled()))},dependencies:[zi,uo,cc,dc,ur,Mn,Jo,Pt,Rs,Gn,zs,dn,cn,uc,mc,nu,ki],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})}return t})();var Ev=(()=>{class t{chatMessenger;gptImage2Messenger;responsesMessenger;characterStudioMessenger;articleStudioMessenger;playerMessenger;messenger;config;route=g(Vi);utils=g(Wh);charactersService=g(Ga);loading=Q(!1);error=Q(null);character=Q(void 0);constructor(e=!0){e&&(this.config=this.utils.createDefaultWidgetConfig())}setMessenger(){this.chatMessenger?this.messenger=this.chatMessenger:this.gptImage2Messenger?this.messenger=this.gptImage2Messenger:this.characterStudioMessenger?this.messenger=this.characterStudioMessenger:this.articleStudioMessenger?this.messenger=this.articleStudioMessenger:this.responsesMessenger?this.messenger=this.responsesMessenger:this.playerMessenger&&(this.messenger=this.playerMessenger)}ngOnInit(){this.onInit()}ngAfterViewInit(){setTimeout(()=>{this.setMessenger(),console.log("messenger, ",this.messenger),this.messenger&&(this.playerMessenger&&this.messenger===this.playerMessenger?this.messenger.setConfig(this.config,!0):this.messenger.setConfig(this.config))}),this.afterViewInit()}ngAfterContentInit(){this.afterContentInit()}onInit(){}afterViewInit(){}afterContentInit(){}getRouteParam(e,n){return this.route.snapshot.paramMap.get(e)||this.route.snapshot.queryParamMap.get(e)||n||null}setLoading(e){this.loading.set(e)}setError(e){this.error.set(e)}updateConfig(e){this.config=G(G({},this.config),e),this.messenger&&(this.playerMessenger&&this.messenger===this.playerMessenger?this.messenger.setConfig(this.config,!0):this.messenger.setConfig(this.config))}setPlayerDefaults(){this.config.features.save=!1,this.config.features.share=!0,this.config.features.prompt=!0,this.config.features.refresh=!0,this.config.features.useLangChain=!0,this.config.features.modelSelection=!0,this.config.features.streamedResponses=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0}setCharacterInMessenger(e){this.messenger&&typeof this.messenger.setCharacter=="function"&&this.messenger.setCharacter(e)}getCharacterFromMessenger(){if(this.messenger&&this.messenger.character)return this.messenger.character()}getEffectiveModel(e){return e?.model?e.model:this.utils.createDefaultModel()}loadAndSetCharacter(e){this.setLoading(!0),this.setError(null),this.charactersService.loadCharacterBySlug(e).pipe(mt(1)).subscribe({next:n=>{console.log("Loaded character:",n),this.character.set(n),this.onCharacterLoaded(n),this.setLoading(!1)},error:n=>{console.error("Error loading character:",n),this.setError("Failed to load character"),this.setLoading(!1),this.onCharacterLoadError(n)},complete:()=>{console.log("Character loading complete")}})}loadCharacterFromSlugParam(e){let n=this.getRouteParam("slug",e);n&&this.loadAndSetCharacter(n)}onCharacterLoaded(e){this.messenger?this.setCharacterInMessenger(e):setTimeout(()=>{this.messenger&&this.setCharacterInMessenger(e)})}onCharacterLoadError(e){}static \u0275fac=function(n){Ca()};static \u0275dir=Y({type:t,viewQuery:function(n,r){if(n&1&&Qe(Kte,5)(Ene,5)(cS,5)(lne,5)(rne,5)(So,5),n&2){let o;K(o=X())&&(r.chatMessenger=o.first),K(o=X())&&(r.gptImage2Messenger=o.first),K(o=X())&&(r.responsesMessenger=o.first),K(o=X())&&(r.characterStudioMessenger=o.first),K(o=X())&&(r.articleStudioMessenger=o.first),K(o=X())&&(r.playerMessenger=o.first)}}})}return t})();var gL=(()=>{class t{router;constructor(e){this.router=e}goHome(){this.router.navigate(["/"])}goBack(){window.history.back()}static \u0275fac=function(n){return new(n||t)(Z(mi))};static \u0275cmp=q({type:t,selectors:[["tsai-page-not-found"]],decls:21,vars:0,consts:[[1,"page-not-found-container"],[1,"error-card"],[1,"error-icon"],[1,"error-code"],[1,"error-title"],[1,"error-message"],[1,"error-actions"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"click"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"mat-icon"),v(5,"sentiment_dissatisfied"),m()(),p(6,"h1",3),v(7,"404"),m(),p(8,"h2",4),v(9,"Page Not Found"),m(),p(10,"p",5),v(11," Oops! The page you're looking for doesn't exist or has been moved. "),m(),p(12,"div",6)(13,"button",7),N("click",function(){return r.goHome()}),p(14,"mat-icon"),v(15,"home"),m(),v(16," Go Home "),m(),p(17,"button",8),N("click",function(){return r.goBack()}),p(18,"mat-icon"),v(19,"arrow_back"),m(),v(20," Go Back "),m()()()()())},dependencies:[m0,Pt,nn,dn,cn,Y3,Q3,Z3],styles:[".page-not-found-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:800px;background:var(--mat-sys-surface-variant);padding:20px}.error-card[_ngcontent-%COMP%]{max-width:600px;width:100%;text-align:center;background:var(--mat-sys-surface);color:var(--mat-sys-on-surface);box-shadow:0 8px 16px #0000001a}.error-icon[_ngcontent-%COMP%]{margin-bottom:20px}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:120px;width:120px;height:120px;color:var(--mat-sys-primary);opacity:.8}.error-code[_ngcontent-%COMP%]{font-size:96px;font-weight:700;margin:0;color:var(--mat-sys-primary);line-height:1}.error-title[_ngcontent-%COMP%]{font-size:32px;font-weight:500;margin:16px 0;color:var(--mat-sys-on-surface)}.error-message[_ngcontent-%COMP%]{font-size:16px;color:var(--mat-sys-on-surface-variant);margin:24px 0 32px;line-height:1.5}.error-actions[_ngcontent-%COMP%]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}.error-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:140px}.error-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}@media(max-width:600px){.error-code[_ngcontent-%COMP%]{font-size:72px}.error-title[_ngcontent-%COMP%]{font-size:24px}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:96px;width:96px;height:96px}.error-actions[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.error-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}}"],changeDetection:1})}return t})();var _L=(()=>{class t{palettes=[];activePalette;site=g(qn);constructor(){this.addAll(),this.addIds(),this.activePalette=this.palettes[8]}activate(e){let n=document.body,r="tsai-palette-";document.body.classList.remove(r+this.activePalette.color),this.activePalette=e,document.body.classList.add(r+this.activePalette.color),window.sessionStorage.setItem("palette",this.activePalette.color+this.activePalette.id),n.classList.toggle("dark-mode",this.activePalette.mode==="Dark")}addIds(){this.palettes.forEach((e,n)=>{e.id=n})}addAll(){this.add({color:"green",name:"Green",mode:"Dark"}),this.add({color:"yellow",name:"Yellow",mode:"Dark"}),this.add({color:"cyan",name:"Cyan",mode:"Dark"}),this.add({color:"magenta",name:"Magenta",mode:"Dark"}),this.add({color:"orange",name:"Orange",mode:"Dark"}),this.add({color:"chartreuse",name:"Chartreuse",mode:"Dark"}),this.add({color:"spring-green",name:"Spring Green",mode:"Dark"}),this.add({color:"azure",name:"Azure",mode:"Dark"}),this.add({color:"violet",name:"Violet",mode:"Dark"}),this.add({color:"rose",name:"Rose",mode:"Dark"}),this.add({color:"red",name:"Red",mode:"Dark"}),this.add({color:"green",name:"Green",mode:"Light"}),this.add({color:"blue",name:"Blue",mode:"Light"}),this.add({color:"yellow",name:"Yellow",mode:"Light"}),this.add({color:"cyan",name:"Cyan",mode:"Light"}),this.add({color:"magenta",name:"Magenta",mode:"Light"}),this.add({color:"orange",name:"Orange",mode:"Light"}),this.add({color:"chartreuse",name:"Chartreuse",mode:"Light"}),this.add({color:"spring-green",name:"Spring Green",mode:"Light"}),this.add({color:"azure",name:"Azure",mode:"Light"}),this.add({color:"violet",name:"Violet",mode:"Light"}),this.add({color:"rose",name:"Rose",mode:"Light"}),this.add({color:"red",name:"Red",mode:"Light"}),this.add({color:"blue",name:"Blue",mode:"Dark"})}add(e){this.palettes.push(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Be({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vL="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),Dne="abcdefghijklmnopqrstuvwxyz".split(""),bL=["0","1","2","3","4","5","6","7","8","9","#","%","&"],Sne=["\u2665","\u2661","\u2764","\u{1F499}","\u{1F49A}","\u{1F49B}","\u{1F9E1}","\u{1F49C}","\u2605","\u2606","\u2726","\u2727","\u2B50","\u{1F31F}","\u2192","\u2190","\u2191","\u2193","\u2194","\u2195","\u279C","\u27A4","\u25CF","\u25CB","\u25A0","\u25A1","\u25B2","\u25B3","\u25C6","\u25C7","\u2600","\u{1F319}","\u26A1","\u2601","\u2744","\u{1F525}","\u{1F4A7}","\u{1F33F}","\u266A","\u266B","\u{1F3B5}","\u{1F3B6}","\u2713","\u2717","\u2714","\u2718","\u2699","\u{1F527}","\u{1F4A1}","\u{1F514}"],kne=["\u{1F600}","\u{1F60A}","\u{1F642}","\u{1F60E}","\u{1F914}","\u{1F634}","\u{1F973}","\u{1F607}","\u{1F431}","\u{1F436}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F981}","\u{1F42F}","\u{1F438}","\u{1F34E}","\u{1F355}","\u{1F354}","\u2615","\u{1F37A}","\u{1F382}","\u{1F369}","\u{1F32E}","\u{1F4BB}","\u{1F4F1}","\u{1F4E7}","\u{1F4C1}","\u{1F512}","\u{1F511}","\u{1F4B0}","\u{1F381}","\u26BD","\u{1F3AE}","\u{1F3AF}","\u{1F3A8}","\u{1F3AC}","\u{1F4F8}","\u{1F3A4}","\u{1F3B8}","\u2708","\u{1F697}","\u{1F3E0}","\u{1F3E2}","\u{1F30D}","\u{1F5FA}","\u26F0","\u{1F3DD}"],N3e=[...vL.slice(0,10),...bL.slice(0,10),"\u2665","\u2605","\u2714","\u26A1","\u{1F60A}","\u{1F44D}","\u{1F525}","\u{1F31F}"],L3e=[{label:"Letters",characters:[...vL,...Dne]},{label:"Numbers",characters:bL},{label:"Symbols",characters:Sne},{label:"Emoji",characters:kne}];async function yL(t,i){if(!t)return;let e;try{let o=await fetch(`${t}/wp-json/tsai/v1/site-icon-meta`);if(o.ok){let a=await o.json();a.updated_at&&(e=a.updated_at)}}catch{}let n=`${t}/wp-content/uploads/tsai-icons/${i}.png${e?`?v=${e}`:""}`;document.querySelectorAll("link[rel~='icon']").forEach(o=>o.parentNode?.removeChild(o));let r=document.createElement("link");r.rel="icon",r.type="image/png",r.href=n,document.head.appendChild(r)}var Mne=()=>["/widget"],Tne=()=>["/widgets"],Ine=()=>["/character"],Ane=()=>["/player"],Dv=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=q({type:t,selectors:[["app-home"]],decls:35,vars:8,consts:[[1,"home-container"],[1,"home-content"],[1,"navigation-links"],[1,"nav-link","widget-link",3,"routerLink"],[1,"link-icon"],[1,"link-text"],[1,"link-description"],[1,"nav-link","widgets-link",3,"routerLink"],[1,"nav-link","character-link",3,"routerLink"],[1,"nav-link","player-link",3,"routerLink"]],template:function(e,n){e&1&&(p(0,"div",0)(1,"div",1)(2,"h1"),v(3,"VibeChat Player"),m(),p(4,"p"),v(5,"Lightweight embeddable chatbot component"),m(),p(6,"div",2)(7,"a",3)(8,"mat-icon",4),v(9,"question_answer"),m(),p(10,"span",5),v(11,"Ask Me Anything"),m(),p(12,"span",6),v(13,"Chat with a general-purpose AI assistant"),m()(),p(14,"a",7)(15,"mat-icon",4),v(16,"widgets"),m(),p(17,"span",5),v(18,"Widget Gallery"),m(),p(19,"span",6),v(20,"Browse available widgets"),m()(),p(21,"a",8)(22,"mat-icon",4),v(23,"people"),m(),p(24,"span",5),v(25,"AI Characters"),m(),p(26,"span",6),v(27,"Chat with AI personas"),m()(),p(28,"a",9)(29,"mat-icon",4),v(30,"people"),m(),p(31,"span",5),v(32,"Demo Player"),m(),p(33,"span",6),v(34,"Demo content player"),m()()()()()),e&2&&(u(7),S("routerLink",Bn(4,Mne)),u(7),S("routerLink",Bn(5,Tne)),u(7),S("routerLink",Bn(6,Ine)),u(7),S("routerLink",Bn(7,Ane)))},dependencies:[Ds,dn,cn],styles:[".home-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;padding:20px;background:linear-gradient(135deg,#0a0a0a,#1a1a1a)}.home-content[_ngcontent-%COMP%]{text-align:center;background:#141414f2;padding:40px;border-radius:16px;box-shadow:0 8px 32px #0009,0 0 0 1px #ffffff0d;max-width:900px;width:100%;border:1px solid rgba(255,255,255,.08)}h1[_ngcontent-%COMP%]{color:#fffffff2;margin-bottom:16px;font-size:2.5rem;font-weight:600}p[_ngcontent-%COMP%]{color:#ffffffb3;margin-bottom:32px;font-size:1.1rem;line-height:1.5}.navigation-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%}@media(min-width:640px){.navigation-links[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;gap:20px}}.nav-link[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;background:#1e1e1ee6;color:#ffffffe6;padding:24px 20px;border-radius:12px;text-decoration:none;font-weight:500;transition:all .3s ease;flex:1 1 calc(50% - 10px);min-width:200px;text-align:center;border:1px solid rgba(255,255,255,.1)}.nav-link[_ngcontent-%COMP%]:hover{background:#282828f2;transform:translateY(-2px);box-shadow:0 4px 16px #0006,0 0 0 1px #ffffff26;border-color:#fff3}.nav-link[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:12px;display:block}.nav-link[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:600;margin-bottom:8px;display:block}.nav-link[_ngcontent-%COMP%] .link-description[_ngcontent-%COMP%]{font-size:.9rem;opacity:.9;line-height:1.3;display:block}"],changeDetection:1})};var iu=class t{constructor(i,e){this.route=i;this.widgetsService=e}route;widgetsService;id=null;config=null;playerMessenger;ngOnInit(){this.id=this.route.snapshot.queryParamMap.get("id")||this.route.snapshot.paramMap.get("id")||"de2ebed7-14ba-4586-b5b6-18dd465375f7",console.log("Widget ID:",this.id)}ngAfterViewInit(){this.id?this.loadWidgetConfig():console.error("No widget ID provided in route.")}loadWidgetConfig(){let i=this;this.widgetsService.fetchWidget(this.id).pipe(mt(1)).subscribe({next:e=>{console.log("Widget response:",e);let n=JSON.parse(e.data.attributes.body.value);i.config=n,console.log("Loaded widget config:",this.config),i.config.features.modelSelection=!0,this.config&&this.playerMessenger.setConfig(this.config,!0)},error:e=>{console.log("Error fetching widget:",e)}})}static \u0275fac=function(e){return new(e||t)(Z(Vi),Z(lc))};static \u0275cmp=q({type:t,selectors:[["app-widget"]],viewQuery:function(e,n){if(e&1&&Qe(So,5),e&2){let r;K(r=X())&&(n.playerMessenger=r.first)}},decls:1,vars:0,template:function(e,n){e&1&&U(0,"tsai-player-messenger")},dependencies:[So],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})};function Rne(t,i){if(t&1&&(p(0,"div",1)(1,"div",2)(2,"h2"),v(3),m(),p(4,"p",3),v(5),m()()()),t&2){let e=E();u(3),M(e.character()?.name),u(2),M(e.character()?.description)}}var Sv=class t extends Ev{constructor(){super(),this.setPlayerDefaults(),this.config.endpoint=aa.character,this.config.messageType="Character Chat"}onInit(){super.onInit(),this.loadCharacterFromSlugParam("alfred")}afterViewInit(){super.afterViewInit();let i=this.character();i&&this.messenger&&this.setCharacterInMessenger(i)}onCharacterLoaded(i){super.onCharacterLoaded(i),this.setCharacterConfig(i)}setCharacterConfig(i){this.updateConfig({storageId:`character-${i.slug}`,messageHint:`Chat with ${i.name}...`,instructions:i.description||"You are a helpful assistant.",card:{id:i.slug||"character",title:i.name||"Character",subtitle:"AI Character",description:i.description||"",icon:"person",weight:1,enabled:!0,hidden:!1,dynamic:!0},model:this.getEffectiveModel(i)}),console.log("Using character config:",this.config)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=q({type:t,selectors:[["app-character"]],features:[Ee],decls:3,vars:1,consts:[[1,"character-container"],[1,"character-header"],[1,"character-info"],[1,"character-description"]],template:function(e,n){e&1&&(p(0,"div",0),A(1,Rne,6,2,"div",1),U(2,"tsai-player-messenger"),m()),e&2&&(u(),R(n.character()?1:-1))},dependencies:[So],styles:[".character-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}.character-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(--mat-sys-primary) 0%,var(--mat-sys-tertiary) 100%);color:var(--mat-sys-on-primary);padding:20px;box-shadow:0 2px 8px var(--mat-sys-shadow);flex-shrink:0}.character-info[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.character-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:1.8rem;font-weight:600}.character-info[_ngcontent-%COMP%] .character-description[_ngcontent-%COMP%]{margin:0;font-size:1rem;opacity:.9;line-height:1.4}tsai-player-messenger[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden}",".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})};var xL=()=>["/"],One=t=>["/character",t],Pne=(t,i)=>i.slug;function Fne(t,i){if(t&1&&(p(0,"div",8)(1,"div",9)(2,"span",10),v(3),m()(),p(4,"div",11)(5,"h3"),v(6),m(),p(7,"p",12),v(8),m()()()),t&2){let e=i.$implicit,n=E(2);S("routerLink",tn(4,One,e.slug)),u(3),M(n.getCharacterInitials(e.name)),u(3),M(e.name),u(2),M(e.description)}}function Nne(t,i){if(t&1&&(p(0,"div",4),Je(1,Fne,9,6,"div",8,Pne),m()),t&2){let e=E();u(),et(e.characters())}}function Lne(t,i){t&1&&(p(0,"div",5)(1,"p"),v(2,"Loading characters..."),m()())}function Bne(t,i){t&1&&(p(0,"div",6)(1,"p"),v(2,"No characters available."),m(),p(3,"p",13),v(4,"Check the console for more details."),m(),p(5,"a",14),v(6,"\u2190 Back to Home"),m()()),t&2&&(u(5),S("routerLink",Bn(1,xL)))}function zne(t,i){if(t&1&&(p(0,"div",7)(1,"p")(2,"small"),v(3),m()()()),t&2){let e=E();u(3),oe("",e.characters().length," Character(s)")}}var kv=class t{constructor(i){this.charactersService=i}charactersService;characters=Q([]);loading=Q(!0);ngOnInit(){this.loadCharacters()}loadCharacters(){this.charactersService.fetchModifiedFilteredAndSortedCharacters().pipe(mt(1)).subscribe({next:i=>{console.log("All fetched characters:",i);let e=i.filter(r=>r.enabled),n=e.length>0?e:i;this.characters.set(n),this.loading.set(!1),console.log("Characters to display:",n)},error:i=>{console.log("Error fetching characters:",i),this.loading.set(!1)}})}getCharacterInitials(i){return i?i.split(" ").map(e=>e[0]).join("").toUpperCase().substring(0,2):"?"}static \u0275fac=function(e){return new(e||t)(Z(Ga))};static \u0275cmp=q({type:t,selectors:[["app-character-list"]],decls:13,vars:6,consts:[[1,"character-list-container"],[1,"page-nav"],[1,"nav-back",3,"routerLink"],[1,"character-list-header"],[1,"characters-grid"],[1,"loading"],[1,"no-characters"],[1,"debug-panel"],[1,"character-card",3,"routerLink"],[1,"character-avatar"],[1,"character-icon"],[1,"character-details"],[1,"character-description"],[1,"debug-info"],[1,"back-link",3,"routerLink"]],template:function(e,n){e&1&&(p(0,"div",0)(1,"nav",1)(2,"a",2),v(3,"\u2190 Back to Home"),m()(),p(4,"div",3)(5,"h1"),v(6,"Choose a Character"),m(),p(7,"p"),v(8,"Select an AI character to chat with"),m()(),A(9,Nne,3,0,"div",4),A(10,Lne,3,0,"div",5),A(11,Bne,7,2,"div",6),A(12,zne,4,1,"div",7),m()),e&2&&(u(2),S("routerLink",Bn(5,xL)),u(7),R(n.characters().length>0?9:-1),u(),R(n.loading()?10:-1),u(),R(!n.loading()&&n.characters().length===0?11:-1),u(),R(n.loading()?-1:12))},dependencies:[Ds],styles:[".character-list-container[_ngcontent-%COMP%]{min-height:100vh;background:#0f0f0f;padding:40px 20px}.page-nav[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto 20px}.page-nav[_ngcontent-%COMP%] .nav-back[_ngcontent-%COMP%]{color:#ffffffe6;text-decoration:none;font-weight:500;padding:8px 16px;border:1px solid rgba(255,255,255,.2);border-radius:6px;transition:all .3s ease;display:inline-block;background:#1e1e1ecc}.page-nav[_ngcontent-%COMP%] .nav-back[_ngcontent-%COMP%]:hover{background:#282828e6;border-color:#ffffff4d;box-shadow:0 2px 8px #0000004d}.character-list-header[_ngcontent-%COMP%]{text-align:center;color:#fffffff2;margin-bottom:40px}.character-list-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem;margin-bottom:16px;font-weight:600}.character-list-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;color:#ffffffb3}.characters-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;max-width:1200px;margin:0 auto}.character-card[_ngcontent-%COMP%]{background:#191919f2;border-radius:12px;padding:24px;box-shadow:0 4px 16px #0006;cursor:pointer;transition:all .3s ease;text-decoration:none;color:inherit;display:flex;align-items:flex-start;gap:16px;border:1px solid rgba(255,255,255,.08)}.character-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0009,0 0 0 1px #ffffff26;border-color:#ffffff26;background:#1e1e1efa}.character-avatar[_ngcontent-%COMP%]{flex-shrink:0;width:60px;height:60px;border-radius:50%;background:#2d2d2de6;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.1)}.character-avatar[_ngcontent-%COMP%] .character-icon[_ngcontent-%COMP%]{color:#fffc;font-size:1.2rem;font-weight:600}.character-details[_ngcontent-%COMP%]{flex:1;min-width:0}.character-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:1.3rem;font-weight:600;color:#fffffff2}.character-details[_ngcontent-%COMP%] .character-description[_ngcontent-%COMP%]{margin:0;color:#ffffffa6;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.loading[_ngcontent-%COMP%], .no-characters[_ngcontent-%COMP%]{text-align:center;color:#ffffffe6;padding:40px}.loading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .no-characters[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;margin-bottom:20px}.loading[_ngcontent-%COMP%] .debug-info[_ngcontent-%COMP%], .no-characters[_ngcontent-%COMP%] .debug-info[_ngcontent-%COMP%]{font-size:1rem;color:#fff9}.loading[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%], .no-characters[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%]{color:#ffffffe6;text-decoration:none;font-weight:500;padding:10px 20px;border:1px solid rgba(255,255,255,.2);border-radius:6px;transition:all .3s ease;background:#1e1e1ecc}.loading[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%]:hover, .no-characters[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%]:hover{background:#282828e6;border-color:#ffffff4d}.debug-panel[_ngcontent-%COMP%]{text-align:center;color:#fff9;padding:10px}.debug-panel[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:.8rem}"],changeDetection:1})};var CL=()=>["/"],Vne=t=>["/widgets",t],jne=(t,i)=>i.storageId;function Hne(t,i){if(t&1&&(p(0,"div",8)(1,"div",9)(2,"span",10),v(3),m()(),p(4,"div",11)(5,"h3"),v(6),m(),p(7,"p",12),v(8),m(),p(9,"div",13)(10,"span",14),v(11),m()()()()),t&2){let e=i.$implicit,n=E(2);S("routerLink",tn(5,Vne,e.storageId)),u(3),M(n.getWidgetInitials(e.card?.title||e.messageHint)),u(3),oe(" ",e.card?.title||e.messageHint||"Untitled Widget"," "),u(2),oe(" ",e.card?.description||e.instructions||"No description available"," "),u(3),M(n.getWidgetType(e.endpoint))}}function $ne(t,i){if(t&1&&(p(0,"div",4),Je(1,Hne,12,7,"div",8,jne),m()),t&2){let e=E();u(),et(e.widgets())}}function Une(t,i){t&1&&(p(0,"div",5)(1,"p"),v(2,"Loading widgets..."),m()())}function Wne(t,i){t&1&&(p(0,"div",6)(1,"p"),v(2,"No widgets available."),m(),p(3,"p",15),v(4,"Check the console for more details."),m(),p(5,"a",16),v(6,"\u2190 Back to Home"),m()()),t&2&&(u(5),S("routerLink",Bn(1,CL)))}function Gne(t,i){if(t&1&&(p(0,"div",7)(1,"p")(2,"small"),v(3),m()()()),t&2){let e=E();u(3),oe("",e.widgets().length," Widget(s)")}}var Mv=class t{constructor(i){this.widgetsService=i}widgetsService;widgets=Q([]);loading=Q(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){this.widgetsService.fetchMyWidgets().pipe(mt(1)).subscribe({next:i=>{console.log("Fetched widget data:",i);let e=i.map(n=>{let r=n.config;return r.storageId=n.storageId,r});this.widgets.set(e),this.loading.set(!1),console.log("Widgets to display:",e)},error:i=>{console.log("Error fetching widgets:",i),this.loading.set(!1)}})}getWidgetInitials(i){return i?i.split(" ").map(e=>e[0]).join("").toUpperCase().substring(0,2):"?"}getWidgetType(i){switch(i){case"chat":case"chatAlt":return"Chat";case"character":return"Character";case"dynamicWidget":return"Dynamic";default:return i?i.charAt(0).toUpperCase()+i.slice(1):"Widget"}}static \u0275fac=function(e){return new(e||t)(Z(lc))};static \u0275cmp=q({type:t,selectors:[["app-widget-list"]],decls:13,vars:6,consts:[[1,"widget-list-container"],[1,"page-nav"],[1,"nav-back",3,"routerLink"],[1,"widget-list-header"],[1,"widgets-grid"],[1,"loading"],[1,"no-widgets"],[1,"debug-panel"],[1,"widget-card",3,"routerLink"],[1,"widget-avatar"],[1,"widget-icon"],[1,"widget-details"],[1,"widget-description"],[1,"widget-meta"],[1,"widget-type"],[1,"debug-info"],[1,"back-link",3,"routerLink"]],template:function(e,n){e&1&&(p(0,"div",0)(1,"nav",1)(2,"a",2),v(3,"\u2190 Back to Home"),m()(),p(4,"div",3)(5,"h1"),v(6,"Choose a Widget"),m(),p(7,"p"),v(8,"Select a widget configuration to interact with"),m()(),A(9,$ne,3,0,"div",4),A(10,Une,3,0,"div",5),A(11,Wne,7,2,"div",6),A(12,Gne,4,1,"div",7),m()),e&2&&(u(2),S("routerLink",Bn(5,CL)),u(7),R(n.widgets().length>0?9:-1),u(),R(n.loading()?10:-1),u(),R(!n.loading()&&n.widgets().length===0?11:-1),u(),R(n.loading()?-1:12))},dependencies:[Ds],styles:[".widget-list-container[_ngcontent-%COMP%]{min-height:100vh;background:#0f0f0f;padding:40px 20px}.page-nav[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto 20px}.page-nav[_ngcontent-%COMP%] .nav-back[_ngcontent-%COMP%]{color:#ffffffe6;text-decoration:none;font-weight:500;padding:8px 16px;border:1px solid rgba(255,255,255,.2);border-radius:6px;transition:all .3s ease;display:inline-block;background:#1e1e1ecc}.page-nav[_ngcontent-%COMP%] .nav-back[_ngcontent-%COMP%]:hover{background:#282828e6;border-color:#ffffff4d;box-shadow:0 2px 8px #0000004d}.widget-list-header[_ngcontent-%COMP%]{text-align:center;color:#fffffff2;margin-bottom:40px}.widget-list-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem;margin-bottom:16px;font-weight:600}.widget-list-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;color:#ffffffb3}.widgets-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;max-width:1200px;margin:0 auto}.widget-card[_ngcontent-%COMP%]{background:#191919f2;border-radius:12px;padding:24px;box-shadow:0 4px 16px #0006;cursor:pointer;transition:all .3s ease;text-decoration:none;color:inherit;display:flex;align-items:flex-start;gap:16px;border:1px solid rgba(255,255,255,.08)}.widget-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0009,0 0 0 1px #ffffff26;border-color:#ffffff26;background:#1e1e1efa}.widget-avatar[_ngcontent-%COMP%]{flex-shrink:0;width:60px;height:60px;border-radius:50%;background:#2d2d2de6;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.1)}.widget-avatar[_ngcontent-%COMP%] .widget-icon[_ngcontent-%COMP%]{color:#fffc;font-size:1.2rem;font-weight:600}.widget-details[_ngcontent-%COMP%]{flex:1;min-width:0}.widget-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:1.3rem;font-weight:600;color:#fffffff2}.widget-details[_ngcontent-%COMP%] .widget-description[_ngcontent-%COMP%]{margin:0 0 12px;color:#ffffffa6;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.widget-details[_ngcontent-%COMP%] .widget-meta[_ngcontent-%COMP%] .widget-type[_ngcontent-%COMP%]{background:#282828cc;color:#ffffffb3;padding:4px 8px;border-radius:12px;font-size:.8rem;font-weight:500;border:1px solid rgba(255,255,255,.1)}.loading[_ngcontent-%COMP%], .no-widgets[_ngcontent-%COMP%]{text-align:center;color:#ffffffe6;padding:40px}.loading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .no-widgets[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;margin-bottom:20px}.loading[_ngcontent-%COMP%] .debug-info[_ngcontent-%COMP%], .no-widgets[_ngcontent-%COMP%] .debug-info[_ngcontent-%COMP%]{font-size:1rem;color:#fff9}.loading[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%], .no-widgets[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%]{color:#ffffffe6;text-decoration:none;font-weight:500;padding:10px 20px;border:1px solid rgba(255,255,255,.2);border-radius:6px;transition:all .3s ease;background:#1e1e1ecc}.loading[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%]:hover, .no-widgets[_ngcontent-%COMP%] .back-link[_ngcontent-%COMP%]:hover{background:#282828e6;border-color:#ffffff4d}.debug-panel[_ngcontent-%COMP%]{text-align:center;color:#fff9;padding:10px}.debug-panel[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:.8rem}"],changeDetection:1})};var Tv=class t{config=null;playerMessenger;constructor(){}ngOnInit(){}ngAfterViewInit(){this.config={storageId:"default",endpoint:"chat",messageHint:"Enter your message",message:"",messageType:"Chat Message",instructions:"You are a helpful assistant.",card:{id:"default",title:"Chatbot Player",subtitle:"AI Assistant",description:"Lightweight chat player",icon:"smart_toy",weight:1,enabled:!0,hidden:!1,dynamic:!0},features:{prompt:!0,new:!0,save:!1,clear:!0,share:!1,send:!0,enhance:!1,refresh:!1,copyToClipboard:!0,copyToPrompt:!0,streamedResponses:!0,createImageFromText:!1,autoSend:{enabled:!1,addToViewer:!0,addUserName:!1},prompts:{enabled:!0,imagePrompt:!1},uploadImages:!1,uploadImagesImageSize:!1,downloadImages:!1,saveImagePrompt:!1,useLangChain:!0,useStructuredOutput:!1,modelSelection:!0},model:{provider:tu.CLAUDE,name:"claude-3-5-sonnet-20241022",temperature:.7,maxTokens:4096,stream:!0}},console.log("player config:",this.config),this.playerMessenger.setConfig(this.config,!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=q({type:t,selectors:[["app-player"]],viewQuery:function(e,n){if(e&1&&Qe(So,5),e&2){let r;K(r=X())&&(n.playerMessenger=r.first)}},decls:1,vars:0,template:function(e,n){e&1&&U(0,"tsai-player-messenger")},dependencies:[So],styles:["[_ngcontent-%COMP%]:root{--player-messenger-bg: rgba(20, 20, 20, .95);--player-messenger-border: rgba(255, 255, 255, .08);--player-messenger-border-hover: rgba(255, 255, 255, .15);--player-text-primary: rgba(255, 255, 255, .95);--player-text-secondary: rgba(255, 255, 255, .7);--player-surface: rgba(25, 25, 25, .95);--player-surface-hover: rgba(40, 40, 40, .95);--player-gradient-start: #0a0a0a;--player-gradient-end: #1a1a1a;--player-card-bg: rgba(30, 30, 30, .9);--player-shadow: 0 8px 32px rgba(0, 0, 0, .6);--player-shadow-hover: 0 4px 16px rgba(0, 0, 0, .4)}.messenger[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(--player-gradient-start) 0%,var(--player-gradient-end) 100%);color:var(--player-text-primary);min-height:100vh}.messenger[_ngcontent-%COMP%] .messenger-container[_ngcontent-%COMP%]{background:transparent}tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{background:var(--player-messenger-bg);border:1px solid var(--player-messenger-border);box-shadow:var(--player-shadow);margin-bottom:20px}tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{color:var(--player-text-primary)}tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited, tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{color:var(--player-text-primary)}tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff}tsai-page-header[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .breadcrumbs[_ngcontent-%COMP%]{color:var(--player-text-secondary)}tsai-character-header[_ngcontent-%COMP%] .character-header[_ngcontent-%COMP%]{background:var(--player-surface);border:1px solid var(--player-messenger-border);border-radius:12px;padding:16px;margin-bottom:20px;box-shadow:var(--player-shadow);color:var(--player-text-primary)}tsai-character-header[_ngcontent-%COMP%] .character-header[_ngcontent-%COMP%] .name-container[_ngcontent-%COMP%]{color:var(--player-text-primary)}tsai-viewer[_ngcontent-%COMP%] .msg-count[_ngcontent-%COMP%]{color:var(--player-text-secondary)}tsai-viewer[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{background:var(--player-surface);border:1px solid var(--player-messenger-border);border-radius:12px;margin-bottom:16px;box-shadow:0 2px 8px #0000004d}tsai-viewer[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]:hover{border-color:var(--player-messenger-border-hover)}tsai-viewer[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .message-body[_ngcontent-%COMP%]{color:var(--player-text-primary)}tsai-viewer[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .text-tool[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--player-card-bg);border:1px solid var(--player-messenger-border);color:var(--player-text-primary)}tsai-viewer[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .text-tool[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--player-surface-hover);border-color:var(--player-messenger-border-hover)}tsai-viewer[_ngcontent-%COMP%] .human-message[_ngcontent-%COMP%] .user-label[_ngcontent-%COMP%]{color:var(--player-text-primary);font-weight:600}tsai-viewer[_ngcontent-%COMP%] .ai-message[_ngcontent-%COMP%] .user-label[_ngcontent-%COMP%]{color:var(--player-text-primary);font-weight:600}tsai-viewer[_ngcontent-%COMP%] .no-image[_ngcontent-%COMP%]{color:var(--player-text-secondary)}tsai-prompter[_ngcontent-%COMP%] .prompter-container[_ngcontent-%COMP%]{background:var(--player-surface);border:1px solid var(--player-messenger-border);border-radius:12px;padding:16px;box-shadow:var(--player-shadow)}tsai-prompter[_ngcontent-%COMP%] .custom-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--player-card-bg);border:1px solid var(--player-messenger-border);color:var(--player-text-primary);transition:all .3s ease}tsai-prompter[_ngcontent-%COMP%] .custom-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--player-surface-hover);border-color:var(--player-messenger-border-hover);transform:translateY(-2px);box-shadow:var(--player-shadow-hover)}tsai-prompter[_ngcontent-%COMP%] .custom-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.5}tsai-prompter[_ngcontent-%COMP%] .prompter-input-wrapper[_ngcontent-%COMP%] .prompter-input[_ngcontent-%COMP%]{background:var(--player-card-bg);border:1px solid var(--player-messenger-border);border-radius:8px;color:var(--player-text-primary)}tsai-prompter[_ngcontent-%COMP%] .prompter-input-wrapper[_ngcontent-%COMP%] .prompter-input[_ngcontent-%COMP%]:focus{border-color:var(--player-messenger-border-hover)}tsai-prompter[_ngcontent-%COMP%] .prompter-input-wrapper[_ngcontent-%COMP%] .model-selector[_ngcontent-%COMP%]{background:var(--player-card-bg);border:1px solid var(--player-messenger-border);border-radius:8px;color:var(--player-text-primary)}.jump-to-bottom[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--player-card-bg);border:1px solid var(--player-messenger-border);box-shadow:var(--player-shadow)}.jump-to-bottom[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--player-surface-hover);border-color:var(--player-messenger-border-hover)}.spinner-container[_ngcontent-%COMP%]{color:var(--player-text-primary)} .mat-mdc-form-field .mat-mdc-text-field-wrapper{background:var(--player-card-bg)} .mat-mdc-form-field .mat-mdc-form-field-focus-overlay{background-color:transparent} .mat-mdc-form-field .mdc-text-field--filled{background-color:var(--player-card-bg)} .mat-mdc-form-field input, .mat-mdc-form-field textarea{color:var(--player-text-primary)} .mat-mdc-form-field .mat-mdc-form-field-label{color:var(--player-text-secondary)} .mat-mdc-select .mat-mdc-select-value{color:var(--player-text-primary)} .mat-mdc-select .mat-mdc-select-arrow{color:var(--player-text-secondary)}"],changeDetection:1})};var Iv={production:!0,name:"production",apiUrl:"https://api.turmansolutions.ai/api/v1"};function qne(t,i){if(t&1){let e=be();p(0,"p"),v(1,"Great work! Enter a name to claim your spot on the leaderboard."),m(),p(2,"mat-form-field",6)(3,"mat-label"),v(4,"Your name"),m(),p(5,"input",7),Bi("ngModelChange",function(r){ae(e);let o=E();return nr(o.name,r)||(o.name=r),se(r)}),N("keyup.enter",function(){ae(e);let r=E();return se(r.submitAnon())}),m(),Se(),m()}if(t&2){let e=E();u(5),Li("ngModel",e.name),ke()}}function Qne(t,i){t&1&&(p(0,"div",2),U(1,"mat-spinner",8),m())}function Zne(t,i){if(t&1&&(p(0,"p"),v(1,"Your total: "),p(2,"strong"),v(3),m(),v(4,"."),m()),t&2){let e=E(2);u(3),oe("",e.total()," points")}}function Yne(t,i){t&1&&(p(0,"p"),v(1,"(You'd already completed this quiz, so no new points this time.)"),m())}function Kne(t,i){if(t&1&&(p(0,"p"),v(1,"You earned "),p(2,"strong"),v(3),m(),v(4,"!"),m(),A(5,Zne,5,1,"p"),A(6,Yne,2,0,"p")),t&2){let e=E();u(3),oe("",e.points()," points"),u(2),R(e.total()!==null?5:-1),u(),R(e.awarded()?-1:6)}}function Xne(t,i){t&1&&(p(0,"p"),v(1,"Congratulations on passing the quiz!"),m(),p(2,"p"),v(3,"We couldn't record your score right now \u2014 please try again later."),m())}function Jne(t,i){if(t&1){let e=be();p(0,"button",9),N("click",function(){ae(e);let r=E();return se(r.dialogRef.close())}),v(1,"Cancel"),m(),p(2,"button",10),N("click",function(){ae(e);let r=E();return se(r.submitAnon())}),v(3," Save "),m()}if(t&2){let e=E();u(2),S("disabled",!e.name.trim())}}function eie(t,i){if(t&1){let e=be();p(0,"button",11),N("click",function(){ae(e);let r=E();return se(r.dialogRef.close())}),v(1,"Awesome!"),m()}}function tie(t,i){if(t&1){let e=be();p(0,"button",9),N("click",function(){ae(e);let r=E();return se(r.dialogRef.close())}),v(1,"Close"),m()}}var Av=class t{constructor(i,e){this.dialogRef=i;this.data=e;e.mode==="user"?this.submit({uid:e.uid,uname:e.uname,sig:e.sig,difficulty:e.difficulty}):this.phase.set("name")}dialogRef;data;http=g(oi);phase=Q("loading");points=Q(0);total=Q(null);awarded=Q(!0);name="";submitAnon(){let i=this.name.trim();i&&this.submit({name:i,anon_id:this.data.anonId,difficulty:this.data.difficulty})}submit(i){this.phase.set("loading");let e=`${this.data.wpHost}/wp-json/tsai/v1/quiz/score/${this.data.postId}`;this.http.post(e,i).subscribe({next:n=>{this.awarded.set(!!n.awarded),this.points.set(n.points??0),this.total.set(n.total_points??null),this.phase.set("done");try{window.parent?.postMessage({type:"tsai-quiz-score-recorded",postId:Number(this.data.postId)},"*")}catch{}},error:n=>{console.error("quiz score submit failed",n),this.phase.set("error")}})}static \u0275fac=function(e){return new(e||t)(Z(En),Z(Un))};static \u0275cmp=q({type:t,selectors:[["app-quiz-result-dialog"]],decls:11,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[2,"display","flex","justify-content","center","padding","16px"],["mat-dialog-actions","","align","end"],["mat-flat-button","","color","primary"],["mat-button",""],["appearance","outline",2,"width","100%"],["matInput","","maxlength","60","autocomplete","off",3,"ngModelChange","keyup.enter","ngModel"],["diameter","36"],["mat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,n){if(e&1&&(p(0,"h1",0),v(1,"\u{1F389} You passed!"),m(),p(2,"div",1),A(3,qne,6,1)(4,Qne,2,0,"div",2)(5,Kne,7,3)(6,Xne,4,0),m(),p(7,"div",3),A(8,Jne,4,1)(9,eie,2,0,"button",4)(10,tie,2,0,"button",5),m()),e&2){let r,o;u(3),R((r=n.phase())==="name"?3:r==="loading"?4:r==="done"?5:r==="error"?6:-1),u(5),R((o=n.phase())==="name"?8:o==="done"?9:o==="error"?10:-1)}},dependencies:[Mn,fi,Si,gi,Pt,nn,Vn,Wn,ni,ii,Gi,ki,na,cr,Ei,lr,Cw,Fa],encapsulation:2,changeDetection:1})};function nie(t,i){if(t&1&&(p(0,"h2"),v(1),m()),t&2){let e=E();u(),oe("Quiz: ",e.articleTitle())}}function iie(t,i){t&1&&(p(0,"h2"),v(1,"Quiz"),m())}function rie(t,i){if(t&1&&(p(0,"div",3),v(1),m()),t&2){let e=E();u(),M(e.error())}}function oie(t,i){if(t&1){let e=be();p(0,"div",4)(1,"p",6),v(2,"Choose your challenge:"),m(),p(3,"div",7)(4,"button",8),N("click",function(){ae(e);let r=E();return se(r.startWithDifficulty("easy"))}),p(5,"span",9),v(6,"Easy"),m(),p(7,"span",10),v(8,"3 questions \xB7 hints allowed \xB7 100 points"),m()(),p(9,"button",11),N("click",function(){ae(e);let r=E();return se(r.startWithDifficulty("advanced"))}),p(10,"span",9),v(11,"Advanced"),m(),p(12,"span",10),v(13,"5 questions \xB7 no hints \xB7 250 points"),m()()()()}}var wL="tsai-quiz-anon-id",Rv=class t extends Ev{http=g(oi);siteService=g(qn);navService=g(Gh);dialog=g(qr);articleTitle=Q("");showDifficulty=Q(!1);difficulty="easy";articleBody="";messengerReady=Q(!1);recordedPass=!1;constructor(){super(),this.navService.hideNavigation.set(!0),this.setPlayerDefaults(),this.config.endpoint=aa.chat,this.config.messageType="Article Quiz",this.config.features.share=!1,this.config.features.modelSelection=!1,this.config.features.quizMode=!0,this.config.features.autoSend.enabled=!1,xi(()=>{if(!this.messengerReady())return;this.messenger?.quizStatus?.()==="passed"&&!this.recordedPass&&(this.recordedPass=!0,this.recordPass())})}recordPass(){let i=this.siteService.site(),e=this.getRouteParam("postId");if(!i||!e)return;let n=(i.wpHost||"").replace(/\/$/,"");try{window.parent?.postMessage({type:"tsai-quiz-passed",postId:Number(e)},"*")}catch{}let r=this.getRouteParam("logged_in")==="1",o=this.getRouteParam("uid"),a=this.getRouteParam("sig"),s;r&&o&&a?s={mode:"user",wpHost:n,postId:e,difficulty:this.difficulty,uid:o,uname:this.getRouteParam("uname")??void 0,sig:a}:s={mode:"anon",wpHost:n,postId:e,difficulty:this.difficulty,anonId:this.getOrCreateAnonId()},this.dialog.open(Av,{width:"420px",disableClose:!0,data:s})}getOrCreateAnonId(){let i="";try{i=localStorage.getItem(wL)||"",i||(i=crypto?.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,localStorage.setItem(wL,i))}catch{i=`${Date.now()}-${Math.random().toString(36).slice(2)}`}return i}onInit(){super.onInit(),this.startQuiz()}startQuiz(){let i=this.getRouteParam("postId");if(!i){this.setError("Missing post id.");return}let e=this.siteService.site();if(!e){this.setError("Site configuration not loaded.");return}this.setLoading(!0);let r=`${(e.wpHost||"").replace(/\/$/,"")}/wp-json/wp/v2/posts/${encodeURIComponent(i)}`;this.http.get(r).subscribe({next:o=>{let a=(o?.title?.rendered||"").toString(),s=(o?.content?.rendered||"").toString();this.articleBody=aie(s),this.articleTitle.set(sie(a)),this.setLoading(!1),this.showDifficulty.set(!0)},error:o=>{console.error("Failed to fetch article",o),this.setError("Could not load the article."),this.setLoading(!1)}})}startWithDifficulty(i){this.difficulty=i,this.showDifficulty.set(!1);let e=this.getRouteParam("postId"),n=this.getRouteParam("character","scike")||"scike",r=this.siteService.site();if(!e||!r){this.setError("Could not start the quiz.");return}this.setLoading(!0);let o=`${Iv.apiUrl}/quiz/init`;this.http.post(o,{post_id:Number(e),site_slug:r.slug,character_slug:n,title:this.articleTitle(),body:this.articleBody,difficulty:i}).subscribe({next:a=>{this.character.set(a.character),this.setLoading(!1),this.setMessenger(),this.messengerReady.set(!0),this.applyQuizConfig(a),this.setCharacterInMessenger(a.character)},error:a=>{console.error("quiz/init failed",a),this.setError("Could not start the quiz."),this.setLoading(!1)}})}applyQuizConfig(i){let e=i.character,r=(this.getRouteParam("uname")??"").trim().split(/\s+/)[0]||"";this.updateConfig({storageId:`quiz-${this.siteService.site()?.slug||"site"}-${this.getRouteParam("postId")||"0"}`,messageHint:"Type your answer...",message:"",instructions:i.instructions,model:this.getEffectiveModel(e),features:Xe(G({},this.config.features),{autoSend:{enabled:!0,addToViewer:!1,addUserName:!0,userName:r,intro:"Please greet me and ask question 1."}}),card:{id:e.slug||"quiz",title:e.name||"Quiz",subtitle:"Article Quiz",description:e.description||"",icon:"quiz",weight:1,enabled:!0,hidden:!1,dynamic:!0}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=q({type:t,selectors:[["app-quiz"]],features:[Ee],decls:8,vars:6,consts:[[1,"quiz-container"],[1,"quiz-header"],[1,"quiz-info"],[1,"quiz-error"],[1,"quiz-difficulty"],[3,"showCharacterHeader"],[1,"quiz-difficulty__prompt"],[1,"quiz-difficulty__buttons"],["type","button",1,"quiz-difficulty__btn","quiz-difficulty__btn--easy",3,"click"],[1,"quiz-difficulty__label"],[1,"quiz-difficulty__meta"],["type","button",1,"quiz-difficulty__btn","quiz-difficulty__btn--advanced",3,"click"]],template:function(e,n){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),A(3,nie,2,1,"h2")(4,iie,2,0,"h2"),m()(),A(5,rie,2,1,"div",3),A(6,oie,14,0,"div",4),U(7,"tsai-player-messenger",5),m()),e&2&&(u(3),R(n.articleTitle()?3:4),u(2),R(n.error()?5:-1),u(),R(n.showDifficulty()?6:-1),u(),In("display",n.showDifficulty()?"none":""),S("showCharacterHeader",!1))},dependencies:[So],styles:[".quiz-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,var(--mat-sys-primary) 0%,var(--mat-sys-tertiary) 100%);color:var(--mat-sys-on-primary);padding:12px 20px;box-shadow:0 2px 8px var(--mat-sys-shadow);flex-shrink:0;position:sticky;top:0;z-index:10}.quiz-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.2rem;font-weight:600}.quiz-error[_ngcontent-%COMP%]{color:var(--mat-sys-error, #b00020);padding:12px 20px;font-size:.95rem}tsai-player-messenger[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-difficulty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px;padding:32px 20px}.quiz-difficulty__prompt[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:var(--mat-sys-on-surface)}.quiz-difficulty__buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;width:100%}.quiz-difficulty__btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:200px;flex:1 1 200px;max-width:280px;padding:20px 24px;border:2px solid transparent;border-radius:14px;cursor:pointer;color:var(--mat-sys-on-primary);background:linear-gradient(135deg,var(--mat-sys-primary) 0%,var(--mat-sys-tertiary) 100%);box-shadow:0 2px 8px var(--mat-sys-shadow);transition:transform .15s ease,box-shadow .15s ease}.quiz-difficulty__btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 16px var(--mat-sys-shadow)}.quiz-difficulty__btn[_ngcontent-%COMP%]:active{transform:translateY(0)}.quiz-difficulty__btn--advanced[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(--mat-sys-tertiary) 0%,var(--mat-sys-error, #b00020) 100%)}.quiz-difficulty__label[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700}.quiz-difficulty__meta[_ngcontent-%COMP%]{font-size:.85rem;opacity:.9}@media(max-width:600px){.quiz-header[_ngcontent-%COMP%], .quiz-error[_ngcontent-%COMP%]{padding-left:12px;padding-right:12px}.quiz-difficulty[_ngcontent-%COMP%]{padding:24px 12px;align-items:stretch}.quiz-difficulty__buttons[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start}.quiz-difficulty__btn[_ngcontent-%COMP%]{min-width:0;max-width:none;flex:1 1 auto}}",".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}.messenger-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.prompter-container[_ngcontent-%COMP%]{margin:12px 0;padding:14px 16px;border-radius:16px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);box-shadow:0 2px 8px color-mix(in srgb,var(--mat-sys-shadow) 25%,transparent)}"],changeDetection:1})};function aie(t){if(!t)return"";let i=document.createElement("div");return i.innerHTML=t,(i.textContent||i.innerText||"").trim()}function sie(t){if(!t)return"";let i=document.createElement("textarea");return i.innerHTML=t,i.value}var EL=()=>!g(Gh).hideNavigation();var DL=[{path:"",component:Dv},{path:"player",component:Tv},{path:"widget",component:iu},{path:"widget/:id",component:iu},{path:"widgets",component:Mv},{path:"widgets/:id",component:iu},{path:"character",component:kv},{path:"character/:slug",component:Sv},{path:"quiz/:postId",component:Rv,canDeactivate:[EL]},{path:"**",component:gL}];var lie=()=>{let t=g(qn),i=g(sc),e=g(lS);return new Promise(n=>{t.fetchSite(Iv.apiUrl).subscribe(r=>{let o={appId:"player",cbHost:r.cb_host,apiHost:r.api_host,wpHost:r.wp_host,wpDir:r.wp_dir,drupalHost:r.drupal_host,drupalApi:r.drupal_api,drupalUid:r.drupal_uid,slug:r.slug};t.site.set(o),console.log("Player site config:",t.site()),yL(o.wpHost,"player"),i.doServiceLogin().subscribe({next:a=>{let s=a?.wp_token;if(!s){console.warn("service-login returned no token"),n(!0);return}let l={wpToken:s.token,name:s.user_display_name,email:s.user_email,nicename:s.user_nicename};i.user.set(l);let c=1440*365;e.set("user",JSON.stringify(l),c),n(!0)},error:a=>{console.warn("service-login failed:",a),n(!0)}})})})},SL={providers:[oy(),lC(),F1(DL),MO(),i1(o1(),r1()),Qc(()=>lie())]};var Ov=class t{copyTxt=$localize`Copyright`;copyTxt2=$localize`All Rights Reserved`;paletteService=g(_L);ngOnInit(){this.paletteService.activate(this.paletteService.palettes[8])}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=q({type:t,selectors:[["player-root"]],decls:4,vars:0,consts:[[1,"content"],[1,"content-outer"],[1,"content-inner"]],template:function(e,n){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),U(3,"router-outlet"),m()()())},dependencies:[jm],styles:[".content[_ngcontent-%COMP%] .content-outer[_ngcontent-%COMP%]{text-align:center}.content[_ngcontent-%COMP%] .content-outer[_ngcontent-%COMP%] .content-inner[_ngcontent-%COMP%]{margin:0 auto;max-width:var(--player-content-max-width);text-align:left}.content[_ngcontent-%COMP%] .content-outer[_ngcontent-%COMP%] .content-inner[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{padding:10px;margin:10px 0;font-size:small;background-color:#191919f2;color:#ffffffb3;border:1px solid rgba(255,255,255,.08);border-radius:8px}"],changeDetection:1})};ZC(Ov,SL).catch(t=>console.error(t));