• File: main-DOXDL45R.js
  • Full Path: /var/www/e-registo/main-DOXDL45R.js
  • Date Modified: 03/31/2025 2:44 AM
  • File size: 1.57 MB
  • MIME-type: text/plain
  • Charset: utf-8
var C3=Object.create;var _m=Object.defineProperty,S3=Object.defineProperties,E3=Object.getOwnPropertyDescriptor,T3=Object.getOwnPropertyDescriptors,I3=Object.getOwnPropertyNames,Ud=Object.getOwnPropertySymbols,D3=Object.getPrototypeOf,ym=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable;var Fb=(t,n,e)=>n in t?_m(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,xe=(t,n)=>{for(var e in n||={})ym.call(n,e)&&Fb(t,e,n[e]);if(Ud)for(var e of Ud(n))Pb.call(n,e)&&Fb(t,e,n[e]);return t},ft=(t,n)=>S3(t,T3(n));var Ob=(t,n)=>{var e={};for(var i in t)ym.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&Ud)for(var i of Ud(t))n.indexOf(i)<0&&Pb.call(t,i)&&(e[i]=t[i]);return e};var k3=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var M3=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of I3(n))!ym.call(t,r)&&r!==e&&_m(t,r,{get:()=>n[r],enumerable:!(i=E3(n,r))||i.enumerable});return t};var A3=(t,n,e)=>(e=t!=null?C3(D3(t)):{},M3(n||!t||!t.__esModule?_m(e,"default",{value:t,enumerable:!0}):e,t));var xm=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{a(e.next(l))}catch(c){r(c)}},o=l=>{try{a(e.throw(l))}catch(c){r(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);a((e=e.apply(t,n)).next())});var r3=k3((exports,module)=>{"use strict";typeof navigator<"u"&&function(t,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=n())}(exports,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(n){_useWebWorker=!!n},getWebWorker=function(){return _useWebWorker},setLocationHref=function(n){locationHref=n},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,n){var e,i=t.length,r;for(e=0;e<i;e+=1){r=t[e].prototype;for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n.prototype[s]=r[s])}}function getDescriptor(t,n){return Object.getOwnPropertyDescriptor(t,n)}function createProxyFunction(t){function n(){}return n.prototype=t,n}var audioControllerFactory=function(){function t(n){this.audios=[],this.audioFactory=n,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].pause()},resume:function(){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].resume()},setRate:function(e){var i,r=this.audios.length;for(i=0;i<r;i+=1)this.audios[i].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(e,i){var r=0,s=[],o;switch(e){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(r=0;r<i;r+=1)s.push(o);return s}function n(e,i){return e==="float32"?new Float32Array(i):e==="int16"?new Int16Array(i):e==="uint8c"?new Uint8ClampedArray(i):t(e,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?n:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(e){return typeof e}:_typeof$6=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n,e=t.length;for(n=0;n<e;n+=1)BMMath[t[n]]=Math[t[n]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(t){var n=_typeof$6(t);if(n==="object"&&t.length){var e=createSizedArray(t.length),i,r=t.length;for(i=0;i<r;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,n,e,i){this.type=t,this.currentTime=n,this.totalTime=e,this.direction=i<0?-1:1}function BMCompleteEvent(t,n){this.type=t,this.direction=n<0?-1:1}function BMCompleteLoopEvent(t,n,e,i){this.type=t,this.currentLoop=e,this.totalLoops=n,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,n,e){this.type=t,this.firstFrame=n,this.totalFrames=e}function BMDestroyEvent(t,n){this.type=t,this.target=n}function BMRenderFrameErrorEvent(t,n){this.type="renderFrameError",this.nativeError=t,this.currentTime=n}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,n){this.type=t,this.nativeError=n}var createElementID=function(){var t=0;return function(){return t+=1,idPrefix$1+"__lottie_element_"+t}}();function HSVtoRGB(t,n,e){var i,r,s,o,a,l,c,u;switch(o=Math.floor(t*6),a=t*6-o,l=e*(1-n),c=e*(1-a*n),u=e*(1-(1-a)*n),o%6){case 0:i=e,r=u,s=l;break;case 1:i=c,r=e,s=l;break;case 2:i=l,r=e,s=u;break;case 3:i=l,r=c,s=e;break;case 4:i=u,r=l,s=e;break;case 5:i=e,r=l,s=c;break;default:break}return[i,r,s]}function RGBtoHSV(t,n,e){var i=Math.max(t,n,e),r=Math.min(t,n,e),s=i-r,o,a=i===0?0:s/i,l=i/255;switch(i){case r:o=0;break;case t:o=n-e+s*(n<e?6:0),o/=6*s;break;case n:o=e-t+s*2,o/=6*s;break;case e:o=t-n+s*4,o/=6*s;break;default:break}return[o,a,l]}function addSaturationToRGB(t,n){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return e[1]+=n,e[1]>1?e[1]=1:e[1]<=0&&(e[1]=0),HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(t,n){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return e[2]+=n,e[2]>1?e[2]=1:e[2]<0&&(e[2]=0),HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(t,n){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return e[0]+=n/360,e[0]>1?e[0]-=1:e[0]<0&&(e[0]+=1),HSVtoRGB(e[0],e[1],e[2])}var rgbToHex=function(){var t=[],n,e;for(n=0;n<256;n+=1)e=n.toString(16),t[n]=e.length===1?"0"+e:e;return function(i,r,s){return i<0&&(i=0),r<0&&(r=0),s<0&&(s=0),"#"+t[i]+t[r]+t[s]}}(),setSubframeEnabled=function(n){subframeEnabled=!!n},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(n){expressionsPlugin=n},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(n){expressionsInterfaces=n},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(n){defaultCurveSegments=n},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(n){idPrefix$1=n},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=function(){var t=1,n=[],e,i,r={onmessage:function(){},postMessage:function(h){e({data:h})}},s={postMessage:function(h){r.onmessage({data:h})}};function o(f){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(h);return new Worker(m)}return e=f,r}function a(){i||(i=o(function(h){function m(){function g(te,M){var R,S,D=te.length,Q,X,V,ie;for(S=0;S<D;S+=1)if(R=te[S],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var H=R.masksProperties;for(X=H.length,Q=0;Q<X;Q+=1)if(H[Q].pt.k.i)w(H[Q].pt.k);else for(ie=H[Q].pt.k.length,V=0;V<ie;V+=1)H[Q].pt.k[V].s&&w(H[Q].pt.k[V].s[0]),H[Q].pt.k[V].e&&w(H[Q].pt.k[V].e[0])}R.ty===0?(R.layers=y(R.refId,M),g(R.layers,M)):R.ty===4?x(R.shapes):R.ty===5&&le(R)}}function v(te,M){if(te){var R=0,S=te.length;for(R=0;R<S;R+=1)te[R].t===1&&(te[R].data.layers=y(te[R].data.refId,M),g(te[R].data.layers,M))}}function _(te,M){for(var R=0,S=M.length;R<S;){if(M[R].id===te)return M[R];R+=1}return null}function y(te,M){var R=_(te,M);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function x(te){var M,R=te.length,S,D;for(M=R-1;M>=0;M-=1)if(te[M].ty==="sh")if(te[M].ks.k.i)w(te[M].ks.k);else for(D=te[M].ks.k.length,S=0;S<D;S+=1)te[M].ks.k[S].s&&w(te[M].ks.k[S].s[0]),te[M].ks.k[S].e&&w(te[M].ks.k[S].e[0]);else te[M].ty==="gr"&&x(te[M].it)}function w(te){var M,R=te.i.length;for(M=0;M<R;M+=1)te.i[M][0]+=te.v[M][0],te.i[M][1]+=te.v[M][1],te.o[M][0]+=te.v[M][0],te.o[M][1]+=te.v[M][1]}function T(te,M){var R=M?M.split("."):[100,100,100];return te[0]>R[0]?!0:R[0]>te[0]?!1:te[1]>R[1]?!0:R[1]>te[1]?!1:te[2]>R[2]?!0:R[2]>te[2]?!1:null}var E=function(){var te=[4,4,14];function M(S){var D=S.t.d;S.t.d={k:[{s:D,t:0}]}}function R(S){var D,Q=S.length;for(D=0;D<Q;D+=1)S[D].ty===5&&M(S[D])}return function(S){if(T(te,S.v)&&(R(S.layers),S.assets)){var D,Q=S.assets.length;for(D=0;D<Q;D+=1)S.assets[D].layers&&R(S.assets[D].layers)}}}(),k=function(){var te=[4,7,99];return function(M){if(M.chars&&!T(te,M.v)){var R,S=M.chars.length;for(R=0;R<S;R+=1){var D=M.chars[R];D.data&&D.data.shapes&&(x(D.data.shapes),D.data.ip=0,D.data.op=99999,D.data.st=0,D.data.sr=1,D.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},M.chars[R].t||(D.data.shapes.push({ty:"no"}),D.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),F=function(){var te=[5,7,15];function M(S){var D=S.t.p;typeof D.a=="number"&&(D.a={a:0,k:D.a}),typeof D.p=="number"&&(D.p={a:0,k:D.p}),typeof D.r=="number"&&(D.r={a:0,k:D.r})}function R(S){var D,Q=S.length;for(D=0;D<Q;D+=1)S[D].ty===5&&M(S[D])}return function(S){if(T(te,S.v)&&(R(S.layers),S.assets)){var D,Q=S.assets.length;for(D=0;D<Q;D+=1)S.assets[D].layers&&R(S.assets[D].layers)}}}(),G=function(){var te=[4,1,9];function M(S){var D,Q=S.length,X,V;for(D=0;D<Q;D+=1)if(S[D].ty==="gr")M(S[D].it);else if(S[D].ty==="fl"||S[D].ty==="st")if(S[D].c.k&&S[D].c.k[0].i)for(V=S[D].c.k.length,X=0;X<V;X+=1)S[D].c.k[X].s&&(S[D].c.k[X].s[0]/=255,S[D].c.k[X].s[1]/=255,S[D].c.k[X].s[2]/=255,S[D].c.k[X].s[3]/=255),S[D].c.k[X].e&&(S[D].c.k[X].e[0]/=255,S[D].c.k[X].e[1]/=255,S[D].c.k[X].e[2]/=255,S[D].c.k[X].e[3]/=255);else S[D].c.k[0]/=255,S[D].c.k[1]/=255,S[D].c.k[2]/=255,S[D].c.k[3]/=255}function R(S){var D,Q=S.length;for(D=0;D<Q;D+=1)S[D].ty===4&&M(S[D].shapes)}return function(S){if(T(te,S.v)&&(R(S.layers),S.assets)){var D,Q=S.assets.length;for(D=0;D<Q;D+=1)S.assets[D].layers&&R(S.assets[D].layers)}}}(),Y=function(){var te=[4,4,18];function M(S){var D,Q=S.length,X,V;for(D=Q-1;D>=0;D-=1)if(S[D].ty==="sh")if(S[D].ks.k.i)S[D].ks.k.c=S[D].closed;else for(V=S[D].ks.k.length,X=0;X<V;X+=1)S[D].ks.k[X].s&&(S[D].ks.k[X].s[0].c=S[D].closed),S[D].ks.k[X].e&&(S[D].ks.k[X].e[0].c=S[D].closed);else S[D].ty==="gr"&&M(S[D].it)}function R(S){var D,Q,X=S.length,V,ie,H,K;for(Q=0;Q<X;Q+=1){if(D=S[Q],D.hasMask){var de=D.masksProperties;for(ie=de.length,V=0;V<ie;V+=1)if(de[V].pt.k.i)de[V].pt.k.c=de[V].cl;else for(K=de[V].pt.k.length,H=0;H<K;H+=1)de[V].pt.k[H].s&&(de[V].pt.k[H].s[0].c=de[V].cl),de[V].pt.k[H].e&&(de[V].pt.k[H].e[0].c=de[V].cl)}D.ty===4&&M(D.shapes)}}return function(S){if(T(te,S.v)&&(R(S.layers),S.assets)){var D,Q=S.assets.length;for(D=0;D<Q;D+=1)S.assets[D].layers&&R(S.assets[D].layers)}}}();function W(te){te.__complete||(G(te),E(te),k(te),F(te),Y(te),g(te.layers,te.assets),v(te.chars,te.assets),te.__complete=!0)}function le(te){te.t.a.length===0&&"m"in te.t.p}var ge={};return ge.completeData=W,ge.checkColors=G,ge.checkChars=k,ge.checkPathProperties=F,ge.checkShapes=Y,ge.completeLayers=g,ge}if(s.dataManager||(s.dataManager=m()),s.assetLoader||(s.assetLoader=function(){function g(_){var y=_.getResponseHeader("content-type");return y&&_.responseType==="json"&&y.indexOf("json")!==-1||_.response&&_typeof$5(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function v(_,y,x,w){var T,E=new XMLHttpRequest;try{E.responseType="json"}catch{}E.onreadystatechange=function(){if(E.readyState===4)if(E.status===200)T=g(E),x(T);else try{T=g(E),x(T)}catch(k){w&&w(k)}};try{E.open(["G","E","T"].join(""),_,!0)}catch{E.open(["G","E","T"].join(""),y+"/"+_,!0)}E.send()}return{load:v}}()),h.data.type==="loadAnimation")s.assetLoader.load(h.data.path,h.data.fullPath,function(g){s.dataManager.completeData(g),s.postMessage({id:h.data.id,payload:g,status:"success"})},function(){s.postMessage({id:h.data.id,status:"error"})});else if(h.data.type==="complete"){var p=h.data.animation;s.dataManager.completeData(p),s.postMessage({id:h.data.id,payload:p,status:"success"})}else h.data.type==="loadData"&&s.assetLoader.load(h.data.path,h.data.fullPath,function(g){s.postMessage({id:h.data.id,payload:g,status:"success"})},function(){s.postMessage({id:h.data.id,status:"error"})})}),i.onmessage=function(f){var h=f.data,m=h.id,p=n[m];n[m]=null,h.status==="success"?p.onComplete(h.payload):p.onError&&p.onError()})}function l(f,h){t+=1;var m="processId_"+t;return n[m]={onComplete:f,onError:h},m}function c(f,h,m){a();var p=l(h,m);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:p})}function u(f,h,m){a();var p=l(h,m);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:p})}function d(f,h,m){a();var p=l(h,m);i.postMessage({type:"complete",animation:f,id:p})}return{loadAnimation:c,loadData:u,completeAnimation:d}}(),ImagePreloader=function(){var t=function(){var v=createTag("canvas");v.width=1,v.height=1;var _=v.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),v}();function n(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function e(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(v,_,y){var x="";if(v.e)x=v.p;else if(_){var w=v.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),x=_+w}else x=y,x+=v.u?v.u:"",x+=v.p;return x}function r(v){var _=0,y=setInterval(function(){var x=v.getBBox();(x.width||_>500)&&(this._imageLoaded(),clearInterval(y)),_+=1}.bind(this),50)}function s(v){var _=i(v,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){x.img=t,this._imageLoaded()}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var x={img:y,assetData:v};return x}function o(v){var _=i(v,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){x.img=t,this._imageLoaded()}.bind(this),!1),y.src=_;var x={img:y,assetData:v};return x}function a(v){var _={assetData:v},y=i(v,this.assetsPath,this.path);return dataManager.loadData(y,function(x){_.img=x,this._footageLoaded()}.bind(this),function(){_.img={},this._footageLoaded()}.bind(this)),_}function l(v,_){this.imagesLoadedCb=_;var y,x=v.length;for(y=0;y<x;y+=1)v[y].layers||(!v[y].t||v[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(v[y]))):v[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(v[y]))))}function c(v){this.path=v||""}function u(v){this.assetsPath=v||""}function d(v){for(var _=0,y=this.images.length;_<y;){if(this.images[_].assetData===v)return this.images[_].img;_+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function p(v,_){v==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function g(){this._imageLoaded=n.bind(this),this._footageLoaded=e.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return g.prototype={loadAssets:l,setAssetsPath:u,setPath:c,loadedImages:h,loadedFootages:m,destroy:f,getAsset:d,createImgData:o,createImageData:s,imageLoaded:n,footageLoaded:e,setCacheType:p},g}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(n,e){if(this._cbs[n])for(var i=this._cbs[n],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(n,e){return this._cbs[n]||(this._cbs[n]=[]),this._cbs[n].push(e),function(){this.removeEventListener(n,e)}.bind(this)},removeEventListener:function(n,e){if(!e)this._cbs[n]=null;else if(this._cbs[n]){for(var i=0,r=this._cbs[n].length;i<r;)this._cbs[n][i]===e&&(this._cbs[n].splice(i,1),i-=1,r-=1),i+=1;this._cbs[n].length||(this._cbs[n]=null)}}};var markerParser=function(){function t(n){for(var e=n.split(`\r
`),i={},r,s=0,o=0;o<e.length;o+=1)r=e[o].split(":"),r.length===2&&(i[r[0]]=r[1].trim(),s+=1);if(s===0)throw new Error;return i}return function(n){for(var e=[],i=0;i<n.length;i+=1){var r=n[i],s={time:r.tm,duration:r.dr};try{s.payload=JSON.parse(n[i].cm)}catch{try{s.payload=t(n[i].cm)}catch{s.payload={name:n[i].cm}}}e.push(s)}return e}}(),ProjectInterface=function(){function t(n){this.compositions.push(n)}return function(){function n(e){for(var i=0,r=this.compositions.length;i<r;){if(this.compositions[i].data&&this.compositions[i].data.nm===e)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return n.compositions=[],n.currentFrame=0,n.registerComposition=t,n}}(),renderers={},registerRenderer=function(n,e){renderers[n]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(e){return typeof e}:_typeof$4=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var n="svg";t.animType?n=t.animType:t.renderer&&(n=t.renderer);var e=getRenderer(n);this.renderer=new e(this,t.rendererSettings),this.imagePreloader.setCacheType(n,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=n,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,n){n&&_typeof$4(n)!=="object"&&(n=JSON.parse(n));var e={wrapper:t,animationData:n},i=t.attributes;e.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",e.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";r==="false"?e.loop=!1:r==="true"?e.loop=!0:r!==""&&(e.loop=parseInt(r,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;e.autoplay=s!=="false",e.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var o=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";o==="false"&&(e.prerender=!1),e.path?this.setParams(e):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var n=this.animationData.layers,e,i=n.length,r=t.layers,s,o=r.length;for(s=0;s<o;s+=1)for(e=0;e<i;){if(n[e].id===r[s].id){n[e]=r[s];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var n=getExpressionsPlugin();n&&n.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var n=t.shift();this.timeCompleted=n.time*this.frameRate;var e=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(e,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(n){this.triggerConfigError(n)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,n){var e=typeof t=="number"?t:void 0,i=typeof n=="number"?n:void 0;this.renderer.updateContainerSize(e,i)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var n,e=0;e<this.markers.length;e+=1)if(n=this.markers[e],n.payload&&n.payload.name===t)return n;return null},AnimationItem.prototype.goToAndStop=function(t,n,e){if(!(e&&this.name!==e)){var i=Number(t);if(isNaN(i)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else n?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,n,e){if(!(e&&this.name!==e)){var i=Number(t);if(isNaN(i)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(i,n,e);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var n=this.currentRawFrame+t*this.frameModifier,e=!1;n>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(n>this.totalFrames?n%this.totalFrames:0)||(e=!0,n=this.totalFrames-1):n>=this.totalFrames?(this.playCount+=1,this.checkSegments(n%this.totalFrames)||(this.setCurrentRawFrameValue(n%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(n):n<0?this.checkSegments(n%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+n%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(e=!0,n=0)):this.setCurrentRawFrameValue(n),e&&(this.setCurrentRawFrameValue(n),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,n){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-n)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+n)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,n){var e=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?e=t:this.currentRawFrame+this.firstFrame>n&&(e=n-t)),this.firstFrame=t,this.totalFrames=n-t,this.timeCompleted=this.totalFrames,e!==-1&&this.goToAndStop(e,!0)},AnimationItem.prototype.playSegments=function(t,n){if(n&&(this.segments.length=0),_typeof$4(t[0])==="object"){var e,i=t.length;for(e=0;e<i;e+=1)this.segments.push(t[e])}else this.segments.push(t);this.segments.length&&n&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,n){n&&this.name!==n||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var n="";if(t.e)n=t.p;else if(this.assetsPath){var e=t.p;e.indexOf("images/")!==-1&&(e=e.split("/")[1]),n=this.assetsPath+e}else n=this.path,n+=t.u?t.u:"",n+=t.p;return n},AnimationItem.prototype.getAssetData=function(t){for(var n=0,e=this.assets.length;n<e;){if(t===this.assets[n].id)return this.assets[n];n+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,n,e){try{var i=this.renderer.getElementByPath(t);i.updateDocumentData(n,e)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var n=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",n),this.onError&&this.onError.call(this,n)},AnimationItem.prototype.triggerConfigError=function(t){var n=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",n),this.onError&&this.onError.call(this,n)};var animationManager=function(){var t={},n=[],e=0,i=0,r=0,s=!0,o=!1;function a(M){for(var R=0,S=M.target;R<i;)n[R].animation===S&&(n.splice(R,1),R-=1,i-=1,S.isPaused||d()),R+=1}function l(M,R){if(!M)return null;for(var S=0;S<i;){if(n[S].elem===M&&n[S].elem!==null)return n[S].animation;S+=1}var D=new AnimationItem;return f(D,M),D.setData(M,R),D}function c(){var M,R=n.length,S=[];for(M=0;M<R;M+=1)S.push(n[M].animation);return S}function u(){r+=1,G()}function d(){r-=1}function f(M,R){M.addEventListener("destroy",a),M.addEventListener("_active",u),M.addEventListener("_idle",d),n.push({elem:R,animation:M}),i+=1}function h(M){var R=new AnimationItem;return f(R,null),R.setParams(M),R}function m(M,R){var S;for(S=0;S<i;S+=1)n[S].animation.setSpeed(M,R)}function p(M,R){var S;for(S=0;S<i;S+=1)n[S].animation.setDirection(M,R)}function g(M){var R;for(R=0;R<i;R+=1)n[R].animation.play(M)}function v(M){var R=M-e,S;for(S=0;S<i;S+=1)n[S].animation.advanceTime(R);e=M,r&&!o?window.requestAnimationFrame(v):s=!0}function _(M){e=M,window.requestAnimationFrame(v)}function y(M){var R;for(R=0;R<i;R+=1)n[R].animation.pause(M)}function x(M,R,S){var D;for(D=0;D<i;D+=1)n[D].animation.goToAndStop(M,R,S)}function w(M){var R;for(R=0;R<i;R+=1)n[R].animation.stop(M)}function T(M){var R;for(R=0;R<i;R+=1)n[R].animation.togglePause(M)}function E(M){var R;for(R=i-1;R>=0;R-=1)n[R].animation.destroy(M)}function k(M,R,S){var D=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Q,X=D.length;for(Q=0;Q<X;Q+=1)S&&D[Q].setAttribute("data-bm-type",S),l(D[Q],M);if(R&&X===0){S||(S="svg");var V=document.getElementsByTagName("body")[0];V.innerText="";var ie=createTag("div");ie.style.width="100%",ie.style.height="100%",ie.setAttribute("data-bm-type",S),V.appendChild(ie),l(ie,M)}}function F(){var M;for(M=0;M<i;M+=1)n[M].animation.resize()}function G(){!o&&r&&s&&(window.requestAnimationFrame(_),s=!1)}function Y(){o=!0}function W(){o=!1,G()}function le(M,R){var S;for(S=0;S<i;S+=1)n[S].animation.setVolume(M,R)}function ge(M){var R;for(R=0;R<i;R+=1)n[R].animation.mute(M)}function te(M){var R;for(R=0;R<i;R+=1)n[R].animation.unmute(M)}return t.registerAnimation=l,t.loadAnimation=h,t.setSpeed=m,t.setDirection=p,t.play=g,t.pause=y,t.stop=w,t.togglePause=T,t.searchAnimations=k,t.resize=F,t.goToAndStop=x,t.destroy=E,t.freeze=Y,t.unfreeze=W,t.setVolume=le,t.mute=ge,t.unmute=te,t.getRegisteredAnimations=c,t}(),BezierFactory=function(){var t={};t.getBezierEasing=e;var n={};function e(_,y,x,w,T){var E=T||("bez_"+_+"_"+y+"_"+x+"_"+w).replace(/\./g,"p");if(n[E])return n[E];var k=new v([_,y,x,w]);return n[E]=k,k}var i=4,r=.001,s=1e-7,o=10,a=11,l=1/(a-1),c=typeof Float32Array=="function";function u(_,y){return 1-3*y+3*_}function d(_,y){return 3*y-6*_}function f(_){return 3*_}function h(_,y,x){return((u(y,x)*_+d(y,x))*_+f(y))*_}function m(_,y,x){return 3*u(y,x)*_*_+2*d(y,x)*_+f(y)}function p(_,y,x,w,T){var E,k,F=0;do k=y+(x-y)/2,E=h(k,w,T)-_,E>0?x=k:y=k;while(Math.abs(E)>s&&++F<o);return k}function g(_,y,x,w){for(var T=0;T<i;++T){var E=m(y,x,w);if(E===0)return y;var k=h(y,x,w)-_;y-=k/E}return y}function v(_){this._p=_,this._mSampleValues=c?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return v.prototype={get:function(y){var x=this._p[0],w=this._p[1],T=this._p[2],E=this._p[3];return this._precomputed||this._precompute(),x===w&&T===E?y:y===0?0:y===1?1:h(this._getTForX(y),w,E)},_precompute:function(){var y=this._p[0],x=this._p[1],w=this._p[2],T=this._p[3];this._precomputed=!0,(y!==x||w!==T)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],x=this._p[2],w=0;w<a;++w)this._mSampleValues[w]=h(w*l,y,x)},_getTForX:function(y){for(var x=this._p[0],w=this._p[2],T=this._mSampleValues,E=0,k=1,F=a-1;k!==F&&T[k]<=y;++k)E+=l;--k;var G=(y-T[k])/(T[k+1]-T[k]),Y=E+G*l,W=m(Y,x,w);return W>=r?g(y,Y,x,w):W===0?Y:p(y,E,E+l,x,w)}},t}(),pooling=function(){function t(n){return n.concat(createSizedArray(n.length))}return{double:t}}(),poolFactory=function(){return function(t,n,e){var i=0,r=t,s=createSizedArray(r),o={newElement:a,release:l};function a(){var c;return i?(i-=1,c=s[i]):c=n(),c}function l(c){i===r&&(s=pooling.double(s),r*=2),e&&e(c),s[i]=c,i+=1}return o}}(),bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function n(e){var i,r=e.lengths.length;for(i=0;i<r;i+=1)bezierLengthPool.release(e.lengths[i]);e.lengths.length=0}return poolFactory(8,t,n)}();function bezFunction(){var t=Math;function n(f,h,m,p,g,v){var _=f*p+h*g+m*v-g*p-v*f-m*h;return _>-.001&&_<.001}function e(f,h,m,p,g,v,_,y,x){if(m===0&&v===0&&x===0)return n(f,h,p,g,_,y);var w=t.sqrt(t.pow(p-f,2)+t.pow(g-h,2)+t.pow(v-m,2)),T=t.sqrt(t.pow(_-f,2)+t.pow(y-h,2)+t.pow(x-m,2)),E=t.sqrt(t.pow(_-p,2)+t.pow(y-g,2)+t.pow(x-v,2)),k;return w>T?w>E?k=w-T-E:k=E-T-w:E>T?k=E-T-w:k=T-w-E,k>-1e-4&&k<1e-4}var i=function(){return function(f,h,m,p){var g=getDefaultCurveSegments(),v,_,y,x,w,T=0,E,k=[],F=[],G=bezierLengthPool.newElement();for(y=m.length,v=0;v<g;v+=1){for(w=v/(g-1),E=0,_=0;_<y;_+=1)x=bmPow(1-w,3)*f[_]+3*bmPow(1-w,2)*w*m[_]+3*(1-w)*bmPow(w,2)*p[_]+bmPow(w,3)*h[_],k[_]=x,F[_]!==null&&(E+=bmPow(k[_]-F[_],2)),F[_]=k[_];E&&(E=bmSqrt(E),T+=E),G.percents[v]=w,G.lengths[v]=T}return G.addedLength=T,G}}();function r(f){var h=segmentsLengthPool.newElement(),m=f.c,p=f.v,g=f.o,v=f.i,_,y=f._length,x=h.lengths,w=0;for(_=0;_<y-1;_+=1)x[_]=i(p[_],p[_+1],g[_],v[_+1]),w+=x[_].addedLength;return m&&y&&(x[_]=i(p[_],p[0],g[_],v[0]),w+=x[_].addedLength),h.totalLength=w,h}function s(f){this.segmentLength=0,this.points=new Array(f)}function o(f,h){this.partialLength=f,this.point=h}var a=function(){var f={};return function(h,m,p,g){var v=(h[0]+"_"+h[1]+"_"+m[0]+"_"+m[1]+"_"+p[0]+"_"+p[1]+"_"+g[0]+"_"+g[1]).replace(/\./g,"p");if(!f[v]){var _=getDefaultCurveSegments(),y,x,w,T,E,k=0,F,G,Y=null;h.length===2&&(h[0]!==m[0]||h[1]!==m[1])&&n(h[0],h[1],m[0],m[1],h[0]+p[0],h[1]+p[1])&&n(h[0],h[1],m[0],m[1],m[0]+g[0],m[1]+g[1])&&(_=2);var W=new s(_);for(w=p.length,y=0;y<_;y+=1){for(G=createSizedArray(w),E=y/(_-1),F=0,x=0;x<w;x+=1)T=bmPow(1-E,3)*h[x]+3*bmPow(1-E,2)*E*(h[x]+p[x])+3*(1-E)*bmPow(E,2)*(m[x]+g[x])+bmPow(E,3)*m[x],G[x]=T,Y!==null&&(F+=bmPow(G[x]-Y[x],2));F=bmSqrt(F),k+=F,W.points[y]=new o(F,G),Y=G}W.segmentLength=k,f[v]=W}return f[v]}}();function l(f,h){var m=h.percents,p=h.lengths,g=m.length,v=bmFloor((g-1)*f),_=f*h.addedLength,y=0;if(v===g-1||v===0||_===p[v])return m[v];for(var x=p[v]>_?-1:1,w=!0;w;)if(p[v]<=_&&p[v+1]>_?(y=(_-p[v])/(p[v+1]-p[v]),w=!1):v+=x,v<0||v>=g-1){if(v===g-1)return m[v];w=!1}return m[v]+(m[v+1]-m[v])*y}function c(f,h,m,p,g,v){var _=l(g,v),y=1-_,x=t.round((y*y*y*f[0]+(_*y*y+y*_*y+y*y*_)*m[0]+(_*_*y+y*_*_+_*y*_)*p[0]+_*_*_*h[0])*1e3)/1e3,w=t.round((y*y*y*f[1]+(_*y*y+y*_*y+y*y*_)*m[1]+(_*_*y+y*_*_+_*y*_)*p[1]+_*_*_*h[1])*1e3)/1e3;return[x,w]}var u=createTypedArray("float32",8);function d(f,h,m,p,g,v,_){g<0?g=0:g>1&&(g=1);var y=l(g,_);v=v>1?1:v;var x=l(v,_),w,T=f.length,E=1-y,k=1-x,F=E*E*E,G=y*E*E*3,Y=y*y*E*3,W=y*y*y,le=E*E*k,ge=y*E*k+E*y*k+E*E*x,te=y*y*k+E*y*x+y*E*x,M=y*y*x,R=E*k*k,S=y*k*k+E*x*k+E*k*x,D=y*x*k+E*x*x+y*k*x,Q=y*x*x,X=k*k*k,V=x*k*k+k*x*k+k*k*x,ie=x*x*k+k*x*x+x*k*x,H=x*x*x;for(w=0;w<T;w+=1)u[w*4]=t.round((F*f[w]+G*m[w]+Y*p[w]+W*h[w])*1e3)/1e3,u[w*4+1]=t.round((le*f[w]+ge*m[w]+te*p[w]+M*h[w])*1e3)/1e3,u[w*4+2]=t.round((R*f[w]+S*m[w]+D*p[w]+Q*h[w])*1e3)/1e3,u[w*4+3]=t.round((X*f[w]+V*m[w]+ie*p[w]+H*h[w])*1e3)/1e3;return u}return{getSegmentsLength:r,getNewSegment:d,getPointInSegment:c,buildBezierData:a,pointOnLine2D:n,pointOnLine3D:e}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,n){var e=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var r=n.lastIndex,s=r,o=this.keyframes.length-1,a=!0,l,c,u;a;){if(l=this.keyframes[s],c=this.keyframes[s+1],s===o-1&&t>=c.t-e){l.h&&(l=c),r=0;break}if(c.t-e>t){r=s;break}s<o-1?s+=1:(r=0,a=!1)}u=this.keyframesMetadata[s]||{};var d,f,h,m,p,g,v=c.t-e,_=l.t-e,y;if(l.to){u.bezierData||(u.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var x=u.bezierData;if(t>=v||t<_){var w=t>=v?x.points.length-1:0;for(f=x.points[w].point.length,d=0;d<f;d+=1)i[d]=x.points[w].point[d]}else{u.__fnct?g=u.__fnct:(g=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,u.__fnct=g),h=g((t-_)/(v-_));var T=x.segmentLength*h,E,k=n.lastFrame<t&&n._lastKeyframeIndex===s?n._lastAddedLength:0;for(p=n.lastFrame<t&&n._lastKeyframeIndex===s?n._lastPoint:0,a=!0,m=x.points.length;a;){if(k+=x.points[p].partialLength,T===0||h===0||p===x.points.length-1){for(f=x.points[p].point.length,d=0;d<f;d+=1)i[d]=x.points[p].point[d];break}else if(T>=k&&T<k+x.points[p+1].partialLength){for(E=(T-k)/x.points[p+1].partialLength,f=x.points[p].point.length,d=0;d<f;d+=1)i[d]=x.points[p].point[d]+(x.points[p+1].point[d]-x.points[p].point[d])*E;break}p<m-1?p+=1:a=!1}n._lastPoint=p,n._lastAddedLength=k-x.points[p].partialLength,n._lastKeyframeIndex=s}}else{var F,G,Y,W,le;if(o=l.s.length,y=c.s||l.e,this.sh&&l.h!==1)if(t>=v)i[0]=y[0],i[1]=y[1],i[2]=y[2];else if(t<=_)i[0]=l.s[0],i[1]=l.s[1],i[2]=l.s[2];else{var ge=createQuaternion(l.s),te=createQuaternion(y),M=(t-_)/(v-_);quaternionToEuler(i,slerp(ge,te,M))}else for(s=0;s<o;s+=1)l.h!==1&&(t>=v?h=1:t<_?h=0:(l.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[s]?g=u.__fnct[s]:(F=l.o.x[s]===void 0?l.o.x[0]:l.o.x[s],G=l.o.y[s]===void 0?l.o.y[0]:l.o.y[s],Y=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],W=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],g=BezierFactory.getBezierEasing(F,G,Y,W).get,u.__fnct[s]=g)):u.__fnct?g=u.__fnct:(F=l.o.x,G=l.o.y,Y=l.i.x,W=l.i.y,g=BezierFactory.getBezierEasing(F,G,Y,W).get,l.keyframeMetadata=g),h=g((t-_)/(v-_)))),y=c.s||l.e,le=l.h===1?l.s[s]:l.s[s]+(y[s]-l.s[s])*h,this.propType==="multidimensional"?i[s]=le:i=le}return n.lastIndex=r,i}function slerp(t,n,e){var i=[],r=t[0],s=t[1],o=t[2],a=t[3],l=n[0],c=n[1],u=n[2],d=n[3],f,h,m,p,g;return h=r*l+s*c+o*u+a*d,h<0&&(h=-h,l=-l,c=-c,u=-u,d=-d),1-h>1e-6?(f=Math.acos(h),m=Math.sin(f),p=Math.sin((1-e)*f)/m,g=Math.sin(e*f)/m):(p=1-e,g=e),i[0]=p*r+g*l,i[1]=p*s+g*c,i[2]=p*o+g*u,i[3]=p*a+g*d,i}function quaternionToEuler(t,n){var e=n[0],i=n[1],r=n[2],s=n[3],o=Math.atan2(2*i*s-2*e*r,1-2*i*i-2*r*r),a=Math.asin(2*e*i+2*r*s),l=Math.atan2(2*e*s-2*i*r,1-2*e*e-2*r*r);t[0]=o/degToRads,t[1]=a/degToRads,t[2]=l/degToRads}function createQuaternion(t){var n=t[0]*degToRads,e=t[1]*degToRads,i=t[2]*degToRads,r=Math.cos(n/2),s=Math.cos(e/2),o=Math.cos(i/2),a=Math.sin(n/2),l=Math.sin(e/2),c=Math.sin(i/2),u=r*s*o-a*l*c,d=a*l*o+r*s*c,f=a*s*o+r*l*c,h=r*l*o-a*s*c;return[d,f,h,u]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,e=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=e&&t>=e||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function setVValue(t){var n;if(this.propType==="unidimensional")n=t*this.mult,mathAbs(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var e=0,i=this.v.length;e<i;)n=t[e]*this.mult,mathAbs(this.v[e]-n)>1e-5&&(this.v[e]=n,this._mdf=!0),e+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,n=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,n,e,i){this.propType="unidimensional",this.mult=e||1,this.data=n,this.v=e?n.k*e:n.k,this.pv=n.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,n,e,i){this.propType="multidimensional",this.mult=e||1,this.data=n,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,s=n.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),r=0;r<s;r+=1)this.v[r]=n.k[r]*this.mult,this.pv[r]=n.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,n,e,i){this.propType="unidimensional",this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=e||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,n,e,i){this.propType="multidimensional";var r,s=n.k.length,o,a,l,c;for(r=0;r<s-1;r+=1)n.k[r].to&&n.k[r].s&&n.k[r+1]&&n.k[r+1].s&&(o=n.k[r].s,a=n.k[r+1].s,l=n.k[r].to,c=n.k[r].ti,(o.length===2&&!(o[0]===a[0]&&o[1]===a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+l[0],o[1]+l[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+c[0],a[1]+c[1])||o.length===3&&!(o[0]===a[0]&&o[1]===a[1]&&o[2]===a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+l[0],o[1]+l[1],o[2]+l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+c[0],a[1]+c[1],a[2]+c[2]))&&(n.k[r].to=null,n.k[r].ti=null),o[0]===a[0]&&o[1]===a[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(o.length===2||o[2]===a[2]&&l[2]===0&&c[2]===0)&&(n.k[r].to=null,n.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=n,this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=e||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=n.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),r=0;r<u;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory=function(){function t(e,i,r,s,o){i.sid&&(i=e.globalData.slotManager.getProp(i));var a;if(!i.k.length)a=new ValueProperty(e,i,s,o);else if(typeof i.k[0]=="number")a=new MultiDimensionalProperty(e,i,s,o);else switch(r){case 0:a=new KeyframedValueProperty(e,i,s,o);break;case 1:a=new KeyframedMultidimensionalProperty(e,i,s,o);break;default:break}return a.effectsSequence.length&&o.addDynamicProperty(a),a}var n={getProp:t};return n}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&(this.dynamicProperties.push(n),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var n,e=this.dynamicProperties.length;for(n=0;n<e;n+=1)this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(n){this.container=n,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function t(){return createTypedArray("float32",2)}return poolFactory(8,t)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,n){this.c=t,this.setLength(n);for(var e=0;e<n;)this.v[e]=pointPool.newElement(),this.o[e]=pointPool.newElement(),this.i[e]=pointPool.newElement(),e+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,n,e,i,r){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),e){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[i]||s[i]&&!r)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=n},ShapePath.prototype.setTripleAt=function(t,n,e,i,r,s,o,a){this.setXYAt(t,n,"v",o,a),this.setXYAt(e,i,"o",o,a),this.setXYAt(r,s,"i",o,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var n=this.v,e=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(n[0][0],n[0][1],i[0][0],i[0][1],e[0][0],e[0][1],0,!1),r=1);var s=this._length-1,o=this._length,a;for(a=r;a<o;a+=1)t.setTripleAt(n[s][0],n[s][1],i[s][0],i[s][1],e[s][0],e[s][1],a,!1),s-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function t(){return new ShapePath}function n(r){var s=r._length,o;for(o=0;o<s;o+=1)pointPool.release(r.v[o]),pointPool.release(r.i[o]),pointPool.release(r.o[o]),r.v[o]=null,r.i[o]=null,r.o[o]=null;r._length=0,r.c=!1}function e(r){var s=i.newElement(),o,a=r._length===void 0?r.v.length:r._length;for(s.setLength(a),s.c=r.c,o=0;o<a;o+=1)s.setTripleAt(r.v[o][0],r.v[o][1],r.o[o][0],r.o[o][1],r.i[o][0],r.i[o][1],o);return s}var i=poolFactory(4,t,n);return i.clone=e,i}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:r,release:s},n=0,e=4,i=createSizedArray(e);function r(){var o;return n?(n-=1,o=i[n]):o=new ShapeCollection,o}function s(o){var a,l=o._length;for(a=0;a<l;a+=1)shapePool.release(o.shapes[a]);o._length=0,n===e&&(i=pooling.double(i),e*=2),i[n]=o,n+=1}return t}(),ShapePropertyFactory=function(){var t=-999999;function n(v,_,y){var x=y.lastIndex,w,T,E,k,F,G,Y,W,le,ge=this.keyframes;if(v<ge[0].t-this.offsetTime)w=ge[0].s[0],E=!0,x=0;else if(v>=ge[ge.length-1].t-this.offsetTime)w=ge[ge.length-1].s?ge[ge.length-1].s[0]:ge[ge.length-2].e[0],E=!0;else{for(var te=x,M=ge.length-1,R=!0,S,D,Q;R&&(S=ge[te],D=ge[te+1],!(D.t-this.offsetTime>v));)te<M-1?te+=1:R=!1;if(Q=this.keyframesMetadata[te]||{},E=S.h===1,x=te,!E){if(v>=D.t-this.offsetTime)W=1;else if(v<S.t-this.offsetTime)W=0;else{var X;Q.__fnct?X=Q.__fnct:(X=BezierFactory.getBezierEasing(S.o.x,S.o.y,S.i.x,S.i.y).get,Q.__fnct=X),W=X((v-(S.t-this.offsetTime))/(D.t-this.offsetTime-(S.t-this.offsetTime)))}T=D.s?D.s[0]:S.e[0]}w=S.s[0]}for(G=_._length,Y=w.i[0].length,y.lastIndex=x,k=0;k<G;k+=1)for(F=0;F<Y;F+=1)le=E?w.i[k][F]:w.i[k][F]+(T.i[k][F]-w.i[k][F])*W,_.i[k][F]=le,le=E?w.o[k][F]:w.o[k][F]+(T.o[k][F]-w.o[k][F])*W,_.o[k][F]=le,le=E?w.v[k][F]:w.v[k][F]+(T.v[k][F]-w.v[k][F])*W,_.v[k][F]=le}function e(){var v=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,x=this._caching.lastFrame;return x!==t&&(x<_&&v<_||x>y&&v>y)||(this._caching.lastIndex=x<v?this._caching.lastIndex:0,this.interpolateShape(v,this.pv,this._caching)),this._caching.lastFrame=v,this.pv}function i(){this.paths=this.localShapeCollection}function r(v,_){if(v._length!==_._length||v.c!==_.c)return!1;var y,x=v._length;for(y=0;y<x;y+=1)if(v.v[y][0]!==_.v[y][0]||v.v[y][1]!==_.v[y][1]||v.o[y][0]!==_.o[y][0]||v.o[y][1]!==_.o[y][1]||v.i[y][0]!==_.i[y][0]||v.i[y][1]!==_.i[y][1])return!1;return!0}function s(v){r(this.v,v)||(this.v=shapePool.clone(v),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var v;this.kf?v=this.pv:this.data.ks?v=this.data.ks.k:v=this.data.pt.k;var _,y=this.effectsSequence.length;for(_=0;_<y;_+=1)v=this.effectsSequence[_](v);this.setVValue(v),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(v,_,y){this.propType="shape",this.comp=v.comp,this.container=v,this.elem=v,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var x=y===3?_.pt.k:_.ks.k;this.v=shapePool.clone(x),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function l(v){this.effectsSequence.push(v),this.container.addDynamicProperty(this)}a.prototype.interpolateShape=n,a.prototype.getValue=o,a.prototype.setVValue=s,a.prototype.addEffect=l;function c(v,_,y){this.propType="shape",this.comp=v.comp,this.elem=v,this.container=v,this.offsetTime=v.data.st,this.keyframes=y===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var x=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,x),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[e.bind(this)]}c.prototype.getValue=o,c.prototype.interpolateShape=n,c.prototype.setVValue=s,c.prototype.addEffect=l;var u=function(){var v=roundCorner;function _(y,x){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=x.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,x.p,1,0,this),this.s=PropertyFactory.getProp(y,x.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var x=this.p.v[0],w=this.p.v[1],T=this.s.v[0]/2,E=this.s.v[1]/2,k=this.d!==3,F=this.v;F.v[0][0]=x,F.v[0][1]=w-E,F.v[1][0]=k?x+T:x-T,F.v[1][1]=w,F.v[2][0]=x,F.v[2][1]=w+E,F.v[3][0]=k?x-T:x+T,F.v[3][1]=w,F.i[0][0]=k?x-T*v:x+T*v,F.i[0][1]=w-E,F.i[1][0]=k?x+T:x-T,F.i[1][1]=w-E*v,F.i[2][0]=k?x+T*v:x-T*v,F.i[2][1]=w+E,F.i[3][0]=k?x-T:x+T,F.i[3][1]=w+E*v,F.o[0][0]=k?x+T*v:x-T*v,F.o[0][1]=w-E,F.o[1][0]=k?x+T:x-T,F.o[1][1]=w+E*v,F.o[2][0]=k?x-T*v:x+T*v,F.o[2][1]=w+E,F.o[3][0]=k?x-T:x+T,F.o[3][1]=w-E*v}},extendPrototype([DynamicPropertyContainer],_),_}(),d=function(){function v(_,y){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),y.sy===1?(this.ir=PropertyFactory.getProp(_,y.ir,0,0,this),this.is=PropertyFactory.getProp(_,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(_,y.pt,0,0,this),this.p=PropertyFactory.getProp(_,y.p,1,0,this),this.r=PropertyFactory.getProp(_,y.r,0,degToRads,this),this.or=PropertyFactory.getProp(_,y.or,0,0,this),this.os=PropertyFactory.getProp(_,y.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return v.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,x=Math.PI*2/y,w=!0,T=this.or.v,E=this.ir.v,k=this.os.v,F=this.is.v,G=2*Math.PI*T/(y*2),Y=2*Math.PI*E/(y*2),W,le,ge,te,M=-Math.PI/2;M+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,W=0;W<y;W+=1){le=w?T:E,ge=w?k:F,te=w?G:Y;var S=le*Math.cos(M),D=le*Math.sin(M),Q=S===0&&D===0?0:D/Math.sqrt(S*S+D*D),X=S===0&&D===0?0:-S/Math.sqrt(S*S+D*D);S+=+this.p.v[0],D+=+this.p.v[1],this.v.setTripleAt(S,D,S-Q*te*ge*R,D-X*te*ge*R,S+Q*te*ge*R,D+X*te*ge*R,W,!0),w=!w,M+=x*R}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),x=Math.PI*2/y,w=this.or.v,T=this.os.v,E=2*Math.PI*w/(y*4),k,F=-Math.PI*.5,G=this.data.d===3?-1:1;for(F+=this.r.v,this.v._length=0,k=0;k<y;k+=1){var Y=w*Math.cos(F),W=w*Math.sin(F),le=Y===0&&W===0?0:W/Math.sqrt(Y*Y+W*W),ge=Y===0&&W===0?0:-Y/Math.sqrt(Y*Y+W*W);Y+=+this.p.v[0],W+=+this.p.v[1],this.v.setTripleAt(Y,W,Y-le*E*T*G,W-ge*E*T*G,Y+le*E*T*G,W+ge*E*T*G,k,!0),F+=x*G}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],v),v}(),f=function(){function v(_,y){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),this.p=PropertyFactory.getProp(_,y.p,1,0,this),this.s=PropertyFactory.getProp(_,y.s,1,0,this),this.r=PropertyFactory.getProp(_,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return v.prototype={convertRectToPath:function(){var y=this.p.v[0],x=this.p.v[1],w=this.s.v[0]/2,T=this.s.v[1]/2,E=bmMin(w,T,this.r.v),k=E*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+w,x-T+E,y+w,x-T+E,y+w,x-T+k,0,!0),this.v.setTripleAt(y+w,x+T-E,y+w,x+T-k,y+w,x+T-E,1,!0),E!==0?(this.v.setTripleAt(y+w-E,x+T,y+w-E,x+T,y+w-k,x+T,2,!0),this.v.setTripleAt(y-w+E,x+T,y-w+k,x+T,y-w+E,x+T,3,!0),this.v.setTripleAt(y-w,x+T-E,y-w,x+T-E,y-w,x+T-k,4,!0),this.v.setTripleAt(y-w,x-T+E,y-w,x-T+k,y-w,x-T+E,5,!0),this.v.setTripleAt(y-w+E,x-T,y-w+E,x-T,y-w+k,x-T,6,!0),this.v.setTripleAt(y+w-E,x-T,y+w-k,x-T,y+w-E,x-T,7,!0)):(this.v.setTripleAt(y-w,x+T,y-w+k,x+T,y-w,x+T,2),this.v.setTripleAt(y-w,x-T,y-w,x-T+k,y-w,x-T,3))):(this.v.setTripleAt(y+w,x-T+E,y+w,x-T+k,y+w,x-T+E,0,!0),E!==0?(this.v.setTripleAt(y+w-E,x-T,y+w-E,x-T,y+w-k,x-T,1,!0),this.v.setTripleAt(y-w+E,x-T,y-w+k,x-T,y-w+E,x-T,2,!0),this.v.setTripleAt(y-w,x-T+E,y-w,x-T+E,y-w,x-T+k,3,!0),this.v.setTripleAt(y-w,x+T-E,y-w,x+T-k,y-w,x+T-E,4,!0),this.v.setTripleAt(y-w+E,x+T,y-w+E,x+T,y-w+k,x+T,5,!0),this.v.setTripleAt(y+w-E,x+T,y+w-k,x+T,y+w-E,x+T,6,!0),this.v.setTripleAt(y+w,x+T-E,y+w,x+T-E,y+w,x+T-k,7,!0)):(this.v.setTripleAt(y-w,x-T,y-w+k,x-T,y-w,x-T,1,!0),this.v.setTripleAt(y-w,x+T,y-w,x+T-k,y-w,x+T,2,!0),this.v.setTripleAt(y+w,x+T,y+w-k,x+T,y+w,x+T,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],v),v}();function h(v,_,y){var x;if(y===3||y===4){var w=y===3?_.pt:_.ks,T=w.k;T.length?x=new c(v,_,y):x=new a(v,_,y)}else y===5?x=new f(v,_):y===6?x=new u(v,_):y===7&&(x=new d(v,_));return x.k&&v.addDynamicProperty(x),x}function m(){return a}function p(){return c}var g={};return g.getShapeProp=h,g.getConstructorFunction=m,g.getKeyframedConstructorFunction=p,g}();var Matrix=function(){var t=Math.cos,n=Math.sin,e=Math.tan,i=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(S){if(S===0)return this;var D=t(S),Q=n(S);return this._t(D,-Q,0,0,Q,D,0,0,0,0,1,0,0,0,0,1)}function o(S){if(S===0)return this;var D=t(S),Q=n(S);return this._t(1,0,0,0,0,D,-Q,0,0,Q,D,0,0,0,0,1)}function a(S){if(S===0)return this;var D=t(S),Q=n(S);return this._t(D,0,Q,0,0,1,0,0,-Q,0,D,0,0,0,0,1)}function l(S){if(S===0)return this;var D=t(S),Q=n(S);return this._t(D,-Q,0,0,Q,D,0,0,0,0,1,0,0,0,0,1)}function c(S,D){return this._t(1,D,S,1,0,0)}function u(S,D){return this.shear(e(S),e(D))}function d(S,D){var Q=t(D),X=n(D);return this._t(Q,X,0,0,-X,Q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,e(S),1,0,0,0,0,1,0,0,0,0,1)._t(Q,-X,0,0,X,Q,0,0,0,0,1,0,0,0,0,1)}function f(S,D,Q){return!Q&&Q!==0&&(Q=1),S===1&&D===1&&Q===1?this:this._t(S,0,0,0,0,D,0,0,0,0,Q,0,0,0,0,1)}function h(S,D,Q,X,V,ie,H,K,de,Ee,Ue,Ae,Ce,nt,ot,ct){return this.props[0]=S,this.props[1]=D,this.props[2]=Q,this.props[3]=X,this.props[4]=V,this.props[5]=ie,this.props[6]=H,this.props[7]=K,this.props[8]=de,this.props[9]=Ee,this.props[10]=Ue,this.props[11]=Ae,this.props[12]=Ce,this.props[13]=nt,this.props[14]=ot,this.props[15]=ct,this}function m(S,D,Q){return Q=Q||0,S!==0||D!==0||Q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,S,D,Q,1):this}function p(S,D,Q,X,V,ie,H,K,de,Ee,Ue,Ae,Ce,nt,ot,ct){var Ie=this.props;if(S===1&&D===0&&Q===0&&X===0&&V===0&&ie===1&&H===0&&K===0&&de===0&&Ee===0&&Ue===1&&Ae===0)return Ie[12]=Ie[12]*S+Ie[15]*Ce,Ie[13]=Ie[13]*ie+Ie[15]*nt,Ie[14]=Ie[14]*Ue+Ie[15]*ot,Ie[15]*=ct,this._identityCalculated=!1,this;var Pn=Ie[0],$t=Ie[1],ze=Ie[2],wn=Ie[3],$n=Ie[4],ui=Ie[5],On=Ie[6],Ar=Ie[7],vr=Ie[8],En=Ie[9],er=Ie[10],Ti=Ie[11],Fr=Ie[12],_r=Ie[13],Ga=Ie[14],Go=Ie[15];return Ie[0]=Pn*S+$t*V+ze*de+wn*Ce,Ie[1]=Pn*D+$t*ie+ze*Ee+wn*nt,Ie[2]=Pn*Q+$t*H+ze*Ue+wn*ot,Ie[3]=Pn*X+$t*K+ze*Ae+wn*ct,Ie[4]=$n*S+ui*V+On*de+Ar*Ce,Ie[5]=$n*D+ui*ie+On*Ee+Ar*nt,Ie[6]=$n*Q+ui*H+On*Ue+Ar*ot,Ie[7]=$n*X+ui*K+On*Ae+Ar*ct,Ie[8]=vr*S+En*V+er*de+Ti*Ce,Ie[9]=vr*D+En*ie+er*Ee+Ti*nt,Ie[10]=vr*Q+En*H+er*Ue+Ti*ot,Ie[11]=vr*X+En*K+er*Ae+Ti*ct,Ie[12]=Fr*S+_r*V+Ga*de+Go*Ce,Ie[13]=Fr*D+_r*ie+Ga*Ee+Go*nt,Ie[14]=Fr*Q+_r*H+Ga*Ue+Go*ot,Ie[15]=Fr*X+_r*K+Ga*Ae+Go*ct,this._identityCalculated=!1,this}function g(S){var D=S.props;return this.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15])}function v(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function _(S){for(var D=0;D<16;){if(S.props[D]!==this.props[D])return!1;D+=1}return!0}function y(S){var D;for(D=0;D<16;D+=1)S.props[D]=this.props[D];return S}function x(S){var D;for(D=0;D<16;D+=1)this.props[D]=S[D]}function w(S,D,Q){return{x:S*this.props[0]+D*this.props[4]+Q*this.props[8]+this.props[12],y:S*this.props[1]+D*this.props[5]+Q*this.props[9]+this.props[13],z:S*this.props[2]+D*this.props[6]+Q*this.props[10]+this.props[14]}}function T(S,D,Q){return S*this.props[0]+D*this.props[4]+Q*this.props[8]+this.props[12]}function E(S,D,Q){return S*this.props[1]+D*this.props[5]+Q*this.props[9]+this.props[13]}function k(S,D,Q){return S*this.props[2]+D*this.props[6]+Q*this.props[10]+this.props[14]}function F(){var S=this.props[0]*this.props[5]-this.props[1]*this.props[4],D=this.props[5]/S,Q=-this.props[1]/S,X=-this.props[4]/S,V=this.props[0]/S,ie=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/S,H=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/S,K=new Matrix;return K.props[0]=D,K.props[1]=Q,K.props[4]=X,K.props[5]=V,K.props[12]=ie,K.props[13]=H,K}function G(S){var D=this.getInverseMatrix();return D.applyToPointArray(S[0],S[1],S[2]||0)}function Y(S){var D,Q=S.length,X=[];for(D=0;D<Q;D+=1)X[D]=G(S[D]);return X}function W(S,D,Q){var X=createTypedArray("float32",6);if(this.isIdentity())X[0]=S[0],X[1]=S[1],X[2]=D[0],X[3]=D[1],X[4]=Q[0],X[5]=Q[1];else{var V=this.props[0],ie=this.props[1],H=this.props[4],K=this.props[5],de=this.props[12],Ee=this.props[13];X[0]=S[0]*V+S[1]*H+de,X[1]=S[0]*ie+S[1]*K+Ee,X[2]=D[0]*V+D[1]*H+de,X[3]=D[0]*ie+D[1]*K+Ee,X[4]=Q[0]*V+Q[1]*H+de,X[5]=Q[0]*ie+Q[1]*K+Ee}return X}function le(S,D,Q){var X;return this.isIdentity()?X=[S,D,Q]:X=[S*this.props[0]+D*this.props[4]+Q*this.props[8]+this.props[12],S*this.props[1]+D*this.props[5]+Q*this.props[9]+this.props[13],S*this.props[2]+D*this.props[6]+Q*this.props[10]+this.props[14]],X}function ge(S,D){if(this.isIdentity())return S+","+D;var Q=this.props;return Math.round((S*Q[0]+D*Q[4]+Q[12])*100)/100+","+Math.round((S*Q[1]+D*Q[5]+Q[13])*100)/100}function te(){for(var S=0,D=this.props,Q="matrix3d(",X=1e4;S<16;)Q+=i(D[S]*X)/X,Q+=S===15?")":",",S+=1;return Q}function M(S){var D=1e4;return S<1e-6&&S>0||S>-1e-6&&S<0?i(S*D)/D:S}function R(){var S=this.props,D=M(S[0]),Q=M(S[1]),X=M(S[4]),V=M(S[5]),ie=M(S[12]),H=M(S[13]);return"matrix("+D+","+Q+","+X+","+V+","+ie+","+H+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=f,this.setTransform=h,this.translate=m,this.transform=p,this.multiply=g,this.applyToPoint=w,this.applyToX=T,this.applyToY=E,this.applyToZ=k,this.applyToPointArray=le,this.applyToTriplePoints=W,this.applyToPointStringified=ge,this.toCSS=te,this.to2dCSS=R,this.clone=y,this.cloneFromProps=x,this.equals=_,this.inversePoints=Y,this.inversePoint=G,this.getInverseMatrix=F,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,n){t==="expressions"&&setExpressionsPlugin(n)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var n=queryString.split("&"),e=0;e<n.length;e+=1){var i=n[e].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{!((typeof exports>"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},n={};t.registerModifier=e,t.getModifier=i;function e(r,s){n[r]||(n[r]=s)}function i(r,s,o){return new n[r](s,o)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var n={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(n),this.addShapeToModifier(n),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,n){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,n),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,n){this.s=PropertyFactory.getProp(t,n.s,0,.01,this),this.e=PropertyFactory.getProp(t,n.e,0,.01,this),this.o=PropertyFactory.getProp(t,n.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=n.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,n,e,i,r){var s=[];n<=1?s.push({s:t,e:n}):t>=1?s.push({s:t-1,e:n-1}):(s.push({s:t,e:1}),s.push({s:0,e:n-1}));var o=[],a,l=s.length,c;for(a=0;a<l;a+=1)if(c=s[a],!(c.e*r<i||c.s*r>i+e)){var u,d;c.s*r<=i?u=0:u=(c.s*r-i)/e,c.e*r>=i+e?d=1:d=(c.e*r-i)/e,o.push([u,d])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(t){var n,e=t.length;for(n=0;n<e;n+=1)segmentsLengthPool.release(t[n]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var n,e;if(this._mdf||t){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?n=1+i:this.s.v<0?n=0+i:n=this.s.v+i,this.e.v>1?e=1+i:this.e.v<0?e=0+i:e=this.e.v+i,n>e){var r=n;n=e,e=r}n=Math.round(n*1e4)*1e-4,e=Math.round(e*1e4)*1e-4,this.sValue=n,this.eValue=e}else n=this.sValue,e=this.eValue;var s,o,a=this.shapes.length,l,c,u,d,f,h=0;if(e===n)for(o=0;o<a;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(e===1&&n===0||e===0&&n===1){if(this._mdf)for(o=0;o<a;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var m=[],p,g;for(o=0;o<a;o+=1)if(p=this.shapes[o],!p.shape._mdf&&!this._mdf&&!t&&this.m!==2)p.shape.paths=p.localShapeCollection;else{if(s=p.shape.paths,c=s._length,f=0,!p.shape._mdf&&p.pathsData.length)f=p.totalShapeLength;else{for(u=this.releasePathsData(p.pathsData),l=0;l<c;l+=1)d=bez.getSegmentsLength(s.shapes[l]),u.push(d),f+=d.totalLength;p.totalShapeLength=f,p.pathsData=u}h+=f,p.shape._mdf=!0}var v=n,_=e,y=0,x;for(o=a-1;o>=0;o-=1)if(p=this.shapes[o],p.shape._mdf){for(g=p.localShapeCollection,g.releaseShapes(),this.m===2&&a>1?(x=this.calculateShapeEdges(n,e,p.totalShapeLength,y,h),y+=p.totalShapeLength):x=[[v,_]],c=x.length,l=0;l<c;l+=1){v=x[l][0],_=x[l][1],m.length=0,_<=1?m.push({s:p.totalShapeLength*v,e:p.totalShapeLength*_}):v>=1?m.push({s:p.totalShapeLength*(v-1),e:p.totalShapeLength*(_-1)}):(m.push({s:p.totalShapeLength*v,e:p.totalShapeLength}),m.push({s:0,e:p.totalShapeLength*(_-1)}));var w=this.addShapes(p,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var T=p.shape.paths.shapes[p.shape.paths._length-1];if(T.c){var E=w.pop();this.addPaths(w,g),w=this.addShapes(p,m[1],E)}else this.addPaths(w,g),w=this.addShapes(p,m[1])}this.addPaths(w,g)}}p.shape.paths=g}}},TrimModifier.prototype.addPaths=function(t,n){var e,i=t.length;for(e=0;e<i;e+=1)n.addShape(t[e])},TrimModifier.prototype.addSegment=function(t,n,e,i,r,s,o){r.setXYAt(n[0],n[1],"o",s),r.setXYAt(e[0],e[1],"i",s+1),o&&r.setXYAt(t[0],t[1],"v",s),r.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,n,e,i){n.setXYAt(t[1],t[5],"o",e),n.setXYAt(t[2],t[6],"i",e+1),i&&n.setXYAt(t[0],t[4],"v",e),n.setXYAt(t[3],t[7],"v",e+1)},TrimModifier.prototype.addShapes=function(t,n,e){var i=t.pathsData,r=t.shape.paths.shapes,s,o=t.shape.paths._length,a,l,c=0,u,d,f,h,m=[],p,g=!0;for(e?(d=e._length,p=e._length):(e=shapePool.newElement(),d=0,p=0),m.push(e),s=0;s<o;s+=1){for(f=i[s].lengths,e.c=r[s].c,l=r[s].c?f.length:f.length+1,a=1;a<l;a+=1)if(u=f[a-1],c+u.addedLength<n.s)c+=u.addedLength,e.c=!1;else if(c>n.e){e.c=!1;break}else n.s<=c&&n.e>=c+u.addedLength?(this.addSegment(r[s].v[a-1],r[s].o[a-1],r[s].i[a],r[s].v[a],e,d,g),g=!1):(h=bez.getNewSegment(r[s].v[a-1],r[s].v[a],r[s].o[a-1],r[s].i[a],(n.s-c)/u.addedLength,(n.e-c)/u.addedLength,f[a-1]),this.addSegmentFromArray(h,e,d,g),g=!1,e.c=!1),c+=u.addedLength,d+=1;if(r[s].c&&f.length){if(u=f[a-1],c<=n.e){var v=f[a-1].addedLength;n.s<=c&&n.e>=c+v?(this.addSegment(r[s].v[a-1],r[s].o[a-1],r[s].i[0],r[s].v[0],e,d,g),g=!1):(h=bez.getNewSegment(r[s].v[a-1],r[s].v[0],r[s].o[a-1],r[s].i[0],(n.s-c)/v,(n.e-c)/v,f[a-1]),this.addSegmentFromArray(h,e,d,g),g=!1,e.c=!1)}else e.c=!1;c+=u.addedLength,d+=1}if(e._length&&(e.setXYAt(e.v[p][0],e.v[p][1],"i",p),e.setXYAt(e.v[e._length-1][0],e.v[e._length-1][1],"o",e._length-1)),c>n.e)break;s<o-1&&(e=shapePool.newElement(),g=!0,m.push(e),d=0)}return m};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,n.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,n){var e=n/100,i=[0,0],r=t._length,s=0;for(s=0;s<r;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=r,i[1]/=r;var o=shapePool.newElement();o.c=t.c;var a,l,c,u,d,f;for(s=0;s<r;s+=1)a=t.v[s][0]+(i[0]-t.v[s][0])*e,l=t.v[s][1]+(i[1]-t.v[s][1])*e,c=t.o[s][0]+(i[0]-t.o[s][0])*-e,u=t.o[s][1]+(i[1]-t.o[s][1])*-e,d=t.i[s][0]+(i[0]-t.i[s][0])*-e,f=t.i[s][1]+(i[1]-t.i[s][1])*-e,o.setTripleAt(a,l,c,u,d,f,s);return o},PuckerAndBloatModifier.prototype.processShapes=function(t){var n,e,i=this.shapes.length,r,s,o=this.amount.v;if(o!==0){var a,l;for(e=0;e<i;e+=1){if(a=this.shapes[e],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(l.releaseShapes(),a.shape._mdf=!0,n=a.shape.paths.shapes,s=a.shape.paths._length,r=0;r<s;r+=1)l.addShape(this.processPath(n[r],o));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function n(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function e(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var c;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var u,d;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(u=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),d=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(u=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),d=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(u=this.p.pv,d=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){u=[],d=[];var f=this.px,h=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(u[0]=f.getValueAtTime((f.keyframes[0].t+.01)/c,0),u[1]=h.getValueAtTime((h.keyframes[0].t+.01)/c,0),d[0]=f.getValueAtTime(f.keyframes[0].t/c,0),d[1]=h.getValueAtTime(h.keyframes[0].t/c,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(u[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/c,0),u[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/c,0),d[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/c,0),d[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/c,0)):(u=[f.pv,h.pv],d[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/c,f.offsetTime),d[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/c,h.offsetTime))}else d=t,u=d;this.v.rotate(-Math.atan2(u[1]-d[1],u[0]-d[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function r(){}function s(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function o(l,c,u){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(u||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var d,f=c.or.k.length;for(d=0;d<f;d+=1)c.or.k[d].to=null,c.or.k[d].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:n,getValue:e,precalculateMatrix:i,autoOrient:r},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=s,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function a(l,c,u){return new o(l,c,u)}return{getTransformProperty:a}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,n.c,0,null,this),this.o=PropertyFactory.getProp(t,n.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,n.tr,this),this.so=PropertyFactory.getProp(t,n.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,n.tr.eo,0,.01,this),this.data=n,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,n,e,i,r,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-r),l=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*o*r,i.p.v[1]*o*r,i.p.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.rotate(-i.r.v*o*r),n.translate(i.a.v[0],i.a.v[1],i.a.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.scale(s?1/a:a,s?1/l:l),e.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,n,e,i){for(this.elem=t,this.arr=n,this.pos=e,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,n[e]);e>0;)e-=1,this._elements.unshift(n[e]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var n,e=t.length;for(n=0;n<e;n+=1)t[n]._processed=!1,t[n].ty==="gr"&&this.resetElements(t[n].it)},RepeaterModifier.prototype.cloneElements=function(t){var n=JSON.parse(JSON.stringify(t));return this.resetElements(n),n},RepeaterModifier.prototype.changeGroupRender=function(t,n){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._render=n,t[e].ty==="gr"&&this.changeGroupRender(t[e].it,n)},RepeaterModifier.prototype.processShapes=function(t){var n,e,i,r,s,o=!1;if(this._mdf||t){var a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}s=0;var c;for(i=0;i<=this._groups.length-1;i+=1){if(c=s<a,this._groups[i]._render=c,this.changeGroupRender(this._groups[i].it,c),!c){var u=this.elemsData[i].it,d=u[u.length-1];d.transform.op.v!==0?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}s+=1}this._currentCopies=a;var f=this.o.v,h=f%1,m=f>0?Math.floor(f):Math.ceil(f),p=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(f>0){for(;_<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),_+=h)}else if(f<0){for(;_>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),_-=h)}i=this.data.m===1?0:this._currentCopies-1,r=this.data.m===1?1:-1,s=this._currentCopies;for(var y,x;s;){if(n=this.elemsData[i].it,e=n[n.length-1].transform.mProps.v.props,x=e.length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),_!==0){for((i!==0&&r===1||i!==this._currentCopies-1&&r===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),y=0;y<x;y+=1)e[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<x;y+=1)e[y]=this.matrix.props[y];_+=1,s-=1,i+=r}}else for(s=this._currentCopies,i=0,r=1;s;)n=this.elemsData[i].it,e=n[n.length-1].transform.mProps.v.props,n[n.length-1].transform.mProps._mdf=!1,n[n.length-1].transform.op._mdf=!1,s-=1,i+=r;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,n.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,n){var e=shapePool.newElement();e.c=t.c;var i,r=t._length,s,o,a,l,c,u,d=0,f,h,m,p,g,v;for(i=0;i<r;i+=1)s=t.v[i],a=t.o[i],o=t.i[i],s[0]===a[0]&&s[1]===a[1]&&s[0]===o[0]&&s[1]===o[1]?(i===0||i===r-1)&&!t.c?(e.setTripleAt(s[0],s[1],a[0],a[1],o[0],o[1],d),d+=1):(i===0?l=t.v[r-1]:l=t.v[i-1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=c?Math.min(c/2,n)/c:0,g=s[0]+(l[0]-s[0])*u,f=g,v=s[1]-(s[1]-l[1])*u,h=v,m=f-(f-s[0])*roundCorner,p=h-(h-s[1])*roundCorner,e.setTripleAt(f,h,m,p,g,v,d),d+=1,i===r-1?l=t.v[0]:l=t.v[i+1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=c?Math.min(c/2,n)/c:0,m=s[0]+(l[0]-s[0])*u,f=m,p=s[1]+(l[1]-s[1])*u,h=p,g=f-(f-s[0])*roundCorner,v=h-(h-s[1])*roundCorner,e.setTripleAt(f,h,m,p,g,v,d),d+=1):(e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],d),d+=1);return e},RoundCornersModifier.prototype.processShapes=function(t){var n,e,i=this.shapes.length,r,s,o=this.rd.v;if(o!==0){var a,l;for(e=0;e<i;e+=1){if(a=this.shapes[e],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!t))for(l.releaseShapes(),a.shape._mdf=!0,n=a.shape.paths.shapes,s=a.shape.paths._length,r=0;r<s;r+=1)l.addShape(this.processPath(n[r],o));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(t,n){return Math.abs(t-n)*1e5<=Math.min(Math.abs(t),Math.abs(n))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,n,e){return t*(1-e)+n*e}function lerpPoint(t,n,e){return[lerp(t[0],n[0],e),lerp(t[1],n[1],e)]}function quadRoots(t,n,e){if(t===0)return[];var i=n*n-4*t*e;if(i<0)return[];var r=-n/(2*t);if(i===0)return[r];var s=Math.sqrt(i)/(2*t);return[r-s,r+s]}function polynomialCoefficients(t,n,e,i){return[-t+3*n-3*e+i,3*t-6*n+3*e,-3*t+3*n,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,n,e,i,r){r&&pointEqual(t,n)&&(n=lerpPoint(t,i,1/3)),r&&pointEqual(e,i)&&(e=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],n[0],e[0],i[0]),o=polynomialCoefficients(t[1],n[1],e[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,n,e,i]}PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var n=this.derivative(t);return Math.atan2(n[1],n[0])},PolynomialBezier.prototype.normalAngle=function(t){var n=this.derivative(t);return Math.atan2(n[0],n[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var n=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,e=n*n-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(e<0)return[];var i=Math.sqrt(e);return floatZero(i)?i>0&&i<1?[n]:[]:[n-i,n+i].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var n=lerpPoint(this.points[0],this.points[1],t),e=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(n,e,t),s=lerpPoint(e,i,t),o=lerpPoint(r,s,t);return[new PolynomialBezier(this.points[0],n,r,o,!0),new PolynomialBezier(o,s,i,this.points[3],!0)]};function extrema(t,n){var e=t.points[0][n],i=t.points[t.points.length-1][n];if(e>i){var r=i;i=e,e=r}for(var s=quadRoots(3*t.a[n],2*t.b[n],t.c[n]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[n];a<e?e=a:a>i&&(i=a)}return{min:e,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,n,e){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(n+e)/2,t1:n,t2:e}}function splitData(t){var n=t.bez.split(.5);return[intersectData(n[0],t.t1,t.t),intersectData(n[1],t.t,t.t2)]}function boxIntersect(t,n){return Math.abs(t.cx-n.cx)*2<t.width+n.width&&Math.abs(t.cy-n.cy)*2<t.height+n.height}function intersectsImpl(t,n,e,i,r,s){if(boxIntersect(t,n)){if(e>=s||t.width<=i&&t.height<=i&&n.width<=i&&n.height<=i){r.push([t.t,n.t]);return}var o=splitData(t),a=splitData(n);intersectsImpl(o[0],a[0],e+1,i,r,s),intersectsImpl(o[0],a[1],e+1,i,r,s),intersectsImpl(o[1],a[0],e+1,i,r,s),intersectsImpl(o[1],a[1],e+1,i,r,s)}}PolynomialBezier.prototype.intersections=function(t,n,e){n===void 0&&(n=2),e===void 0&&(e=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,n,i,e),i},PolynomialBezier.shapeSegment=function(t,n){var e=(n+1)%t.length();return new PolynomialBezier(t.v[n],t.o[n],t.i[e],t.v[e],!0)},PolynomialBezier.shapeSegmentInverted=function(t,n){var e=(n+1)%t.length();return new PolynomialBezier(t.v[e],t.i[e],t.o[n],t.v[n],!0)};function crossProduct(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function lineIntersection(t,n,e,i){var r=[t[0],t[1],1],s=[n[0],n[1],1],o=[e[0],e[1],1],a=[i[0],i[1],1],l=crossProduct(crossProduct(r,s),crossProduct(o,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,n,e){return[t[0]+Math.cos(n)*e,t[1]-Math.sin(n)*e]}function pointDistance(t,n){return Math.hypot(t[0]-n[0],t[1]-n[1])}function pointEqual(t,n){return floatEqual(t[0],n[0])&&floatEqual(t[1],n[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,n.s,0,null,this),this.frequency=PropertyFactory.getProp(t,n.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,n.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,n,e,i,r,s,o){var a=e-Math.PI/2,l=e+Math.PI/2,c=n[0]+Math.cos(e)*i*r,u=n[1]-Math.sin(e)*i*r;t.setTripleAt(c,u,c+Math.cos(a)*s,u-Math.sin(a)*s,c+Math.cos(l)*o,u-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,n){var e=[n[0]-t[0],n[1]-t[1]],i=-Math.PI*.5,r=[Math.cos(i)*e[0]-Math.sin(i)*e[1],Math.sin(i)*e[0]+Math.cos(i)*e[1]];return r}function getProjectingAngle(t,n){var e=n===0?t.length()-1:n-1,i=(n+1)%t.length(),r=t.v[e],s=t.v[i],o=getPerpendicularVector(r,s);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(t,n,e,i,r,s,o){var a=getProjectingAngle(n,e),l=n.v[e%n._length],c=n.v[e===0?n._length-1:e-1],u=n.v[(e+1)%n._length],d=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(t,n.v[e%n._length],a,o,i,f/((r+1)*2),d/((r+1)*2),s)}function zigZagSegment(t,n,e,i,r,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),l=r===2?Math.sqrt(Math.pow(n.points[3][0]-n.points[0][0],2)+Math.pow(n.points[3][1]-n.points[0][1],2)):0,c=n.normalAngle(a),u=n.point(a);setPoint(t,u,c,s,e,l/((i+1)*2),l/((i+1)*2),r),s=-s}return s}ZigZagModifier.prototype.processPath=function(t,n,e,i){var r=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(r-=1),r===0)return s;var o=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,n,e,i,o);for(var l=0;l<r;l+=1)o=zigZagSegment(s,a,n,e,i,-o),l===r-1&&!t.c?a=null:a=PolynomialBezier.shapeSegment(t,(l+1)%r),zigZagCorner(s,t,l+1,n,e,i,o);return s},ZigZagModifier.prototype.processShapes=function(t){var n,e,i=this.shapes.length,r,s,o=this.amplitude.v,a=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(o!==0){var c,u;for(e=0;e<i;e+=1){if(c=this.shapes[e],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),c.shape._mdf=!0,n=c.shape.paths.shapes,s=c.shape.paths._length,r=0;r<s;r+=1)u.addShape(this.processPath(n[r],o,a,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(t,n,e){var i=Math.atan2(n[0]-t[0],n[1]-t[1]);return[polarOffset(t,i,e),polarOffset(n,i,e)]}function offsetSegment(t,n){var e,i,r,s,o,a,l;l=linearOffset(t.points[0],t.points[1],n),e=l[0],i=l[1],l=linearOffset(t.points[1],t.points[2],n),r=l[0],s=l[1],l=linearOffset(t.points[2],t.points[3],n),o=l[0],a=l[1];var c=lineIntersection(e,i,r,s);c===null&&(c=i);var u=lineIntersection(o,a,r,s);return u===null&&(u=o),new PolynomialBezier(e,c,u,a)}function joinLines(t,n,e,i,r){var s=n.points[3],o=e.points[0];if(i===3||pointEqual(s,o))return s;if(i===2){var a=-n.tangentAngle(1),l=-e.tangentAngle(0)+Math.PI,c=lineIntersection(s,polarOffset(s,a+Math.PI/2,100),o,polarOffset(o,a+Math.PI/2,100)),u=c?pointDistance(c,s):pointDistance(s,o)/2,d=polarOffset(s,a,2*u*roundCorner);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=polarOffset(o,l,2*u*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],t.length()),o}var f=pointEqual(s,n.points[2])?n.points[0]:n.points[2],h=pointEqual(o,e.points[1])?e.points[3]:e.points[1],m=lineIntersection(f,s,o,h);return m&&pointDistance(m,s)<r?(t.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],t.length()),m):s}function getIntersection(t,n){var e=t.intersections(n);return e.length&&floatEqual(e[0][0],1)&&e.shift(),e.length?e[0]:null}function pruneSegmentIntersection(t,n){var e=t.slice(),i=n.slice(),r=getIntersection(t[t.length-1],n[0]);return r&&(e[t.length-1]=t[t.length-1].split(r[0])[0],i[0]=n[0].split(r[1])[1]),t.length>1&&n.length>1&&(r=getIntersection(t[0],n[n.length-1]),r)?[[t[0].split(r[0])[0]],[n[n.length-1].split(r[1])[1]]]:[e,i]}function pruneIntersections(t){for(var n,e=1;e<t.length;e+=1)n=pruneSegmentIntersection(t[e-1],t[e]),t[e-1]=n[0],t[e]=n[1];return t.length>1&&(n=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=n[0],t[0]=n[1]),t}function offsetSegmentSplit(t,n){var e=t.inflectionPoints(),i,r,s,o;if(e.length===0)return[offsetSegment(t,n)];if(e.length===1||floatEqual(e[1],1))return s=t.split(e[0]),i=s[0],r=s[1],[offsetSegment(i,n),offsetSegment(r,n)];s=t.split(e[0]),i=s[0];var a=(e[1]-e[0])/(1-e[0]);return s=s[1].split(a),o=s[0],r=s[1],[offsetSegment(i,n),offsetSegment(o,n),offsetSegment(r,n)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,n.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,n.ml,0,null,this),this.lineJoin=n.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,n,e,i){var r=shapePool.newElement();r.c=t.c;var s=t.length();t.c||(s-=1);var o,a,l,c=[];for(o=0;o<s;o+=1)l=PolynomialBezier.shapeSegment(t,o),c.push(offsetSegmentSplit(l,n));if(!t.c)for(o=s-1;o>=0;o-=1)l=PolynomialBezier.shapeSegmentInverted(t,o),c.push(offsetSegmentSplit(l,n));c=pruneIntersections(c);var u=null,d=null;for(o=0;o<c.length;o+=1){var f=c[o];for(d&&(u=joinLines(r,d,f[0],e,i)),d=f[f.length-1],a=0;a<f.length;a+=1)l=f[a],u&&pointEqual(l.points[0],u)?r.setXYAt(l.points[1][0],l.points[1][1],"o",r.length()-1):r.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],r.length()),r.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],r.length()),u=l.points[3]}return c.length&&joinLines(r,d,c[0][0],e,i),r},OffsetPathModifier.prototype.processShapes=function(t){var n,e,i=this.shapes.length,r,s,o=this.amount.v,a=this.miterLimit.v,l=this.lineJoin;if(o!==0){var c,u;for(e=0;e<i;e+=1){if(c=this.shapes[e],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),c.shape._mdf=!0,n=c.shape.paths.shapes,s=c.shape.paths._length,r=0;r<s;r+=1)u.addShape(this.processPath(n[r],o,l,a));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(t){for(var n=t.fStyle?t.fStyle.split(" "):[],e="normal",i="normal",r=n.length,s,o=0;o<r;o+=1)switch(s=n[o].toLowerCase(),s){case"italic":i="italic";break;case"bold":e="700";break;case"black":e="900";break;case"medium":e="500";break;case"regular":case"normal":e="400";break;case"light":case"thin":e="200";break;default:break}return{style:i,weight:t.fWeight||e}}var FontManager=function(){var t=5e3,n={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,r=917631,s=917601,o=917626,a=65039,l=8205,c=127462,u=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(M){var R=M.split(","),S,D=R.length,Q=[];for(S=0;S<D;S+=1)R[S]!=="sans-serif"&&R[S]!=="monospace"&&Q.push(R[S]);return Q.join(",")}function h(M,R){var S=createTag("span");S.setAttribute("aria-hidden",!0),S.style.fontFamily=R;var D=createTag("span");D.innerText="giItT1WQy@!-/#",S.style.position="absolute",S.style.left="-10000px",S.style.top="-10000px",S.style.fontSize="300px",S.style.fontVariant="normal",S.style.fontStyle="normal",S.style.fontWeight="normal",S.style.letterSpacing="0",S.appendChild(D),document.body.appendChild(S);var Q=D.offsetWidth;return D.style.fontFamily=f(M)+", "+R,{node:D,w:Q,parent:S}}function m(){var M,R=this.fonts.length,S,D,Q=R;for(M=0;M<R;M+=1)this.fonts[M].loaded?Q-=1:this.fonts[M].fOrigin==="n"||this.fonts[M].origin===0?this.fonts[M].loaded=!0:(S=this.fonts[M].monoCase.node,D=this.fonts[M].monoCase.w,S.offsetWidth!==D?(Q-=1,this.fonts[M].loaded=!0):(S=this.fonts[M].sansCase.node,D=this.fonts[M].sansCase.w,S.offsetWidth!==D&&(Q-=1,this.fonts[M].loaded=!0)),this.fonts[M].loaded&&(this.fonts[M].sansCase.parent.parentNode.removeChild(this.fonts[M].sansCase.parent),this.fonts[M].monoCase.parent.parentNode.removeChild(this.fonts[M].monoCase.parent)));Q!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function p(M,R){var S=document.body&&R?"svg":"canvas",D,Q=getFontProperties(M);if(S==="svg"){var X=createNS("text");X.style.fontSize="100px",X.setAttribute("font-family",M.fFamily),X.setAttribute("font-style",Q.style),X.setAttribute("font-weight",Q.weight),X.textContent="1",M.fClass?(X.style.fontFamily="inherit",X.setAttribute("class",M.fClass)):X.style.fontFamily=M.fFamily,R.appendChild(X),D=X}else{var V=new OffscreenCanvas(500,500).getContext("2d");V.font=Q.style+" "+Q.weight+" 100px "+M.fFamily,D=V}function ie(H){return S==="svg"?(D.textContent=H,D.getComputedTextLength()):D.measureText(H).width}return{measureText:ie}}function g(M,R){if(!M){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=M.list;return}if(!document.body){this.isLoaded=!0,M.list.forEach(function(Ue){Ue.helper=p(Ue),Ue.cache={}}),this.fonts=M.list;return}var S=M.list,D,Q=S.length,X=Q;for(D=0;D<Q;D+=1){var V=!0,ie,H;if(S[D].loaded=!1,S[D].monoCase=h(S[D].fFamily,"monospace"),S[D].sansCase=h(S[D].fFamily,"sans-serif"),!S[D].fPath)S[D].loaded=!0,X-=1;else if(S[D].fOrigin==="p"||S[D].origin===3){if(ie=document.querySelectorAll('style[f-forigin="p"][f-family="'+S[D].fFamily+'"], style[f-origin="3"][f-family="'+S[D].fFamily+'"]'),ie.length>0&&(V=!1),V){var K=createTag("style");K.setAttribute("f-forigin",S[D].fOrigin),K.setAttribute("f-origin",S[D].origin),K.setAttribute("f-family",S[D].fFamily),K.type="text/css",K.innerText="@font-face {font-family: "+S[D].fFamily+"; font-style: normal; src: url('"+S[D].fPath+"');}",R.appendChild(K)}}else if(S[D].fOrigin==="g"||S[D].origin===1){for(ie=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),H=0;H<ie.length;H+=1)ie[H].href.indexOf(S[D].fPath)!==-1&&(V=!1);if(V){var de=createTag("link");de.setAttribute("f-forigin",S[D].fOrigin),de.setAttribute("f-origin",S[D].origin),de.type="text/css",de.rel="stylesheet",de.href=S[D].fPath,document.body.appendChild(de)}}else if(S[D].fOrigin==="t"||S[D].origin===2){for(ie=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),H=0;H<ie.length;H+=1)S[D].fPath===ie[H].src&&(V=!1);if(V){var Ee=createTag("link");Ee.setAttribute("f-forigin",S[D].fOrigin),Ee.setAttribute("f-origin",S[D].origin),Ee.setAttribute("rel","stylesheet"),Ee.setAttribute("href",S[D].fPath),R.appendChild(Ee)}}S[D].helper=p(S[D],R),S[D].cache={},this.fonts.push(S[D])}X===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function v(M){if(M){this.chars||(this.chars=[]);var R,S=M.length,D,Q=this.chars.length,X;for(R=0;R<S;R+=1){for(D=0,X=!1;D<Q;)this.chars[D].style===M[R].style&&this.chars[D].fFamily===M[R].fFamily&&this.chars[D].ch===M[R].ch&&(X=!0),D+=1;X||(this.chars.push(M[R]),Q+=1)}}}function _(M,R,S){for(var D=0,Q=this.chars.length;D<Q;){if(this.chars[D].ch===M&&this.chars[D].style===R&&this.chars[D].fFamily===S)return this.chars[D];D+=1}return(typeof M=="string"&&M.charCodeAt(0)!==13||!M)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",M,R,S)),n}function y(M,R,S){var D=this.getFontByName(R),Q=M;if(!D.cache[Q]){var X=D.helper;if(M===" "){var V=X.measureText("|"+M+"|"),ie=X.measureText("||");D.cache[Q]=(V-ie)/100}else D.cache[Q]=X.measureText(M)/100}return D.cache[Q]*S}function x(M){for(var R=0,S=this.fonts.length;R<S;){if(this.fonts[R].fName===M)return this.fonts[R];R+=1}return this.fonts[0]}function w(M){var R=0,S=M.charCodeAt(0);if(S>=55296&&S<=56319){var D=M.charCodeAt(1);D>=56320&&D<=57343&&(R=(S-55296)*1024+D-56320+65536)}return R}function T(M,R){var S=M.toString(16)+R.toString(16);return d.indexOf(S)!==-1}function E(M){return M===l}function k(M){return M===a}function F(M){var R=w(M);return R>=c&&R<=u}function G(M){return F(M.substr(0,2))&&F(M.substr(2,2))}function Y(M){return e.indexOf(M)!==-1}function W(M,R){var S=w(M.substr(R,2));if(S!==i)return!1;var D=0;for(R+=2;D<5;){if(S=w(M.substr(R,2)),S<s||S>o)return!1;D+=1,R+=2}return w(M.substr(R,2))===r}function le(){this.isLoaded=!0}var ge=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ge.isModifier=T,ge.isZeroWidthJoiner=E,ge.isFlagEmoji=G,ge.isRegionalCode=F,ge.isCombinedCharacter=Y,ge.isRegionalFlag=W,ge.isVariationSelector=k,ge.BLACK_FLAG_CODE_POINT=i;var te={addChars:v,addFonts:g,getCharData:_,getFontByName:x,measureText:y,checkLoadedFonts:m,setIsLoaded:le};return ge.prototype=te,ge}();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(n){this.renderableComponents.indexOf(n)===-1&&this.renderableComponents.push(n)},removeRenderableComponent:function(n){this.renderableComponents.indexOf(n)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(n),1)},prepareRenderableFrame:function(n){this.checkLayerLimits(n)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(n){this.data.ip-this.data.st<=n&&this.data.op-this.data.st>n?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var n,e=this.renderableComponents.length;for(n=0;n<e;n+=1)this.renderableComponents[n].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(n){return t[n]||""}}();function SliderEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,0,0,e)}function AngleEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,0,0,e)}function ColorEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,1,0,e)}function PointEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,1,0,e)}function LayerIndexEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,0,0,e)}function MaskIndexEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,0,0,e)}function CheckboxEffect(t,n,e){this.p=PropertyFactory.getProp(n,t.v,0,0,e)}function NoValueEffect(){this.p={}}function EffectsManager(t,n){var e=t.ef||[];this.effectElements=[];var i,r=e.length,s;for(i=0;i<r;i+=1)s=new GroupEffect(e[i],n),this.effectElements.push(s)}function GroupEffect(t,n){this.init(t,n)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,n){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(n);var e,i=this.data.ef.length,r,s=this.data.ef;for(e=0;e<i;e+=1){switch(r=null,s[e].ty){case 0:r=new SliderEffect(s[e],n,this);break;case 1:r=new AngleEffect(s[e],n,this);break;case 2:r=new ColorEffect(s[e],n,this);break;case 3:r=new PointEffect(s[e],n,this);break;case 4:case 7:r=new CheckboxEffect(s[e],n,this);break;case 10:r=new LayerIndexEffect(s[e],n,this);break;case 11:r=new MaskIndexEffect(s[e],n,this);break;case 5:r=new EffectsManager(s[e],n,this);break;default:r=new NoValueEffect(s[e],n,this);break}r&&this.effectElements.push(r)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var n=0,e=this.data.masksProperties.length;n<e;){if(this.data.masksProperties[n].mode!=="n"&&this.data.masksProperties[n].cl!==!1)return!0;n+=1}return!1},initExpressions:function(){var n=getExpressionInterfaces();if(n){var e=n("layer"),i=n("effects"),r=n("shape"),s=n("text"),o=n("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var n=getBlendMode(this.data.bm),e=this.baseElement||this.layerElement;e.style["mix-blend-mode"]=n},initBaseData:function(n,e,i){this.globalData=e,this.comp=i,this.data=n,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(n,e){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(e||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&this.dynamicProperties.push(n)}};function FootageElement(t,n,e){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(t.refId),this.footageData=n.imageLoader.getAsset(this.assetData),this.initBaseData(t,n,e)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var n=t("footage");this.layerInterface=n(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,n,e){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(t.refId),this.initBaseData(t,n,e),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,n.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var n=this.tm.v;this._currentTime=n}this._volume=this.lv.v[0];var e=this._volume*this._volumeMultiplier;this._previousVolume!==e&&(this._previousVolume=e,this.audio.volume(e))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var n,e=this.layers.length,i;for(this.completeLayers=!0,n=e-1;n>=0;n-=1)this.elements[n]||(i=this.layers[n],i.ip-i.st<=t-this.layers[n].st&&i.op-i.st>t-this.layers[n].st&&this.buildItem(n)),this.completeLayers=this.elements[n]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,n=this.layers.length;for(t=0;t<n;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var n,e=t.length,i,r=this.layers.length;for(n=0;n<e;n+=1)for(i=0;i<r;){if(this.layers[i].id===t[n].id){this.layers[i]=t[n];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,n,e){for(var i=this.elements,r=this.layers,s=0,o=r.length;s<o;)r[s].ind==n&&(!i[s]||i[s]===!0?(this.buildItem(s),this.addPendingElement(t)):(e.push(i[s]),i[s].setAsParent(),r[s].parent!==void 0?this.buildElementParenting(t,r[s].parent,e):t.setHierarchy(e))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var n,e=t.length;for(n=0;n<e;n+=1)if(t[n].xt){var i=this.createComp(t[n]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(t){var n,e=this.elements.length;for(n=0;n<e;n+=1)if(this.elements[n].data.ind===t)return this.elements[n];return null},BaseRenderer.prototype.getElementByPath=function(t){var n=t.shift(),e;if(typeof n=="number")e=this.elements[n];else{var i,r=this.elements.length;for(i=0;i<r;i+=1)if(this.elements[i].data.nm===n){e=this.elements[i];break}}return t.length===0?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,n){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,n),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var n=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:n,localMat:n,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var n,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(n=this.finalTransform.mProp.v.props,e.cloneFromProps(n),i=0;i<r;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var n=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;n<e;)this.localTransforms[n]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[n]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),n+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),n=1;n<e;n+=1){var r=this.localTransforms[n].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(n=0;n<e;n+=1)s*=this.localTransforms[n].opacity*.01;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var n=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(n.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=n.length;for(e=0;e<i;e+=1)this.localTransforms.push(n[e])}}},globalToLocal:function(n){var e=[];e.push(this.finalTransform);for(var i=!0,r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;var s,o=e.length,a;for(s=0;s<o;s+=1)a=e[s].mat.applyToPointArray(0,0,0),n=[n[0]-a[0],n[1]-a[1],0];return n},mHelper:new Matrix};function MaskElement(t,n,e){this.data=t,this.element=n,this.globalData=e,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,r,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,a=this.masksProperties,l=0,c=[],u,d,f=createElementID(),h,m,p,g,v="clipPath",_="clip-path";for(r=0;r<s;r+=1)if((a[r].mode!=="a"&&a[r].mode!=="n"||a[r].inv||a[r].o.k!==100||a[r].o.x)&&(v="mask",_="mask"),(a[r].mode==="s"||a[r].mode==="i")&&l===0?(h=createNS("rect"),h.setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),c.push(h)):h=null,o=createNS("path"),a[r].mode==="n")this.viewData[r]={op:PropertyFactory.getProp(this.element,a[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[r],3),elem:o,lastPath:""},i.appendChild(o);else{l+=1,o.setAttribute("fill",a[r].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var y;if(a[r].x.k!==0?(v="mask",_="mask",g=PropertyFactory.getProp(this.element,a[r].x,0,null,this.element),y=createElementID(),m=createNS("filter"),m.setAttribute("id",y),p=createNS("feMorphology"),p.setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),m.appendChild(p),i.appendChild(m),o.setAttribute("stroke",a[r].mode==="s"?"#000000":"#ffffff")):(p=null,g=null),this.storedData[r]={elem:o,x:g,expan:p,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},a[r].mode==="i"){d=c.length;var x=createNS("g");for(u=0;u<d;u+=1)x.appendChild(c[u]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",f+"_"+l),w.appendChild(o),i.appendChild(w),x.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),c.length=0,c.push(x)}else c.push(o);a[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,a[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[r],3),invRect:h},this.viewData[r].prop.k||this.drawPath(a[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),s=c.length,r=0;r<s;r+=1)this.maskElement.appendChild(c[r]);l>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(_,"url("+getLocationHref()+"#"+f+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var n=this.element.finalTransform.mat,e,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),this.masksProperties[e].mode!=="n"&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?(this.storedData[e].lastOperator!=="erode"&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):(this.storedData[e].lastOperator!=="dilate"&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",this.storedData[e].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},MaskElement.prototype.drawPath=function(t,n,e){var i=" M"+n.v[0][0]+","+n.v[0][1],r,s;for(s=n._length,r=1;r<s;r+=1)i+=" C"+n.o[r-1][0]+","+n.o[r-1][1]+" "+n.i[r][0]+","+n.i[r][1]+" "+n.v[r][0]+","+n.v[r][1];if(n.c&&s>1&&(i+=" C"+n.o[r-1][0]+","+n.o[r-1][1]+" "+n.i[0][0]+","+n.i[0][1]+" "+n.v[0][0]+","+n.v[0][1]),e.lastPath!==i){var o="";e.elem&&(n.c&&(o=t.inv?this.solidPath+i:i),e.elem.setAttribute("d",o)),e.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};t.createFilter=n,t.createAlphaToLuminanceFilter=e;function n(i,r){var s=createNS("filter");return s.setAttribute("id",i),r!==!0&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s}function e(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),i}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var n,e="SourceGraphic",i=t.data.ef?t.data.ef.length:0,r=createElementID(),s=filtersFactory.createFilter(r,!0),o=0;this.filters=[];var a;for(n=0;n<i;n+=1){a=null;var l=t.data.ef[n].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;a=new c(s,t.effectsManager.effectElements[n],t,idPrefix+o,e),e=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)}a&&this.filters.push(a)}o&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(t){var n,e=this.filters.length;for(n=0;n<e;n+=1)this.filters[n].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var n,e=this.filters.length,i=[];for(n=0;n<e;n+=1)this.filters[n].type===t&&i.push(this.filters[n]);return i};function registerEffect$1(t,n,e){registeredEffects$1[t]={effect:n,countsAsEffect:e}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var n=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),n=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),n=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),o.appendChild(this.layerElement),this.transformedElement=o,n?n.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(n){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[n]){var e=this.layerId+"_"+n,i,r,s,o;if(n===1||n===3){var a=createNS("mask");a.setAttribute("id",e),a.setAttribute("mask-type",n===3?"luminance":"alpha"),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(s),this.globalData.defs.appendChild(a),!featureSupport.maskType&&n===1&&(a.setAttribute("mask-type","luminance"),i=createElementID(),r=filtersFactory.createFilter(i),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(s),a.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(n===2){var l=createNS("mask");l.setAttribute("id",e),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),i=createElementID(),r=filtersFactory.createFilter(i);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),r.appendChild(u);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),u.appendChild(d),this.globalData.defs.appendChild(r);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),c.appendChild(f),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(s),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),c.appendChild(f),o.appendChild(this.layerElement),c.appendChild(o)),this.globalData.defs.appendChild(l)}this.matteMasks[n]=e}return this.matteMasks[n]},setMatte:function(n){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+n+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(n){this.hierarchy=n},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var t={initElement:function(e,i,r){this.initFrame(),this.initBaseData(e,i,r),this.initTransform(e,i,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var e=this.baseElement||this.layerElement;e.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var e=this.baseElement||this.layerElement;e.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(t)],RenderableDOMElement)})();function IImageElement(t,n,e){this.assetData=n.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=n.slotManager.getProp(this.assetData)),this.initElement(t,n,e),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,n){this.elem=t,this.pos=n}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(n){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(n)},isShapeInAnimatedModifiers:function(n){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(n))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var n,e=this.shapes.length;for(n=0;n<e;n+=1)this.shapes[n].sh.reset();e=this.shapeModifiers.length;var i;for(n=e-1;n>=0&&(i=this.shapeModifiers[n].processShapes(this._isFirstFrame),!i);n-=1);}},searchProcessedElement:function(n){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===n)return e[i].pos;i+=1}return 0},addProcessedElement:function(n,e){for(var i=this.processedElements,r=i.length;r;)if(r-=1,i[r].elem===n){i[r].pos=e;return}i.push(new ProcessedElement(n,e))},prepareFrame:function(n){this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,n,e){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=e,this.lvl=n,this._isAnimated=!!e.k;for(var i=0,r=t.length;i<r;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(t,n){this.data=t,this.type=t.ty,this.d="",this.lvl=n,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(t,n,e,i){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(n.length),this.renderer=e,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",n.length?n.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var r,s=n.length||0,o;for(r=0;r<s;r+=1)o=PropertyFactory.getProp(t,n[r].v,0,0,this),this.k=o.k||this.k,this.dataProps[r]={n:n[r].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var n=0,e=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),n=0;n<e;n+=1)this.dataProps[n].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[n].p.v:this.dashArray[n]=this.dataProps[n].p.v:this.dashoffset[0]=this.dataProps[n].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,n,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,n.o,0,.01,this),this.w=PropertyFactory.getProp(t,n.w,0,null,this),this.d=new DashProperty(t,n.d||{},"svg",this),this.c=PropertyFactory.getProp(t,n.c,1,255,this),this.style=e,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,n,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,n.o,0,.01,this),this.c=PropertyFactory.getProp(t,n.c,1,255,this),this.style=e}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,n,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=e}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,n,e){this.data=n,this.c=createTypedArray("uint8c",n.p*4);var i=n.k.k[0].s?n.k.k[0].s.length-n.p*4:n.k.k.length-n.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(e),this.prop=PropertyFactory.getProp(t,n.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(t,n){for(var e=0,i=this.o.length/2,r;e<i;){if(r=Math.abs(t[e*4]-t[n*4+e*2]),r>.01)return!1;e+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,n=this.data.k.k.length;t<n;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var n,e=this.data.p*4,i,r;for(n=0;n<e;n+=1)i=n%4===0?100:255,r=Math.round(this.prop.v[n]*i),this.c[n]!==r&&(this.c[n]=r,this._cmdf=!t);if(this.o.length)for(e=this.prop.v.length,n=this.data.p*4;n<e;n+=1)i=n%2===0?100:1,r=n%2===0?Math.round(this.prop.v[n]*100):this.prop.v[n],this.o[n-this.data.p*4]!==r&&(this.o[n-this.data.p*4]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,n,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,n,e)}SVGGradientFillStyleData.prototype.initGradientData=function(t,n,e){this.o=PropertyFactory.getProp(t,n.o,0,.01,this),this.s=PropertyFactory.getProp(t,n.s,1,null,this),this.e=PropertyFactory.getProp(t,n.e,1,null,this),this.h=PropertyFactory.getProp(t,n.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,n.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,n.g,this),this.style=e,this.stops=[],this.setGradientData(e.pElem,n),this.setGradientOpacity(n,e),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,n){var e=createElementID(),i=createNS(n.t===1?"linearGradient":"radialGradient");i.setAttribute("id",e),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var r=[],s,o,a;for(a=n.g.p*4,o=0;o<a;o+=4)s=createNS("stop"),i.appendChild(s),r.push(s);t.setAttribute(n.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+e+")"),this.gf=i,this.cst=r},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,n){if(this.g._hasOpacity&&!this.g._collapsable){var e,i,r,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(t.t===1?"linearGradient":"radialGradient");c.setAttribute("id",a),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(i=t.g.p*4;i<r;i+=2)e=createNS("stop"),e.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(e),u.push(e);o.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),t.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=c,this.ms=s,this.ost=u,this.maskId=l,n.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,n,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,n.w,0,null,this),this.d=new DashProperty(t,n.d||{},"svg",this),this.initGradientData(t,n,e),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,n,e){this.transform={mProps:t,op:n,container:e},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(n,e,i,r){if(e===0)return"";var s=n.o,o=n.i,a=n.v,l,c=" M"+r.applyToPointStringified(a[0][0],a[0][1]);for(l=1;l<e;l+=1)c+=" C"+r.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+r.applyToPointStringified(o[l][0],o[l][1])+" "+r.applyToPointStringified(a[l][0],a[l][1]);return i&&e&&(c+=" C"+r.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(a[0][0],a[0][1]),c+="z"),c},SVGElementsRenderer=function(){var t=new Matrix,n=new Matrix,e={createRenderFunction:i};function i(d){switch(d.ty){case"fl":return a;case"gf":return c;case"gs":return l;case"st":return u;case"sh":case"el":case"rc":case"sr":return o;case"tr":return r;case"no":return s;default:return null}}function r(d,f,h){(h||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(h||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function s(){}function o(d,f,h){var m,p,g,v,_,y,x=f.styles.length,w=f.lvl,T,E,k,F;for(y=0;y<x;y+=1){if(v=f.sh._mdf||h,f.styles[y].lvl<w){for(E=n.reset(),k=w-f.styles[y].lvl,F=f.transformers.length-1;!v&&k>0;)v=f.transformers[F].mProps._mdf||v,k-=1,F-=1;if(v)for(k=w-f.styles[y].lvl,F=f.transformers.length-1;k>0;)E.multiply(f.transformers[F].mProps.v),k-=1,F-=1}else E=t;if(T=f.sh.paths,p=T._length,v){for(g="",m=0;m<p;m+=1)_=T.shapes[m],_&&_._length&&(g+=buildShapeString(_,_._length,_.c,E));f.caches[y]=g}else g=f.caches[y];f.styles[y].d+=d.hd===!0?"":g,f.styles[y]._mdf=v||f.styles[y]._mdf}}function a(d,f,h){var m=f.style;(f.c._mdf||h)&&m.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||h)&&m.pElem.setAttribute("fill-opacity",f.o.v)}function l(d,f,h){c(d,f,h),u(d,f,h)}function c(d,f,h){var m=f.gf,p=f.g._hasOpacity,g=f.s.v,v=f.e.v;if(f.o._mdf||h){var _=d.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(_,f.o.v)}if(f.s._mdf||h){var y=d.t===1?"x1":"cx",x=y==="x1"?"y1":"cy";m.setAttribute(y,g[0]),m.setAttribute(x,g[1]),p&&!f.g._collapsable&&(f.of.setAttribute(y,g[0]),f.of.setAttribute(x,g[1]))}var w,T,E,k;if(f.g._cmdf||h){w=f.cst;var F=f.g.c;for(E=w.length,T=0;T<E;T+=1)k=w[T],k.setAttribute("offset",F[T*4]+"%"),k.setAttribute("stop-color","rgb("+F[T*4+1]+","+F[T*4+2]+","+F[T*4+3]+")")}if(p&&(f.g._omdf||h)){var G=f.g.o;for(f.g._collapsable?w=f.cst:w=f.ost,E=w.length,T=0;T<E;T+=1)k=w[T],f.g._collapsable||k.setAttribute("offset",G[T*2]+"%"),k.setAttribute("stop-opacity",G[T*2+1])}if(d.t===1)(f.e._mdf||h)&&(m.setAttribute("x2",v[0]),m.setAttribute("y2",v[1]),p&&!f.g._collapsable&&(f.of.setAttribute("x2",v[0]),f.of.setAttribute("y2",v[1])));else{var Y;if((f.s._mdf||f.e._mdf||h)&&(Y=Math.sqrt(Math.pow(g[0]-v[0],2)+Math.pow(g[1]-v[1],2)),m.setAttribute("r",Y),p&&!f.g._collapsable&&f.of.setAttribute("r",Y)),f.e._mdf||f.h._mdf||f.a._mdf||h){Y||(Y=Math.sqrt(Math.pow(g[0]-v[0],2)+Math.pow(g[1]-v[1],2)));var W=Math.atan2(v[1]-g[1],v[0]-g[0]),le=f.h.v;le>=1?le=.99:le<=-1&&(le=-.99);var ge=Y*le,te=Math.cos(W+f.a.v)*ge+g[0],M=Math.sin(W+f.a.v)*ge+g[1];m.setAttribute("fx",te),m.setAttribute("fy",M),p&&!f.g._collapsable&&(f.of.setAttribute("fx",te),f.of.setAttribute("fy",M))}}}function u(d,f,h){var m=f.style,p=f.d;p&&(p._mdf||h)&&p.dashStr&&(m.pElem.setAttribute("stroke-dasharray",p.dashStr),m.pElem.setAttribute("stroke-dashoffset",p.dashoffset[0])),f.c&&(f.c._mdf||h)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||h)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||h)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.w.v))}return e}();function SVGShapeElement(t,n,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,n,e),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,n=this.shapes.length,e,i,r=this.stylesList.length,s,o=[],a=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],a=!1,o.length=0,t=0;t<n;t+=1)e=this.shapes[t],e.styles.indexOf(s)!==-1&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var n,e=t.length;for(n=0;n<e;n+=1)t[n].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,n){var e,i=new SVGStyleData(t,n),r=i.pElem;if(t.ty==="st")e=new SVGStrokeStyleData(this,t,i);else if(t.ty==="fl")e=new SVGFillStyleData(this,t,i);else if(t.ty==="gf"||t.ty==="gs"){var s=t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;e=new s(this,t,i),this.globalData.defs.appendChild(e.gf),e.maskId&&(this.globalData.defs.appendChild(e.ms),this.globalData.defs.appendChild(e.of),r.setAttribute("mask","url("+getLocationHref()+"#"+e.maskId+")"))}else t.ty==="no"&&(e=new SVGNoStyleData(this,t,i));return(t.ty==="st"||t.ty==="gs")&&(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),t.lj===1&&r.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.createGroupElement=function(t){var n=new ShapeGroupData;return t.ln&&n.gr.setAttribute("id",t.ln),t.cl&&n.gr.setAttribute("class",t.cl),t.bm&&(n.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),n},SVGShapeElement.prototype.createTransformElement=function(t,n){var e=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(e,e.o,n);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,n,e){var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7);var r=ShapePropertyFactory.getShapeProp(this,t,i,this),s=new SVGShapeData(n,e,r);return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(t,n){for(var e=0,i=this.animatedContents.length;e<i;){if(this.animatedContents[e].element===n)return;e+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:n,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var n=t.styles,e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,n=this.itemsData.length;for(t=0;t<n;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),n=this.dynamicProperties.length,t=0;t<n;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,n,e,i,r,s,o){var a=[].concat(s),l,c=t.length-1,u,d,f=[],h=[],m,p,g;for(l=c;l>=0;l-=1){if(g=this.searchProcessedElement(t[l]),g?n[l]=e[g-1]:t[l]._render=o,t[l].ty==="fl"||t[l].ty==="st"||t[l].ty==="gf"||t[l].ty==="gs"||t[l].ty==="no")g?n[l].style.closed=!1:n[l]=this.createStyleElement(t[l],r),t[l]._render&&n[l].style.pElem.parentNode!==i&&i.appendChild(n[l].style.pElem),f.push(n[l].style);else if(t[l].ty==="gr"){if(!g)n[l]=this.createGroupElement(t[l]);else for(d=n[l].it.length,u=0;u<d;u+=1)n[l].prevViewData[u]=n[l].it[u];this.searchShapes(t[l].it,n[l].it,n[l].prevViewData,n[l].gr,r+1,a,o),t[l]._render&&n[l].gr.parentNode!==i&&i.appendChild(n[l].gr)}else t[l].ty==="tr"?(g||(n[l]=this.createTransformElement(t[l],i)),m=n[l].transform,a.push(m)):t[l].ty==="sh"||t[l].ty==="rc"||t[l].ty==="el"||t[l].ty==="sr"?(g||(n[l]=this.createShapeElement(t[l],a,r)),this.setElementStyles(n[l])):t[l].ty==="tm"||t[l].ty==="rd"||t[l].ty==="ms"||t[l].ty==="pb"||t[l].ty==="zz"||t[l].ty==="op"?(g?(p=n[l],p.closed=!1):(p=ShapeModifiers.getModifier(t[l].ty),p.init(this,t[l]),n[l]=p,this.shapeModifiers.push(p)),h.push(p)):t[l].ty==="rp"&&(g?(p=n[l],p.closed=!0):(p=ShapeModifiers.getModifier(t[l].ty),n[l]=p,p.init(this,t,l,n),this.shapeModifiers.push(p),o=!1),h.push(p));this.addProcessedElement(t[l],l+1)}for(c=f.length,l=0;l<c;l+=1)f[l].closed=!0;for(c=h.length,l=0;l<c;l+=1)h[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<n;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,n=this.animatedContents.length,e;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&e.data!==!0&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(t,n,e,i,r,s){this.o=t,this.sw=n,this.sc=e,this.fc=i,this.m=r,this.p=s,this._mdf={o:!0,sw:!!n,sc:!!e,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(t,n,e,i,r,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==n&&(this.sw=n,this._mdf.sw=!0,o=!0),this.sc!==e&&(this.sc=e,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,o=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,o=!0),o};function TextProperty(t,n){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,n.d&&n.d.sid&&(n.d=t.globalData.slotManager.getProp(n.d)),this.data=n,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var n=this.currentData,e=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<r;i+=1)e!==this.keysIndex?s=this.effectsSequence[i](s,s.t):s=this.effectsSequence[i](this.currentData,s.t);n!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,n=this.elem.comp.renderedFrame,e=0,i=t.length;e<=i-1&&!(e===i-1||t[e+1].t>n);)e+=1;return this.keysIndex!==e&&(this.keysIndex=e),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var n=[],e=0,i=t.length,r,s,o=!1,a=!1,l="";e<i;)o=a,a=!1,r=t.charCodeAt(e),l=t.charAt(e),FontManager.isCombinedCharacter(r)?o=!0:r>=55296&&r<=56319?FontManager.isRegionalFlag(t,e)?l=t.substr(e,14):(s=t.charCodeAt(e+1),s>=56320&&s<=57343&&(FontManager.isModifier(r,s)?(l=t.substr(e,2),o=!0):FontManager.isFlagEmoji(t.substr(e,4))?l=t.substr(e,4):l=t.substr(e,2))):r>56319?(s=t.charCodeAt(e+1),FontManager.isVariationSelector(r)&&(o=!0)):FontManager.isZeroWidthJoiner(r)&&(o=!0,a=!0),o?(n[n.length-1]+=l,o=!1):n.push(l),e+=l.length;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var n=this.elem.globalData.fontManager,e=this.data,i=[],r,s,o,a=0,l,c=e.m.g,u=0,d=0,f=0,h=[],m=0,p=0,g,v,_=n.getFontByName(t.f),y,x=0,w=getFontProperties(_);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var T=t.tr/1e3*t.finalSize,E;if(t.sz)for(var k=!0,F=t.sz[0],G=t.sz[1],Y,W;k;){W=this.buildFinalText(t.t),Y=0,m=0,s=W.length,T=t.tr/1e3*t.finalSize;var le=-1;for(r=0;r<s;r+=1)E=W[r].charCodeAt(0),o=!1,W[r]===" "?le=r:(E===13||E===3)&&(m=0,o=!0,Y+=t.finalLineHeight||t.finalSize*1.2),n.chars?(y=n.getCharData(W[r],_.fStyle,_.fFamily),x=o?0:y.w*t.finalSize/100):x=n.measureText(W[r],t.f,t.finalSize),m+x>F&&W[r]!==" "?(le===-1?s+=1:r=le,Y+=t.finalLineHeight||t.finalSize*1.2,W.splice(r,le===r?1:0,"\r"),le=-1,m=0):(m+=x,m+=T);Y+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&G<Y?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=W,s=t.finalText.length,k=!1)}m=-T,x=0;var ge=0,te;for(r=0;r<s;r+=1)if(o=!1,te=t.finalText[r],E=te.charCodeAt(0),E===13||E===3?(ge=0,h.push(m),p=m>p?m:p,m=-2*T,l="",o=!0,f+=1):l=te,n.chars?(y=n.getCharData(te,_.fStyle,n.getFontByName(t.f).fFamily),x=o?0:y.w*t.finalSize/100):x=n.measureText(l,t.f,t.finalSize),te===" "?ge+=x+T:(m+=x+T+ge,ge=0),i.push({l:x,an:x,add:u,n:o,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),c==2){if(u+=x,l===""||l===" "||r===s-1){for((l===""||l===" ")&&(u-=x);d<=r;)i[d].an=u,i[d].ind=a,i[d].extra=x,d+=1;a+=1,u=0}}else if(c==3){if(u+=x,l===""||r===s-1){for(l===""&&(u-=x);d<=r;)i[d].an=u,i[d].ind=a,i[d].extra=x,d+=1;u=0,a+=1}}else i[a].ind=a,i[a].extra=0,a+=1;if(t.l=i,p=m>p?m:p,h.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=p,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=h;var M=e.a,R,S;v=M.length;var D,Q,X=[];for(g=0;g<v;g+=1){for(R=M[g],R.a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),Q=0,D=R.s.b,r=0;r<s;r+=1)S=i[r],S.anIndexes[g]=Q,(D==1&&S.val!==""||D==2&&S.val!==""&&S.val!==" "||D==3&&(S.n||S.val==" "||r==s-1)||D==4&&(S.n||r==s-1))&&(R.s.rn===1&&X.push(Q),Q+=1);e.a[g].s.totalChars=Q;var V=-1,ie;if(R.s.rn===1)for(r=0;r<s;r+=1)S=i[r],V!=S.anIndexes[g]&&(V=S.anIndexes[g],ie=X.splice(Math.floor(Math.random()*X.length),1)[0]),S.anIndexes[g]=ie}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,n){n=n===void 0?this.keysIndex:n;var e=this.copyData({},this.data.d.k[n].s);e=this.copyData(e,t),this.data.d.k[n].s=e,this.recalculate(n),this.setCurrentData(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var n=this.data.d.k[t].s;n.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(n)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,n=Math.min,e=Math.floor;function i(s,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(s,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(s,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,l=0,c=1,u=1;this.ne.v>0?a=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:u=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(a,l,c,u).get,f=0,h=this.finalS,m=this.finalE,p=this.data.sh;if(p===2)m===h?f=o>=m?1:0:f=t(0,n(.5/(m-h)+(o-h)/(m-h),1)),f=d(f);else if(p===3)m===h?f=o>=m?0:1:f=1-t(0,n(.5/(m-h)+(o-h)/(m-h),1)),f=d(f);else if(p===4)m===h?f=0:(f=t(0,n(.5/(m-h)+(o-h)/(m-h),1)),f<.5?f*=2:f=1-2*(f-.5)),f=d(f);else if(p===5){if(m===h)f=0;else{var g=m-h;o=n(t(0,o+.5-h),m-h);var v=-g/2+o,_=g/2;f=Math.sqrt(1-v*v/(_*_))}f=d(f)}else p===6?(m===h?f=0:(o=n(t(0,o+.5-h),m-h),f=(1+Math.cos(Math.PI+Math.PI*2*o/(m-h)))/2),f=d(f)):(o>=e(h)&&(o-h<0?f=t(0,n(n(m,1)-(h-o),1)):f=t(0,n(m-o,1))),f=d(f));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var x=.5-y*.5;f<x?f=0:(f=(f-x)/y,f>1&&(f=1))}return f*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var a=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/a,c=this.s.v/a+l,u=this.e.v/a+l;if(c>u){var d=c;c=u,u=d}this.finalS=c,this.finalE=u}},extendPrototype([DynamicPropertyContainer],i);function r(s,o,a){return new i(s,o,a)}return{getTextSelectorProp:r}}();function TextAnimatorDataProperty(t,n,e){var i={propType:!1},r=PropertyFactory.getProp,s=n.a;this.a={r:s.r?r(t,s.r,0,degToRads,e):i,rx:s.rx?r(t,s.rx,0,degToRads,e):i,ry:s.ry?r(t,s.ry,0,degToRads,e):i,sk:s.sk?r(t,s.sk,0,degToRads,e):i,sa:s.sa?r(t,s.sa,0,degToRads,e):i,s:s.s?r(t,s.s,1,.01,e):i,a:s.a?r(t,s.a,1,0,e):i,o:s.o?r(t,s.o,0,.01,e):i,p:s.p?r(t,s.p,1,0,e):i,sw:s.sw?r(t,s.sw,0,0,e):i,sc:s.sc?r(t,s.sc,1,0,e):i,fc:s.fc?r(t,s.fc,1,0,e):i,fh:s.fh?r(t,s.fh,0,0,e):i,fs:s.fs?r(t,s.fs,0,.01,e):i,fb:s.fb?r(t,s.fb,0,.01,e):i,t:s.t?r(t,s.t,0,0,e):i},this.s=TextSelectorProp.getTextSelectorProp(t,n.s,e),this.s.t=n.s.t}function TextAnimatorProperty(t,n,e){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=n,this._elem=e,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(e)}TextAnimatorProperty.prototype.searchProperties=function(){var t,n=this._textData.a.length,e,i=PropertyFactory.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,n){if(this.lettersChangedFlag=n,!(!this._mdf&&!this._isFirstFrame&&!n&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var e=this._moreOptions.alignment.v,i=this._animatorsData,r=this._textData,s=this.mHelper,o=this._renderType,a=this.renderedLetters.length,l,c,u,d,f=t.l,h,m,p,g,v,_,y,x,w,T,E,k,F,G,Y;if(this._hasMaskedPath){if(Y=this._pathData.m,!this._pathData.n||this._pathData._mdf){var W=Y.v;this._pathData.r.v&&(W=W.reverse()),h={tLength:0,segments:[]},d=W._length-1;var le;for(k=0,u=0;u<d;u+=1)le=bez.buildBezierData(W.v[u],W.v[u+1],[W.o[u][0]-W.v[u][0],W.o[u][1]-W.v[u][1]],[W.i[u+1][0]-W.v[u+1][0],W.i[u+1][1]-W.v[u+1][1]]),h.tLength+=le.segmentLength,h.segments.push(le),k+=le.segmentLength;u=d,Y.v.c&&(le=bez.buildBezierData(W.v[u],W.v[0],[W.o[u][0]-W.v[u][0],W.o[u][1]-W.v[u][1]],[W.i[0][0]-W.v[0][0],W.i[0][1]-W.v[0][1]]),h.tLength+=le.segmentLength,h.segments.push(le),k+=le.segmentLength),this._pathData.pi=h}if(h=this._pathData.pi,m=this._pathData.f.v,y=0,_=1,g=0,v=!0,T=h.segments,m<0&&Y.v.c)for(h.tLength<Math.abs(m)&&(m=-Math.abs(m)%h.tLength),y=T.length-1,w=T[y].points,_=w.length-1;m<0;)m+=w[_].partialLength,_-=1,_<0&&(y-=1,w=T[y].points,_=w.length-1);w=T[y].points,x=w[_-1],p=w[_],E=p.partialLength}d=f.length,l=0,c=0;var ge=t.finalSize*1.2*.714,te=!0,M,R,S,D,Q;D=i.length;var X,V=-1,ie,H,K,de=m,Ee=y,Ue=_,Ae=-1,Ce,nt,ot,ct,Ie,Pn,$t,ze,wn="",$n=this.defaultPropsArray,ui;if(t.j===2||t.j===1){var On=0,Ar=0,vr=t.j===2?-.5:-1,En=0,er=!0;for(u=0;u<d;u+=1)if(f[u].n){for(On&&(On+=Ar);En<u;)f[En].animatorJustifyOffset=On,En+=1;On=0,er=!0}else{for(S=0;S<D;S+=1)M=i[S].a,M.t.propType&&(er&&t.j===2&&(Ar+=M.t.v*vr),R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),X.length?On+=M.t.v*X[0]*vr:On+=M.t.v*X*vr);er=!1}for(On&&(On+=Ar);En<u;)f[En].animatorJustifyOffset=On,En+=1}for(u=0;u<d;u+=1){if(s.reset(),Ce=1,f[u].n)l=0,c+=t.yOffset,c+=te?1:0,m=de,te=!1,this._hasMaskedPath&&(y=Ee,_=Ue,w=T[y].points,x=w[_-1],p=w[_],E=p.partialLength,g=0),wn="",ze="",Pn="",ui="",$n=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ae!==f[u].line){switch(t.j){case 1:m+=k-t.lineWidths[f[u].line];break;case 2:m+=(k-t.lineWidths[f[u].line])/2;break;default:break}Ae=f[u].line}V!==f[u].ind&&(f[V]&&(m+=f[V].extra),m+=f[u].an/2,V=f[u].ind),m+=e[0]*f[u].an*.005;var Ti=0;for(S=0;S<D;S+=1)M=i[S].a,M.p.propType&&(R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),X.length?Ti+=M.p.v[0]*X[0]:Ti+=M.p.v[0]*X),M.a.propType&&(R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),X.length?Ti+=M.a.v[0]*X[0]:Ti+=M.a.v[0]*X);for(v=!0,this._pathData.a.v&&(m=f[0].an*.5+(k-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*V/(d-1),m+=this._pathData.f.v);v;)g+E>=m+Ti||!w?(F=(m+Ti-g)/p.partialLength,H=x.point[0]+(p.point[0]-x.point[0])*F,K=x.point[1]+(p.point[1]-x.point[1])*F,s.translate(-e[0]*f[u].an*.005,-(e[1]*ge)*.01),v=!1):w&&(g+=p.partialLength,_+=1,_>=w.length&&(_=0,y+=1,T[y]?w=T[y].points:Y.v.c?(_=0,y=0,w=T[y].points):(g-=p.partialLength,w=null)),w&&(x=p,p=w[_],E=p.partialLength));ie=f[u].an/2-f[u].add,s.translate(-ie,0,0)}else ie=f[u].an/2-f[u].add,s.translate(-ie,0,0),s.translate(-e[0]*f[u].an*.005,-e[1]*ge*.01,0);for(S=0;S<D;S+=1)M=i[S].a,M.t.propType&&(R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),(l!==0||t.j!==0)&&(this._hasMaskedPath?X.length?m+=M.t.v*X[0]:m+=M.t.v*X:X.length?l+=M.t.v*X[0]:l+=M.t.v*X));for(t.strokeWidthAnim&&(ot=t.sw||0),t.strokeColorAnim&&(t.sc?nt=[t.sc[0],t.sc[1],t.sc[2]]:nt=[0,0,0]),t.fillColorAnim&&t.fc&&(ct=[t.fc[0],t.fc[1],t.fc[2]]),S=0;S<D;S+=1)M=i[S].a,M.a.propType&&(R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),X.length?s.translate(-M.a.v[0]*X[0],-M.a.v[1]*X[1],M.a.v[2]*X[2]):s.translate(-M.a.v[0]*X,-M.a.v[1]*X,M.a.v[2]*X));for(S=0;S<D;S+=1)M=i[S].a,M.s.propType&&(R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),X.length?s.scale(1+(M.s.v[0]-1)*X[0],1+(M.s.v[1]-1)*X[1],1):s.scale(1+(M.s.v[0]-1)*X,1+(M.s.v[1]-1)*X,1));for(S=0;S<D;S+=1){if(M=i[S].a,R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),M.sk.propType&&(X.length?s.skewFromAxis(-M.sk.v*X[0],M.sa.v*X[1]):s.skewFromAxis(-M.sk.v*X,M.sa.v*X)),M.r.propType&&(X.length?s.rotateZ(-M.r.v*X[2]):s.rotateZ(-M.r.v*X)),M.ry.propType&&(X.length?s.rotateY(M.ry.v*X[1]):s.rotateY(M.ry.v*X)),M.rx.propType&&(X.length?s.rotateX(M.rx.v*X[0]):s.rotateX(M.rx.v*X)),M.o.propType&&(X.length?Ce+=(M.o.v*X[0]-Ce)*X[0]:Ce+=(M.o.v*X-Ce)*X),t.strokeWidthAnim&&M.sw.propType&&(X.length?ot+=M.sw.v*X[0]:ot+=M.sw.v*X),t.strokeColorAnim&&M.sc.propType)for(Ie=0;Ie<3;Ie+=1)X.length?nt[Ie]+=(M.sc.v[Ie]-nt[Ie])*X[0]:nt[Ie]+=(M.sc.v[Ie]-nt[Ie])*X;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(Ie=0;Ie<3;Ie+=1)X.length?ct[Ie]+=(M.fc.v[Ie]-ct[Ie])*X[0]:ct[Ie]+=(M.fc.v[Ie]-ct[Ie])*X;M.fh.propType&&(X.length?ct=addHueToRGB(ct,M.fh.v*X[0]):ct=addHueToRGB(ct,M.fh.v*X)),M.fs.propType&&(X.length?ct=addSaturationToRGB(ct,M.fs.v*X[0]):ct=addSaturationToRGB(ct,M.fs.v*X)),M.fb.propType&&(X.length?ct=addBrightnessToRGB(ct,M.fb.v*X[0]):ct=addBrightnessToRGB(ct,M.fb.v*X))}}for(S=0;S<D;S+=1)M=i[S].a,M.p.propType&&(R=i[S].s,X=R.getMult(f[u].anIndexes[S],r.a[S].s.totalChars),this._hasMaskedPath?X.length?s.translate(0,M.p.v[1]*X[0],-M.p.v[2]*X[1]):s.translate(0,M.p.v[1]*X,-M.p.v[2]*X):X.length?s.translate(M.p.v[0]*X[0],M.p.v[1]*X[1],-M.p.v[2]*X[2]):s.translate(M.p.v[0]*X,M.p.v[1]*X,-M.p.v[2]*X));if(t.strokeWidthAnim&&(Pn=ot<0?0:ot),t.strokeColorAnim&&($t="rgb("+Math.round(nt[0]*255)+","+Math.round(nt[1]*255)+","+Math.round(nt[2]*255)+")"),t.fillColorAnim&&t.fc&&(ze="rgb("+Math.round(ct[0]*255)+","+Math.round(ct[1]*255)+","+Math.round(ct[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-t.ls),s.translate(0,e[1]*ge*.01+c,0),this._pathData.p.v){G=(p.point[1]-x.point[1])/(p.point[0]-x.point[0]);var Fr=Math.atan(G)*180/Math.PI;p.point[0]<x.point[0]&&(Fr+=180),s.rotate(-Fr*Math.PI/180)}s.translate(H,K,0),m-=e[0]*f[u].an*.005,f[u+1]&&V!==f[u+1].ind&&(m+=f[u].an/2,m+=t.tr*.001*t.finalSize)}else{switch(s.translate(l,c,0),t.ps&&s.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:s.translate(f[u].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[f[u].line]),0,0);break;case 2:s.translate(f[u].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[f[u].line])/2,0,0);break;default:break}s.translate(0,-t.ls),s.translate(ie,0,0),s.translate(e[0]*f[u].an*.005,e[1]*ge*.01,0),l+=f[u].l+t.tr*.001*t.finalSize}o==="html"?wn=s.toCSS():o==="svg"?wn=s.to2dCSS():$n=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]],ui=Ce}a<=u?(Q=new LetterProps(ui,Pn,$t,ze,wn,$n),this.renderedLetters.push(Q),a+=1,this.lettersChangedFlag=!0):(Q=this.renderedLetters[u],this.lettersChangedFlag=Q.update(ui,Pn,$t,ze,wn,$n)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(t,n,e){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,n,e),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,n,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,n){var e,i=n.length,r,s="";for(e=0;e<i;e+=1)n[e].ty==="sh"&&(r=n[e].ks.k,s+=buildShapeString(r,r.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,n){this.textProperty.updateDocumentData(t,n)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,n,e,i,r){switch(t.ps&&n.translate(t.ps[0],t.ps[1]+t.ascent,0),n.translate(0,-t.ls,0),t.j){case 1:n.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e]),0,0);break;case 2:n.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e])/2,0,0);break;default:break}n.translate(i,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,n,e){this.textSpans=[],this.renderType="svg",this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var n=0,e=t.length,i=[],r="";n<e;)t[n]==="\r"||t[n]===""?(i.push(r),r=""):r+=t[n],n+=1;return i.push(r),i},SVGTextLottieElement.prototype.buildShapeData=function(t,n){if(t.shapes&&t.shapes.length){var e=t.shapes[0];if(e.it){var i=e.it[e.it.length-1];i.s&&(i.s.k[0]=n,i.s.k[1]=n)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,n,e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),e.fc?this.layerElement.setAttribute("fill",this.buildColor(e.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var i=this.globalData.fontManager.getFontByName(e.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var r=e.fWeight,s=e.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",e.t);var o=e.l||[],a=!!this.globalData.fontManager.chars;n=o.length;var l,c=this.mHelper,u="",d=this.data.singleShape,f=0,h=0,m=!0,p=e.tr*.001*e.finalSize;if(d&&!a&&!e.sz){var g=this.textContainer,v="start";switch(e.j){case 1:v="end";break;case 2:v="middle";break;default:v="start";break}g.setAttribute("text-anchor",v),g.setAttribute("letter-spacing",p);var _=this.buildTextContents(e.finalText);for(n=_.length,h=e.ps?e.ps[1]+e.ascent:0,t=0;t<n;t+=1)l=this.textSpans[t].span||createNS("tspan"),l.textContent=_[t],l.setAttribute("x",0),l.setAttribute("y",h),l.style.display="inherit",g.appendChild(l),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=l,h+=e.finalLineHeight;this.layerElement.appendChild(g)}else{var y=this.textSpans.length,x;for(t=0;t<n;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!a||!d||t===0){if(l=y>t?this.textSpans[t].span:createNS(a?"g":"text"),y<=t){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=l,a){var w=createNS("g");l.appendChild(w),this.textSpans[t].childSpan=w}this.textSpans[t].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),d&&(o[t].n&&(f=-p,h+=e.yOffset,h+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(e,c,o[t].line,f,h),f+=o[t].l||0,f+=p),a){x=this.globalData.fontManager.getCharData(e.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);var T;if(x.t===1)T=new SVGCompElement(x.data,this.globalData,this);else{var E=emptyShapeData;x.data&&x.data.shapes&&(E=this.buildShapeData(x.data,e.finalSize)),T=new SVGShapeElement(E,this.globalData,this)}if(this.textSpans[t].glyph){var k=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[t].glyph=T,T._debug=!0,T.prepareFrame(0),T.renderFrame(),this.textSpans[t].childSpan.appendChild(T.layerElement),x.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else d&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=o[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&l&&l.setAttribute("d",u)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,n=this.textSpans.length,e;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)e=this.textSpans[t].glyph,e&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,n,e=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;n=i.length;var r,s,o;for(t=0;t<n;t+=1)i[t].n||(r=e[t],s=this.textSpans[t].span,o=this.textSpans[t].glyph,o&&o.renderFrame(),r._mdf.m&&s.setAttribute("transform",r.m),r._mdf.o&&s.setAttribute("opacity",r.o),r._mdf.sw&&s.setAttribute("stroke-width",r.sw),r._mdf.sc&&s.setAttribute("stroke",r.sc),r._mdf.fc&&s.setAttribute("fill",r.fc))}};function ISolidElement(t,n,e){this.initElement(t,n,e)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function NullElement(t,n,e){this.initFrame(),this.initBaseData(t,n,e),this.initFrame(),this.initTransform(t,n,e),this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var n=this.globalData.defs;this.setupGlobalData(t,n),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var e=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var r=createElementID();e.setAttribute("id",r),e.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),n.appendChild(e),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,n=this.layers?this.layers.length:0;for(t=0;t<n;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var n=0,e=this.layers.length;for(n=0;n<e;n+=1)if(this.layers[n].ind===t)return n;return-1},SVGRendererBase.prototype.buildItem=function(t){var n=this.elements;if(!(n[t]||this.layers[t].ty===99)){n[t]=!0;var e=this.createItem(this.layers[t]);if(n[t]=e,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(e);else{var r=n[i],s=r.getMatte(this.layers[t].tt);e.setMatte(s)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var n=0,e=this.elements.length;n<e;){if(this.elements[n]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):n-1,r=this.elements[i],s=r.getMatte(this.layers[n].tt);t.setMatte(s);break}n+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n,e=this.layers.length;for(this.completeLayers||this.checkLayers(t),n=e-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf)for(n=0;n<e;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,n){var e=t.getBaseElement();if(e){for(var i=0,r;i<n;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,n,e){this.initFrame(),this.initBaseData(t,n,e),this.initTransform(t,n,e),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!n.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var n=this.tm.v;n===this.data.op&&(n=this.data.op-1),this.renderedFrame=n}var e,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,n=this.layers.length;for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,n=this.layers.length;for(t=0;t<n;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(t,n,e){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,n,e),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,n){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var e="";if(n&&n.title){var i=createNS("title"),r=createElementID();i.setAttribute("id",r),i.textContent=n.title,this.svgElement.appendChild(i),e+=r}if(n&&n.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=n.description,this.svgElement.appendChild(s),e+=" "+o}e&&this.svgElement.setAttribute("aria-labelledby",e);var a=createNS("defs");this.svgElement.appendChild(a);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",progressiveLoad:n&&n.progressiveLoad||!1,hideOnTransparent:!(n&&n.hideOnTransparent===!1),viewBoxOnly:n&&n.viewBoxOnly||!1,viewBoxSize:n&&n.viewBoxSize||!1,className:n&&n.className||"",id:n&&n.id||"",focusable:n&&n.focusable,filterSize:{width:n&&n.filterSize&&n.filterSize.width||"100%",height:n&&n.filterSize&&n.filterSize.height||"100%",x:n&&n.filterSize&&n.filterSize.x||"0%",y:n&&n.filterSize&&n.filterSize.y||"0%"},width:n&&n.width,height:n&&n.height,runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(n){var e,i=n.length,r="_";for(e=0;e<i;e+=1)r+=n[e].transform.key+"_";var s=this.sequences[r];return s||(s={transforms:[].concat(n),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=s,this.sequenceList.push(s)),s},processSequence:function(n,e){for(var i=0,r=n.transforms.length,s=e;i<r&&!e;){if(n.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(n.finalTransform.reset(),i=r-1;i>=0;i-=1)n.finalTransform.multiply(n.transforms[i].transform.mProps.v);n._mdf=s},processSequences:function(n){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],n)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var n="__lottie_element_luma_buffer",e=null,i=null,r=null;function s(){var l=createNS("svg"),c=createNS("filter"),u=createNS("feColorMatrix");return c.setAttribute("id",n),u.setAttribute("type","matrix"),u.setAttribute("color-interpolation-filters","sRGB"),u.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),c.appendChild(u),l.appendChild(c),l.setAttribute("id",n+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function o(){e||(r=s(),document.body.appendChild(r),e=createTag("canvas"),i=e.getContext("2d"),i.filter="url(#"+n+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function a(l){return e||o(),e.width=l.width,e.height=l.height,i.filter="url(#"+n+")",e}return{load:o,get:a}};function createCanvas(t,n){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,n);var e=createTag("canvas");return e.width=t,e.height=n,e}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(t){var n,e=t.data.ef?t.data.ef.length:0;this.filters=[];var i;for(n=0;n<e;n+=1){i=null;var r=t.data.ef[n].ty;if(registeredEffects[r]){var s=registeredEffects[r].effect;i=new s(t.effectsManager.effectElements[n],t)}i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(t){var n,e=this.filters.length;for(n=0;n<e;n+=1)this.filters[n].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var n,e=this.filters.length,i=[];for(n=0;n<e;n+=1)this.filters[n].type===t&&i.push(this.filters[n]);return i};function registerEffect(t,n){registeredEffects[t]={effect:n}}function CVMaskElement(t,n){this.data=t,this.element=n,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var e,i=this.masksProperties.length,r=!1;for(e=0;e<i;e+=1)this.masksProperties[e].mode!=="n"&&(r=!0),this.viewData[e]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[e],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,n=this.element.canvasContext,e,i=this.masksProperties.length,r,s,o;for(n.beginPath(),e=0;e<i;e+=1)if(this.masksProperties[e].mode!=="n"){this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),o=this.viewData[e].v,r=t.applyToPointArray(o.v[0][0],o.v[0][1],0),n.moveTo(r[0],r[1]);var a,l=o._length;for(a=1;a<l;a+=1)s=t.applyToTriplePoints(o.o[a-1],o.i[a],o.v[a]),n.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=t.applyToTriplePoints(o.o[a-1],o.i[0],o.v[0]),n.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var n=this.globalData.canvasContext,e=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var n=this.globalData;if(n.blendMode!==this.data.bm){n.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);n.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(n){n.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var n=this.buffers[0],e=n.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var n=this.buffers[1],e=n.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=r.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(n,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(n){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!n)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,n,e,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;n.ty==="rc"?r=5:n.ty==="el"?r=6:n.ty==="sr"&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,n,r,t);var s,o=e.length,a;for(s=0;s<o;s+=1)e[s].closed||(a={transforms:i.addTransformSequence(e[s].transforms),trNodes:[]},this.styledShapes.push(a),e[s].elements.push(a))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,n,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,n){var e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(n),transforms:[],elements:[],closed:t.hd===!0},i={};if(t.ty==="fl"||t.ty==="st"?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(e.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(t.ty==="gf"||t.ty==="gs")&&(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(e.lc=lineCapEnum[t.lc||2],e.lj=lineJoinEnum[t.lj||2],t.lj==1&&(e.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(e.wi=i.w.v),t.d){var r=new DashProperty(this,t.d,"canvas",this);i.d=r,i.d.k||(e.da=i.d.dashArray,e.do=i.d.dashoffset[0])}}else e.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(e),i.style=e,i},CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t},CVShapeElement.prototype.createTransformElement=function(t){var n={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return n},CVShapeElement.prototype.createShapeElement=function(t){var n=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(n),this.addShapeToModifiers(n),n},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,n=this.itemsData.length;for(t=0;t<n;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),n=this.dynamicProperties.length,t=0;t<n;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var n,e=this.stylesList.length;for(n=0;n<e;n+=1)this.stylesList[n].closed||this.stylesList[n].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var n,e=t.length;for(n=0;n<e;n+=1)t[n].closed=!0},CVShapeElement.prototype.searchShapes=function(t,n,e,i,r){var s,o=t.length-1,a,l,c=[],u=[],d,f,h,m=[].concat(r);for(s=o;s>=0;s-=1){if(d=this.searchProcessedElement(t[s]),d?n[s]=e[d-1]:t[s]._shouldRender=i,t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs")d?n[s].style.closed=!1:n[s]=this.createStyleElement(t[s],m),c.push(n[s].style);else if(t[s].ty==="gr"){if(!d)n[s]=this.createGroupElement(t[s]);else for(l=n[s].it.length,a=0;a<l;a+=1)n[s].prevViewData[a]=n[s].it[a];this.searchShapes(t[s].it,n[s].it,n[s].prevViewData,i,m)}else t[s].ty==="tr"?(d||(h=this.createTransformElement(t[s]),n[s]=h),m.push(n[s]),this.addTransformToStyleList(n[s])):t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"?d||(n[s]=this.createShapeElement(t[s])):t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"||t[s].ty==="zz"||t[s].ty==="op"?(d?(f=n[s],f.closed=!1):(f=ShapeModifiers.getModifier(t[s].ty),f.init(this,t[s]),n[s]=f,this.shapeModifiers.push(f)),u.push(f)):t[s].ty==="rp"&&(d?(f=n[s],f.closed=!0):(f=ShapeModifiers.getModifier(t[s].ty),n[s]=f,f.init(this,t,s,n),this.shapeModifiers.push(f),i=!1),u.push(f));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),o=u.length,s=0;s<o;s+=1)u[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,n){(t._opMdf||n.op._mdf||this._isFirstFrame)&&(n.opacity=t.opacity,n.opacity*=n.op.v,n._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,n=this.stylesList.length,e,i,r,s,o,a,l=this.globalData.renderer,c=this.globalData.canvasContext,u,d;for(t=0;t<n;t+=1)if(d=this.stylesList[t],u=d.type,!((u==="st"||u==="gs")&&d.wi===0||!d.data._shouldRender||d.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),o=d.elements,u==="st"||u==="gs"?(l.ctxStrokeStyle(u==="st"?d.co:d.grd),l.ctxLineWidth(d.wi),l.ctxLineCap(d.lc),l.ctxLineJoin(d.lj),l.ctxMiterLimit(d.ml||0)):l.ctxFillStyle(u==="fl"?d.co:d.grd),l.ctxOpacity(d.coOp),u!=="st"&&u!=="gs"&&c.beginPath(),l.ctxTransform(d.preTransforms.finalTransform.props),i=o.length,e=0;e<i;e+=1){for((u==="st"||u==="gs")&&(c.beginPath(),d.da&&(c.setLineDash(d.da),c.lineDashOffset=d.do)),a=o[e].trNodes,s=a.length,r=0;r<s;r+=1)a[r].t==="m"?c.moveTo(a[r].p[0],a[r].p[1]):a[r].t==="c"?c.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):c.closePath();(u==="st"||u==="gs")&&(l.ctxStroke(),d.da&&c.setLineDash(this.dashResetter))}u!=="st"&&u!=="gs"&&this.globalData.renderer.ctxFill(d.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,n,e,i){var r,s=n.length-1,o;for(o=t,r=s;r>=0;r-=1)n[r].ty==="tr"?(o=e[r].transform,this.renderShapeTransform(t,o)):n[r].ty==="sh"||n[r].ty==="el"||n[r].ty==="rc"||n[r].ty==="sr"?this.renderPath(n[r],e[r]):n[r].ty==="fl"?this.renderFill(n[r],e[r],o):n[r].ty==="st"?this.renderStroke(n[r],e[r],o):n[r].ty==="gf"||n[r].ty==="gs"?this.renderGradientFill(n[r],e[r],o):n[r].ty==="gr"?this.renderShape(o,n[r].it,e[r].it):n[r].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,n){if(this._isFirstFrame||n._mdf||t.transforms._mdf){var e=t.trNodes,i=n.paths,r,s,o,a=i._length;e.length=0;var l=t.transforms.finalTransform;for(o=0;o<a;o+=1){var c=i.shapes[o];if(c&&c.v){for(s=c._length,r=1;r<s;r+=1)r===1&&e.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),e.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});s===1&&e.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&s&&(e.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),e.push({t:"z"}))}}t.trNodes=e}},CVShapeElement.prototype.renderPath=function(t,n){if(t.hd!==!0&&t._shouldRender){var e,i=n.styledShapes.length;for(e=0;e<i;e+=1)this.renderStyledShape(n.styledShapes[e],n.sh)}},CVShapeElement.prototype.renderFill=function(t,n,e){var i=n.style;(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||e._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*e.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,n,e){var i=n.style,r;if(!i.grd||n.g._mdf||n.s._mdf||n.e._mdf||t.t!==1&&(n.h._mdf||n.a._mdf)){var s=this.globalData.canvasContext,o=n.s.v,a=n.e.v;if(t.t===1)r=s.createLinearGradient(o[0],o[1],a[0],a[1]);else{var l=Math.sqrt(Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)),c=Math.atan2(a[1]-o[1],a[0]-o[0]),u=n.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var d=l*u,f=Math.cos(c+n.a.v)*d+o[0],h=Math.sin(c+n.a.v)*d+o[1];r=s.createRadialGradient(f,h,0,o[0],o[1],l)}var m,p=t.g.p,g=n.g.c,v=1;for(m=0;m<p;m+=1)n.g._hasOpacity&&n.g._collapsable&&(v=n.g.o[m*2+1]),r.addColorStop(g[m*4]/100,"rgba("+g[m*4+1]+","+g[m*4+2]+","+g[m*4+3]+","+v+")");i.grd=r}i.coOp=n.o.v*e.opacity},CVShapeElement.prototype.renderStroke=function(t,n,e){var i=n.style,r=n.d;r&&(r._mdf||this._isFirstFrame)&&(i.da=r.dashArray,i.do=r.dashoffset[0]),(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||e._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*e.opacity),(n.w._mdf||this._isFirstFrame)&&(i.wi=n.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(t,n,e){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var n=!1;t.fc?(n=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=n;var e=!1;t.sc&&(e=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i=this.globalData.fontManager.getFontByName(t.f),r,s,o=t.l,a=this.mHelper;this.stroke=e,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,s=t.finalText.length;var l,c,u,d,f,h,m,p,g,v,_=this.data.singleShape,y=t.tr*.001*t.finalSize,x=0,w=0,T=!0,E=0;for(r=0;r<s;r+=1){l=this.globalData.fontManager.getCharData(t.finalText[r],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),c=l&&l.data||{},a.reset(),_&&o[r].n&&(x=-y,w+=t.yOffset,w+=T?1:0,T=!1),f=c.shapes?c.shapes[0].it:[],m=f.length,a.scale(t.finalSize/100,t.finalSize/100),_&&this.applyTextPropertiesToMatrix(t,a,o[r].line,x,w),g=createSizedArray(m-1);var k=0;for(h=0;h<m;h+=1)if(f[h].ty==="sh"){for(d=f[h].ks.k.i.length,p=f[h].ks.k,v=[],u=1;u<d;u+=1)u===1&&v.push(a.applyToX(p.v[0][0],p.v[0][1],0),a.applyToY(p.v[0][0],p.v[0][1],0)),v.push(a.applyToX(p.o[u-1][0],p.o[u-1][1],0),a.applyToY(p.o[u-1][0],p.o[u-1][1],0),a.applyToX(p.i[u][0],p.i[u][1],0),a.applyToY(p.i[u][0],p.i[u][1],0),a.applyToX(p.v[u][0],p.v[u][1],0),a.applyToY(p.v[u][0],p.v[u][1],0));v.push(a.applyToX(p.o[u-1][0],p.o[u-1][1],0),a.applyToY(p.o[u-1][0],p.o[u-1][1],0),a.applyToX(p.i[0][0],p.i[0][1],0),a.applyToY(p.i[0][0],p.i[0][1],0),a.applyToX(p.v[0][0],p.v[0][1],0),a.applyToY(p.v[0][0],p.v[0][1],0)),g[k]=v,k+=1}_&&(x+=o[r].l,x+=y),this.textSpans[E]?this.textSpans[E].elem=g:this.textSpans[E]={elem:g},E+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t=this.canvasContext;t.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var n,e,i,r,s,o,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var c,u=null,d=null,f=null,h,m,p=this.globalData.renderer;for(n=0;n<e;n+=1)if(!l[n].n){if(c=a[n],c&&(p.save(),p.ctxTransform(c.p),p.ctxOpacity(c.o)),this.fill){for(c&&c.fc?u!==c.fc&&(p.ctxFillStyle(c.fc),u=c.fc):u!==this.values.fill&&(u=this.values.fill,p.ctxFillStyle(this.values.fill)),h=this.textSpans[n].elem,r=h.length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(m=h[i],o=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<o;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),p.ctxFill()}if(this.stroke){for(c&&c.sw?f!==c.sw&&(f=c.sw,p.ctxLineWidth(c.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,p.ctxLineWidth(this.values.sWidth)),c&&c.sc?d!==c.sc&&(d=c.sc,p.ctxStrokeStyle(c.sc)):d!==this.values.stroke&&(d=this.values.stroke,p.ctxStrokeStyle(this.values.stroke)),h=this.textSpans[n].elem,r=h.length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(m=h[i],o=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<o;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),p.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(t,n,e){this.assetData=n.getAssetData(t.refId),this.img=n.imageLoader.getAsset(this.assetData),this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var n=t.getContext("2d"),e=this.img.width,i=this.img.height,r=e/i,s=this.assetData.w/this.assetData.h,o,a,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;r>s&&l==="xMidYMid slice"||r<s&&l!=="xMidYMid slice"?(a=i,o=a*s):(o=e,a=o/s),n.drawImage(this.img,(e-o)/2,(i-a)/2,o,a,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,n,e){this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,n,e,i){this.canvasContext.fillRect(t,n,e,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var n=this.animationItem.container.style;n.width="100%",n.height="100%";var e="0px 0px 0px";n.transformOrigin=e,n.mozTransformOrigin=e,n.webkitTransformOrigin=e,n["-webkit-transform"]=e,n.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,n){this.reset();var e,i;t?(e=t,i=n,this.canvasContext.canvas.width=e,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(e=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=e*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var r,s;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);r=e/i,s=this.transformCanvas.w/this.transformCanvas.h,s>r&&a==="meet"||s<r&&a==="slice"?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(s<r&&a==="meet"||s>r&&a==="slice")?this.transformCanvas.tx=(e-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(s<r&&a==="meet"||s>r&&a==="slice")?this.transformCanvas.tx=(e-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,u==="YMid"&&(s>r&&a==="meet"||s<r&&a==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:u==="YMax"&&(s>r&&a==="meet"||s<r&&a==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var t,n=this.layers?this.layers.length:0;for(t=n-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,n){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!n||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||n,this.globalData.projectInterface.currentFrame=t;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var n=this.elements;if(!(n[t]||this.layers[t].ty===99)){var e=this.createItem(this.layers[t],this,this.globalData);n[t]=e,e.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,n=15;for(t=0;t<n;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=n,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var t=this._length*2,n=0;for(n=this._length;n<t;n+=1)this.stack[n]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var n=this.stack[this.cArrPos],e=n.transform,i,r=this.cTr.props;for(i=0;i<16;i+=1)r[i]=e[i];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),(t||n.opacity!==-1&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var n=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var e=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)e.transform[i]=n[i];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=e.opacity,r.fillStyle=e.fillStyle,r.strokeStyle=e.strokeStyle,r.lineWidth=e.lineWidth,r.lineCap=e.lineCap,r.lineJoin=e.lineJoin,r.miterLimit=e.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var n=this.cTr;this.transformMat.multiply(n),n.cloneFromProps(this.transformMat.props);var e=n.props;this.nativeContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])},CVContextData.prototype.opacity=function(t){var n=this.stack[this.cArrPos].opacity;n*=t<0?0:t,this.stack[this.cArrPos].opacity!==n&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=n)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,n,e,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,n,e,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(t,n,e){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,n,e),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var n,e=this.layers.length;for(n=e-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()},CVCompElement.prototype.destroy=function(){var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,n){this.animationItem=t,this.renderConfig={clearCanvas:n&&n.clearCanvas!==void 0?n.clearCanvas:!0,context:n&&n.context||null,progressiveLoad:n&&n.progressiveLoad||!1,preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",className:n&&n.className||"",id:n&&n.id||"",runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.renderConfig.dpr=n&&n.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=n&&n.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var n=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();n.transform=e,n.webkitTransform=e}this.finalTransform._opMdf&&(n.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,n,e){this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,n,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,n,e),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var n=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",n.w),t.setAttribute("height",n.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,n){var e,i=t.length;for(e=0;e<i;e+=1)n=t[e].mProps.v.applyToPointArray(n[0],n[1],0);return n},HShapeElement.prototype.calculateShapeBoundingBox=function(t,n){var e=t.sh.v,i=t.transformers,r,s=e._length,o,a,l,c;if(!(s<=1)){for(r=0;r<s-1;r+=1)o=this.getTransformedPoint(i,e.v[r]),a=this.getTransformedPoint(i,e.o[r]),l=this.getTransformedPoint(i,e.i[r+1]),c=this.getTransformedPoint(i,e.v[r+1]),this.checkBounds(o,a,l,c,n);e.c&&(o=this.getTransformedPoint(i,e.v[r]),a=this.getTransformedPoint(i,e.o[r]),l=this.getTransformedPoint(i,e.i[0]),c=this.getTransformedPoint(i,e.v[0]),this.checkBounds(o,a,l,c,n))}},HShapeElement.prototype.checkBounds=function(t,n,e,i,r){this.getBoundsOfCurve(t,n,e,i);var s=this.shapeBoundingBox;r.x=bmMin(s.left,r.x),r.xMax=bmMax(s.right,r.xMax),r.y=bmMin(s.top,r.y),r.yMax=bmMax(s.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,n,e,i){for(var r=[[t[0],i[0]],[t[1],i[1]]],s,o,a,l,c,u,d,f=0;f<2;++f)o=6*t[f]-12*n[f]+6*e[f],s=-3*t[f]+9*n[f]-9*e[f]+3*i[f],a=3*n[f]-3*t[f],o|=0,s|=0,a|=0,s===0&&o===0||(s===0?(l=-a/o,l>0&&l<1&&r[f].push(this.calculateF(l,t,n,e,i,f))):(c=o*o-4*a*s,c>=0&&(u=(-o+bmSqrt(c))/(2*s),u>0&&u<1&&r[f].push(this.calculateF(u,t,n,e,i,f)),d=(-o-bmSqrt(c))/(2*s),d>0&&d<1&&r[f].push(this.calculateF(d,t,n,e,i,f)))));this.shapeBoundingBox.left=bmMin.apply(null,r[0]),this.shapeBoundingBox.top=bmMin.apply(null,r[1]),this.shapeBoundingBox.right=bmMax.apply(null,r[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,r[1])},HShapeElement.prototype.calculateF=function(t,n,e,i,r,s){return bmPow(1-t,3)*n[s]+3*bmPow(1-t,2)*t*e[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*r[s]},HShapeElement.prototype.calculateBoundingBox=function(t,n){var e,i=t.length;for(e=0;e<i;e+=1)t[e]&&t[e].sh?this.calculateShapeBoundingBox(t[e],n):t[e]&&t[e].it?this.calculateBoundingBox(t[e].it,n):t[e]&&t[e].style&&t[e].w&&this.expandStrokeBoundingBox(t[e].w,n)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,n){var e=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var r=t.keyframes[i].s;r>e&&(e=r)}e*=t.mult}else e=t.v*t.mult;n.x-=e,n.xMax+=e,n.y-=e,n.yMax+=e},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,n=999999;if(t.x=n,t.xMax=-n,t.y=n,t.yMax=-n,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var e=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),e=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),e=!0),e||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=r,i.webkitTransform=r}}};function HTextElement(t,n,e){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var n=this.innerElem.style,e=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";n.fill=e,n.color=e,t.sc&&(n.stroke=this.buildColor(t.sc),n.strokeWidth=t.sw+"px");var i=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(n.fontSize=t.finalSize+"px",n.lineHeight=t.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{n.fontFamily=i.fFamily;var r=t.fWeight,s=t.fStyle;n.fontStyle=s,n.fontWeight=r}var o,a,l=t.l;a=l.length;var c,u,d,f=this.mHelper,h,m="",p=0;for(o=0;o<a;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[p]?c=this.textPaths[p]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[p]?(u=this.textSpans[p],d=u.children[0]):(u=createTag("div"),u.style.lineHeight=0,d=createNS("svg"),d.appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[p]?this.textPaths[p]:createNS("text"):this.textSpans[p]?(u=this.textSpans[p],c=this.textPaths[p]):(u=createTag("span"),styleDiv(u),c=createTag("span"),styleDiv(c),u.appendChild(c)),this.globalData.fontManager.chars){var g=this.globalData.fontManager.getCharData(t.finalText[o],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),v;if(g?v=g.data:v=null,f.reset(),v&&v.shapes&&v.shapes.length&&(h=v.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),m=this.createPathShape(f,h),c.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),v&&v.shapes){document.body.appendChild(d);var _=d.getBBox();d.setAttribute("width",_.width+2),d.setAttribute("height",_.height+2),d.setAttribute("viewBox",_.x-1+" "+(_.y-1)+" "+(_.width+2)+" "+(_.height+2));var y=d.style,x="translate("+(_.x-1)+"px,"+(_.y-1)+"px)";y.transform=x,y.webkitTransform=x,l[o].yOffset=_.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);u.appendChild(d)}}else if(c.textContent=l[o].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(u);var w=c.style,T="translate3d(0,"+-t.finalSize/1.2+"px,0)";w.transform=T,w.webkitTransform=T}this.isMasked?this.textSpans[p]=c:this.textSpans[p]=u,this.textSpans[p].style.display="block",this.textPaths[p]=c,p+=1}for(;p<this.textSpans.length;)this.textSpans[p].style.display="none",p+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var n="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=n,t.webkitTransform=n}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var e,i,r=0,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;i=o.length;var a,l,c;for(e=0;e<i;e+=1)o[e].n?r+=1:(l=this.textSpans[e],c=this.textPaths[e],a=s[r],r+=1,a._mdf.m&&(this.isMasked?l.setAttribute("transform",a.m):(l.style.webkitTransform=a.m,l.style.transform=a.m)),l.style.opacity=a.o,a.sw&&a._mdf.sw&&c.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&c.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(c.setAttribute("fill",a.fc),c.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height));var d=1;if(this.currentBBox.w!==u.width+d*2||this.currentBBox.h!==u.height+d*2||this.currentBBox.x!==u.x-d||this.currentBBox.y!==u.y-d){this.currentBBox.w=u.width+d*2,this.currentBBox.h=u.height+d*2,this.currentBBox.x=u.x-d,this.currentBBox.y=u.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=f,t.webkitTransform=f}}}};function HCameraElement(t,n,e){this.initFrame(),this.initBaseData(t,n,e),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,s=t.ks.or.k.length;for(r=0;r<s;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,n=this.comp.threeDElements.length,e,i,r;for(t=0;t<n;t+=1)if(e=this.comp.threeDElements[t],e.type==="3d"){i=e.perspectiveElem.style,r=e.container.style;var s=this.pe.v+"px",o="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s,i.webkitPerspective=s,r.transformOrigin=o,r.mozTransformOrigin=o,r.webkitTransformOrigin=o,i.transform=a,i.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame,n,e;if(this.hierarchy)for(e=this.hierarchy.length,n=0;n<e;n+=1)t=this.hierarchy[n].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=this.hierarchy.length-1,n=e;n>=0;n-=1){var i=this.hierarchy[n].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;this.p?r=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:r=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),o=[r[0]/s,r[1]/s,r[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],a),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){e=this.comp.threeDElements.length;var d,f,h;for(n=0;n<e;n+=1)if(d=this.comp.threeDElements[n],d.type==="3d"){if(u){var m=this.mat.toCSS();h=d.container.style,h.transform=m,h.webkitTransform=m}this.pe._mdf&&(f=d.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,n,e){this.assetData=n.getAssetData(t.refId),this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),n=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(n),n.crossOrigin="anonymous",n.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(t,n){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(t,n){var e=t.getBaseElement();if(e){var i=this.layers[n];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(e,n);else{for(var r=0,s,o,a;r<n;)this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement&&(o=this.elements[r],a=this.layers[r].ddd?this.getThreeDContainerByPos(r):o.getBaseElement(),s=a||s),r+=1;s?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(e,s):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(e)}else this.addTo3dContainer(e,n)}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var n=0,e=this.threeDElements.length;n<e;){if(this.threeDElements[n].startPos<=t&&this.threeDElements[n].endPos>=t)return this.threeDElements[n].perspectiveElem;n+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,n){var e=createTag("div"),i,r;styleDiv(e);var s=createTag("div");if(styleDiv(s),n==="3d"){i=e.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o,r=s.style;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.transform=a,r.webkitTransform=a}e.appendChild(s);var l={container:s,perspectiveElem:e,startPos:t,endPos:t,type:n};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,n=this.layers.length,e,i="";for(t=0;t<n;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(i!=="3d"&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):(i!=="2d"&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(n=this.threeDElements.length,t=n-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,n){for(var e=0,i=this.threeDElements.length;e<i;){if(n<=this.threeDElements[e].endPos){for(var r=this.threeDElements[e].startPos,s;r<n;)this.elements[r]&&this.elements[r].getBaseElement&&(s=this.elements[r].getBaseElement()),r+=1;s?this.threeDElements[e].container.insertBefore(t,s):this.threeDElements[e].container.appendChild(t);break}e+=1}},HybridRendererBase.prototype.configAnimation=function(t){var n=createTag("div"),e=this.animationItem.wrapper,i=n.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=n,styleDiv(n),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&n.setAttribute("class",this.renderConfig.className),e.appendChild(n),i.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var s=createNS("defs");r.appendChild(s),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t,n=this.layers?this.layers.length:0;for(t=0;t<n;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,e=t/n,i=this.globalData.compSize.w/this.globalData.compSize.h,r,s,o,a;i>e?(r=t/this.globalData.compSize.w,s=t/this.globalData.compSize.w,o=0,a=(n-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(r=n/this.globalData.compSize.h,s=n/this.globalData.compSize.h,o=(t-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+r+",0,0,0,0,"+s+",0,0,0,0,1,0,"+o+","+a+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,n=this.globalData.compSize.h,e,i=this.threeDElements.length;for(e=0;e<i;e+=1){var r=this.threeDElements[e].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var n,e=t.length,i=createTag("div");for(n=0;n<e;n+=1)if(t[n].xt){var r=this.createComp(t[n],i,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}};function HCompElement(t,n,e){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,n,e),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,n){for(var e=0,i;e<n;)this.elements[e]&&this.elements[e].getBaseElement&&(i=this.elements[e].getBaseElement()),e+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};function HybridRenderer(t,n){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.filterSize.y||"-100%"},runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(){return function(t){function n(e){for(var i=0,r=t.layers.length;i<r;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(n,"_name",{value:t.data.nm}),n.layer=n,n.pixelAspect=1,n.height=t.data.h||t.globalData.compSize.h,n.width=t.data.w||t.globalData.compSize.w,n.pixelAspect=1,n.frameDuration=1/t.globalData.frameRate,n.displayStartTime=0,n.numLayers=t.layers.length,n}}();function _typeof$2(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(e){return typeof e}:_typeof$2=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(t)}function seedRandom(t,n){var e=this,i=256,r=6,s=52,o="random",a=n.pow(i,r),l=n.pow(2,s),c=l*2,u=i-1,d;function f(y,x,w){var T=[];x=x===!0?{entropy:!0}:x||{};var E=g(p(x.entropy?[y,_(t)]:y===null?v():y,3),T),k=new h(T),F=function(){for(var Y=k.g(r),W=a,le=0;Y<l;)Y=(Y+le)*i,W*=i,le=k.g(1);for(;Y>=c;)Y/=2,W/=2,le>>>=1;return(Y+le)/W};return F.int32=function(){return k.g(4)|0},F.quick=function(){return k.g(4)/4294967296},F.double=F,g(_(k.S),t),(x.pass||w||function(G,Y,W,le){return le&&(le.S&&m(le,k),G.state=function(){return m(k,{})}),W?(n[o]=G,Y):G})(F,E,"global"in x?x.global:this==n,x.state)}n["seed"+o]=f;function h(y){var x,w=y.length,T=this,E=0,k=T.i=T.j=0,F=T.S=[];for(w||(y=[w++]);E<i;)F[E]=E++;for(E=0;E<i;E++)F[E]=F[k=u&k+y[E%w]+(x=F[E])],F[k]=x;T.g=function(G){for(var Y,W=0,le=T.i,ge=T.j,te=T.S;G--;)Y=te[le=u&le+1],W=W*i+te[u&(te[le]=te[ge=u&ge+Y])+(te[ge]=Y)];return T.i=le,T.j=ge,W}}function m(y,x){return x.i=y.i,x.j=y.j,x.S=y.S.slice(),x}function p(y,x){var w=[],T=_typeof$2(y),E;if(x&&T=="object")for(E in y)try{w.push(p(y[E],x-1))}catch{}return w.length?w:T=="string"?y:y+"\0"}function g(y,x){for(var w=y+"",T,E=0;E<w.length;)x[u&E]=u&(T^=x[u&E]*19)+w.charCodeAt(E++);return _(x)}function v(){try{if(d)return _(d.randomBytes(i));var y=new Uint8Array(i);return(e.crypto||e.msCrypto).getRandomValues(y),_(y)}catch{var x=e.navigator,w=x&&x.plugins;return[+new Date,e,w,e.screen,_(t)]}}function _(y){return String.fromCharCode.apply(0,y)}g(n.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(e){return typeof e}:_typeof$1=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(t)}var ExpressionManager=function(){"use strict";var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,n){return t==="number"||n instanceof Number||t==="boolean"||t==="string"}function $bm_neg(t){var n=_typeof$1(t);if(n==="number"||t instanceof Number||n==="boolean")return-t;if($bm_isInstanceOfArray(t)){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r[e]=-t[e];return r}return t.propType?t.v:-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,n){var e=_typeof$1(t),i=_typeof$1(n);if(isNumerable(e,t)&&isNumerable(i,n)||e==="string"||i==="string")return t+n;if($bm_isInstanceOfArray(t)&&isNumerable(i,n))return t=t.slice(0),t[0]+=n,t;if(isNumerable(e,t)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=t+n[0],n;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(n)){for(var r=0,s=t.length,o=n.length,a=[];r<s||r<o;)(typeof t[r]=="number"||t[r]instanceof Number)&&(typeof n[r]=="number"||n[r]instanceof Number)?a[r]=t[r]+n[r]:a[r]=n[r]===void 0?t[r]:t[r]||n[r],r+=1;return a}return 0}var add=sum;function sub(t,n){var e=_typeof$1(t),i=_typeof$1(n);if(isNumerable(e,t)&&isNumerable(i,n))return e==="string"&&(t=parseInt(t,10)),i==="string"&&(n=parseInt(n,10)),t-n;if($bm_isInstanceOfArray(t)&&isNumerable(i,n))return t=t.slice(0),t[0]-=n,t;if(isNumerable(e,t)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=t-n[0],n;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(n)){for(var r=0,s=t.length,o=n.length,a=[];r<s||r<o;)(typeof t[r]=="number"||t[r]instanceof Number)&&(typeof n[r]=="number"||n[r]instanceof Number)?a[r]=t[r]-n[r]:a[r]=n[r]===void 0?t[r]:t[r]||n[r],r+=1;return a}return 0}function mul(t,n){var e=_typeof$1(t),i=_typeof$1(n),r;if(isNumerable(e,t)&&isNumerable(i,n))return t*n;var s,o;if($bm_isInstanceOfArray(t)&&isNumerable(i,n)){for(o=t.length,r=createTypedArray("float32",o),s=0;s<o;s+=1)r[s]=t[s]*n;return r}if(isNumerable(e,t)&&$bm_isInstanceOfArray(n)){for(o=n.length,r=createTypedArray("float32",o),s=0;s<o;s+=1)r[s]=t*n[s];return r}return 0}function div(t,n){var e=_typeof$1(t),i=_typeof$1(n),r;if(isNumerable(e,t)&&isNumerable(i,n))return t/n;var s,o;if($bm_isInstanceOfArray(t)&&isNumerable(i,n)){for(o=t.length,r=createTypedArray("float32",o),s=0;s<o;s+=1)r[s]=t[s]/n;return r}if(isNumerable(e,t)&&$bm_isInstanceOfArray(n)){for(o=n.length,r=createTypedArray("float32",o),s=0;s<o;s+=1)r[s]=t/n[s];return r}return 0}function mod(t,n){return typeof t=="string"&&(t=parseInt(t,10)),typeof n=="string"&&(n=parseInt(n,10)),t%n}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,n,e){if(n>e){var i=e;e=n,n=i}return Math.min(Math.max(t,n),e)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,n){if(typeof t=="number"||t instanceof Number)return n=n||0,Math.abs(t-n);n||(n=helperLengthArray);var e,i=Math.min(t.length,n.length),r=0;for(e=0;e<i;e+=1)r+=Math.pow(n[e]-t[e],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var n=t[0],e=t[1],i=t[2],r=Math.max(n,e,i),s=Math.min(n,e,i),o,a,l=(r+s)/2;if(r===s)o=0,a=0;else{var c=r-s;switch(a=l>.5?c/(2-r-s):c/(r+s),r){case n:o=(e-i)/c+(e<i?6:0);break;case e:o=(i-n)/c+2;break;case i:o=(n-e)/c+4;break;default:break}o/=6}return[o,a,l,t[3]]}function hue2rgb(t,n,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+(n-t)*6*e:e<1/2?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function hslToRgb(t){var n=t[0],e=t[1],i=t[2],r,s,o;if(e===0)r=i,o=i,s=i;else{var a=i<.5?i*(1+e):i+e-i*e,l=2*i-a;r=hue2rgb(l,a,n+1/3),s=hue2rgb(l,a,n),o=hue2rgb(l,a,n-1/3)}return[r,s,o,t[3]]}function linear(t,n,e,i,r){if((i===void 0||r===void 0)&&(i=n,r=e,n=0,e=1),e<n){var s=e;e=n,n=s}if(t<=n)return i;if(t>=e)return r;var o=e===n?0:(t-n)/(e-n);if(!i.length)return i+(r-i)*o;var a,l=i.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=i[a]+(r[a]-i[a])*o;return c}function random(t,n){if(n===void 0&&(t===void 0?(t=0,n=1):(n=t,t=void 0)),n.length){var e,i=n.length;t||(t=createTypedArray("float32",i));var r=createTypedArray("float32",i),s=BMMath.random();for(e=0;e<i;e+=1)r[e]=t[e]+s*(n[e]-t[e]);return r}t===void 0&&(t=0);var o=BMMath.random();return t+o*(n-t)}function createPath(t,n,e,i){var r,s=t.length,o=shapePool.newElement();o.setPathData(!!i,s);var a=[0,0],l,c;for(r=0;r<s;r+=1)l=n&&n[r]?n[r]:a,c=e&&e[r]?e[r]:a,o.setTripleAt(t[r][0],t[r][1],c[0]+t[r][0],c[1]+t[r][1],l[0]+t[r][0],l[1]+t[r][1],r,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function t(n,e){var i,r,s=this.pv.length?this.pv.length:1,o=createTypedArray("float32",s);n=5;var a=Math.floor(time*n);for(i=0,r=0;i<a;){for(r=0;r<s;r+=1)o[r]+=-e+e*2*BMMath.random();i+=1}var l=time*n,c=l-Math.floor(l),u=createTypedArray("float32",s);if(s>1){for(r=0;r<s;r+=1)u[r]=this.pv[r]+o[r]+(-e+e*2*BMMath.random())*c;return u}return this.pv+o[0]+(-e+e*2*BMMath.random())*c}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(t,n){return loopIn(t,n,!0)}function loopOutDuration(t,n){return loopOut(t,n,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,n){var e=[n[0]-t[0],n[1]-t[1],n[2]-t[2]],i=Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2]))/degToRads,r=-Math.atan2(e[1],e[2])/degToRads;return[r,i,0]}function easeOut(t,n,e,i,r){return applyEase(easeOutBez,t,n,e,i,r)}function easeIn(t,n,e,i,r){return applyEase(easeInBez,t,n,e,i,r)}function ease(t,n,e,i,r){return applyEase(easeInOutBez,t,n,e,i,r)}function applyEase(t,n,e,i,r,s){r===void 0?(r=e,s=i):n=(n-e)/(i-e),n>1?n=1:n<0&&(n=0);var o=t(n);if($bm_isInstanceOfArray(r)){var a,l=r.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=(s[a]-r[a])*o+r[a];return c}return(s-r)*o+r}function nearestKey(t){var n,e=data.k.length,i,r;if(!data.k.length||typeof data.k[0]=="number")i=0,r=0;else if(i=-1,t*=elem.comp.globalData.frameRate,t<data.k[0].t)i=1,r=data.k[0].t;else{for(n=0;n<e-1;n+=1)if(t===data.k[n].t){i=n+1,r=data.k[n].t;break}else if(t>data.k[n].t&&t<data.k[n+1].t){t-data.k[n].t>data.k[n+1].t-t?(i=n+2,r=data.k[n+1].t):(i=n+1,r=data.k[n].t);break}i===-1&&(i=n+1,r=data.k[n].t)}var s={};return s.index=i,s.time=r/elem.comp.globalData.frameRate,s}function key(t){var n,e,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,n={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=r.length,e=0;e<i;e+=1)n[e]=r[e],n.value[e]=r[e];return n}function framesToTime(t,n){return n||(n=elem.comp.globalData.frameRate),t/n}function timeToFrames(t,n){return!t&&t!==0&&(t=time),n||(n=elem.comp.globalData.frameRate),t*n}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,n){return typeof value=="string"?n===void 0?value.substring(t):value.substring(t,n):""}function substr(t,n){return typeof value=="string"?n===void 0?value.substr(t):value.substr(t,n):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={};t.initExpressions=n,t.resetFrame=ExpressionManager.resetFrame;function n(e){var i=0,r=[];function s(){i+=1}function o(){i-=1,i===0&&l()}function a(c){r.indexOf(c)===-1&&r.push(c)}function l(){var c,u=r.length;for(c=0;c<u;c+=1)r[c].release();r.length=0}e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=s,e.renderer.globalData.popExpression=o,e.renderer.globalData.registerExpressionProperty=a}return t}(),MaskManagerInterface=function(){function t(e,i){this._mask=e,this._data=i}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var n=function(i){var r=createSizedArray(i.viewData.length),s,o=i.viewData.length;for(s=0;s<o;s+=1)r[s]=new t(i.viewData[s],i.masksProperties[s]);var a=function(c){for(s=0;s<o;){if(i.masksProperties[s].nm===c)return r[s];s+=1}return null};return a};return n}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},n={pv:[0,0,0],v:[0,0,0],mult:1};function e(o,a,l){Object.defineProperty(o,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),o.numKeys=a.keyframes?a.keyframes.length:0,o.key=function(c){if(!o.numKeys)return 0;var u="";"s"in a.keyframes[c-1]?u=a.keyframes[c-1].s:"e"in a.keyframes[c-2]?u=a.keyframes[c-2].e:u=a.keyframes[c-2].s;var d=l==="unidimensional"?new Number(u):Object.assign({},u);return d.time=a.keyframes[c-1].t/a.elem.comp.globalData.frameRate,d.value=l==="unidimensional"?u[0]:u,d},o.valueAtTime=a.getValueAtTime,o.speedAtTime=a.getSpeedAtTime,o.velocityAtTime=a.getVelocityAtTime,o.propertyGroup=a.propertyGroup}function i(o){(!o||!("pv"in o))&&(o=t);var a=1/o.mult,l=o.pv*a,c=new Number(l);return c.value=l,e(c,o,"unidimensional"),function(){return o.k&&o.getValue(),l=o.v*a,c.value!==l&&(c=new Number(l),c.value=l,e(c,o,"unidimensional")),c}}function r(o){(!o||!("pv"in o))&&(o=n);var a=1/o.mult,l=o.data&&o.data.l||o.pv.length,c=createTypedArray("float32",l),u=createTypedArray("float32",l);return c.value=u,e(c,o,"multidimensional"),function(){o.k&&o.getValue();for(var d=0;d<l;d+=1)u[d]=o.v[d]*a,c[d]=u[d];return c}}function s(){return t}return function(o){return o?o.propType==="unidimensional"?i(o):r(o):s}}(),TransformExpressionInterface=function(){return function(t){function n(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return n.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return n.rotation;case"ADBE Rotate X":return n.xRotation;case"ADBE Rotate Y":return n.yRotation;case"position":case"Position":case"ADBE Position":case 2:return n.position;case"ADBE Position_0":return n.xPosition;case"ADBE Position_1":return n.yPosition;case"ADBE Position_2":return n.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return n.anchorPoint;case"opacity":case"Opacity":case 11:return n.opacity;default:return null}}Object.defineProperty(n,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(n,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(n,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(n,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(n,"scale",{get:ExpressionPropertyInterface(t.s)});var e,i,r,s;return t.p?s=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(n,"position",{get:function(){return t.p?s():[e(),i(),r?r():0]}}),Object.defineProperty(n,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(n,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(n,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(n,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(n,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(n,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(n,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(n,"orientation",{get:ExpressionPropertyInterface(t.or)}),n}}(),LayerExpressionInterface=function(){function t(c){var u=new Matrix;if(c!==void 0){var d=this._elem.finalTransform.mProp.getValueAtTime(c);d.clone(u)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(u)}return u}function n(c,u){var d=this.getMatrix(u);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.applyPoint(d,c)}function e(c,u){var d=this.getMatrix(u);return this.applyPoint(d,c)}function i(c,u){var d=this.getMatrix(u);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.invertPoint(d,c)}function r(c,u){var d=this.getMatrix(u);return this.invertPoint(d,c)}function s(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(u[0],u[1],u[2]||0)}function o(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(u)}function a(c){var u=new Matrix;if(u.reset(),this._elem.finalTransform.mProp.applyToMatrix(u),this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u);return u.inversePoint(c)}return u.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var u;function d(p){h.mask=new MaskManagerInterface(p,c)}function f(p){h.effect=p}function h(p){switch(p){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=o,h.applyPoint=s,h.toWorld=e,h.toWorldVec=n,h.fromWorld=r,h.fromWorldVec=i,h.toComp=e,h.fromComp=a,h.sampleImage=l,h.sourceRectAtTime=c.sourceRectAtTime.bind(c),h._elem=c,u=TransformExpressionInterface(c.finalTransform.mProp);var m=getDescriptor(u,"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),h.startTime=c.data.st,h.index=c.data.ind,h.source=c.data.refId,h.height=c.data.ty===0?c.data.h:100,h.width=c.data.ty===0?c.data.w:100,h.inPoint=c.data.ip/c.comp.globalData.frameRate,h.outPoint=c.data.op/c.comp.globalData.frameRate,h._name=c.data.nm,h.registerMaskInterface=d,h.registerEffectsInterface=f,h}}(),propertyGroupFactory=function(){return function(t,n){return function(e){return e=e===void 0?1:e,e<=0?t:n(e-1)}}}(),PropertyInterface=function(){return function(t,n){var e={_name:t};function i(r){return r=r===void 0?1:r,r<=0?e:n(r-1)}return i}}(),EffectsExpressionInterface=function(){var t={createEffectsInterface:n};function n(r,s){if(r.effectsManager){var o=[],a=r.data.ef,l,c=r.effectsManager.effectElements.length;for(l=0;l<c;l+=1)o.push(e(a[l],r.effectsManager.effectElements[l],s,r));var u=r.data.ef||[],d=function(h){for(l=0,c=u.length;l<c;){if(h===u[l].nm||h===u[l].mn||h===u[l].ix)return o[l];l+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return u.length}}),d}return null}function e(r,s,o,a){function l(h){for(var m=r.ef,p=0,g=m.length;p<g;){if(h===m[p].nm||h===m[p].mn||h===m[p].ix)return m[p].ty===5?u[p]:u[p]();p+=1}throw new Error}var c=propertyGroupFactory(l,o),u=[],d,f=r.ef.length;for(d=0;d<f;d+=1)r.ef[d].ty===5?u.push(e(r.ef[d],s.effectElements[d],s.effectElements[d].propertyGroup,a)):u.push(i(s.effectElements[d],r.ef[d].ty,a,c));return r.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return u[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:c}}),l.enabled=r.en!==0,l.active=l.enabled,l}function i(r,s,o,a){var l=ExpressionPropertyInterface(r.p);function c(){return s===10?o.comp.compInterface(r.p.v):l()}return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",a)),c}return t}(),ShapePathInterface=function(){return function(n,e,i){var r=e.sh;function s(a){return a==="Shape"||a==="shape"||a==="Path"||a==="path"||a==="ADBE Vector Shape"||a===2?s.path:null}var o=propertyGroupFactory(s,i);return r.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(s,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:n.nm},ix:{value:n.ix},propertyIndex:{value:n.ix},mn:{value:n.mn},propertyGroup:{value:i}}),s}}(),ShapeExpressionInterface=function(){function t(m,p,g){var v=[],_,y=m?m.length:0;for(_=0;_<y;_+=1)m[_].ty==="gr"?v.push(e(m[_],p[_],g)):m[_].ty==="fl"?v.push(i(m[_],p[_],g)):m[_].ty==="st"?v.push(o(m[_],p[_],g)):m[_].ty==="tm"?v.push(a(m[_],p[_],g)):m[_].ty==="tr"||(m[_].ty==="el"?v.push(c(m[_],p[_],g)):m[_].ty==="sr"?v.push(u(m[_],p[_],g)):m[_].ty==="sh"?v.push(ShapePathInterface(m[_],p[_],g)):m[_].ty==="rc"?v.push(d(m[_],p[_],g)):m[_].ty==="rd"?v.push(f(m[_],p[_],g)):m[_].ty==="rp"?v.push(h(m[_],p[_],g)):m[_].ty==="gf"?v.push(r(m[_],p[_],g)):v.push(s(m[_],p[_],g)));return v}function n(m,p,g){var v,_=function(w){for(var T=0,E=v.length;T<E;){if(v[T]._name===w||v[T].mn===w||v[T].propertyIndex===w||v[T].ix===w||v[T].ind===w)return v[T];T+=1}return typeof w=="number"?v[w-1]:null};_.propertyGroup=propertyGroupFactory(_,g),v=t(m.it,p.it,_.propertyGroup),_.numProperties=v.length;var y=l(m.it[m.it.length-1],p.it[p.it.length-1],_.propertyGroup);return _.transform=y,_.propertyIndex=m.cix,_._name=m.nm,_}function e(m,p,g){var v=function(w){switch(w){case"ADBE Vectors Group":case"Contents":case 2:return v.content;default:return v.transform}};v.propertyGroup=propertyGroupFactory(v,g);var _=n(m,p,v.propertyGroup),y=l(m.it[m.it.length-1],p.it[p.it.length-1],v.propertyGroup);return v.content=_,v.transform=y,Object.defineProperty(v,"_name",{get:function(){return m.nm}}),v.numProperties=m.np,v.propertyIndex=m.ix,v.nm=m.nm,v.mn=m.mn,v}function i(m,p,g){function v(_){return _==="Color"||_==="color"?v.color:_==="Opacity"||_==="opacity"?v.opacity:null}return Object.defineProperties(v,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},_name:{value:m.nm},mn:{value:m.mn}}),p.c.setGroupProperty(PropertyInterface("Color",g)),p.o.setGroupProperty(PropertyInterface("Opacity",g)),v}function r(m,p,g){function v(_){return _==="Start Point"||_==="start point"?v.startPoint:_==="End Point"||_==="end point"?v.endPoint:_==="Opacity"||_==="opacity"?v.opacity:null}return Object.defineProperties(v,{startPoint:{get:ExpressionPropertyInterface(p.s)},endPoint:{get:ExpressionPropertyInterface(p.e)},opacity:{get:ExpressionPropertyInterface(p.o)},type:{get:function(){return"a"}},_name:{value:m.nm},mn:{value:m.mn}}),p.s.setGroupProperty(PropertyInterface("Start Point",g)),p.e.setGroupProperty(PropertyInterface("End Point",g)),p.o.setGroupProperty(PropertyInterface("Opacity",g)),v}function s(){function m(){return null}return m}function o(m,p,g){var v=propertyGroupFactory(E,g),_=propertyGroupFactory(T,v);function y(k){Object.defineProperty(T,m.d[k].nm,{get:ExpressionPropertyInterface(p.d.dataProps[k].p)})}var x,w=m.d?m.d.length:0,T={};for(x=0;x<w;x+=1)y(x),p.d.dataProps[x].p.setGroupProperty(_);function E(k){return k==="Color"||k==="color"?E.color:k==="Opacity"||k==="opacity"?E.opacity:k==="Stroke Width"||k==="stroke width"?E.strokeWidth:null}return Object.defineProperties(E,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},strokeWidth:{get:ExpressionPropertyInterface(p.w)},dash:{get:function(){return T}},_name:{value:m.nm},mn:{value:m.mn}}),p.c.setGroupProperty(PropertyInterface("Color",v)),p.o.setGroupProperty(PropertyInterface("Opacity",v)),p.w.setGroupProperty(PropertyInterface("Stroke Width",v)),E}function a(m,p,g){function v(y){return y===m.e.ix||y==="End"||y==="end"?v.end:y===m.s.ix?v.start:y===m.o.ix?v.offset:null}var _=propertyGroupFactory(v,g);return v.propertyIndex=m.ix,p.s.setGroupProperty(PropertyInterface("Start",_)),p.e.setGroupProperty(PropertyInterface("End",_)),p.o.setGroupProperty(PropertyInterface("Offset",_)),v.propertyIndex=m.ix,v.propertyGroup=g,Object.defineProperties(v,{start:{get:ExpressionPropertyInterface(p.s)},end:{get:ExpressionPropertyInterface(p.e)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:m.nm}}),v.mn=m.mn,v}function l(m,p,g){function v(y){return m.a.ix===y||y==="Anchor Point"?v.anchorPoint:m.o.ix===y||y==="Opacity"?v.opacity:m.p.ix===y||y==="Position"?v.position:m.r.ix===y||y==="Rotation"||y==="ADBE Vector Rotation"?v.rotation:m.s.ix===y||y==="Scale"?v.scale:m.sk&&m.sk.ix===y||y==="Skew"?v.skew:m.sa&&m.sa.ix===y||y==="Skew Axis"?v.skewAxis:null}var _=propertyGroupFactory(v,g);return p.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",_)),p.transform.mProps.p.setGroupProperty(PropertyInterface("Position",_)),p.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",_)),p.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",_)),p.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",_)),p.transform.mProps.sk&&(p.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",_)),p.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",_))),p.transform.op.setGroupProperty(PropertyInterface("Opacity",_)),Object.defineProperties(v,{opacity:{get:ExpressionPropertyInterface(p.transform.mProps.o)},position:{get:ExpressionPropertyInterface(p.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(p.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(p.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(p.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(p.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(p.transform.mProps.sa)},_name:{value:m.nm}}),v.ty="tr",v.mn=m.mn,v.propertyGroup=g,v}function c(m,p,g){function v(x){return m.p.ix===x?v.position:m.s.ix===x?v.size:null}var _=propertyGroupFactory(v,g);v.propertyIndex=m.ix;var y=p.sh.ty==="tm"?p.sh.prop:p.sh;return y.s.setGroupProperty(PropertyInterface("Size",_)),y.p.setGroupProperty(PropertyInterface("Position",_)),Object.defineProperties(v,{size:{get:ExpressionPropertyInterface(y.s)},position:{get:ExpressionPropertyInterface(y.p)},_name:{value:m.nm}}),v.mn=m.mn,v}function u(m,p,g){function v(x){return m.p.ix===x?v.position:m.r.ix===x?v.rotation:m.pt.ix===x?v.points:m.or.ix===x||x==="ADBE Vector Star Outer Radius"?v.outerRadius:m.os.ix===x?v.outerRoundness:m.ir&&(m.ir.ix===x||x==="ADBE Vector Star Inner Radius")?v.innerRadius:m.is&&m.is.ix===x?v.innerRoundness:null}var _=propertyGroupFactory(v,g),y=p.sh.ty==="tm"?p.sh.prop:p.sh;return v.propertyIndex=m.ix,y.or.setGroupProperty(PropertyInterface("Outer Radius",_)),y.os.setGroupProperty(PropertyInterface("Outer Roundness",_)),y.pt.setGroupProperty(PropertyInterface("Points",_)),y.p.setGroupProperty(PropertyInterface("Position",_)),y.r.setGroupProperty(PropertyInterface("Rotation",_)),m.ir&&(y.ir.setGroupProperty(PropertyInterface("Inner Radius",_)),y.is.setGroupProperty(PropertyInterface("Inner Roundness",_))),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(y.p)},rotation:{get:ExpressionPropertyInterface(y.r)},points:{get:ExpressionPropertyInterface(y.pt)},outerRadius:{get:ExpressionPropertyInterface(y.or)},outerRoundness:{get:ExpressionPropertyInterface(y.os)},innerRadius:{get:ExpressionPropertyInterface(y.ir)},innerRoundness:{get:ExpressionPropertyInterface(y.is)},_name:{value:m.nm}}),v.mn=m.mn,v}function d(m,p,g){function v(x){return m.p.ix===x?v.position:m.r.ix===x?v.roundness:m.s.ix===x||x==="Size"||x==="ADBE Vector Rect Size"?v.size:null}var _=propertyGroupFactory(v,g),y=p.sh.ty==="tm"?p.sh.prop:p.sh;return v.propertyIndex=m.ix,y.p.setGroupProperty(PropertyInterface("Position",_)),y.s.setGroupProperty(PropertyInterface("Size",_)),y.r.setGroupProperty(PropertyInterface("Rotation",_)),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(y.p)},roundness:{get:ExpressionPropertyInterface(y.r)},size:{get:ExpressionPropertyInterface(y.s)},_name:{value:m.nm}}),v.mn=m.mn,v}function f(m,p,g){function v(x){return m.r.ix===x||x==="Round Corners 1"?v.radius:null}var _=propertyGroupFactory(v,g),y=p;return v.propertyIndex=m.ix,y.rd.setGroupProperty(PropertyInterface("Radius",_)),Object.defineProperties(v,{radius:{get:ExpressionPropertyInterface(y.rd)},_name:{value:m.nm}}),v.mn=m.mn,v}function h(m,p,g){function v(x){return m.c.ix===x||x==="Copies"?v.copies:m.o.ix===x||x==="Offset"?v.offset:null}var _=propertyGroupFactory(v,g),y=p;return v.propertyIndex=m.ix,y.c.setGroupProperty(PropertyInterface("Copies",_)),y.o.setGroupProperty(PropertyInterface("Offset",_)),Object.defineProperties(v,{copies:{get:ExpressionPropertyInterface(y.c)},offset:{get:ExpressionPropertyInterface(y.o)},_name:{value:m.nm}}),v.mn=m.mn,v}return function(m,p,g){var v;function _(x){if(typeof x=="number")return x=x===void 0?1:x,x===0?g:v[x-1];for(var w=0,T=v.length;w<T;){if(v[w]._name===x)return v[w];w+=1}return null}function y(){return g}return _.propertyGroup=propertyGroupFactory(_,y),v=t(m,p,_.propertyGroup),_.numProperties=v.length,_._name="Contents",_}}(),TextExpressionInterface=function(){return function(t){var n;function e(i){switch(i){case"ADBE Text Document":return e.sourceText;default:return null}}return Object.defineProperty(e,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return(!n||r!==n.value)&&(n=new String(r),n.value=r||new String(r),Object.defineProperty(n,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),n}}),e}}();function _typeof(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(e){return typeof e}:_typeof=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}var FootageInterface=function(){var t=function(i){var r="",s=i.getFootageData();function o(){return r="",s=i.getFootageData(),a}function a(l){if(s[l])return r=l,s=s[l],_typeof(s)==="object"?a:s;var c=l.indexOf(r);if(c!==-1){var u=parseInt(l.substr(c+r.length),10);return s=s[u],_typeof(s)==="object"?a:s}return""}return o},n=function(i){function r(s){return s==="Outline"?r.outlineInterface():null}return r._name="Outline",r.outlineInterface=t(i),r};return function(e){function i(r){return r==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=n(e),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=function(){function t(o,a,l){a.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(o,a,l).bind(l)))}function n(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function e(o){var a=-.01,l=this.getValueAtTime(o),c=this.getValueAtTime(o+a),u=0;if(l.length){var d;for(d=0;d<l.length;d+=1)u+=Math.pow(c[d]-l[d],2);u=Math.sqrt(u)*100}else u=0;return u}function i(o){if(this.vel!==void 0)return this.vel;var a=-.001,l=this.getValueAtTime(o),c=this.getValueAtTime(o+a),u;if(l.length){u=createTypedArray("float32",l.length);var d;for(d=0;d<l.length;d+=1)u[d]=(c[d]-l[d])/a}else u=(c-l)/a;return u}function r(){return this.pv}function s(o){this.propertyGroup=o}return{searchExpressions:t,getSpeedAtTime:e,getVelocityAtTime:i,getValueAtTime:n,getStaticValueAtTime:r,setGroupProperty:s}}();function addPropertyDecorator(){function t(f,h,m){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var p=this.comp.renderedFrame,g=this.keyframes,v=g[g.length-1].t;if(p<=v)return this.pv;var _,y;m?(h?_=Math.abs(v-this.elem.comp.globalData.frameRate*h):_=Math.max(0,v-this.elem.data.ip),y=v-_):((!h||h>g.length-1)&&(h=g.length-1),y=g[g.length-1-h].t,_=v-y);var x,w,T;if(f==="pingpong"){var E=Math.floor((p-y)/_);if(E%2!==0)return this.getValueAtTime((_-(p-y)%_+y)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var k=this.getValueAtTime(y/this.comp.globalData.frameRate,0),F=this.getValueAtTime(v/this.comp.globalData.frameRate,0),G=this.getValueAtTime(((p-y)%_+y)/this.comp.globalData.frameRate,0),Y=Math.floor((p-y)/_);if(this.pv.length){for(T=new Array(k.length),w=T.length,x=0;x<w;x+=1)T[x]=(F[x]-k[x])*Y+G[x];return T}return(F-k)*Y+G}else if(f==="continue"){var W=this.getValueAtTime(v/this.comp.globalData.frameRate,0),le=this.getValueAtTime((v-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(T=new Array(W.length),w=T.length,x=0;x<w;x+=1)T[x]=W[x]+(W[x]-le[x])*((p-v)/this.comp.globalData.frameRate)/5e-4;return T}return W+(W-le)*((p-v)/.001)}return this.getValueAtTime(((p-y)%_+y)/this.comp.globalData.frameRate,0)}function n(f,h,m){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var p=this.comp.renderedFrame,g=this.keyframes,v=g[0].t;if(p>=v)return this.pv;var _,y;m?(h?_=Math.abs(this.elem.comp.globalData.frameRate*h):_=Math.max(0,this.elem.data.op-v),y=v+_):((!h||h>g.length-1)&&(h=g.length-1),y=g[h].t,_=y-v);var x,w,T;if(f==="pingpong"){var E=Math.floor((v-p)/_);if(E%2===0)return this.getValueAtTime(((v-p)%_+v)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var k=this.getValueAtTime(v/this.comp.globalData.frameRate,0),F=this.getValueAtTime(y/this.comp.globalData.frameRate,0),G=this.getValueAtTime((_-(v-p)%_+v)/this.comp.globalData.frameRate,0),Y=Math.floor((v-p)/_)+1;if(this.pv.length){for(T=new Array(k.length),w=T.length,x=0;x<w;x+=1)T[x]=G[x]-(F[x]-k[x])*Y;return T}return G-(F-k)*Y}else if(f==="continue"){var W=this.getValueAtTime(v/this.comp.globalData.frameRate,0),le=this.getValueAtTime((v+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(T=new Array(W.length),w=T.length,x=0;x<w;x+=1)T[x]=W[x]+(W[x]-le[x])*(v-p)/.001;return T}return W+(W-le)*(v-p)/.001}return this.getValueAtTime((_-((v-p)%_+v))/this.comp.globalData.frameRate,0)}function e(f,h){if(!this.k)return this.pv;if(f=(f||.4)*.5,h=Math.floor(h||5),h<=1)return this.pv;var m=this.comp.renderedFrame/this.comp.globalData.frameRate,p=m-f,g=m+f,v=h>1?(g-p)/(h-1):1,_=0,y=0,x;this.pv.length?x=createTypedArray("float32",this.pv.length):x=0;for(var w;_<h;){if(w=this.getValueAtTime(p+_*v),this.pv.length)for(y=0;y<this.pv.length;y+=1)x[y]+=w[y];else x+=w;_+=1}if(this.pv.length)for(y=0;y<this.pv.length;y+=1)x[y]/=h;else x/=h;return x}function i(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var h=this._transformCachingAtTime.v;if(h.cloneFromProps(this.pre.props),this.appliedTransformations<1){var m=this.a.getValueAtTime(f);h.translate(-m[0]*this.a.mult,-m[1]*this.a.mult,m[2]*this.a.mult)}if(this.appliedTransformations<2){var p=this.s.getValueAtTime(f);h.scale(p[0]*this.s.mult,p[1]*this.s.mult,p[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var g=this.sk.getValueAtTime(f),v=this.sa.getValueAtTime(f);h.skewFromAxis(-g*this.sk.mult,v*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var _=this.r.getValueAtTime(f);h.rotate(-_*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var y=this.rz.getValueAtTime(f),x=this.ry.getValueAtTime(f),w=this.rx.getValueAtTime(f),T=this.or.getValueAtTime(f);h.rotateZ(-y*this.rz.mult).rotateY(x*this.ry.mult).rotateX(w*this.rx.mult).rotateZ(-T[2]*this.or.mult).rotateY(T[1]*this.or.mult).rotateX(T[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var E=this.px.getValueAtTime(f),k=this.py.getValueAtTime(f);if(this.data.p.z){var F=this.pz.getValueAtTime(f);h.translate(E*this.px.mult,k*this.py.mult,-F*this.pz.mult)}else h.translate(E*this.px.mult,k*this.py.mult,0)}else{var G=this.p.getValueAtTime(f);h.translate(G[0]*this.p.mult,G[1]*this.p.mult,-G[2]*this.p.mult)}return h}function r(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,h,m){var p=s(f,h,m);return p.dynamicProperties.length?p.getValueAtTime=i.bind(p):p.getValueAtTime=r.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(f,h,m,p,g){var v=o(f,h,m,p,g);v.kf?v.getValueAtTime=expressionHelpers.getValueAtTime.bind(v):v.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(v),v.setGroupProperty=expressionHelpers.setGroupProperty,v.loopOut=t,v.loopIn=n,v.smooth=e,v.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(v),v.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(v),v.numKeys=h.a===1?h.k.length:0,v.propertyIndex=h.ix;var _=0;return m!==0&&(_=createTypedArray("float32",h.a===1?h.k[0].s.length:h.k.length)),v._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:_},expressionHelpers.searchExpressions(f,h,v),v.k&&g.addDynamicProperty(v),v};function a(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(h,m){this.k&&this.getValue();var p=this.v;m!==void 0&&(p=this.getValueAtTime(m,0));var g,v=p._length,_=p[h],y=p.v,x=createSizedArray(v);for(g=0;g<v;g+=1)h==="i"||h==="o"?x[g]=[_[g][0]-y[g][0],_[g][1]-y[g][1]]:x[g]=[_[g][0],_[g][1]];return x},points:function(h){return this.vertices("v",h)},inTangents:function(h){return this.vertices("i",h)},outTangents:function(h){return this.vertices("o",h)},isClosed:function(){return this.v.c},pointOnPath:function(h,m){var p=this.v;m!==void 0&&(p=this.getValueAtTime(m,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(p));for(var g=this._segmentsLength,v=g.lengths,_=g.totalLength*h,y=0,x=v.length,w=0,T;y<x;){if(w+v[y].addedLength>_){var E=y,k=p.c&&y===x-1?0:y+1,F=(_-w)/v[y].addedLength;T=bez.getPointInSegment(p.v[E],p.v[k],p.o[E],p.i[k],F,v[y]);break}else w+=v[y].addedLength;y+=1}return T||(T=p.c?[p.v[0][0],p.v[0][1]]:[p.v[p._length-1][0],p.v[p._length-1][1]]),T},vectorOnPath:function(h,m,p){h==1?h=this.v.c:h==0&&(h=.999);var g=this.pointOnPath(h,m),v=this.pointOnPath(h+.001,m),_=v[0]-g[0],y=v[1]-g[1],x=Math.sqrt(Math.pow(_,2)+Math.pow(y,2));if(x===0)return[0,0];var w=p==="tangent"?[_/x,y/x]:[-y/x,_/x];return w},tangentOnPath:function(h,m){return this.vectorOnPath(h,m,"tangent")},normalOnPath:function(h,m){return this.vectorOnPath(h,m,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=a,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,h,m,p,g){var v=d(f,h,m,p,g);return v.propertyIndex=h.ix,v.lock=!1,m===3?expressionHelpers.searchExpressions(f,h.pt,v):m===4&&expressionHelpers.searchExpressions(f,h.ks,v),v.k&&f.addDynamicProperty(v),v}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(n,e){var i=this.calculateExpression(e);if(n.t!==i){var r={};return this.copyData(r,n),r.t=i.toString(),r.__complete=!1,r}return n},TextProperty.prototype.searchProperty=function(){var n=this.searchKeyframes(),e=this.searchExpressions();return this.kf=n||e,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(n,e){var i=createNS("feMerge");i.setAttribute("result",n);var r,s;for(s=0;s<e.length;s+=1)r=createNS("feMergeNode"),r.setAttribute("in",e[s]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,n,e,i,r){this.filterManager=n;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",i+"_tint_1"),t.appendChild(s),s=createNS("feColorMatrix"),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var o=this.createMergeNode(i,[r,i+"_tint_1",i+"_tint_2"]);t.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var n=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",e[0]-n[0]+" 0 0 0 "+n[0]+" "+(e[1]-n[1])+" 0 0 0 "+n[1]+" "+(e[2]-n[2])+" 0 0 0 "+n[2]+" 0 0 0 1 0")}};function SVGFillFilter(t,n,e,i){this.filterManager=n;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",i),t.appendChild(r),this.matrixFilter=r}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var n=this.filterManager.effectElements[2].p.v,e=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+n[0]+" 0 0 0 0 "+n[1]+" 0 0 0 0 "+n[2]+" 0 0 0 "+e+" 0")}};function SVGStrokeEffect(t,n,e){this.initialized=!1,this.filterManager=n,this.elem=e,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes,n,e,i,r;for(this.filterManager.effectElements[1].p.v===1?(r=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,r=i+1),e=createNS("g"),e.setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1),i;i<r;i+=1)n=createNS("path"),e.appendChild(n),this.paths.push({p:n,m:i});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+o+")");t[0];)a.appendChild(t[0]);this.elem.layerElement.appendChild(a),this.masker=s,e.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(t=this.elem.layerElement.children||this.elem.layerElement.childNodes;t.length;)this.elem.layerElement.removeChild(t[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var n,e=this.paths.length,i,r;for(n=0;n<e;n+=1)if(this.paths[n].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[n].m],r=this.paths[n].p,(t||this.filterManager._mdf||i.prop._mdf)&&r.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=r.getTotalLength();s="0 0 0 "+l*o+" ";var c=l*(a-o),u=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(c/u),f;for(f=0;f<d;f+=1)s+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+l*10+" 0 0"}else s="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(h[0]*255)+","+bmFloor(h[1]*255)+","+bmFloor(h[2]*255)+")")}};function SVGTritoneFilter(t,n,e,i){this.filterManager=n;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(r);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var o=createNS("feFuncR");o.setAttribute("type","table"),s.appendChild(o),this.feFuncR=o;var a=createNS("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var n=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,r=i[0]+" "+e[0]+" "+n[0],s=i[1]+" "+e[1]+" "+n[1],o=i[2]+" "+e[2]+" "+n[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(t,n,e,i){this.filterManager=n;var r=this.filterManager.effectElements,s=createNS("feComponentTransfer");(r[10].p.k||r[10].p.v!==0||r[11].p.k||r[11].p.v!==1||r[12].p.k||r[12].p.v!==1||r[13].p.k||r[13].p.v!==0||r[14].p.k||r[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(r[17].p.k||r[17].p.v!==0||r[18].p.k||r[18].p.v!==1||r[19].p.k||r[19].p.v!==1||r[20].p.k||r[20].p.v!==0||r[21].p.k||r[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(r[24].p.k||r[24].p.v!==0||r[25].p.k||r[25].p.v!==1||r[26].p.k||r[26].p.v!==1||r[27].p.k||r[27].p.v!==0||r[28].p.k||r[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(r[31].p.k||r[31].p.v!==0||r[32].p.k||r[32].p.v!==1||r[33].p.k||r[33].p.v!==1||r[34].p.k||r[34].p.v!==0||r[35].p.k||r[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(r[3].p.k||r[3].p.v!==0||r[4].p.k||r[4].p.v!==1||r[5].p.k||r[5].p.v!==1||r[6].p.k||r[6].p.v!==0||r[7].p.k||r[7].p.v!==1)&&(s=createNS("feComponentTransfer"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}SVGProLevelsFilter.prototype.createFeFunc=function(t,n){var e=createNS(t);return e.setAttribute("type","table"),n.appendChild(e),e},SVGProLevelsFilter.prototype.getTableValue=function(t,n,e,i,r){for(var s=0,o=256,a,l=Math.min(t,n),c=Math.max(t,n),u=Array.call(null,{length:o}),d,f=0,h=r-i,m=n-t;s<=256;)a=s/256,a<=l?d=m<0?r:i:a>=c?d=m<0?i:r:d=i+h*Math.pow((a-t)/m,1/e),u[f]=d,f+=1,s+=256/(o-1);return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var n,e=this.filterManager.effectElements;this.feFuncRComposed&&(t||e[3].p._mdf||e[4].p._mdf||e[5].p._mdf||e[6].p._mdf||e[7].p._mdf)&&(n=this.getTableValue(e[3].p.v,e[4].p.v,e[5].p.v,e[6].p.v,e[7].p.v),this.feFuncRComposed.setAttribute("tableValues",n),this.feFuncGComposed.setAttribute("tableValues",n),this.feFuncBComposed.setAttribute("tableValues",n)),this.feFuncR&&(t||e[10].p._mdf||e[11].p._mdf||e[12].p._mdf||e[13].p._mdf||e[14].p._mdf)&&(n=this.getTableValue(e[10].p.v,e[11].p.v,e[12].p.v,e[13].p.v,e[14].p.v),this.feFuncR.setAttribute("tableValues",n)),this.feFuncG&&(t||e[17].p._mdf||e[18].p._mdf||e[19].p._mdf||e[20].p._mdf||e[21].p._mdf)&&(n=this.getTableValue(e[17].p.v,e[18].p.v,e[19].p.v,e[20].p.v,e[21].p.v),this.feFuncG.setAttribute("tableValues",n)),this.feFuncB&&(t||e[24].p._mdf||e[25].p._mdf||e[26].p._mdf||e[27].p._mdf||e[28].p._mdf)&&(n=this.getTableValue(e[24].p.v,e[25].p.v,e[26].p.v,e[27].p.v,e[28].p.v),this.feFuncB.setAttribute("tableValues",n)),this.feFuncA&&(t||e[31].p._mdf||e[32].p._mdf||e[33].p._mdf||e[34].p._mdf||e[35].p._mdf)&&(n=this.getTableValue(e[31].p.v,e[32].p.v,e[33].p.v,e[34].p.v,e[35].p.v),this.feFuncA.setAttribute("tableValues",n))}};function SVGDropShadowEffect(t,n,e,i,r){var s=n.container.globalData.renderConfig.filterSize,o=n.data.fs||s;t.setAttribute("x",o.x||s.x),t.setAttribute("y",o.y||s.y),t.setAttribute("width",o.width||s.width),t.setAttribute("height",o.height||s.height),this.filterManager=n;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",i+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=c,t.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",i+"_drop_shadow_3"),u.setAttribute("in2",i+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(u);var d=this.createMergeNode(i,[i+"_drop_shadow_4",r]);t.appendChild(d)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var n=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(n[0]*255),Math.round(n[1]*255),Math.round(n[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=e*Math.cos(i),s=e*Math.sin(i);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,n,e){this.initialized=!1,this.filterManager=n,this.filterElem=t,this.elem=e,e.matteElement=createNS("g"),e.matteElement.appendChild(e.layerElement),e.matteElement.appendChild(e.transformedElement),e.baseElement=e.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var n=0,e=_svgMatteSymbols.length;n<e;){if(_svgMatteSymbols[n]===t)return _svgMatteSymbols[n];n+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,n){var e=t.layerElement.parentNode;if(e){for(var i=e.children,r=0,s=i.length;r<s&&i[r]!==t.layerElement;)r+=1;var o;r<=s-2&&(o=i[r+1]);var a=createNS("use");a.setAttribute("href","#"+n),o?e.insertBefore(a,o):e.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,n){if(!this.findSymbol(n)){var e=createElementID(),i=createNS("mask");i.setAttribute("id",n.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(n);var r=t.globalData.defs;r.appendChild(i);var s=createNS("symbol");s.setAttribute("id",e),this.replaceInParent(n,e),s.appendChild(n.layerElement),r.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+e),i.appendChild(o),n.data.hd=!1,n.show()}t.setMatte(n.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,n=this.elem.comp.elements,e=0,i=n.length;e<i;)n[e]&&n[e].data.ind===t&&this.setElementAsMask(this.elem,n[e]),e+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(t,n,e,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=n;var r=createNS("feGaussianBlur");r.setAttribute("result",i),t.appendChild(r),this.feGaussianBlur=r}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var n=.3,e=this.filterManager.effectElements[0].p.v*n,i=this.filterManager.effectElements[1].p.v,r=i==3?0:e,s=i==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+s);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var n=this.effectsManager.effectElements,e=n[0].p.v,i=n[1].p.v,r=n[2].p.v===1,s=n[3].p.v,o=r?s:n[4].p.v,a=n[5].p.v,l=n[6].p.v,c=n[7].p.v;this.matrix.reset(),this.matrix.translate(-e[0],-e[1],e[2]),this.matrix.scale(o*.01,s*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-a*degToRads,(l+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==n[8].p.v&&(this.opacity=n[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(t,n){this.init(n)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(t){this.init(t)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});function Rb(t,n){return Object.is(t,n)}var Jn=null,Ac=!1,Wd=1,Pr=Symbol("SIGNAL");function Gt(t){let n=Jn;return Jn=t,n}function F3(){return Ac}var Pc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Gd(t){if(Ac)throw new Error("");if(Jn===null)return;Jn.consumerOnSignalRead(t);let n=Jn.nextProducerIndex++;if(qa(Jn),n<Jn.producerNode.length&&Jn.producerNode[n]!==t&&Fc(Jn)){let e=Jn.producerNode[n];Xd(e,Jn.producerIndexOfThis[n])}Jn.producerNode[n]!==t&&(Jn.producerNode[n]=t,Jn.producerIndexOfThis[n]=Fc(Jn)?Hb(t,Jn,n):0),Jn.producerLastReadVersion[n]=t.version}function P3(){Wd++}function Lb(t){if(!(Fc(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Wd)){if(!t.producerMustRecompute(t)&&!Yd(t)){t.dirty=!1,t.lastCleanEpoch=Wd;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Wd}}function Nb(t){if(t.liveConsumerNode===void 0)return;let n=Ac;Ac=!0;try{for(let e of t.liveConsumerNode)e.dirty||Bb(e)}finally{Ac=n}}function Vb(){return Jn?.consumerAllowSignalWrites!==!1}function Bb(t){t.dirty=!0,Nb(t),t.consumerMarkedDirty?.(t)}function qd(t){return t&&(t.nextProducerIndex=0),Gt(t)}function Kd(t,n){if(Gt(n),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Fc(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Xd(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Yd(t){qa(t);for(let n=0;n<t.producerNode.length;n++){let e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(Lb(e),i!==e.version))return!0}return!1}function Sm(t){if(qa(t),Fc(t))for(let n=0;n<t.producerNode.length;n++)Xd(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Hb(t,n,e){if(zb(t),qa(t),t.liveConsumerNode.length===0)for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=Hb(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function Xd(t,n){if(zb(t),qa(t),t.liveConsumerNode.length===1)for(let i=0;i<t.producerNode.length;i++)Xd(t.producerNode[i],t.producerIndexOfThis[i]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];qa(r),r.producerIndexOfThis[i]=n}}function Fc(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function qa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function zb(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function jb(t){let n=Object.create(O3);n.computation=t;let e=()=>{if(Lb(n),Gd(n),n.value===$d)throw n.error;return n.value};return e[Pr]=n,e}var bm=Symbol("UNSET"),wm=Symbol("COMPUTING"),$d=Symbol("ERRORED"),O3=ft(xe({},Pc),{value:bm,dirty:!0,error:null,equal:Rb,producerMustRecompute(t){return t.value===bm||t.value===wm},producerRecomputeValue(t){if(t.value===wm)throw new Error("Detected cycle in computations.");let n=t.value;t.value=wm;let e=qd(t),i;try{i=t.computation()}catch(r){i=$d,t.error=r}finally{Kd(t,e)}if(n!==bm&&n!==$d&&i!==$d&&t.equal(n,i)){t.value=n;return}t.value=i,t.version++}});function R3(){throw new Error}var Ub=R3;function Wb(){Ub()}function $b(t){Ub=t}var L3=null;function Gb(t){let n=Object.create(Em);n.value=t;let e=()=>(Gd(n),n.value);return e[Pr]=n,e}function Zd(t,n){Vb()||Wb(),t.equal(t.value,n)||(t.value=n,N3(t))}function qb(t,n){Vb()||Wb(),Zd(t,n(t.value))}var Em=ft(xe({},Pc),{equal:Rb,value:void 0});function N3(t){t.version++,P3(),Nb(t),L3?.()}function Kb(t,n,e){let i=Object.create(V3);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;let r=l=>{i.cleanupFn=l};function s(l){return l.fn===null&&l.schedule===null}function o(l){s(l)||(Sm(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Cm)}let a=()=>{if(i.fn===null)return;if(F3())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!Yd(i))return;i.hasRun=!0;let l=qd(i);try{i.cleanupFn(),i.cleanupFn=Cm,i.fn(r)}finally{Kd(i,l)}};return i.ref={notify:()=>Bb(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>o(i),[Pr]:i},i.ref}var Cm=()=>{},V3=ft(xe({},Pc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Cm});function mt(t){return typeof t=="function"}function Ka(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Qd=Ka(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Oc(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var Gn=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let s of e)s.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(mt(i))try{i()}catch(s){n=s instanceof Qd?s.errors:[s]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let s of r)try{Yb(s)}catch(o){n=n??[],o instanceof Qd?n=[...n,...o.errors]:n.push(o)}}if(n)throw new Qd(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Yb(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Oc(e,n)}remove(n){let{_finalizers:e}=this;e&&Oc(e,n),n instanceof t&&n._removeParent(this)}};Gn.EMPTY=(()=>{let t=new Gn;return t.closed=!0,t})();var Tm=Gn.EMPTY;function Jd(t){return t instanceof Gn||t&&"closed"in t&&mt(t.remove)&&mt(t.add)&&mt(t.unsubscribe)}function Yb(t){mt(t)?t():t.unsubscribe()}var Or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ya={setTimeout(t,n,...e){let{delegate:i}=Ya;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Ya;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ef(t){Ya.setTimeout(()=>{let{onUnhandledError:n}=Or;if(n)n(t);else throw t})}function Rc(){}var Xb=Im("C",void 0,void 0);function Zb(t){return Im("E",void 0,t)}function Qb(t){return Im("N",t,void 0)}function Im(t,n,e){return{kind:t,value:n,error:e}}var Ko=null;function Xa(t){if(Or.useDeprecatedSynchronousErrorHandling){let n=!Ko;if(n&&(Ko={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Ko;if(Ko=null,e)throw i}}else t()}function Jb(t){Or.useDeprecatedSynchronousErrorHandling&&Ko&&(Ko.errorThrown=!0,Ko.error=t)}var Yo=class extends Gn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Jd(n)&&n.add(this)):this.destination=z3}static create(n,e,i){return new Ss(n,e,i)}next(n){this.isStopped?km(Qb(n),this):this._next(n)}error(n){this.isStopped?km(Zb(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?km(Xb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},B3=Function.prototype.bind;function Dm(t,n){return B3.call(t,n)}var Mm=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){tf(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){tf(i)}else tf(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){tf(e)}}},Ss=class extends Yo{constructor(n,e,i){super();let r;if(mt(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let s;this&&Or.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Dm(n.next,s),error:n.error&&Dm(n.error,s),complete:n.complete&&Dm(n.complete,s)}):r=n}this.destination=new Mm(r)}};function tf(t){Or.useDeprecatedSynchronousErrorHandling?Jb(t):ef(t)}function H3(t){throw t}function km(t,n){let{onStoppedNotification:e}=Or;e&&Ya.setTimeout(()=>e(t,n))}var z3={closed:!0,next:Rc,error:H3,complete:Rc};var Za=typeof Symbol=="function"&&Symbol.observable||"@@observable";function nr(t){return t}function Am(...t){return Fm(t)}function Fm(t){return t.length===0?nr:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Pt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let s=U3(e)?e:new Ss(e,i,r);return Xa(()=>{let{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=ew(i),new i((r,s)=>{let o=new Ss({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Za](){return this}pipe(...e){return Fm(e)(this)}toPromise(e){return e=ew(e),new e((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=n=>new t(n),t})();function ew(t){var n;return(n=t??Or.Promise)!==null&&n!==void 0?n:Promise}function j3(t){return t&&mt(t.next)&&mt(t.error)&&mt(t.complete)}function U3(t){return t&&t instanceof Yo||j3(t)&&Jd(t)}function Pm(t){return mt(t?.lift)}function Ot(t){return n=>{if(Pm(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Rt(t,n,e,i,r){return new Om(t,n,e,i,r)}var Om=class extends Yo{constructor(n,e,i,r,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Qa(){return Ot((t,n)=>{let e=null;t._refCount++;let i=Rt(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Ja=class extends Pt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Pm(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Gn;let e=this.getSubject();n.add(this.source.subscribe(Rt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Gn.EMPTY)}return n}refCount(){return Qa()(this)}};var tw=Ka(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ht=(()=>{class t extends Pt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new nf(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new tw}next(e){Xa(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Xa(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Xa(()=>{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:i,isStopped:r,observers:s}=this;return i||r?Tm:(this.currentObservers=null,s.push(e),new Gn(()=>{this.currentObservers=null,Oc(s,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){let e=new Pt;return e.source=this,e}}return t.create=(n,e)=>new nf(n,e),t})(),nf=class extends Ht{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Tm}};var qn=class extends Ht{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Rm={now(){return(Rm.delegate||Date).now()},delegate:void 0};var Lc=class extends Ht{constructor(n=1/0,e=1/0,i=Rm){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;e||(i.push(n),!r&&i.push(s.now()+o)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,s=r.slice();for(let o=0;o<s.length&&!n.closed;o+=i?1:2)n.next(s[o]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,s=(r?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!r){let o=e.now(),a=0;for(let l=1;l<i.length&&i[l]<=o;l+=2)a=l;a&&i.splice(0,a+1)}}};var ir=new Pt(t=>t.complete());function nw(t){return t&&mt(t.schedule)}function iw(t){return t[t.length-1]}function rf(t){return mt(iw(t))?t.pop():void 0}function so(t){return nw(iw(t))?t.pop():void 0}function sw(t,n,e,i){function r(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function rw(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xo(t){return this instanceof Xo?(this.v=t,this):new Xo(t)}function ow(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(h){return function(m){return Promise.resolve(m).then(h,d)}}function a(h,m){i[h]&&(r[h]=function(p){return new Promise(function(g,v){s.push([h,p,g,v])>1||l(h,p)})},m&&(r[h]=m(r[h])))}function l(h,m){try{c(i[h](m))}catch(p){f(s[0][3],p)}}function c(h){h.value instanceof Xo?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,m){h(m),s.shift(),s.length&&l(s[0][0],s[0][1])}}function aw(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof rw=="function"?rw(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}var sf=t=>t&&typeof t.length=="number"&&typeof t!="function";function of(t){return mt(t?.then)}function af(t){return mt(t[Za])}function lf(t){return Symbol.asyncIterator&&mt(t?.[Symbol.asyncIterator])}function cf(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 W3(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var uf=W3();function df(t){return mt(t?.[uf])}function ff(t){return ow(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield Xo(e.read());if(r)return yield Xo(void 0);yield yield Xo(i)}}finally{e.releaseLock()}})}function hf(t){return mt(t?.getReader)}function Cn(t){if(t instanceof Pt)return t;if(t!=null){if(af(t))return $3(t);if(sf(t))return G3(t);if(of(t))return q3(t);if(lf(t))return lw(t);if(df(t))return K3(t);if(hf(t))return Y3(t)}throw cf(t)}function $3(t){return new Pt(n=>{let e=t[Za]();if(mt(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function G3(t){return new Pt(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function q3(t){return new Pt(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ef)})}function K3(t){return new Pt(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function lw(t){return new Pt(n=>{X3(t,n).catch(e=>n.error(e))})}function Y3(t){return lw(ff(t))}function X3(t,n){var e,i,r,s;return sw(this,void 0,void 0,function*(){try{for(e=aw(t);i=yield e.next(),!i.done;){let o=i.value;if(n.next(o),n.closed)return}}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}n.complete()})}function Bi(t,n,e,i=0,r=!1){let s=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!r)return s}function pf(t,n=0){return Ot((e,i)=>{e.subscribe(Rt(i,r=>Bi(i,t,()=>i.next(r),n),()=>Bi(i,t,()=>i.complete(),n),r=>Bi(i,t,()=>i.error(r),n)))})}function mf(t,n=0){return Ot((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function cw(t,n){return Cn(t).pipe(mf(n),pf(n))}function uw(t,n){return Cn(t).pipe(mf(n),pf(n))}function dw(t,n){return new Pt(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function fw(t,n){return new Pt(e=>{let i;return Bi(e,n,()=>{i=t[uf](),Bi(e,n,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){e.error(o);return}s?e.complete():e.next(r)},0,!0)}),()=>mt(i?.return)&&i.return()})}function gf(t,n){if(!t)throw new Error("Iterable cannot be null");return new Pt(e=>{Bi(e,n,()=>{let i=t[Symbol.asyncIterator]();Bi(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function hw(t,n){return gf(ff(t),n)}function pw(t,n){if(t!=null){if(af(t))return cw(t,n);if(sf(t))return dw(t,n);if(of(t))return uw(t,n);if(lf(t))return gf(t,n);if(df(t))return fw(t,n);if(hf(t))return hw(t,n)}throw cf(t)}function pn(t,n){return n?pw(t,n):Cn(t)}function at(...t){let n=so(t);return pn(t,n)}function el(t,n){let e=mt(t)?t:()=>t,i=r=>r.error(e());return new Pt(n?r=>n.schedule(i,0,r):i)}function Lm(t){return!!t&&(t instanceof Pt||mt(t.lift)&&mt(t.subscribe))}var Es=Ka(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function wt(t,n){return Ot((e,i)=>{let r=0;e.subscribe(Rt(i,s=>{i.next(t.call(n,s,r++))}))})}var{isArray:Z3}=Array;function Q3(t,n){return Z3(n)?t(...n):t(n)}function vf(t){return wt(n=>Q3(t,n))}var{isArray:J3}=Array,{getPrototypeOf:e4,prototype:t4,keys:n4}=Object;function _f(t){if(t.length===1){let n=t[0];if(J3(n))return{args:n,keys:null};if(i4(n)){let e=n4(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function i4(t){return t&&typeof t=="object"&&e4(t)===t4}function yf(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Nc(...t){let n=so(t),e=rf(t),{args:i,keys:r}=_f(t);if(i.length===0)return pn([],n);let s=new Pt(r4(i,n,r?o=>yf(r,o):nr));return e?s.pipe(vf(e)):s}function r4(t,n,e=nr){return i=>{mw(n,()=>{let{length:r}=t,s=new Array(r),o=r,a=r;for(let l=0;l<r;l++)mw(n,()=>{let c=pn(t[l],n),u=!1;c.subscribe(Rt(i,d=>{s[l]=d,u||(u=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}function mw(t,n,e){t?Bi(e,t,n):n()}function gw(t,n,e,i,r,s,o,a){let l=[],c=0,u=0,d=!1,f=()=>{d&&!l.length&&!c&&n.complete()},h=p=>c<i?m(p):l.push(p),m=p=>{s&&n.next(p),c++;let g=!1;Cn(e(p,u++)).subscribe(Rt(n,v=>{r?.(v),s?h(v):n.next(v)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&c<i;){let v=l.shift();o?Bi(n,o,()=>m(v)):m(v)}f()}catch(v){n.error(v)}}))};return t.subscribe(Rt(n,h,()=>{d=!0,f()})),()=>{a?.()}}function Tn(t,n,e=1/0){return mt(n)?Tn((i,r)=>wt((s,o)=>n(i,s,r,o))(Cn(t(i,r))),e):(typeof n=="number"&&(e=n),Ot((i,r)=>gw(i,r,t,e)))}function tl(t=1/0){return Tn(nr,t)}function vw(){return tl(1)}function nl(...t){return vw()(pn(t,so(t)))}function il(t){return new Pt(n=>{Cn(t()).subscribe(n)})}function Nm(...t){let n=rf(t),{args:e,keys:i}=_f(t),r=new Pt(s=>{let{length:o}=e;if(!o){s.complete();return}let a=new Array(o),l=o,c=o;for(let u=0;u<o;u++){let d=!1;Cn(e[u]).subscribe(Rt(s,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(i?yf(i,a):a),s.complete())}))}});return n?r.pipe(vf(n)):r}function Ii(t,n){return Ot((e,i)=>{let r=0;e.subscribe(Rt(i,s=>t.call(n,s,r++)&&i.next(s)))})}function oo(t){return Ot((n,e)=>{let i=null,r=!1,s;i=n.subscribe(Rt(e,void 0,void 0,o=>{s=Cn(t(o,oo(t)(n))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function _w(t,n,e,i,r){return(s,o)=>{let a=e,l=n,c=0;s.subscribe(Rt(o,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),i&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function Zo(t,n){return mt(n)?Tn(t,n,1):Tn(t,1)}function ao(t){return Ot((n,e)=>{let i=!1;n.subscribe(Rt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function Ts(t){return t<=0?()=>ir:Ot((n,e)=>{let i=0;n.subscribe(Rt(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Vm(t){return wt(()=>t)}function xf(t=s4){return Ot((n,e)=>{let i=!1;n.subscribe(Rt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function s4(){return new Es}function Vc(t){return Ot((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Jr(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ii((r,s)=>t(r,s,i)):nr,Ts(1),e?ao(n):xf(()=>new Es))}function rl(t){return t<=0?()=>ir:Ot((n,e)=>{let i=[];n.subscribe(Rt(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Bm(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ii((r,s)=>t(r,s,i)):nr,rl(1),e?ao(n):xf(()=>new Es))}function Hm(t,n){return Ot(_w(t,n,arguments.length>=2,!0))}function yw(t={}){let{connector:n=()=>new Ht,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return s=>{let o,a,l,c=0,u=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),o=l=void 0,u=d=!1},m=()=>{let p=o;h(),p?.unsubscribe()};return Ot((p,g)=>{c++,!d&&!u&&f();let v=l=l??n();g.add(()=>{c--,c===0&&!d&&!u&&(a=zm(m,r))}),v.subscribe(g),!o&&c>0&&(o=new Ss({next:_=>v.next(_),error:_=>{d=!0,f(),a=zm(h,e,_),v.error(_)},complete:()=>{u=!0,f(),a=zm(h,i),v.complete()}}),Cn(p).subscribe(o))})(s)}}function zm(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Ss({next:()=>{i.unsubscribe(),t()}});return Cn(n(...e)).subscribe(i)}function jm(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,yw({connector:()=>new Lc(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Um(...t){let n=so(t);return Ot((e,i)=>{(n?nl(t,e,n):nl(t,e)).subscribe(i)})}function Di(t,n){return Ot((e,i)=>{let r=null,s=0,o=!1,a=()=>o&&!r&&i.complete();e.subscribe(Rt(i,l=>{r?.unsubscribe();let c=0,u=s++;Cn(t(l,u)).subscribe(r=Rt(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function Bc(t){return Ot((n,e)=>{Cn(t).subscribe(Rt(e,()=>e.complete(),Rc)),!e.closed&&n.subscribe(e)})}function Kn(t,n,e){let i=mt(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ot((r,s)=>{var o;(o=i.subscribe)===null||o===void 0||o.call(i);let a=!0;r.subscribe(Rt(s,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),s.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),s.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),s.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):nr}var cC="https://g.co/ng/security#xss",De=class extends Error{constructor(n,e){super(f1(n,e)),this.code=n}};function f1(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}var uC=Symbol("InputSignalNode#UNSET"),o4=ft(xe({},Em),{transformFn:void 0,applyValueToInputSignal(t,n){Zd(t,n)}});function dC(t,n){let e=Object.create(o4);e.value=t,e.transformFn=n?.transform;function i(){if(Gd(e),e.value===uC)throw new De(-950,!1);return e.value}return i[Pr]=e,i}function Qc(t){return{toString:t}.toString()}var bf="__parameters__";function a4(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function fC(t,n,e){return Qc(()=>{let i=a4(n);function r(...s){if(this instanceof r)return i.apply(this,s),this;let o=new r(...s);return a.annotation=o,a;function a(l,c,u){let d=l.hasOwnProperty(bf)?l[bf]:Object.defineProperty(l,bf,{value:[]})[bf];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var Lr=globalThis;function sn(t){for(let n in t)if(t[n]===sn)return n;throw Error("Could not find renamed property on target object.")}function l4(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Mi(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Mi).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(`
`);return e===-1?n:n.substring(0,e)}function sg(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}var c4=sn({__forward_ref__:sn});function Dn(t){return t.__forward_ref__=Dn,t.toString=function(){return Mi(this())},t}function ki(t){return hC(t)?t():t}function hC(t){return typeof t=="function"&&t.hasOwnProperty(c4)&&t.__forward_ref__===Dn}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function et(t){return{providers:t.providers||[],imports:t.imports||[]}}function Qf(t){return xw(t,mC)||xw(t,gC)}function pC(t){return Qf(t)!==null}function xw(t,n){return t.hasOwnProperty(n)?t[n]:null}function u4(t){let n=t&&(t[mC]||t[gC]);return n||null}function bw(t){return t&&(t.hasOwnProperty(ww)||t.hasOwnProperty(d4))?t[ww]:null}var mC=sn({\u0275prov:sn}),ww=sn({\u0275inj:sn}),gC=sn({ngInjectableDef:sn}),d4=sn({ngInjectorDef:sn}),it=class{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function vC(t){return t&&!!t.\u0275providers}var f4=sn({\u0275cmp:sn}),h4=sn({\u0275dir:sn}),p4=sn({\u0275pipe:sn}),m4=sn({\u0275mod:sn}),Pf=sn({\u0275fac:sn}),Hc=sn({__NG_ELEMENT_ID__:sn}),Cw=sn({__NG_ENV_ID__:sn});function zc(t){return typeof t=="string"?t:t==null?"":String(t)}function g4(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():zc(t)}function v4(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new De(-200,t)}function h1(t,n){throw new De(-201,!1)}var Dt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Dt||{}),og;function _C(){return og}function Hi(t){let n=og;return og=t,n}function yC(t,n,e){let i=Qf(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&Dt.Optional)return null;if(n!==void 0)return n;h1(t,"Injector")}var _4={},jc=_4,ag="__NG_DI_FLAG__",Of="ngTempTokenPath",y4="ngTokenPath",x4=/\n/gm,b4="\u0275",Sw="__source",cl;function w4(){return cl}function lo(t){let n=cl;return cl=t,n}function C4(t,n=Dt.Default){if(cl===void 0)throw new De(-203,!1);return cl===null?yC(t,void 0,n):cl.get(t,n&Dt.Optional?null:void 0,n)}function st(t,n=Dt.Default){return(_C()||C4)(ki(t),n)}function _e(t,n=Dt.Default){return st(t,Jf(n))}function Jf(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function lg(t){let n=[];for(let e=0;e<t.length;e++){let i=ki(t[e]);if(Array.isArray(i)){if(i.length===0)throw new De(900,!1);let r,s=Dt.Default;for(let o=0;o<i.length;o++){let a=i[o],l=S4(a);typeof l=="number"?l===-1?r=a.token:s|=l:r=a}n.push(st(r,s))}else n.push(st(i))}return n}function xC(t,n){return t[ag]=n,t.prototype[ag]=n,t}function S4(t){return t[ag]}function E4(t,n,e,i){let r=t[Of];throw n[Sw]&&r.unshift(n[Sw]),t.message=T4(`
`+t.message,r,e,i),t[y4]=r,t[Of]=null,t}function T4(t,n,e,i=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==b4?t.slice(2):t;let r=Mi(n);if(Array.isArray(n))r=n.map(Mi).join(" -> ");else if(typeof n=="object"){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+(typeof a=="string"?JSON.stringify(a):Mi(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(x4,`
  `)}`}var Jc=xC(fC("Optional"),8);var eh=xC(fC("SkipSelf"),4);function ta(t,n){let e=t.hasOwnProperty(Pf);return e?t[Pf]:null}function I4(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=n[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}function D4(t){return t.flat(Number.POSITIVE_INFINITY)}function p1(t,n){t.forEach(e=>Array.isArray(e)?p1(e,n):n(e))}function bC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Rf(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function k4(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function M4(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let s=r-2;t[r]=t[s],r--}t[n]=e,t[n+1]=i}}function eu(t,n,e){let i=tu(t,n);return i>=0?t[i|1]=e:(i=~i,M4(t,i,n,e)),i}function Wm(t,n){let e=tu(t,n);if(e>=0)return t[e|1]}function tu(t,n){return A4(t,n,1)}function A4(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let s=i+(r-i>>1),o=t[s<<e];if(n===o)return s<<e;o>n?r=s:i=s+1}return~(r<<e)}var dl={},zi=[],fl=new it(""),wC=new it("",-1),CC=new it(""),Lf=class{get(n,e=jc){if(e===jc){let i=new Error(`NullInjectorError: No provider for ${Mi(n)}!`);throw i.name="NullInjectorError",i}return e}},SC=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(SC||{}),ns=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ns||{}),Z=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Z||{});function F4(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let s=n.length;if(r+s===i||t.charCodeAt(r+s)<=32)return r}e=r+1}}function cg(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let s=e[i++],o=e[i++],a=e[i++];t.setAttribute(n,o,a,s)}else{let s=r,o=e[++i];O4(s)?t.setProperty(n,s,o):t.setAttribute(n,s,o),i++}}return i}function P4(t){return t===3||t===4||t===6}function O4(t){return t.charCodeAt(0)===64}function Uc(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?Ew(t,e,r,null,n[++i]):Ew(t,e,r,null,null))}}return t}function Ew(t,n,e,i,r){let s=0,o=t.length;if(n===-1)o=-1;else for(;s<t.length;){let a=t[s++];if(typeof a=="number"){if(a===n){o=-1;break}else if(a>n){o=s-1;break}}}for(;s<t.length;){let a=t[s];if(typeof a=="number")break;if(a===e){if(i===null){r!==null&&(t[s+1]=r);return}else if(i===t[s+1]){t[s+2]=r;return}}s++,i!==null&&s++,r!==null&&s++}o!==-1&&(t.splice(o,0,n),s=o+1),t.splice(s++,0,e),i!==null&&t.splice(s++,0,i),r!==null&&t.splice(s++,0,r)}var EC="ng-template";function R4(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&F4(n[r+1].toLowerCase(),e,0)!==-1)return!0}else if(m1(t))return!1;if(r=n.indexOf(1,r),r>-1){let s;for(;++r<n.length&&typeof(s=n[r])=="string";)if(s.toLowerCase()===e)return!0}return!1}function m1(t){return t.type===4&&t.value!==EC}function L4(t,n,e){let i=t.type===4&&!e?EC:t.value;return n===i}function N4(t,n,e){let i=4,r=t.attrs,s=r!==null?H4(r):0,o=!1;for(let a=0;a<n.length;a++){let l=n[a];if(typeof l=="number"){if(!o&&!Rr(i)&&!Rr(l))return!1;if(o&&Rr(l))continue;o=!1,i=l|i&1;continue}if(!o)if(i&4){if(i=2|i&1,l!==""&&!L4(t,l,e)||l===""&&n.length===1){if(Rr(i))return!1;o=!0}}else if(i&8){if(r===null||!R4(t,r,l,e)){if(Rr(i))return!1;o=!0}}else{let c=n[++a],u=V4(l,r,m1(t),e);if(u===-1){if(Rr(i))return!1;o=!0;continue}if(c!==""){let d;if(u>s?d="":d=r[u+1].toLowerCase(),i&2&&c!==d){if(Rr(i))return!1;o=!0}}}}return Rr(i)||o}function Rr(t){return(t&1)===0}function V4(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let s=!1;for(;r<n.length;){let o=n[r];if(o===t)return r;if(o===3||o===6)s=!0;else if(o===1||o===2){let a=n[++r];for(;typeof a=="string";)a=n[++r];continue}else{if(o===4)break;if(o===0){r+=4;continue}}r+=s?1:2}return-1}else return z4(n,t)}function TC(t,n,e=!1){for(let i=0;i<n.length;i++)if(N4(t,n[i],e))return!0;return!1}function B4(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if(!(e&1))return n[e+1]}return null}function H4(t){for(let n=0;n<t.length;n++){let e=t[n];if(P4(e))return n}return t.length}function z4(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++}return-1}function j4(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function Tw(t,n){return t?":not("+n.trim()+")":n}function U4(t){let n=t[0],e=1,i=2,r="",s=!1;for(;e<t.length;){let o=t[e];if(typeof o=="string")if(i&2){let a=t[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else i&8?r+="."+o:i&4&&(r+=" "+o);else r!==""&&!Rr(o)&&(n+=Tw(s,r),r=""),i=o,s=s||!Rr(i);e++}return r!==""&&(n+=Tw(s,r)),n}function W4(t){return t.map(U4).join(",")}function $4(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let s=t[i];if(typeof s=="string")r===2?s!==""&&n.push(s,t[++i]):r===8&&e.push(s);else{if(!Rr(r))break;r=s}i++}return{attrs:n,classes:e}}function me(t){return Qc(()=>{let n=AC(t),e=ft(xe({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===SC.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ns.Emulated,styles:t.styles||zi,_:null,schemas:t.schemas||null,tView:null,id:""});FC(e);let i=t.dependencies;return e.directiveDefs=Dw(i,!1),e.pipeDefs=Dw(i,!0),e.id=K4(e),e})}function G4(t){return uo(t)||IC(t)}function q4(t){return t!==null}function tt(t){return Qc(()=>({type:t.type,bootstrap:t.bootstrap||zi,declarations:t.declarations||zi,imports:t.imports||zi,exports:t.exports||zi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Iw(t,n){if(t==null)return dl;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],s,o,a=Z.None;Array.isArray(r)?(a=r[0],s=r[1],o=r[2]??s):(s=r,o=r),n?(e[s]=a!==Z.None?[i,a]:i,n[s]=o):e[s]=i}return e}function kt(t){return Qc(()=>{let n=AC(t);return FC(n),n})}function th(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 uo(t){return t[f4]||null}function IC(t){return t[h4]||null}function DC(t){return t[p4]||null}function kC(t){let n=uo(t)||IC(t)||DC(t);return n!==null?n.standalone:!1}function MC(t,n){let e=t[m4]||null;if(!e&&n===!0)throw new Error(`Type ${Mi(t)} does not have '\u0275mod' property.`);return e}function AC(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||dl,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||zi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Iw(t.inputs,n),outputs:Iw(t.outputs),debugInfo:null}}function FC(t){t.features?.forEach(n=>n(t))}function Dw(t,n){if(!t)return null;let e=n?DC:G4;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(q4)}function K4(t){let n=0,e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,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].join("|");for(let r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function nh(t){return{\u0275providers:t}}function Y4(...t){return{\u0275providers:PC(!0,t),\u0275fromNgModule:!0}}function PC(t,...n){let e=[],i=new Set,r,s=o=>{e.push(o)};return p1(n,o=>{let a=o;ug(a,s,[],i)&&(r||=[],r.push(a))}),r!==void 0&&OC(r,s),e}function OC(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];g1(r,s=>{n(s,i)})}}function ug(t,n,e,i){if(t=ki(t),!t)return!1;let r=null,s=bw(t),o=!s&&uo(t);if(!s&&!o){let l=t.ngModule;if(s=bw(l),s)r=l;else return!1}else{if(o&&!o.standalone)return!1;r=t}let a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let c of l)ug(c,n,e,i)}}else if(s){if(s.imports!=null&&!a){i.add(r);let c;try{p1(s.imports,u=>{ug(u,n,e,i)&&(c||=[],c.push(u))})}finally{}c!==void 0&&OC(c,n)}if(!a){let c=ta(r)||(()=>new r);n({provide:r,useFactory:c,deps:zi},r),n({provide:CC,useValue:r,multi:!0},r),n({provide:fl,useValue:()=>st(r),multi:!0},r)}let l=s.providers;if(l!=null&&!a){let c=t;g1(l,u=>{n(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function g1(t,n){for(let e of t)vC(e)&&(e=e.\u0275providers),Array.isArray(e)?g1(e,n):n(e)}var X4=sn({provide:String,useValue:sn});function RC(t){return t!==null&&typeof t=="object"&&X4 in t}function Z4(t){return!!(t&&t.useExisting)}function Q4(t){return!!(t&&t.useFactory)}function hl(t){return typeof t=="function"}function J4(t){return!!t.useClass}var ih=new it(""),Tf={},eP={},$m;function v1(){return $m===void 0&&($m=new Lf),$m}var ji=class{},Wc=class extends ji{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,fg(n,o=>this.processProvider(o)),this.records.set(wC,sl(void 0,this)),r.has("environment")&&this.records.set(ji,sl(void 0,this));let s=this.records.get(ih);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(CC,zi,Dt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let n=Gt(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Gt(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();let e=lo(this),i=Hi(void 0),r;try{return n()}finally{lo(e),Hi(i)}}get(n,e=jc,i=Dt.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Cw))return n[Cw](this);i=Jf(i);let r,s=lo(this),o=Hi(void 0);try{if(!(i&Dt.SkipSelf)){let l=this.records.get(n);if(l===void 0){let c=sP(n)&&Qf(n);c&&this.injectableDefInScope(c)?l=sl(dg(n),Tf):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l)}let a=i&Dt.Self?v1():this.parent;return e=i&Dt.Optional&&e===jc?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[Of]=a[Of]||[]).unshift(Mi(n)),s)throw a;return E4(a,n,"R3InjectorError",this.source)}else throw a}finally{Hi(o),lo(s)}}resolveInjectorInitializers(){let n=Gt(null),e=lo(this),i=Hi(void 0),r;try{let s=this.get(fl,zi,Dt.Self);for(let o of s)o()}finally{lo(e),Hi(i),Gt(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(Mi(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new De(205,!1)}processProvider(n){n=ki(n);let e=hl(n)?n:ki(n&&n.provide),i=nP(n);if(!hl(n)&&n.multi===!0){let r=this.records.get(e);r||(r=sl(void 0,Tf,!0),r.factory=()=>lg(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){let i=Gt(null);try{return e.value===Tf&&(e.value=eP,e.value=e.factory()),typeof e.value=="object"&&e.value&&rP(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Gt(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=ki(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function dg(t){let n=Qf(t),e=n!==null?n.factory:ta(t);if(e!==null)return e;if(t instanceof it)throw new De(204,!1);if(t instanceof Function)return tP(t);throw new De(204,!1)}function tP(t){if(t.length>0)throw new De(204,!1);let e=u4(t);return e!==null?()=>e.factory(t):()=>new t}function nP(t){if(RC(t))return sl(void 0,t.useValue);{let n=LC(t);return sl(n,Tf)}}function LC(t,n,e){let i;if(hl(t)){let r=ki(t);return ta(r)||dg(r)}else if(RC(t))i=()=>ki(t.useValue);else if(Q4(t))i=()=>t.useFactory(...lg(t.deps||[]));else if(Z4(t))i=()=>st(ki(t.useExisting));else{let r=ki(t&&(t.useClass||t.provide));if(iP(t))i=()=>new r(...lg(t.deps));else return ta(r)||dg(r)}return i}function sl(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function iP(t){return!!t.deps}function rP(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function sP(t){return typeof t=="function"||typeof t=="object"&&t instanceof it}function fg(t,n){for(let e of t)Array.isArray(e)?fg(e,n):e&&vC(e)?fg(e.\u0275providers,n):n(e)}function ks(t,n){t instanceof Wc&&t.assertNotDestroyed();let e,i=lo(t),r=Hi(void 0);try{return n()}finally{lo(i),Hi(r)}}function NC(){return _C()!==void 0||w4()!=null}function rh(t){if(!NC())throw new De(-203,!1)}function oP(t){return typeof t=="function"}var Ms=0,Ct=1,lt=2,di=3,Nr=4,sr=5,$c=6,Gc=7,Vr=8,pl=9,is=10,In=11,qc=12,kw=13,wl=14,Br=15,nu=16,ol=17,Is=18,sh=19,VC=20,co=21,If=22,na=23,Ui=25,BC=1;var ia=7,Nf=8,ml=9,rr=10,_1=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(_1||{});function Jo(t){return Array.isArray(t)&&typeof t[BC]=="object"}function As(t){return Array.isArray(t)&&t[BC]===!0}function y1(t){return(t.flags&4)!==0}function oh(t){return t.componentOffset>-1}function ah(t){return(t.flags&1)===1}function fo(t){return!!t.template}function aP(t){return(t[lt]&512)!==0}var hg=class{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function HC(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}function xn(){return zC}function zC(t){return t.type.prototype.ngOnChanges&&(t.setInput=cP),lP}xn.ngInherit=!0;function lP(){let t=UC(this),n=t?.current;if(n){let e=t.previous;if(e===dl)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function cP(t,n,e,i,r){let s=this.declaredInputs[i],o=UC(t)||uP(t,{previous:dl,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new hg(c&&c.currentValue,e,l===dl),HC(t,n,r,e)}var jC="__ngSimpleChanges__";function UC(t){return t[jC]||null}function uP(t,n){return t[jC]=n}var Mw=null;var es=function(t,n,e){Mw?.(t,n,e)},WC="svg",dP="math",fP=!1;function hP(){return fP}function rs(t){for(;Array.isArray(t);)t=t[Ms];return t}function $C(t,n){return rs(n[t])}function xr(t,n){return rs(n[t.index])}function GC(t,n){return t.data[n]}function x1(t,n){return t[n]}function mo(t,n){let e=n[t];return Jo(e)?e:e[Ms]}function pP(t){return(t[lt]&4)===4}function b1(t){return(t[lt]&128)===128}function mP(t){return As(t[di])}function gl(t,n){return n==null?null:t[n]}function qC(t){t[ol]=0}function gP(t){t[lt]&1024||(t[lt]|=1024,b1(t)&&Kc(t))}function vP(t,n){for(;t>0;)n=n[wl],t--;return n}function w1(t){return!!(t[lt]&9216||t[na]?.dirty)}function pg(t){t[is].changeDetectionScheduler?.notify(1),w1(t)?Kc(t):t[lt]&64&&(hP()?(t[lt]|=1024,Kc(t)):t[is].changeDetectionScheduler?.notify())}function Kc(t){t[is].changeDetectionScheduler?.notify();let n=Yc(t);for(;n!==null&&!(n[lt]&8192||(n[lt]|=8192,!b1(n)));)n=Yc(n)}function KC(t,n){if((t[lt]&256)===256)throw new De(911,!1);t[co]===null&&(t[co]=[]),t[co].push(n)}function _P(t,n){if(t[co]===null)return;let e=t[co].indexOf(n);e!==-1&&t[co].splice(e,1)}function Yc(t){let n=t[di];return As(n)?n[di]:n}var xt={lFrame:t2(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function yP(){return xt.lFrame.elementDepthCount}function xP(){xt.lFrame.elementDepthCount++}function bP(){xt.lFrame.elementDepthCount--}function YC(){return xt.bindingsEnabled}function XC(){return xt.skipHydrationRootTNode!==null}function wP(t){return xt.skipHydrationRootTNode===t}function CP(){xt.skipHydrationRootTNode=null}function ut(){return xt.lFrame.lView}function Rn(){return xt.lFrame.tView}function J(t){return xt.lFrame.contextLView=t,t[Vr]}function ee(t){return xt.lFrame.contextLView=null,t}function Ai(){let t=ZC();for(;t!==null&&t.type===64;)t=t.parent;return t}function ZC(){return xt.lFrame.currentTNode}function SP(){let t=xt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function ua(t,n){let e=xt.lFrame;e.currentTNode=t,e.isParent=n}function C1(){return xt.lFrame.isParent}function S1(){xt.lFrame.isParent=!1}function EP(){return xt.lFrame.contextLView}function jr(){let t=xt.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function TP(){return xt.lFrame.bindingIndex}function IP(t){return xt.lFrame.bindingIndex=t}function lh(){return xt.lFrame.bindingIndex++}function E1(t){let n=xt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function DP(){return xt.lFrame.inI18n}function kP(t,n){let e=xt.lFrame;e.bindingIndex=e.bindingRootIndex=t,mg(n)}function MP(){return xt.lFrame.currentDirectiveIndex}function mg(t){xt.lFrame.currentDirectiveIndex=t}function AP(t){let n=xt.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function QC(){return xt.lFrame.currentQueryIndex}function T1(t){xt.lFrame.currentQueryIndex=t}function FP(t){let n=t[Ct];return n.type===2?n.declTNode:n.type===1?t[sr]:null}function JC(t,n,e){if(e&Dt.SkipSelf){let r=n,s=t;for(;r=r.parent,r===null&&!(e&Dt.Host);)if(r=FP(s),r===null||(s=s[wl],r.type&10))break;if(r===null)return!1;n=r,t=s}let i=xt.lFrame=e2();return i.currentTNode=n,i.lView=t,!0}function I1(t){let n=e2(),e=t[Ct];xt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function e2(){let t=xt.lFrame,n=t===null?null:t.child;return n===null?t2(t):n}function t2(t){let n={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=n),n}function n2(){let t=xt.lFrame;return xt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var i2=n2;function D1(){let t=n2();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 PP(t){return(xt.lFrame.contextLView=vP(t,xt.lFrame.contextLView))[Vr]}function go(){return xt.lFrame.selectedIndex}function ra(t){xt.lFrame.selectedIndex=t}function k1(){let t=xt.lFrame;return GC(t.tView,t.selectedIndex)}function Ze(){xt.lFrame.currentNamespace=WC}function OP(){return xt.lFrame.currentNamespace}var r2=!0;function ch(){return r2}function uh(t){r2=t}function RP(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=n.type.prototype;if(i){let o=zC(n);(e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o)}r&&(e.preOrderHooks??=[]).push(0-t,r),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}function dh(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let s=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(t.contentHooks??=[]).push(-e,o),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),u!=null&&(t.destroyHooks??=[]).push(e,u)}}function Df(t,n,e){s2(t,n,3,e)}function kf(t,n,e,i){(t[lt]&3)===e&&s2(t,n,e,i)}function Gm(t,n){let e=t[lt];(e&3)===n&&(e&=16383,e+=1,t[lt]=e)}function s2(t,n,e,i){let r=i!==void 0?t[ol]&65535:0,s=i??-1,o=n.length-1,a=0;for(let l=r;l<o;l++)if(typeof n[l+1]=="number"){if(a=n[l],i!=null&&a>=i)break}else n[l]<0&&(t[ol]+=65536),(a<s||s==-1)&&(LP(t,e,n,l),t[ol]=(t[ol]&4294901760)+l+2),l++}function Aw(t,n){es(4,t,n);let e=Gt(null);try{n.call(t)}finally{Gt(e),es(5,t,n)}}function LP(t,n,e,i){let r=e[i]<0,s=e[i+1],o=r?-e[i]:e[i],a=t[o];r?t[lt]>>14<t[ol]>>16&&(t[lt]&3)===n&&(t[lt]+=16384,Aw(a,s)):Aw(a,s)}var ul=-1,sa=class{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};function NP(t){return t instanceof sa}function VP(t){return(t.flags&8)!==0}function BP(t){return(t.flags&16)!==0}function o2(t){return t!==ul}function Vf(t){return t&32767}function HP(t){return t>>16}function Bf(t,n){let e=HP(t),i=n;for(;e>0;)i=i[wl],e--;return i}var gg=!0;function Hf(t){let n=gg;return gg=t,n}var zP=256,a2=zP-1,l2=5,jP=0,ts={};function UP(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(Hc)&&(i=e[Hc]),i==null&&(i=e[Hc]=jP++);let r=i&a2,s=1<<r;n.data[t+(r>>l2)]|=s}function zf(t,n){let e=c2(t,n);if(e!==-1)return e;let i=n[Ct];i.firstCreatePass&&(t.injectorIndex=n.length,qm(i.data,t),qm(n,null),qm(i.blueprint,null));let r=M1(t,n),s=t.injectorIndex;if(o2(r)){let o=Vf(r),a=Bf(r,n),l=a[Ct].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=r,s}function qm(t,n){t.push(0,0,0,0,0,0,0,0,n)}function c2(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function M1(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=p2(r),i===null)return ul;if(e++,r=r[wl],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return ul}function vg(t,n,e){UP(t,n,e)}function u2(t,n,e){if(e&Dt.Optional||t!==void 0)return t;h1(n,"NodeInjector")}function d2(t,n,e,i){if(e&Dt.Optional&&i===void 0&&(i=null),!(e&(Dt.Self|Dt.Host))){let r=t[pl],s=Hi(void 0);try{return r?r.get(n,i,e&Dt.Optional):yC(n,i,e&Dt.Optional)}finally{Hi(s)}}return u2(i,n,e)}function f2(t,n,e,i=Dt.Default,r){if(t!==null){if(n[lt]&2048&&!(i&Dt.Self)){let o=qP(t,n,e,i,ts);if(o!==ts)return o}let s=h2(t,n,e,i,ts);if(s!==ts)return s}return d2(n,e,i,r)}function h2(t,n,e,i,r){let s=$P(e);if(typeof s=="function"){if(!JC(n,t,i))return i&Dt.Host?u2(r,e,i):d2(n,e,i,r);try{let o;if(o=s(i),o==null&&!(i&Dt.Optional))h1(e);else return o}finally{i2()}}else if(typeof s=="number"){let o=null,a=c2(t,n),l=ul,c=i&Dt.Host?n[Br][sr]:null;for((a===-1||i&Dt.SkipSelf)&&(l=a===-1?M1(t,n):n[a+8],l===ul||!Pw(i,!1)?a=-1:(o=n[Ct],a=Vf(l),n=Bf(l,n)));a!==-1;){let u=n[Ct];if(Fw(s,a,u.data)){let d=WP(a,n,e,o,i,c);if(d!==ts)return d}l=n[a+8],l!==ul&&Pw(i,n[Ct].data[a+8]===c)&&Fw(s,a,n)?(o=u,a=Vf(l),n=Bf(l,n)):a=-1}}return r}function WP(t,n,e,i,r,s){let o=n[Ct],a=o.data[t+8],l=i==null?oh(a)&&gg:i!=o&&(a.type&3)!==0,c=r&Dt.Host&&s===a,u=Mf(a,o,e,l,c);return u!==null?oa(n,o,u,a):ts}function Mf(t,n,e,i,r){let s=t.providerIndexes,o=n.data,a=s&1048575,l=t.directiveStart,c=t.directiveEnd,u=s>>20,d=i?a:a+u,f=r?a+u:c;for(let h=d;h<f;h++){let m=o[h];if(h<l&&e===m||h>=l&&m.type===e)return h}if(r){let h=o[l];if(h&&fo(h)&&h.type===e)return l}return null}function oa(t,n,e,i){let r=t[e],s=n.data;if(NP(r)){let o=r;o.resolving&&v4(g4(s[e]));let a=Hf(o.canSeeViewProviders);o.resolving=!0;let l,c=o.injectImpl?Hi(o.injectImpl):null,u=JC(t,i,Dt.Default);try{r=t[e]=o.factory(void 0,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&RP(e,s[e],n)}finally{c!==null&&Hi(c),Hf(a),o.resolving=!1,i2()}}return r}function $P(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Hc)?t[Hc]:void 0;return typeof n=="number"?n>=0?n&a2:GP:n}function Fw(t,n,e){let i=1<<t;return!!(e[n+(t>>l2)]&i)}function Pw(t,n){return!(t&Dt.Self)&&!(t&Dt.Host&&n)}var ea=class{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return f2(this._tNode,this._lView,n,Jf(i),e)}};function GP(){return new ea(Ai(),ut())}function Ge(t){return Qc(()=>{let n=t.prototype.constructor,e=n[Pf]||_g(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let s=r[Pf]||_g(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function _g(t){return hC(t)?()=>{let n=_g(ki(t));return n&&n()}:ta(t)}function qP(t,n,e,i,r){let s=t,o=n;for(;s!==null&&o!==null&&o[lt]&2048&&!(o[lt]&512);){let a=h2(s,o,e,i|Dt.Self,ts);if(a!==ts)return a;let l=s.parent;if(!l){let c=o[VC];if(c){let u=c.get(e,ts,i);if(u!==ts)return u}l=p2(o),o=o[wl]}s=l}return r}function p2(t){let n=t[Ct],e=n.type;return e===2?n.declTNode:e===1?t[sr]:null}function Ow(t,n=null,e=null,i){let r=m2(t,n,e,i);return r.resolveInjectorInitializers(),r}function m2(t,n=null,e=null,i,r=new Set){let s=[e||zi,Y4(t)];return i=i||(typeof t=="object"?void 0:Mi(t)),new Wc(s,n||v1(),i||null,r)}var or=(()=>{class t{static{this.THROW_IF_NOT_FOUND=jc}static{this.NULL=new Lf}static create(e,i){if(Array.isArray(e))return Ow({name:""},i,e,"");{let r=e.name??"";return Ow({name:r},e.parent,e.providers,r)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>st(wC)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();var KP="ngOriginalError";function Km(t){return t[KP]}var Hr=class{constructor(){this._console=console}handleError(n){let e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Km(n);for(;e&&Km(e);)e=Km(e);return e||null}},g2=new it("",{providedIn:"root",factory:()=>_e(Hr).handleError.bind(void 0)}),Cl=(()=>{class t{static{this.__NG_ELEMENT_ID__=YP}static{this.__NG_ENV_ID__=e=>e}}return t})(),yg=class extends Cl{constructor(n){super(),this._lView=n}onDestroy(n){return KC(this._lView,n),()=>_P(this._lView,n)}};function YP(){return new yg(ut())}function Rw(t,n){return dC(t,n)}function XP(t){return dC(uC,t)}var Sl=(Rw.required=XP,Rw);function ZP(){return El(Ai(),ut())}function El(t,n){return new gt(xr(t,n))}var gt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=ZP}}return t})();function QP(t){return t instanceof gt?t.nativeElement:t}var xg=class extends Ht{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,NC()&&(this.destroyRef=_e(Cl,{optional:!0})??void 0)}emit(n){let e=Gt(null);try{super.next(n)}finally{Gt(e)}}subscribe(n,e,i){let r=n,s=e||(()=>null),o=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=Ym(s),r&&(r=Ym(r)),o&&(o=Ym(o)));let a=super.subscribe({next:r,error:s,complete:o});return n instanceof Gn&&n.add(a),a}};function Ym(t){return n=>{setTimeout(t,void 0,n)}}var ve=xg;function JP(){return this._results[Symbol.iterator]()}var bg=class t{get changes(){return this._changes??=new ve}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=JP)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=D4(n);(this._changesDetected=!I4(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function v2(t){return(t.flags&128)===128}var _2=new Map,eO=0;function tO(){return eO++}function nO(t){_2.set(t[sh],t)}function iO(t){_2.delete(t[sh])}var Lw="__ngContext__";function ho(t,n){Jo(n)?(t[Lw]=n[sh],nO(n)):t[Lw]=n}function y2(t){return b2(t[qc])}function x2(t){return b2(t[Nr])}function b2(t){for(;t!==null&&!As(t);)t=t[Nr];return t}var wg;function w2(t){wg=t}function rO(){if(wg!==void 0)return wg;if(typeof document<"u")return document;throw new De(210,!1)}var A1=new it("",{providedIn:"root",factory:()=>sO}),sO="ng",F1=new it(""),nn=new it("",{providedIn:"platform",factory:()=>"unknown"});var P1=new it(""),O1=new it("",{providedIn:"root",factory:()=>rO().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var oO="h",aO="b";var lO=()=>null;function R1(t,n,e=!1){return lO(t,n,e)}var C2=!1,cO=new it("",{providedIn:"root",factory:()=>C2});var wf;function uO(){if(wf===void 0&&(wf=null,Lr.trustedTypes))try{wf=Lr.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return wf}function fh(t){return uO()?.createHTML(t)||t}var Ds=class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cC})`}},Cg=class extends Ds{getTypeName(){return"HTML"}},Sg=class extends Ds{getTypeName(){return"Style"}},Eg=class extends Ds{getTypeName(){return"Script"}},Tg=class extends Ds{getTypeName(){return"URL"}},Ig=class extends Ds{getTypeName(){return"ResourceURL"}};function os(t){return t instanceof Ds?t.changingThisBreaksApplicationSecurity:t}function Tl(t,n){let e=dO(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${cC})`)}return e===n}function dO(t){return t instanceof Ds&&t.getTypeName()||null}function S2(t){return new Cg(t)}function E2(t){return new Sg(t)}function T2(t){return new Eg(t)}function I2(t){return new Tg(t)}function D2(t){return new Ig(t)}function fO(t){let n=new kg(t);return hO()?new Dg(n):n}var Dg=class{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let e=new window.DOMParser().parseFromString(fh(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}},kg=class{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=fh(n),e}};function hO(){try{return!!new window.DOMParser().parseFromString(fh(""),"text/html")}catch{return!1}}var pO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function L1(t){return t=String(t),t.match(pO)?t:"unsafe:"+t}function Fs(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function iu(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var k2=Fs("area,br,col,hr,img,wbr"),M2=Fs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),A2=Fs("rp,rt"),mO=iu(A2,M2),gO=iu(M2,Fs("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")),vO=iu(A2,Fs("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")),Nw=iu(k2,gO,vO,mO),F2=Fs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_O=Fs("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"),yO=Fs("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"),xO=iu(F2,_O,yO),bO=Fs("script,style,template"),Mg=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=SO(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=CO(e);if(s){e=s;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=Vw(n).toLowerCase();if(!Nw.hasOwnProperty(e))return this.sanitizedSomething=!0,!bO.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r<i.length;r++){let s=i.item(r),o=s.name,a=o.toLowerCase();if(!xO.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;F2[a]&&(l=L1(l)),this.buf.push(" ",o,'="',Bw(l),'"')}return this.buf.push(">"),!0}endElement(n){let e=Vw(n).toLowerCase();Nw.hasOwnProperty(e)&&!k2.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Bw(n))}};function wO(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function CO(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw P2(n);return n}function SO(t){let n=t.firstChild;if(n&&wO(t,n))throw P2(n);return n}function Vw(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function P2(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var EO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,TO=/([^\#-~ |!])/g;function Bw(t){return t.replace(/&/g,"&amp;").replace(EO,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(TO,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Cf;function O2(t,n){let e=null;try{Cf=Cf||fO(t);let i=n?String(n):"";e=Cf.getInertBodyElement(i);let r=5,s=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=Cf.getInertBodyElement(i)}while(i!==s);let a=new Mg().sanitizeChildren(Hw(e)||e);return fh(a)}finally{if(e){let i=Hw(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Hw(t){return"content"in t&&IO(t)?t.content:null}function IO(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var vo=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}(vo||{});var DO=/^>|^->|<!--|-->|--!>|<!-$/g,kO=/(<|>)/g,MO="\u200B$1\u200B";function AO(t){return t.replace(DO,n=>n.replace(kO,MO))}function R2(t){return t instanceof Function?t():t}function FO(t){return(t??_e(or)).get(nn)==="browser"}var ss=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ss||{}),PO;function N1(t,n){return PO(t,n)}function al(t,n,e,i,r){if(i!=null){let s,o=!1;As(i)?s=i:Jo(i)&&(o=!0,i=i[Ms]);let a=rs(i);t===0&&e!==null?r==null?z2(n,e,a):jf(n,e,a,r||null,!0):t===1&&e!==null?jf(n,e,a,r||null,!0):t===2?YO(n,a,o):t===3&&n.destroyNode(a),s!=null&&ZO(n,t,s,e,r)}}function OO(t,n){return t.createText(n)}function RO(t,n,e){t.setValue(n,e)}function LO(t,n){return t.createComment(AO(n))}function L2(t,n,e){return t.createElement(n,e)}function NO(t,n){N2(t,n),n[Ms]=null,n[sr]=null}function VO(t,n,e,i,r,s){i[Ms]=r,i[sr]=n,ph(t,i,e,1,r,s)}function N2(t,n){n[is].changeDetectionScheduler?.notify(1),ph(t,n,n[In],2,null,null)}function BO(t){let n=t[qc];if(!n)return Xm(t[Ct],t);for(;n;){let e=null;if(Jo(n))e=n[qc];else{let i=n[rr];i&&(e=i)}if(!e){for(;n&&!n[Nr]&&n!==t;)Jo(n)&&Xm(n[Ct],n),n=n[di];n===null&&(n=t),Jo(n)&&Xm(n[Ct],n),e=n&&n[Nr]}n=e}}function HO(t,n,e,i){let r=rr+i,s=e.length;i>0&&(e[r-1][Nr]=n),i<s-rr?(n[Nr]=e[r],bC(e,rr+i,n)):(e.push(n),n[Nr]=null),n[di]=e;let o=n[nu];o!==null&&e!==o&&zO(o,n);let a=n[Is];a!==null&&a.insertView(t),pg(n),n[lt]|=128}function zO(t,n){let e=t[ml],r=n[di][di][Br];n[Br]!==r&&(t[lt]|=_1.HasTransplantedViews),e===null?t[ml]=[n]:e.push(n)}function V2(t,n){let e=t[ml],i=e.indexOf(n);e.splice(i,1)}function Ag(t,n){if(t.length<=rr)return;let e=rr+n,i=t[e];if(i){let r=i[nu];r!==null&&r!==t&&V2(r,i),n>0&&(t[e-1][Nr]=i[Nr]);let s=Rf(t,rr+n);NO(i[Ct],i);let o=s[Is];o!==null&&o.detachView(s[Ct]),i[di]=null,i[Nr]=null,i[lt]&=-129}return i}function B2(t,n){if(!(n[lt]&256)){let e=n[In];e.destroyNode&&ph(t,n,e,3,null,null),BO(n)}}function Xm(t,n){if(n[lt]&256)return;let e=Gt(null);try{n[lt]&=-129,n[lt]|=256,n[na]&&Sm(n[na]),UO(t,n),jO(t,n),n[Ct].type===1&&n[In].destroy();let i=n[nu];if(i!==null&&As(n[di])){i!==n[di]&&V2(i,n);let r=n[Is];r!==null&&r.detachView(t)}iO(n)}finally{Gt(e)}}function jO(t,n){let e=t.cleanup,i=n[Gc];if(e!==null)for(let s=0;s<e.length-1;s+=2)if(typeof e[s]=="string"){let o=e[s+3];o>=0?i[o]():i[-o].unsubscribe(),s+=2}else{let o=i[e[s+1]];e[s].call(o)}i!==null&&(n[Gc]=null);let r=n[co];if(r!==null){n[co]=null;for(let s=0;s<r.length;s++){let o=r[s];o()}}}function UO(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof sa)){let s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=r[s[o]],l=s[o+1];es(4,a,l);try{l.call(a)}finally{es(5,a,l)}}else{es(4,r,s);try{s.call(r)}finally{es(5,r,s)}}}}}function H2(t,n,e){return WO(t,n.parent,e)}function WO(t,n,e){let i=n;for(;i!==null&&i.type&40;)n=i,i=n.parent;if(i===null)return e[Ms];{let{componentOffset:r}=i;if(r>-1){let{encapsulation:s}=t.data[i.directiveStart+r];if(s===ns.None||s===ns.Emulated)return null}return xr(i,e)}}function jf(t,n,e,i,r){t.insertBefore(n,e,i,r)}function z2(t,n,e){t.appendChild(n,e)}function zw(t,n,e,i,r){i!==null?jf(t,n,e,i,r):z2(t,n,e)}function $O(t,n,e,i){t.removeChild(n,e,i)}function V1(t,n){return t.parentNode(n)}function GO(t,n){return t.nextSibling(n)}function j2(t,n,e){return KO(t,n,e)}function qO(t,n,e){return t.type&40?xr(t,e):null}var KO=qO,jw;function hh(t,n,e,i){let r=H2(t,i,n),s=n[In],o=i.parent||n[sr],a=j2(o,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)zw(s,r,e[l],a,!1);else zw(s,r,e,a,!1);jw!==void 0&&jw(s,i,n,e,r)}function Af(t,n){if(n!==null){let e=n.type;if(e&3)return xr(n,t);if(e&4)return Fg(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return Af(t,i);{let r=t[n.index];return As(r)?Fg(-1,r):rs(r)}}else{if(e&32)return N1(n,t)()||rs(t[n.index]);{let i=U2(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=Yc(t[Br]);return Af(r,i)}else return Af(t,n.next)}}}return null}function U2(t,n){if(n!==null){let i=t[Br][sr],r=n.projection;return i.projection[r]}return null}function Fg(t,n){let e=rr+t+1;if(e<n.length){let i=n[e],r=i[Ct].firstChild;if(r!==null)return Af(i,r)}return n[ia]}function YO(t,n,e){let i=V1(t,n);i&&$O(t,i,n,e)}function B1(t,n,e,i,r,s,o){for(;e!=null;){let a=i[e.index],l=e.type;if(o&&n===0&&(a&&ho(rs(a),i),e.flags|=2),(e.flags&32)!==32)if(l&8)B1(t,n,e.child,i,r,s,!1),al(n,t,r,a,s);else if(l&32){let c=N1(e,i),u;for(;u=c();)al(n,t,r,u,s);al(n,t,r,a,s)}else l&16?W2(t,n,i,e,r,s):al(n,t,r,a,s);e=o?e.projectionNext:e.next}}function ph(t,n,e,i,r,s){B1(e,i,t.firstChild,n,r,s,!1)}function XO(t,n,e){let i=n[In],r=H2(t,e,n),s=e.parent||n[sr],o=j2(s,e,n);W2(i,0,n,e,r,o)}function W2(t,n,e,i,r,s){let o=e[Br],l=o[sr].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];al(n,t,r,u,s)}else{let c=l,u=o[di];v2(i)&&(c.flags|=128),B1(t,n,c,u,r,s,!0)}}function ZO(t,n,e,i,r){let s=e[ia],o=rs(e);s!==o&&al(n,t,i,s,r);for(let a=rr;a<e.length;a++){let l=e[a];ph(l[Ct],l,t,n,i,s)}}function QO(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let s=i.indexOf("-")===-1?void 0:ss.DashCase;r==null?t.removeStyle(e,i,s):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=ss.Important),t.setStyle(e,i,r,s))}}function JO(t,n,e){t.setAttribute(n,"style",e)}function $2(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function G2(t,n,e){let{mergedAttrs:i,classes:r,styles:s}=e;i!==null&&cg(t,n,i),r!==null&&$2(t,n,r),s!==null&&JO(t,n,s)}var br={};function C(t=1){q2(Rn(),ut(),go()+t,!1)}function q2(t,n,e,i){if(!i)if((n[lt]&3)===3){let s=t.preOrderCheckHooks;s!==null&&Df(n,s,e)}else{let s=t.preOrderHooks;s!==null&&kf(n,s,0,e)}ra(e)}function se(t,n=Dt.Default){let e=ut();if(e===null)return st(t,n);let i=Ai();return f2(i,e,ki(t),n)}function K2(){let t="invalid";throw new Error(t)}function Y2(t,n,e,i,r,s){let o=Gt(null);try{let a=null;r&Z.SignalBased&&(a=n[i][Pr]),a!==null&&a.transformFn!==void 0&&(s=a.transformFn(s)),r&Z.HasDecoratorInputTransform&&(s=t.inputTransforms[i].call(n,s)),t.setInput!==null?t.setInput(n,a,s,e,i):HC(n,a,i,s)}finally{Gt(o)}}function eR(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)ra(~r);else{let s=r,o=e[++i],a=e[++i];kP(o,s);let l=n[s];a(2,l)}}}finally{ra(-1)}}function mh(t,n,e,i,r,s,o,a,l,c,u){let d=n.blueprint.slice();return d[Ms]=r,d[lt]=i|4|128|8|64,(c!==null||t&&t[lt]&2048)&&(d[lt]|=2048),qC(d),d[di]=d[wl]=t,d[Vr]=e,d[is]=o||t&&t[is],d[In]=a||t&&t[In],d[pl]=l||t&&t[pl]||null,d[sr]=s,d[sh]=tO(),d[$c]=u,d[VC]=c,d[Br]=n.type==2?t[Br]:d,d}function Il(t,n,e,i,r){let s=t.data[n];if(s===null)s=tR(t,n,e,i,r),DP()&&(s.flags|=32);else if(s.type&64){s.type=e,s.value=i,s.attrs=r;let o=SP();s.injectorIndex=o===null?-1:o.injectorIndex}return ua(s,!0),s}function tR(t,n,e,i,r){let s=ZC(),o=C1(),a=o?s:s&&s.parent,l=t.data[n]=aR(t,a,e,n,i,r);return t.firstChild===null&&(t.firstChild=l),s!==null&&(o?s.child==null&&l.parent!==null&&(s.child=l):s.next===null&&(s.next=l,l.prev=s)),l}function X2(t,n,e,i){if(e===0)return-1;let r=n.length;for(let s=0;s<e;s++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function Z2(t,n,e,i,r){let s=go(),o=i&2;try{ra(-1),o&&n.length>Ui&&q2(t,n,Ui,!1),es(o?2:0,r),e(i,r)}finally{ra(s),es(o?3:1,r)}}function H1(t,n,e){if(y1(n)){let i=Gt(null);try{let r=n.directiveStart,s=n.directiveEnd;for(let o=r;o<s;o++){let a=t.data[o];if(a.contentQueries){let l=e[o];a.contentQueries(1,l,o)}}}finally{Gt(i)}}}function z1(t,n,e){YC()&&(hR(t,n,e,xr(e,n)),(e.flags&64)===64&&tS(t,n,e))}function j1(t,n,e=xr){let i=n.localNames;if(i!==null){let r=n.index+1;for(let s=0;s<i.length;s+=2){let o=i[s+1],a=o===-1?e(n,t):t[o];t[r++]=a}}}function Q2(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=U1(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function U1(t,n,e,i,r,s,o,a,l,c,u){let d=Ui+i,f=d+r,h=nR(d,f),m=typeof c=="function"?c():c;return h[Ct]={type:t,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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 s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1,ssrId:u}}function nR(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:br);return e}function iR(t,n,e,i){let s=i.get(cO,C2)||e===ns.ShadowDom,o=t.selectRootElement(n,s);return rR(o),o}function rR(t){sR(t)}var sR=()=>null;function oR(t,n,e,i){let r=rS(n);r.push(e),t.firstCreatePass&&sS(t).push(i,r.length-1)}function aR(t,n,e,i,r,s){let o=n?n.injectorIndex:-1,a=0;return XC()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Uw(t,n,e,i,r){for(let s in n){if(!n.hasOwnProperty(s))continue;let o=n[s];if(o===void 0)continue;i??={};let a,l=Z.None;Array.isArray(o)?(a=o[0],l=o[1]):a=o;let c=s;if(r!==null){if(!r.hasOwnProperty(s))continue;c=r[s]}t===0?Ww(i,e,c,a,l):Ww(i,e,c,a)}return i}function Ww(t,n,e,i,r){let s;t.hasOwnProperty(e)?(s=t[e]).push(n,i):s=t[e]=[n,i],r!==void 0&&s.push(r)}function lR(t,n,e){let i=n.directiveStart,r=n.directiveEnd,s=t.data,o=n.attrs,a=[],l=null,c=null;for(let u=i;u<r;u++){let d=s[u],f=e?e.get(d):null,h=f?f.inputs:null,m=f?f.outputs:null;l=Uw(0,d.inputs,u,l,h),c=Uw(1,d.outputs,u,c,m);let p=l!==null&&o!==null&&!m1(n)?SR(l,u,o):null;a.push(p)}l!==null&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}function cR(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function J2(t,n,e,i,r,s,o,a){let l=xr(n,e),c=n.inputs,u;!a&&c!=null&&(u=c[i])?($1(t,e,u,i,r),oh(n)&&uR(e,n.index)):n.type&3?(i=cR(i),r=o!=null?o(r,n.value||"",i):r,s.setProperty(l,i,r)):n.type&12}function uR(t,n){let e=mo(n,t);e[lt]&16||(e[lt]|=64)}function W1(t,n,e,i){if(YC()){let r=i===null?null:{"":-1},s=mR(t,e),o,a;s===null?o=a=null:[o,a]=s,o!==null&&eS(t,n,e,o,r,a),r&&gR(e,i,r)}e.mergedAttrs=Uc(e.mergedAttrs,e.attrs)}function eS(t,n,e,i,r,s){for(let c=0;c<i.length;c++)vg(zf(e,n),t,i[c].type);_R(e,t.data.length,i.length);for(let c=0;c<i.length;c++){let u=i[c];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,l=X2(t,n,i.length,null);for(let c=0;c<i.length;c++){let u=i[c];e.mergedAttrs=Uc(e.mergedAttrs,u.hostAttrs),yR(t,e,n,l,u),vR(l,u,r),u.contentQueries!==null&&(e.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(e.flags|=64);let d=u.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),l++}lR(t,e,s)}function dR(t,n,e,i,r){let s=r.hostBindings;if(s){let o=t.hostBindingOpCodes;o===null&&(o=t.hostBindingOpCodes=[]);let a=~n.index;fR(o)!=a&&o.push(a),o.push(e,i,s)}}function fR(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function hR(t,n,e,i){let r=e.directiveStart,s=e.directiveEnd;oh(e)&&xR(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||zf(e,n),ho(i,n);let o=e.initialInputs;for(let a=r;a<s;a++){let l=t.data[a],c=oa(n,t,a,e);if(ho(c,n),o!==null&&CR(n,a-r,c,l,e,o),fo(l)){let u=mo(e.index,n);u[Vr]=oa(n,t,a,e)}}}function tS(t,n,e){let i=e.directiveStart,r=e.directiveEnd,s=e.index,o=MP();try{ra(s);for(let a=i;a<r;a++){let l=t.data[a],c=n[a];mg(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&pR(l,c)}}finally{ra(-1),mg(o)}}function pR(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function mR(t,n){let e=t.directiveRegistry,i=null,r=null;if(e)for(let s=0;s<e.length;s++){let o=e[s];if(TC(n,o.selectors,!1))if(i||(i=[]),fo(o))if(o.findHostDirectiveDefs!==null){let a=[];r=r||new Map,o.findHostDirectiveDefs(o,a,r),i.unshift(...a,o);let l=a.length;Pg(t,n,l)}else i.unshift(o),Pg(t,n,0);else r=r||new Map,o.findHostDirectiveDefs?.(o,i,r),i.push(o)}return i===null?null:[i,r]}function Pg(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function gR(t,n,e){if(n){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let s=e[n[r+1]];if(s==null)throw new De(-301,!1);i.push(n[r],s)}}}function vR(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;fo(n)&&(e[""]=t)}}function _R(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function yR(t,n,e,i,r){t.data[i]=r;let s=r.factory||(r.factory=ta(r.type,!0)),o=new sa(s,fo(r),se);t.blueprint[i]=o,e[i]=o,dR(t,n,i,X2(t,e,r.hostVars,br),r)}function xR(t,n,e){let i=xr(n,t),r=Q2(e),s=t[is].rendererFactory,o=16;e.signals?o=4096:e.onPush&&(o=64);let a=gh(t,mh(t,r,null,o,i,n,null,s.createRenderer(i,e),null,null,null));t[n.index]=a}function bR(t,n,e,i,r,s){let o=xr(t,n);wR(n[In],o,s,t.value,e,i,r)}function wR(t,n,e,i,r,s,o){if(s==null)t.removeAttribute(n,r,e);else{let a=o==null?zc(s):o(s,i||"",r);t.setAttribute(n,r,a,e)}}function CR(t,n,e,i,r,s){let o=s[n];if(o!==null)for(let a=0;a<o.length;){let l=o[a++],c=o[a++],u=o[a++],d=o[a++];Y2(i,e,l,c,u,d)}}function SR(t,n,e){let i=null,r=0;for(;r<e.length;){let s=e[r];if(s===0){r+=4;continue}else if(s===5){r+=2;continue}if(typeof s=="number")break;if(t.hasOwnProperty(s)){i===null&&(i=[]);let o=t[s];for(let a=0;a<o.length;a+=3)if(o[a]===n){i.push(s,o[a+1],o[a+2],e[r+1]);break}}r+=2}return i}function nS(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function iS(t,n){let e=t.contentQueries;if(e!==null){let i=Gt(null);try{for(let r=0;r<e.length;r+=2){let s=e[r],o=e[r+1];if(o!==-1){let a=t.data[o];T1(s),a.contentQueries(2,n[o],o)}}}finally{Gt(i)}}}function gh(t,n){return t[qc]?t[kw][Nr]=n:t[qc]=n,t[kw]=n,n}function Og(t,n,e){T1(0);let i=Gt(null);try{n(t,e)}finally{Gt(i)}}function rS(t){return t[Gc]||(t[Gc]=[])}function sS(t){return t.cleanup||(t.cleanup=[])}function oS(t,n){let e=t[pl],i=e?e.get(Hr,null):null;i&&i.handleError(n)}function $1(t,n,e,i,r){for(let s=0;s<e.length;){let o=e[s++],a=e[s++],l=e[s++],c=n[o],u=t.data[o];Y2(u,c,i,a,l,r)}}function aS(t,n,e){let i=$C(n,t);RO(t[In],i,e)}function ER(t,n){let e=mo(n,t),i=e[Ct];TR(i,e);let r=e[Ms];r!==null&&e[$c]===null&&(e[$c]=R1(r,e[pl])),G1(i,e,e[Vr])}function TR(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function G1(t,n,e){I1(n);try{let i=t.viewQuery;i!==null&&Og(1,i,e);let r=t.template;r!==null&&Z2(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[Is]?.finishViewCreation(t),t.staticContentQueries&&iS(t,n),t.staticViewQueries&&Og(2,t.viewQuery,e);let s=t.components;s!==null&&IR(n,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[lt]&=-5,D1()}}function IR(t,n){for(let e=0;e<n.length;e++)ER(t,n[e])}function DR(t,n,e,i){let r=Gt(null);try{let s=n.tView,a=t[lt]&4096?4096:16,l=mh(t,s,e,a,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),c=t[n.index];l[nu]=c;let u=t[Is];return u!==null&&(l[Is]=u.createEmbeddedView(s)),G1(s,l,e),l}finally{Gt(r)}}function $w(t,n){return!n||n.firstChild===null||v2(t)}function kR(t,n,e,i=!0){let r=n[Ct];if(HO(r,n,t,e),i){let o=Fg(e,t),a=n[In],l=V1(a,t[ia]);l!==null&&VO(r,t[sr],a,n,l,o)}let s=n[$c];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function Uf(t,n,e,i,r=!1){for(;e!==null;){let s=n[e.index];s!==null&&i.push(rs(s)),As(s)&&MR(s,i);let o=e.type;if(o&8)Uf(t,n,e.child,i);else if(o&32){let a=N1(e,n),l;for(;l=a();)i.push(l)}else if(o&16){let a=U2(n,e);if(Array.isArray(a))i.push(...a);else{let l=Yc(n[Br]);Uf(l[Ct],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}function MR(t,n){for(let e=rr;e<t.length;e++){let i=t[e],r=i[Ct].firstChild;r!==null&&Uf(i[Ct],i,r,n)}t[ia]!==t[Ms]&&n.push(t[ia])}var lS=[];function AR(t){return t[na]??FR(t)}function FR(t){let n=lS.pop()??Object.create(OR);return n.lView=t,n}function PR(t){t.lView[na]!==t&&(t.lView=null,lS.push(t))}var OR=ft(xe({},Pc),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Kc(t.lView)},consumerOnSignalRead(){this.lView[na]=this}}),cS=100;function uS(t,n=!0,e=0){let i=t[is],r=i.rendererFactory,s=!1;s||r.begin?.();try{RR(t,e)}catch(o){throw n&&oS(t,o),o}finally{s||(r.end?.(),i.inlineEffectRunner?.flush())}}function RR(t,n){Rg(t,n);let e=0;for(;w1(t);){if(e===cS)throw new De(103,!1);e++,Rg(t,1)}}function LR(t,n,e,i){let r=n[lt];if((r&256)===256)return;let s=!1;!s&&n[is].inlineEffectRunner?.flush(),I1(n);let o=null,a=null;!s&&NR(t)&&(a=AR(n),o=qd(a));try{qC(n),IP(t.bindingStartIndex),e!==null&&Z2(t,n,e,2,i);let l=(r&3)===3;if(!s)if(l){let d=t.preOrderCheckHooks;d!==null&&Df(n,d,null)}else{let d=t.preOrderHooks;d!==null&&kf(n,d,0,null),Gm(n,0)}if(VR(n),dS(n,0),t.contentQueries!==null&&iS(t,n),!s)if(l){let d=t.contentCheckHooks;d!==null&&Df(n,d)}else{let d=t.contentHooks;d!==null&&kf(n,d,1),Gm(n,1)}eR(t,n);let c=t.components;c!==null&&hS(n,c,0);let u=t.viewQuery;if(u!==null&&Og(2,u,i),!s)if(l){let d=t.viewCheckHooks;d!==null&&Df(n,d)}else{let d=t.viewHooks;d!==null&&kf(n,d,2),Gm(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[If]){for(let d of n[If])d();n[If]=null}s||(n[lt]&=-73)}catch(l){throw Kc(n),l}finally{a!==null&&(Kd(a,o),PR(a)),D1()}}function NR(t){return t.type!==2}function dS(t,n){for(let e=y2(t);e!==null;e=x2(e))for(let i=rr;i<e.length;i++){let r=e[i];fS(r,n)}}function VR(t){for(let n=y2(t);n!==null;n=x2(n)){if(!(n[lt]&_1.HasTransplantedViews))continue;let e=n[ml];for(let i=0;i<e.length;i++){let r=e[i],s=r[di];gP(r)}}}function BR(t,n,e){let i=mo(n,t);fS(i,e)}function fS(t,n){b1(t)&&Rg(t,n)}function Rg(t,n){let i=t[Ct],r=t[lt],s=t[na],o=!!(n===0&&r&16);if(o||=!!(r&64&&n===0),o||=!!(r&1024),o||=!!(s?.dirty&&Yd(s)),s&&(s.dirty=!1),t[lt]&=-9217,o)LR(i,t,i.template,t[Vr]);else if(r&8192){dS(t,1);let a=i.components;a!==null&&hS(t,a,1)}}function hS(t,n,e){for(let i=0;i<n.length;i++)BR(t,n[i],e)}function q1(t){for(t[is].changeDetectionScheduler?.notify();t;){t[lt]|=64;let n=Yc(t);if(aP(t)&&!n)return t;t=n}return null}var aa=class{get rootNodes(){let n=this._lView,e=n[Ct];return Uf(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Vr]}set context(n){this._lView[Vr]=n}get destroyed(){return(this._lView[lt]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[di];if(As(n)){let e=n[Nf],i=e?e.indexOf(this):-1;i>-1&&(Ag(n,i),Rf(e,i))}this._attachedToViewContainer=!1}B2(this._lView[Ct],this._lView)}onDestroy(n){KC(this._lView,n)}markForCheck(){q1(this._cdRefInjectingView||this._lView)}detach(){this._lView[lt]&=-129}reattach(){pg(this._lView),this._lView[lt]|=128}detectChanges(){this._lView[lt]|=1024,uS(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new De(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,N2(this._lView[Ct],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new De(902,!1);this._appRef=n,pg(this._lView)}},zr=(()=>{class t{static{this.__NG_ELEMENT_ID__=jR}}return t})(),HR=zr,zR=class extends HR{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){let r=DR(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new aa(r)}};function jR(){return vh(Ai(),ut())}function vh(t,n){return t.type&4?new zR(n,t,El(t,n)):null}var Zfe=new RegExp(`^(\\d+)*(${aO}|${oO})*(.*)`);var UR=()=>null;function Gw(t,n){return UR(t,n)}var vl=class{},Lg=class{},Wf=class{};function WR(t){let n=Error(`No component factory found for ${Mi(t)}.`);return n[$R]=t,n}var $R="ngComponent";var Ng=class{resolveComponentFactory(n){throw WR(n)}},_h=(()=>{class t{static{this.NULL=new Ng}}return t})(),la=class{},ln=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>GR()}}return t})();function GR(){let t=ut(),n=Ai(),e=mo(n.index,t);return(Jo(e)?e:t)[In]}var qR=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})(),Zm={};var qw=new Set;function _o(t){qw.has(t)||(qw.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Kw(...t){}function KR(){let t=typeof Lr.requestAnimationFrame=="function",n=Lr[t?"requestAnimationFrame":"setTimeout"],e=Lr[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);let r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}var rt=class t{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),typeof Zone>"u")throw new De(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=KR().nativeRequestAnimationFrame,ZR(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new De(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new De(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,n,YR,Kw,Kw);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},YR={};function K1(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 XR(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Lr,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Vg(t),t.isCheckStableRunning=!0,K1(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Vg(t))}function ZR(t){let n=()=>{XR(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{if(QR(a))return e.invokeTask(r,s,o,a);try{return Yw(t),e.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),Xw(t)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return Yw(t),e.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Xw(t)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Vg(t),K1(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Vg(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Yw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Xw(t){t._nesting--,K1(t)}function QR(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var ll=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ll||{}),JR={destroy(){}};function yh(t,n){!n&&rh(yh);let e=n?.injector??_e(or);if(!FO(e))return JR;_o("NgAfterNextRender");let i=e.get(Y1),r=i.handler??=new Hg,s=n?.phase??ll.MixedReadWrite,o=()=>{r.unregister(l),a()},a=e.get(Cl).onDestroy(o),l=ks(e,()=>new Bg(s,()=>{o(),t()}));return r.register(l),{destroy:o}}var Bg=class{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=_e(rt),this.errorHandler=_e(Hr,{optional:!0}),_e(vl,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}},Hg=class{constructor(){this.executingCallbacks=!1,this.buckets={[ll.EarlyRead]:new Set,[ll.Write]:new Set,[ll.MixedReadWrite]:new Set,[ll.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(let n of Object.values(this.buckets))for(let e of n)e.invoke();this.executingCallbacks=!1;for(let n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(let n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}},Y1=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function $f(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,s=0;if(n!==null)for(let o=0;o<n.length;o++){let a=n[o];if(typeof a=="number")s=a;else if(s==1)r=sg(r,a);else if(s==2){let l=a,c=n[++o];i=sg(i,l+": "+c+";")}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}var Gf=class extends _h{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=uo(n);return new _l(e,this.ngModule)}};function Zw(t){let n=[];for(let e in t){if(!t.hasOwnProperty(e))continue;let i=t[e];i!==void 0&&n.push({propName:Array.isArray(i)?i[0]:i,templateName:e})}return n}function eL(t){let n=t.toLowerCase();return n==="svg"?WC:n==="math"?dP:null}var zg=class{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Jf(i);let r=this.injector.get(n,Zm,i);return r!==Zm||e===Zm?r:this.parentInjector.get(n,e,i)}},_l=class extends Wf{get inputs(){let n=this.componentDef,e=n.inputTransforms,i=Zw(n.inputs);if(e!==null)for(let r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return Zw(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=W4(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let s=Gt(null);try{r=r||this.ngModule;let o=r instanceof ji?r:r?.injector;o&&this.componentDef.getStandaloneInjector!==null&&(o=this.componentDef.getStandaloneInjector(o)||o);let a=o?new zg(n,o):n,l=a.get(la,null);if(l===null)throw new De(407,!1);let c=a.get(qR,null),u=a.get(Y1,null),d=a.get(vl,null),f={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:u,changeDetectionScheduler:d},h=l.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",p=i?iR(h,i,this.componentDef.encapsulation,a):L2(h,m,eL(m)),g=512;this.componentDef.signals?g|=4096:this.componentDef.onPush||(g|=16);let v=null;p!==null&&(v=R1(p,a,!0));let _=U1(0,null,null,1,0,null,null,null,null,null,null),y=mh(null,_,null,g,null,null,f,h,a,null,v);I1(y);let x,w;try{let T=this.componentDef,E,k=null;T.findHostDirectiveDefs?(E=[],k=new Map,T.findHostDirectiveDefs(T,E,k),E.push(T)):E=[T];let F=tL(y,p),G=nL(F,p,T,E,y,f,h);w=GC(_,Ui),p&&sL(h,T,p,i),e!==void 0&&oL(w,this.ngContentSelectors,e),x=rL(G,T,E,k,y,[aL]),G1(_,y,null)}finally{D1()}return new jg(this.componentType,x,El(w,y),y,w)}finally{Gt(s)}}},jg=class extends Lg{constructor(n,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new aa(r,void 0,!1),this.componentType=n}setInput(n,e){let i=this._tNode.inputs,r;if(i!==null&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let s=this._rootLView;$1(s[Ct],s,r,n,e),this.previousInputValues.set(n,e);let o=mo(this._tNode.index,s);q1(o)}}get injector(){return new ea(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function tL(t,n){let e=t[Ct],i=Ui;return t[i]=n,Il(e,i,2,"#host",null)}function nL(t,n,e,i,r,s,o){let a=r[Ct];iL(i,t,n,o);let l=null;n!==null&&(l=R1(n,r[pl]));let c=s.rendererFactory.createRenderer(n,e),u=16;e.signals?u=4096:e.onPush&&(u=64);let d=mh(r,Q2(e),null,u,r[t.index],t,s,c,null,null,l);return a.firstCreatePass&&Pg(a,t,i.length-1),gh(r,d),r[t.index]=d}function iL(t,n,e,i){for(let r of t)n.mergedAttrs=Uc(n.mergedAttrs,r.hostAttrs);n.mergedAttrs!==null&&($f(n,n.mergedAttrs,!0),e!==null&&G2(i,e,n))}function rL(t,n,e,i,r,s){let o=Ai(),a=r[Ct],l=xr(o,r);eS(a,r,o,e,null,i);for(let u=0;u<e.length;u++){let d=o.directiveStart+u,f=oa(r,a,d,o);ho(f,r)}tS(a,r,o),l&&ho(l,r);let c=oa(r,a,o.directiveStart+o.componentOffset,o);if(t[Vr]=r[Vr]=c,s!==null)for(let u of s)u(c,n);return H1(a,o,r),c}function sL(t,n,e,i){if(i)cg(t,e,["ng-version","17.3.12"]);else{let{attrs:r,classes:s}=$4(n.selectors[0]);r&&cg(t,e,r),s&&s.length>0&&$2(t,e,s.join(" "))}}function oL(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let s=e[r];i.push(s!=null?Array.from(s):null)}}function aL(){let t=Ai();dh(ut()[Ct],t)}var Ur=(()=>{class t{static{this.__NG_ELEMENT_ID__=lL}}return t})();function lL(){let t=Ai();return mS(t,ut())}var cL=Ur,pS=class extends cL{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return El(this._hostTNode,this._hostLView)}get injector(){return new ea(this._hostTNode,this._hostLView)}get parentInjector(){let n=M1(this._hostTNode,this._hostLView);if(o2(n)){let e=Bf(n,this._hostLView),i=Vf(n),r=e[Ct].data[i+8];return new ea(r,e)}else return new ea(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=Qw(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-rr}createEmbeddedView(n,e,i){let r,s;typeof i=="number"?r=i:i!=null&&(r=i.index,s=i.injector);let o=Gw(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},s,o);return this.insertImpl(a,r,$w(this._hostTNode,o)),a}createComponent(n,e,i,r,s){let o=n&&!oP(n),a;if(o)a=e;else{let m=e||{};a=m.index,i=m.injector,r=m.projectableNodes,s=m.environmentInjector||m.ngModuleRef}let l=o?n:new _l(uo(n)),c=i||this.parentInjector;if(!s&&l.ngModule==null){let p=(o?c:this.parentInjector).get(ji,null);p&&(s=p)}let u=uo(l.componentType??{}),d=Gw(this._lContainer,u?.id??null),f=d?.firstChild??null,h=l.create(c,r,f,s);return this.insertImpl(h.hostView,a,$w(this._hostTNode,d)),h}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(mP(r)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=r[di],c=new pS(l,l[sr],l[di]);c.detach(c.indexOf(n))}}let s=this._adjustIndex(e),o=this._lContainer;return kR(o,r,s,i),n.attachToViewContainerRef(),bC(Qm(o),s,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=Qw(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Ag(this._lContainer,e);i&&(Rf(Qm(this._lContainer),e),B2(i[Ct],i))}detach(n){let e=this._adjustIndex(n,-1),i=Ag(this._lContainer,e);return i&&Rf(Qm(this._lContainer),e)!=null?new aa(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function Qw(t){return t[Nf]}function Qm(t){return t[Nf]||(t[Nf]=[])}function mS(t,n){let e,i=n[t.index];return As(i)?e=i:(e=nS(i,n,null,t),n[t.index]=e,gh(n,e)),dL(e,n,t,i),new pS(e,t,n)}function uL(t,n){let e=t[In],i=e.createComment(""),r=xr(n,t),s=V1(e,r);return jf(e,s,i,GO(e,r),!1),i}var dL=pL,fL=()=>!1;function hL(t,n,e){return fL(t,n,e)}function pL(t,n,e,i){if(t[ia])return;let r;e.type&8?r=rs(i):r=uL(n,e),t[ia]=r}var Ug=class t{constructor(n){this.queryList=n,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Wg=class t{constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){let o=e.getByIndex(s),a=this.queries[o.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)X1(n,e).matches!==null&&this.queries[e].setDirty()}},qf=class{constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=wL(n):this.predicate=n}},$g=class t{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,s=this.getByIndex(i).embeddedTView(n,r);s&&(s.indexInDeclarationView=i,e!==null?e.push(s):e=[s])}return e!==null?new t(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Gg=class t{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let s=i[r];this.matchTNodeWithReadOption(n,e,mL(e,s)),this.matchTNodeWithReadOption(n,e,Mf(e,n,s,!1,!1))}else i===zr?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Mf(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===gt||r===Ur||r===zr&&e.type&4)this.addMatch(e.index,-2);else{let s=Mf(e,n,r,!1,!1);s!==null&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};function mL(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1]}return null}function gL(t,n){return t.type&11?El(t,n):t.type&4?vh(t,n):null}function vL(t,n,e,i){return e===-1?gL(n,t):e===-2?_L(t,n,i):oa(t,t[Ct],e,n)}function _L(t,n,e){if(e===gt)return El(n,t);if(e===zr)return vh(n,t);if(e===Ur)return mS(n,t)}function gS(t,n,e,i){let r=n[Is].queries[i];if(r.matches===null){let s=t.data,o=e.matches,a=[];for(let l=0;o!==null&&l<o.length;l+=2){let c=o[l];if(c<0)a.push(null);else{let u=s[c];a.push(vL(n,u,o[l+1],e.metadata.read))}}r.matches=a}return r.matches}function qg(t,n,e,i){let r=t.queries.getByIndex(e),s=r.matches;if(s!==null){let o=gS(t,n,r,e);for(let a=0;a<s.length;a+=2){let l=s[a];if(l>0)i.push(o[a/2]);else{let c=s[a+1],u=n[-l];for(let d=rr;d<u.length;d++){let f=u[d];f[nu]===f[di]&&qg(f[Ct],f,c,i)}if(u[ml]!==null){let d=u[ml];for(let f=0;f<d.length;f++){let h=d[f];qg(h[Ct],h,c,i)}}}}}return i}function yL(t,n){return t[Is].queries[n].queryList}function vS(t,n,e){let i=new bg((e&4)===4);return oR(t,n,i,i.destroy),(n[Is]??=new Wg).queries.push(new Ug(i))-1}function xL(t,n,e){let i=Rn();return i.firstCreatePass&&(_S(i,new qf(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),vS(i,ut(),n)}function bL(t,n,e,i){let r=Rn();if(r.firstCreatePass){let s=Ai();_S(r,new qf(n,e,i),s.index),CL(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return vS(r,ut(),e)}function wL(t){return t.split(",").map(n=>n.trim())}function _S(t,n,e){t.queries===null&&(t.queries=new $g),t.queries.track(new Gg(n,e))}function CL(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function X1(t,n){return t.queries.getByIndex(n)}function SL(t,n){let e=t[Ct],i=X1(e,n);return i.crossesNgTemplate?qg(e,t,n,[]):gS(e,t,i,n)}function EL(t){return typeof t=="function"&&t[Pr]!==void 0}function ar(t,n){_o("NgSignals");let e=Gb(t),i=e[Pr];return n?.equal&&(i.equal=n.equal),e.set=r=>Zd(i,r),e.update=r=>qb(i,r),e.asReadonly=TL.bind(e),e}function TL(){let t=this[Pr];if(t.readonlyFn===void 0){let n=()=>this();n[Pr]=t,t.readonlyFn=n}return t.readonlyFn}function yS(t){return EL(t)&&typeof t.set=="function"}function IL(t){return Object.getPrototypeOf(t.prototype).constructor}function We(t){let n=IL(t.type),e=!0,i=[t];for(;n;){let r;if(fo(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new De(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let o=t;o.inputs=Sf(t.inputs),o.inputTransforms=Sf(t.inputTransforms),o.declaredInputs=Sf(t.declaredInputs),o.outputs=Sf(t.outputs);let a=r.hostBindings;a&&FL(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&ML(t,l),c&&AL(t,c),DL(t,r),l4(t.outputs,r.outputs),fo(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o<s.length;o++){let a=s[o];a&&a.ngInherit&&a(t),a===We&&(e=!1)}}n=Object.getPrototypeOf(n)}kL(i)}function DL(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let i=n.inputs[e];if(i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],n.inputTransforms!==null)){let r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function kL(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Uc(r.hostAttrs,e=Uc(e,r.hostAttrs))}}function Sf(t){return t===dl?{}:t===zi?[]:t}function ML(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function AL(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,s)=>{n(i,r,s),e(i,r,s)}:t.contentQueries=n}function FL(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function Et(t){let n=t.inputConfig,e={};for(let i in n)if(n.hasOwnProperty(i)){let r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}var po=class{},Xc=class{};var Kg=class extends po{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Gf(this);let r=MC(n);this._bootstrapComponents=R2(r.bootstrap),this._r3Injector=m2(n,e,[{provide:po,useValue:this},{provide:_h,useValue:this.componentFactoryResolver},...i],Mi(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Yg=class extends Xc{constructor(n){super(),this.moduleType=n}create(n){return new Kg(this.moduleType,n,[])}};var Kf=class extends po{constructor(n){super(),this.componentFactoryResolver=new Gf(this),this.instance=null;let e=new Wc([...n.providers,{provide:po,useValue:this},{provide:_h,useValue:this.componentFactoryResolver}],n.parent||v1(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function xh(t,n,e=null){return new Kf({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var ru=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function xS(t){return Z1(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function PL(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),i;for(;!(i=e.next()).done;)n(i.value)}}function Z1(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Ps(t,n,e){return t[n]=e}function bh(t,n){return t[n]}function yr(t,n,e){let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0)}function yl(t,n,e,i){let r=yr(t,n,e);return yr(t,n+1,i)||r}function bS(t,n,e,i,r){let s=yl(t,n,e,i);return yr(t,n+2,r)||s}function wh(t,n,e,i,r,s){let o=yl(t,n,e,i);return yl(t,n+2,r,s)||o}function OL(t){return(t.flags&32)===32}function RL(t,n,e,i,r,s,o,a,l){let c=n.consts,u=Il(n,t,4,o||null,gl(c,a));W1(n,e,u,gl(c,l)),dh(n,u);let d=u.tView=U1(2,u,i,r,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return n.queries!==null&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}function N(t,n,e,i,r,s,o,a){let l=ut(),c=Rn(),u=t+Ui,d=c.firstCreatePass?RL(u,c,l,n,e,i,r,s,o):c.data[u];ua(d,!1);let f=LL(c,l,d,t);ch()&&hh(c,l,f,d),ho(f,l);let h=nS(f,l,f,d);return l[u]=h,gh(l,h),hL(h,d,l),ah(d)&&z1(c,l,d),o!=null&&j1(l,d,a),N}var LL=NL;function NL(t,n,e,i){return uh(!0),n[In].createComment("")}function ne(t,n,e,i){let r=ut(),s=lh();if(yr(r,s,n)){let o=Rn(),a=k1();bR(a,r,t,n,e,i)}return ne}function wS(t,n,e,i){return yr(t,lh(),e)?n+zc(e)+i:br}function VL(t,n,e,i,r,s){let o=TP(),a=yl(t,o,e,r);return E1(2),a?n+zc(e)+i+zc(r)+s:br}function Ef(t,n){return t<<17|n<<2}function ca(t){return t>>17&32767}function BL(t){return(t&2)==2}function HL(t,n){return t&131071|n<<17}function Xg(t){return t|2}function xl(t){return(t&131068)>>2}function Jm(t,n){return t&-131069|n<<2}function zL(t){return(t&1)===1}function Zg(t){return t|1}function jL(t,n,e,i,r,s){let o=s?n.classBindings:n.styleBindings,a=ca(o),l=xl(o);t[i]=e;let c=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||tu(d,u)>0)&&(c=!0)}else u=e;if(r)if(l!==0){let f=ca(t[a+1]);t[i+1]=Ef(f,a),f!==0&&(t[f+1]=Jm(t[f+1],i)),t[a+1]=HL(t[a+1],i)}else t[i+1]=Ef(a,0),a!==0&&(t[a+1]=Jm(t[a+1],i)),a=i;else t[i+1]=Ef(l,0),a===0?a=i:t[l+1]=Jm(t[l+1],i),l=i;c&&(t[i+1]=Xg(t[i+1])),Jw(t,u,i,!0),Jw(t,u,i,!1),UL(n,u,t,i,s),o=Ef(a,l),s?n.classBindings=o:n.styleBindings=o}function UL(t,n,e,i,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof n=="string"&&tu(s,n)>=0&&(e[i+1]=Zg(e[i+1]))}function Jw(t,n,e,i){let r=t[e+1],s=n===null,o=i?ca(r):xl(r),a=!1;for(;o!==0&&(a===!1||s);){let l=t[o],c=t[o+1];WL(l,n)&&(a=!0,t[o+1]=i?Zg(c):Xg(c)),o=i?ca(c):xl(c)}a&&(t[e+1]=i?Xg(r):Zg(r))}function WL(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?tu(t,n)>=0:!1}var Yn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function CS(t){return t.substring(Yn.key,Yn.keyEnd)}function $L(t){return t.substring(Yn.value,Yn.valueEnd)}function GL(t){return TS(t),SS(t,bl(t,0,Yn.textEnd))}function SS(t,n){let e=Yn.textEnd;return e===n?-1:(n=Yn.keyEnd=KL(t,Yn.key=n,e),bl(t,n,e))}function qL(t){return TS(t),ES(t,bl(t,0,Yn.textEnd))}function ES(t,n){let e=Yn.textEnd,i=Yn.key=bl(t,n,e);return e===i?-1:(i=Yn.keyEnd=YL(t,i,e),i=eC(t,i,e,58),i=Yn.value=bl(t,i,e),i=Yn.valueEnd=XL(t,i,e),eC(t,i,e,59))}function TS(t){Yn.key=0,Yn.keyEnd=0,Yn.value=0,Yn.valueEnd=0,Yn.textEnd=t.length}function bl(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function KL(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}function YL(t,n,e){let i;for(;n<e&&((i=t.charCodeAt(n))===45||i===95||(i&-33)>=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function eC(t,n,e,i){return n=bl(t,n,e),n<e&&n++,n}function XL(t,n,e){let i=-1,r=-1,s=-1,o=n,a=o;for(;o<e;){let l=t.charCodeAt(o++);if(l===59)return a;l===34||l===39?a=o=tC(t,l,o,e):n===o-4&&s===85&&r===82&&i===76&&l===40?a=o=tC(t,41,o,e):l>32&&(a=o),s=r,r=i,i=l&-33}return a}function tC(t,n,e,i){let r=-1,s=e;for(;s<i;){let o=t.charCodeAt(s++);if(o==n&&r!==92)return s;o==92&&r===92?r=0:r=o}throw new Error}function b(t,n,e){let i=ut(),r=lh();if(yr(i,r,n)){let s=Rn(),o=k1();J2(s,o,i,t,n,i[In],e,!1)}return b}function Qg(t,n,e,i,r){let s=n.inputs,o=r?"class":"style";$1(t,e,s[o],o,i)}function da(t,n,e){return DS(t,n,e,!1),da}function Xn(t,n){return DS(t,n,null,!0),Xn}function fa(t){Q1(AS,ZL,t,!1)}function ZL(t,n){for(let e=qL(n);e>=0;e=ES(n,e))AS(t,CS(n),$L(n))}function be(t){Q1(i6,IS,t,!0)}function IS(t,n){for(let e=GL(n);e>=0;e=SS(n,e))eu(t,CS(n),!0)}function DS(t,n,e,i){let r=ut(),s=Rn(),o=E1(2);if(s.firstUpdatePass&&MS(s,t,o,i),n!==br&&yr(r,o,n)){let a=s.data[go()];FS(s,a,r,r[In],t,r[o+1]=s6(n,e),i,o)}}function Q1(t,n,e,i){let r=Rn(),s=E1(2);r.firstUpdatePass&&MS(r,null,s,i);let o=ut();if(e!==br&&yr(o,s,e)){let a=r.data[go()];if(PS(a,i)&&!kS(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=sg(l,e||"")),Qg(r,a,o,e,i)}else r6(r,a,o,o[In],o[s+1],o[s+1]=n6(t,n,e),i,s)}}function kS(t,n){return n>=t.expandoStartIndex}function MS(t,n,e,i){let r=t.data;if(r[e+1]===null){let s=r[go()],o=kS(t,e);PS(s,i)&&n===null&&!o&&(n=!1),n=QL(r,s,n,i),jL(r,s,n,e,o,i)}}function QL(t,n,e,i){let r=AP(t),s=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=eg(null,t,n,e,i),e=Zc(e,n.attrs,i),s=null);else{let o=n.directiveStylingLast;if(o===-1||t[o]!==r)if(e=eg(r,t,n,e,i),s===null){let l=JL(t,n,i);l!==void 0&&Array.isArray(l)&&(l=eg(null,t,n,l[1],i),l=Zc(l,n.attrs,i),e6(t,n,i,l))}else s=t6(t,n,i)}return s!==void 0&&(i?n.residualClasses=s:n.residualStyles=s),e}function JL(t,n,e){let i=e?n.classBindings:n.styleBindings;if(xl(i)!==0)return t[ca(i)]}function e6(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[ca(r)]=i}function t6(t,n,e){let i,r=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<r;s++){let o=t[s].hostAttrs;i=Zc(i,o,e)}return Zc(i,n.attrs,e)}function eg(t,n,e,i,r){let s=null,o=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<o&&(s=n[a],i=Zc(i,s.hostAttrs,r),s!==t);)a++;return t!==null&&(e.directiveStylingLast=a),i}function Zc(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let s=0;s<n.length;s++){let o=n[s];typeof o=="number"?r=o:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),eu(t,o,e?!0:n[++s]))}return t===void 0?null:t}function n6(t,n,e){if(e==null||e==="")return zi;let i=[],r=os(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if(typeof r=="object")for(let s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else typeof r=="string"&&n(i,r);return i}function AS(t,n,e){eu(t,n,os(e))}function i6(t,n,e){let i=String(n);i!==""&&!i.includes(" ")&&eu(t,i,e)}function r6(t,n,e,i,r,s,o,a){r===br&&(r=zi);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;u!==null||d!==null;){let f=l<r.length?r[l+1]:void 0,h=c<s.length?s[c+1]:void 0,m=null,p;u===d?(l+=2,c+=2,f!==h&&(m=d,p=h)):d===null||u!==null&&u<d?(l+=2,m=u):(c+=2,m=d,p=h),m!==null&&FS(t,n,e,i,m,p,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}function FS(t,n,e,i,r,s,o,a){if(!(n.type&3))return;let l=t.data,c=l[a+1],u=zL(c)?nC(l,n,e,r,xl(c),o):void 0;if(!Yf(u)){Yf(s)||BL(c)&&(s=nC(l,null,e,r,a,o));let d=$C(go(),e);QO(i,o,d,r,s)}}function nC(t,n,e,i,r,s){let o=n===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,f=e[r+1];f===br&&(f=d?zi:void 0);let h=d?Wm(f,i):u===i?f:void 0;if(c&&!Yf(h)&&(h=Wm(l,i)),Yf(h)&&(a=h,o))return a;let m=t[r+1];r=o?ca(m):xl(m)}if(n!==null){let l=s?n.residualClasses:n.residualStyles;l!=null&&(a=Wm(l,i))}return a}function Yf(t){return t!==void 0}function s6(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Mi(os(t)))),t}function PS(t,n){return(t.flags&(n?8:16))!==0}function OS(t,n,e){let i=ut(),r=wS(i,t,n,e);Q1(eu,IS,r,!0)}function o6(t,n,e,i,r,s){let o=n.consts,a=gl(o,r),l=Il(n,t,2,i,a);return W1(n,e,l,gl(o,s)),l.attrs!==null&&$f(l,l.attrs,!1),l.mergedAttrs!==null&&$f(l,l.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,l),l}function P(t,n,e,i){let r=ut(),s=Rn(),o=Ui+t,a=r[In],l=s.firstCreatePass?o6(o,s,r,n,e,i):s.data[o],c=a6(s,r,l,a,n,t);r[o]=c;let u=ah(l);return ua(l,!0),G2(a,c,l),!OL(l)&&ch()&&hh(s,r,c,l),yP()===0&&ho(c,r),xP(),u&&(z1(s,r,l),H1(s,l,r)),i!==null&&j1(r,l),P}function O(){let t=Ai();C1()?S1():(t=t.parent,ua(t,!1));let n=t;wP(n)&&CP(),bP();let e=Rn();return e.firstCreatePass&&(dh(e,t),y1(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&VP(n)&&Qg(e,n,ut(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&BP(n)&&Qg(e,n,ut(),n.stylesWithoutHost,!1),O}function re(t,n,e,i){return P(t,n,e,i),O(),re}var a6=(t,n,e,i,r,s)=>(uh(!0),L2(i,r,OP()));function l6(t,n,e,i,r){let s=n.consts,o=gl(s,i),a=Il(n,t,8,"ng-container",o);o!==null&&$f(a,o,!0);let l=gl(s,r);return W1(n,e,a,l),n.queries!==null&&n.queries.elementStart(n,a),a}function Fe(t,n,e){let i=ut(),r=Rn(),s=t+Ui,o=r.firstCreatePass?l6(s,r,i,n,e):r.data[s];ua(o,!0);let a=c6(r,i,o,t);return i[s]=a,ch()&&hh(r,i,a,o),ho(a,i),ah(o)&&(z1(r,i,o),H1(r,o,i)),e!=null&&j1(i,o),Fe}function Pe(){let t=Ai(),n=Rn();return C1()?S1():(t=t.parent,ua(t,!1)),n.firstCreatePass&&(dh(n,t),y1(t)&&n.queries.elementEnd(t)),Pe}function Re(t,n,e){return Fe(t,n,e),Pe(),Re}var c6=(t,n,e,i)=>(uh(!0),LO(n[In],""));function He(){return ut()}var Qo=void 0;function u6(t){let n=t,e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var d6=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["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"]],Qo,[["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"]],Qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",u6],tg={};function Ch(t){let n=f6(t),e=iC(n);if(e)return e;let i=n.split("-")[0];if(e=iC(i),e)return e;if(i==="en")return d6;throw new De(701,!1)}function iC(t){return t in tg||(tg[t]=Lr.ng&&Lr.ng.common&&Lr.ng.common.locales&&Lr.ng.common.locales[t]),tg[t]}var ha=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(ha||{});function f6(t){return t.toLowerCase().replace(/_/g,"-")}var Xf="en-US",h6="USD";var p6=Xf;function m6(t){typeof t=="string"&&(p6=t.toLowerCase().replace(/_/g,"-"))}function ye(t,n,e,i){let r=ut(),s=Rn(),o=Ai();return RS(s,r,r[In],o,t,n,i),ye}function g6(t,n,e,i){let r=t.cleanup;if(r!=null)for(let s=0;s<r.length-1;s+=2){let o=r[s];if(o===e&&r[s+1]===i){let a=n[Gc],l=r[s+2];return a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function RS(t,n,e,i,r,s,o){let a=ah(i),c=t.firstCreatePass&&sS(t),u=n[Vr],d=rS(n),f=!0;if(i.type&3||o){let p=xr(i,n),g=o?o(p):p,v=d.length,_=o?x=>o(rs(x[i.index])):i.index,y=null;if(!o&&a&&(y=g6(t,n,r,i.index)),y!==null){let x=y.__ngLastListenerFn__||y;x.__ngNextListenerFn__=s,y.__ngLastListenerFn__=s,f=!1}else{s=sC(i,n,u,s,!1);let x=e.listen(g,r,s);d.push(s,x),c&&c.push(r,_,v,v+1)}}else s=sC(i,n,u,s,!1);let h=i.outputs,m;if(f&&h!==null&&(m=h[r])){let p=m.length;if(p)for(let g=0;g<p;g+=2){let v=m[g],_=m[g+1],w=n[v][_].subscribe(s),T=d.length;d.push(s,w),c&&c.push(r,i.index,T,-(T+1))}}}function rC(t,n,e,i){let r=Gt(null);try{return es(6,n,e),e(i)!==!1}catch(s){return oS(t,s),!1}finally{es(7,n,e),Gt(r)}}function sC(t,n,e,i,r){return function s(o){if(o===Function)return i;let a=t.componentOffset>-1?mo(t.index,n):n;q1(a);let l=rC(n,e,i,o),c=s.__ngNextListenerFn__;for(;c;)l=rC(n,e,c,o)&&l,c=c.__ngNextListenerFn__;return r&&l===!1&&o.preventDefault(),l}}function I(t=1){return PP(t)}function v6(t,n){let e=null,i=B4(t);for(let r=0;r<n.length;r++){let s=n[r];if(s==="*"){e=r;continue}if(i===null?TC(t,s,!0):j4(i,s))return r}return e}function Ln(t){let n=ut()[Br][sr];if(!n.projection){let e=t?t.length:1,i=n.projection=k4(e,null),r=i.slice(),s=n.child;for(;s!==null;){let o=t?v6(s,t):0;o!==null&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function cn(t,n=0,e){let i=ut(),r=Rn(),s=Il(r,Ui+t,16,null,e||null);s.projection===null&&(s.projection=n),S1(),(!i[$c]||XC())&&(s.flags&32)!==32&&XO(r,i,s)}function jt(t,n,e,i){bL(t,n,e,i)}function vt(t,n,e){xL(t,n,e)}function qe(t){let n=ut(),e=Rn(),i=QC();T1(i+1);let r=X1(e,i);if(t.dirty&&pP(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let s=SL(n,i);t.reset(s,QP),t.notifyOnChanges()}return!0}return!1}function Ke(){return yL(ut(),QC())}function _6(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function mn(t){let n=EP();return x1(n,Ui+t)}function Te(t,n=""){let e=ut(),i=Rn(),r=t+Ui,s=i.firstCreatePass?Il(i,r,1,n,null):i.data[r],o=y6(i,e,s,n,t);e[r]=o,ch()&&hh(i,e,o,s),ua(s,!1)}var y6=(t,n,e,i,r)=>(uh(!0),OO(n[In],i));function yt(t){return Vt("",t,""),yt}function Vt(t,n,e){let i=ut(),r=wS(i,t,n,e);return r!==br&&aS(i,go(),r),Vt}function J1(t,n,e,i,r){let s=ut(),o=VL(s,t,n,e,i,r);return o!==br&&aS(s,go(),o),J1}function Os(t,n,e){yS(n)&&(n=n());let i=ut(),r=lh();if(yr(i,r,n)){let s=Rn(),o=k1();J2(s,o,i,t,n,i[In],e,!1)}return Os}function yo(t,n){let e=yS(t);return e&&t.set(n),e}function Rs(t,n){let e=ut(),i=Rn(),r=Ai();return RS(i,e,e[In],r,t,n),Rs}function x6(t,n,e){let i=Rn();if(i.firstCreatePass){let r=fo(t);Jg(e,i.data,i.blueprint,r,!0),Jg(n,i.data,i.blueprint,r,!1)}}function Jg(t,n,e,i,r){if(t=ki(t),Array.isArray(t))for(let s=0;s<t.length;s++)Jg(t[s],n,e,i,r);else{let s=Rn(),o=ut(),a=Ai(),l=hl(t)?t:ki(t.provide),c=LC(t),u=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(hl(t)||!t.multi){let h=new sa(c,r,se),m=ig(l,n,r?u:u+f,d);m===-1?(vg(zf(a,o),s,l),ng(s,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(h),o.push(h)):(e[m]=h,o[m]=h)}else{let h=ig(l,n,u+f,d),m=ig(l,n,u,u+f),p=h>=0&&e[h],g=m>=0&&e[m];if(r&&!g||!r&&!p){vg(zf(a,o),s,l);let v=C6(r?w6:b6,e.length,r,i,c);!r&&g&&(e[m].providerFactory=v),ng(s,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(v),o.push(v)}else{let v=LS(e[r?m:h],c,!r&&i);ng(s,t,h>-1?h:m,v)}!r&&i&&g&&e[m].componentProviders++}}}function ng(t,n,e,i){let r=hl(n),s=J4(n);if(r||s){let l=(s?ki(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let u=c.indexOf(e);u===-1?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function LS(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function ig(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function b6(t,n,e,i){return e1(this.multi,[])}function w6(t,n,e,i){let r=this.multi,s;if(this.providerFactory){let o=this.providerFactory.componentProviders,a=oa(e,e[Ct],this.providerFactory.index,i);s=a.slice(0,o),e1(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],e1(r,s);return s}function e1(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i())}return n}function C6(t,n,e,i,r){let s=new sa(t,e,se);return s.multi=[],s.index=n,s.componentProviders=0,LS(s,r,i&&!e),s}function kn(t,n=[]){return e=>{e.providersResolver=(i,r)=>x6(i,r?r(t):t,n)}}var S6=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=PC(!1,e.type),r=i.length>0?xh([i],this._injector,`Standalone[${e.type.name}]`):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{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(st(ji))})}}return t})();function Me(t){_o("NgStandalone"),t.getStandaloneInjector=n=>n.get(S6).getOrCreateStandaloneInjector(t)}function Bn(t,n,e){let i=jr()+t,r=ut();return r[i]===br?Ps(r,i,e?n.call(e):n()):bh(r,i)}function Xe(t,n,e,i){return VS(ut(),jr(),t,n,e,i)}function Zt(t,n,e,i,r){return E6(ut(),jr(),t,n,e,i,r)}function fi(t,n,e,i,r,s){return T6(ut(),jr(),t,n,e,i,r,s)}function pa(t,n,e,i,r,s,o){return BS(ut(),jr(),t,n,e,i,r,s,o)}function Dl(t,n,e,i,r,s,o,a){let l=jr()+t,c=ut(),u=wh(c,l,e,i,r,s);return yr(c,l+4,o)||u?Ps(c,l+5,a?n.call(a,e,i,r,s,o):n(e,i,r,s,o)):bh(c,l+5)}function ma(t,n,e,i,r,s,o,a,l){let c=jr()+t,u=ut(),d=wh(u,c,e,i,r,s);return yl(u,c+4,o,a)||d?Ps(u,c+6,l?n.call(l,e,i,r,s,o,a):n(e,i,r,s,o,a)):bh(u,c+6)}function NS(t,n,e,i,r,s,o,a,l,c){let u=jr()+t,d=ut(),f=wh(d,u,e,i,r,s);return bS(d,u+4,o,a,l)||f?Ps(d,u+7,c?n.call(c,e,i,r,s,o,a,l):n(e,i,r,s,o,a,l)):bh(d,u+7)}function su(t,n,e,i){return I6(ut(),jr(),t,n,e,i)}function ou(t,n){let e=t[n];return e===br?void 0:e}function VS(t,n,e,i,r,s){let o=n+e;return yr(t,o,r)?Ps(t,o+1,s?i.call(s,r):i(r)):ou(t,o+1)}function E6(t,n,e,i,r,s,o){let a=n+e;return yl(t,a,r,s)?Ps(t,a+2,o?i.call(o,r,s):i(r,s)):ou(t,a+2)}function T6(t,n,e,i,r,s,o,a){let l=n+e;return bS(t,l,r,s,o)?Ps(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):ou(t,l+3)}function BS(t,n,e,i,r,s,o,a,l){let c=n+e;return wh(t,c,r,s,o,a)?Ps(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):ou(t,c+4)}function I6(t,n,e,i,r,s){let o=n+e,a=!1;for(let l=0;l<r.length;l++)yr(t,o++,r[l])&&(a=!0);return a?Ps(t,o,i.apply(s,r)):ou(t,o)}function ev(t,n){let e=Rn(),i,r=t+Ui;e.firstCreatePass?(i=D6(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let s=i.factory||(i.factory=ta(i.type,!0)),o,a=Hi(se);try{let l=Hf(!1),c=s();return Hf(l),_6(e,ut(),r,c),c}finally{Hi(a)}}function D6(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function HS(t,n,e){let i=t+Ui,r=ut(),s=x1(r,i);return jS(r,i)?VS(r,jr(),n,s.transform,e,s):s.transform(e)}function zS(t,n,e,i,r,s){let o=t+Ui,a=ut(),l=x1(a,o);return jS(a,o)?BS(a,jr(),n,l.transform,e,i,r,s,l):l.transform(e,i,r,s)}function jS(t,n){return t[Ct].data[n].pure}function ei(t,n){return vh(t,n)}var Sh=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();var US=new it("");function Ls(t){return!!t&&typeof t.then=="function"}function WS(t){return!!t&&typeof t.subscribe=="function"}var Eh=new it(""),$S=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=_e(Eh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let s=r();if(Ls(s))e.push(s);else if(WS(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Th=new it("");function k6(){$b(()=>{throw new De(600,!1)})}function M6(t){return t.isBoundToModule}function A6(t,n,e){try{let i=e();return Ls(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}var au=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=_e(g2),this.afterRenderEffectManager=_e(Y1),this.externalTestViews=new Set,this.beforeRender=new Ht,this.afterTick=new Ht,this.componentTypes=[],this.components=[],this.isStable=_e(ru).hasPendingTasks.pipe(wt(e=>!e)),this._injector=_e(ji)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){let r=e instanceof Wf;if(!this._injector.get($S).done){let f=!r&&kC(e),h=!1;throw new De(405,h)}let o;r?o=e:o=this._injector.get(_h).resolveComponentFactory(e),this.componentTypes.push(o.componentType);let a=M6(o)?void 0:this._injector.get(po),l=i||o.selector,c=o.create(or.NULL,[],l,a),u=c.location.nativeElement,d=c.injector.get(US,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),rg(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new De(101,!1);let i=Gt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,Gt(i)}}detectChangesInAttachedViews(e){let i=0,r=this.afterRenderEffectManager;for(;;){if(i===cS)throw new De(103,!1);if(e){let s=i===0;this.beforeRender.next(s);for(let{_lView:o,notifyErrorHandler:a}of this._views)F6(o,s,a)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>t1(s))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>t1(s))))break}}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;rg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let i=this._injector.get(Th,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new De(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function rg(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function F6(t,n,e){!n&&!t1(t)||P6(t,e,n)}function t1(t){return w1(t)}function P6(t,n,e){let i;e?(i=0,t[lt]|=1024):t[lt]&64?i=0:i=1,uS(t,n,i)}var n1=class{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Ih=(()=>{class t{compileModuleSync(e){return new Yg(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=MC(e),s=R2(r.declarations).reduce((o,a)=>{let l=uo(a);return l&&o.push(new _l(l)),o},[]);return new n1(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var O6=(()=>{class t{constructor(){this.zone=_e(rt),this.applicationRef=_e(au)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function R6(t){return[{provide:rt,useFactory:t},{provide:fl,multi:!0,useFactory:()=>{let n=_e(O6,{optional:!0});return()=>n.initialize()}},{provide:fl,multi:!0,useFactory:()=>{let n=_e(B6);return()=>{n.initialize()}}},{provide:g2,useFactory:L6}]}function L6(){let t=_e(rt),n=_e(Hr);return e=>t.runOutsideAngular(()=>n.handleError(e))}function N6(t){let n=R6(()=>new rt(V6(t)));return nh([[],n])}function V6(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var B6=(()=>{class t{constructor(){this.subscription=new Gn,this.initialized=!1,this.zone=_e(rt),this.pendingTasks=_e(ru)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{rt.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function H6(){return typeof $localize<"u"&&$localize.locale||Xf}var Dh=new it("",{providedIn:"root",factory:()=>_e(Dh,Dt.Optional|Dt.SkipSelf)||H6()}),GS=new it("",{providedIn:"root",factory:()=>h6});var qS=new it("");var Ff=null;function z6(t=[],n){return or.create({name:n,providers:[{provide:ih,useValue:"platform"},{provide:qS,useValue:new Set([()=>Ff=null])},...t]})}function j6(t=[]){if(Ff)return Ff;let n=z6(t);return Ff=n,k6(),U6(n),n}function U6(t){t.get(F1,null)?.forEach(e=>e())}var Lt=(()=>{class t{static{this.__NG_ELEMENT_ID__=W6}}return t})();function W6(t){return $6(Ai(),ut(),(t&16)===16)}function $6(t,n,e){if(oh(t)&&!e){let i=mo(t.index,n);return new aa(i,i)}else if(t.type&47){let i=n[Br];return new aa(i,n)}return null}var i1=class{constructor(){}supports(n){return xS(n)}create(n){return new r1(n)}},G6=(t,n)=>n,r1=class{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||G6}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){let o=!i||e&&e.currentIndex<oC(i,r,s)?e:i,a=oC(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,o.previousIndex==null)r++;else{s||(s=[]);let c=a-r,u=l-r;if(c!=u){for(let f=0;f<c;f++){let h=f<s.length?s[f]:s[f]=0,m=h+f;u<=m&&m<c&&(s[f]=h+1)}let d=o.previousIndex;s[d]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e)}diff(n){if(n==null&&(n=[]),!xS(n))throw new De(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._itHead,i=!1,r,s,o;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)s=n[a],o=this._trackByFn(a,s),e===null||!Object.is(e.trackById,o)?(e=this._mismatch(e,s,o,a),i=!0):(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next}else r=0,PL(n,a=>{o=this._trackByFn(r,a),e===null||!Object.is(e.trackById,o)?(e=this._mismatch(e,a,o,r),i=!0):(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let s;return n===null?s=this._itTail:(s=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,s,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,s,r)):n=this._addAfter(new s1(e,i),s,r)),n}_verifyReinsertion(n,e,i,r){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return s!==null?n=this._reinsertAfter(s,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,s=n._nextRemoved;return r===null?this._removalsHead=s:r._nextRemoved=s,s===null?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Zf),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Zf),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},s1=class{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},o1=class{constructor(){this._head=null,this._tail=null}add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Zf=class{constructor(){this.map=new Map}put(n){let e=n.trackById,i=this.map.get(e);i||(i=new o1,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function oC(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}var a1=class{constructor(){}supports(n){return n instanceof Map||Z1(n)}create(){return new l1}},l1=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(n){let e;for(e=this._mapHead;e!==null;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}diff(n){if(!n)n=new Map;else if(!(n instanceof Map||Z1(n)))throw new De(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let r=this._records.get(n);this._maybeAddToChanges(r,e);let s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}let i=new c1(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}},c1=class{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function aC(){return new tv([new i1])}var tv=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:aC})}constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||aC()),deps:[[t,new eh,new Jc]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new De(901,!1)}}return t})();function lC(){return new nv([new a1])}var nv=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:lC})}constructor(e){this.factories=e}static create(e,i){if(i){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||lC()),deps:[[t,new eh,new Jc]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i)return i;throw new De(901,!1)}}return t})();function KS(t){try{let{rootComponent:n,appProviders:e,platformProviders:i}=t,r=j6(i),s=[N6(),...e||[]],a=new Kf({providers:s,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(rt);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(Hr,null),u;l.runOutsideAngular(()=>{u=l.onError.subscribe({next:h=>{c.handleError(h)}})});let d=()=>a.destroy(),f=r.get(qS);return f.add(d),a.onDestroy(()=>{u.unsubscribe(),f.delete(d)}),A6(c,l,()=>{let h=a.get($S);return h.runInitializers(),h.donePromise.then(()=>{let m=a.get(Dh,Xf);m6(m||Xf);let p=a.get(au);return n!==void 0&&p.bootstrap(n),p})})})}catch(n){return Promise.reject(n)}}function oe(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Je(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function kl(t,n){_o("NgSignals");let e=jb(t);return n?.equal&&(e[Pr].equal=n.equal),e}var q6=new it("",{providedIn:"root",factory:()=>_e(K6)}),K6=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new u1})}}return t})(),u1=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=_e(ru),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){let e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},d1=class{constructor(n,e,i,r,s,o){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=s,this.watcher=Kb(a=>this.runEffect(a),()=>this.schedule(),o),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(Hr,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function kh(t,n){_o("NgSignals"),!n?.injector&&rh(kh);let e=n?.injector??_e(or),i=n?.manualCleanup!==!0?e.get(Cl):null,r=new d1(e.get(q6),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),s=e.get(Lt,null,{optional:!0});return!s||!(s._lView[lt]&8)?r.watcher.notify():(s._lView[If]??=[]).push(r.watcher.notify),r}function YS(t){let n=uo(t);if(!n)return null;let e=new _l(n);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 n.standalone},get isSignal(){return n.signals}}}var iE=null;function Bs(){return iE}function rE(t){iE??=t}var Mh=class{};var Tt=new it(""),dv=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>_e(Z6),providedIn:"platform"})}}return t})(),sE=new it(""),Z6=(()=>{class t extends dv{constructor(){super(),this._doc=_e(Tt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Bs().getBaseHref(this._doc)}onPopState(e){let i=Bs().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Bs().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function fv(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function XS(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,i=e-(t[e-1]==="/"?1:0);return t.slice(0,i)+t.slice(e)}function Ns(t){return t&&t[0]!=="?"?"?"+t:t}var ga=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>_e(hv),providedIn:"root"})}}return t})(),oE=new it(""),hv=(()=>{class t extends ga{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??_e(Tt).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 fv(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Ns(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+Ns(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+Ns(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(st(dv),st(oE,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),aE=(()=>{class t extends ga{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=fv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+Ns(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+Ns(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(st(dv),st(oE,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Ml=(()=>{class t{constructor(e){this._subject=new ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=eN(XS(ZS(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ns(i))}normalize(e){return t.stripTrailingSlash(J6(this._basePath,ZS(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static{this.normalizeQueryParams=Ns}static{this.joinWithSlash=fv}static{this.stripTrailingSlash=XS}static{this.\u0275fac=function(i){return new(i||t)(st(ga))}}static{this.\u0275prov=$e({token:t,factory:()=>Q6(),providedIn:"root"})}}return t})();function Q6(){return new Ml(st(ga))}function J6(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function ZS(t){return t.replace(/\/index.html$/,"")}function eN(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var lE={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},cE=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(cE||{});var Vs={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 lu(t,n){let e=Ch(t),i=e[ha.NumberSymbols][n];if(typeof i>"u"){if(n===Vs.CurrencyDecimal)return e[ha.NumberSymbols][Vs.Decimal];if(n===Vs.CurrencyGroup)return e[ha.NumberSymbols][Vs.Group]}return i}function tN(t,n){return Ch(t)[ha.NumberFormats][n]}function nN(t){return Ch(t)[ha.Currencies]}function iN(t,n,e="en"){let i=nN(e)[t]||lE[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var rN=2;function sN(t){let n,e=lE[t];return e&&(n=e[2]),typeof n=="number"?n:rN}var oN=/^(\d+)?\.((\d+)(-(\d+))?)?$/,QS=22,Ah=".",cu="0",aN=";",lN=",",iv="#",JS="\xA4";function cN(t,n,e,i,r,s,o=!1){let a="",l=!1;if(!isFinite(t))a=lu(e,Vs.Infinity);else{let c=hN(t);o&&(c=fN(c));let u=n.minInt,d=n.minFrac,f=n.maxFrac;if(s){let _=s.match(oN);if(_===null)throw new Error(`${s} is not a valid digit info`);let y=_[1],x=_[3],w=_[5];y!=null&&(u=rv(y)),x!=null&&(d=rv(x)),w!=null?f=rv(w):x!=null&&d>f&&(f=d)}pN(c,d,f);let h=c.digits,m=c.integerLen,p=c.exponent,g=[];for(l=h.every(_=>!_);m<u;m++)h.unshift(0);for(;m<0;m++)h.unshift(0);m>0?g=h.splice(m,h.length):(g=h,h=[0]);let v=[];for(h.length>=n.lgSize&&v.unshift(h.splice(-n.lgSize,h.length).join(""));h.length>n.gSize;)v.unshift(h.splice(-n.gSize,h.length).join(""));h.length&&v.unshift(h.join("")),a=v.join(lu(e,i)),g.length&&(a+=lu(e,r)+g.join("")),p&&(a+=lu(e,Vs.Exponential)+"+"+p)}return t<0&&!l?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function uN(t,n,e,i,r){let s=tN(n,cE.Currency),o=dN(s,lu(n,Vs.MinusSign));return o.minFrac=sN(i),o.maxFrac=o.minFrac,cN(t,o,n,Vs.CurrencyGroup,Vs.CurrencyDecimal,r).replace(JS,e).replace(JS,"").trim()}function dN(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(aN),r=i[0],s=i[1],o=r.indexOf(Ah)!==-1?r.split(Ah):[r.substring(0,r.lastIndexOf(cu)+1),r.substring(r.lastIndexOf(cu)+1)],a=o[0],l=o[1]||"";e.posPre=a.substring(0,a.indexOf(iv));for(let u=0;u<l.length;u++){let d=l.charAt(u);d===cu?e.minFrac=e.maxFrac=u+1:d===iv?e.maxFrac=u+1:e.posSuf+=d}let c=a.split(lN);if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,s){let u=r.length-e.posPre.length-e.posSuf.length,d=s.indexOf(iv);e.negPre=s.substring(0,d).replace(/'/g,""),e.negSuf=s.slice(d+u).replace(/'/g,"")}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}function fN(t){if(t.digits[0]===0)return t;let n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(n===0?t.digits.push(0,0):n===1&&t.digits.push(0),t.integerLen+=2),t}function hN(t){let n=Math.abs(t)+"",e=0,i,r,s,o,a;for((r=n.indexOf(Ah))>-1&&(n=n.replace(Ah,"")),(s=n.search(/e/i))>0?(r<0&&(r=s),r+=+n.slice(s+1),n=n.substring(0,s)):r<0&&(r=n.length),s=0;n.charAt(s)===cu;s++);if(s===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===cu;)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(n.charAt(s))}return r>QS&&(i=i.splice(0,QS-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function pN(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen,s=Math.min(Math.max(n,r),e),o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let d=o;d<i.length;d++)i[d]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let d=1;d<o;d++)i[d]=0}if(a>=5)if(o-1<0){for(let d=0;d>o;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let l=s!==0,c=n+t.integerLen,u=i.reduceRight(function(d,f,h,m){return f=f+d,m[h]=f<10?f:f-10,l&&(m[h]===0&&h>=c?m.pop():l=!1),f>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}function rv(t){let n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function uE(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,s]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(s)}return null}var sv=/\s+/,eE=[],zt=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=eE,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(sv):eE}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(sv):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(sv).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(i){return new(i||t)(se(gt),se(ln))}}static{this.\u0275dir=kt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Z.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();var ov=class{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},wi=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new ov(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)i.remove(s===null?void 0:s);else if(s!==null){let a=i.get(s);i.move(a,o),tE(a,r)}});for(let r=0,s=i.length;r<s;r++){let a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let s=i.get(r.currentIndex);tE(s,r)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(se(Ur),se(zr),se(tv))}}static{this.\u0275dir=kt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function tE(t,n){t.context.$implicit=n.item}var Ut=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new av,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){nE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){nE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(se(Ur),se(zr))}}static{this.\u0275dir=kt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),av=class{constructor(){this.$implicit=null,this.ngIf=null}};function nE(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Mi(n)}'.`)}var Bt=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){let[r,s]=e.split("."),o=r.indexOf("-")===-1?void 0:ss.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${i}${s}`:i,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(se(gt),se(nv),se(ln))}}static{this.\u0275dir=kt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),qt=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||t)(se(Ur))}}static{this.\u0275dir=kt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[xn]})}}return t})();function mN(t,n){return new De(2100,!1)}var dE=(()=>{class t{constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",s,o){if(!gN(e))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let a=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?a=iN(a,r==="symbol"?"wide":"narrow",o):a=r);try{let l=vN(e);return uN(l,o,a,i,s)}catch(l){throw mN(t,l.message)}}static{this.\u0275fac=function(i){return new(i||t)(se(Dh,16),se(GS,16))}}static{this.\u0275pipe=th({name:"currency",type:t,pure:!0,standalone:!0})}}return t})();function gN(t){return!(t==null||t===""||t!==t)}function vN(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var It=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=tt({type:t})}static{this.\u0275inj=et({})}}return t})(),pv="browser",_N="server";function gn(t){return t===pv}function mv(t){return t===_N}var fE=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>gn(_e(nn))?new lv(_e(Tt),window):new cv})}}return t})(),lv=class{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=yN(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}};function yN(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(n)||s.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}var cv=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},Fh=class{};var _v=class extends Mh{constructor(){super(...arguments),this.supportsDOMEvents=!0}},yv=class t extends _v{static makeCurrent(){rE(new t)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=wN();return e==null?null:CN(e)}resetBaseElement(){uu=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return uE(document.cookie,n)}},uu=null;function wN(){return uu=uu||document.querySelector("base"),uu?uu.getAttribute("href"):null}function CN(t){return new URL(t,document.baseURI).pathname}var SN=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),xv=new it(""),mE=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(s=>s.supports(e)),!i)throw new De(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(st(xv),st(rt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Ph=class{constructor(n){this._doc=n}},gv="ng-app-id",gE=(()=>{class t{constructor(e,i,r,s={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=mv(s),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${gv}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let s=r.get(e);return s.usage+=i,s.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,s=r?.get(i);if(s?.parentNode===e)return r.delete(i),s.removeAttribute(gv),s;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=i,this.platformIsServer&&o.setAttribute(gv,this.appId),e.appendChild(o),o}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),s=this.styleRef,o=s.get(i)?.elements;o?o.push(r):s.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(st(Tt),st(A1),st(O1,8),st(nn))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),vv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},wv=/%COMP%/g,vE="%COMP%",EN=`_nghost-${vE}`,TN=`_ngcontent-${vE}`,IN=!0,DN=new it("",{providedIn:"root",factory:()=>IN});function kN(t){return TN.replace(wv,t)}function MN(t){return EN.replace(wv,t)}function _E(t,n){return n.map(e=>e.replace(wv,t))}var Oh=(()=>{class t{constructor(e,i,r,s,o,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=mv(a),this.defaultRenderer=new du(e,o,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ns.ShadowDom&&(i=ft(xe({},i),{encapsulation:ns.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Rh?r.applyToHost(e):r instanceof fu&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,s=r.get(i.id);if(!s){let o=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case ns.Emulated:s=new Rh(l,c,i,this.appId,u,o,a,d);break;case ns.ShadowDom:return new bv(l,c,e,i,o,a,this.nonce,d);default:s=new fu(l,c,i,u,o,a,d);break}r.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(st(mE),st(gE),st(A1),st(DN),st(Tt),st(nn),st(rt),st(O1))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),du=class{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(vv[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(hE(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(hE(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new De(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let s=vv[r];s?n.setAttributeNS(s,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=vv[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(ss.DashCase|ss.Important)?n.style.setProperty(e,i,r&ss.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ss.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if(typeof n=="string"&&(n=Bs().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function hE(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var bv=class extends du{constructor(n,e,i,r,s,o,a,l){super(n,s,o,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=_E(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},fu=class extends du{constructor(n,e,i,r,s,o,a,l){super(n,s,o,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?_E(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Rh=class extends fu{constructor(n,e,i,r,s,o,a,l){let c=r+"-"+i.id;super(n,e,i,s,o,a,l,c),this.contentAttr=kN(c),this.hostAttr=MN(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}},AN=(()=>{class t extends Ph{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||t)(st(Tt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),pE=["alt","control","meta","shift"],FN={"\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"},PN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ON=(()=>{class t extends Ph{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bs().onAndCancel(e,s.domEventName,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let s=t._normalizeKey(i.pop()),o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),pE.forEach(c=>{let u=i.indexOf(c);u>-1&&(i.splice(u,1),o+=c+".")}),o+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(e,i){let r=FN[e.key]||e.key,s="";return i.indexOf("code.")>-1&&(r=e.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),pE.forEach(o=>{if(o!==r){let a=PN[o];a(e)&&(s+=o+".")}}),s+=r,s===i)}static eventCallback(e,i,r){return s=>{t.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(st(Tt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function yE(t,n){return KS(xe({rootComponent:t},RN(n)))}function RN(t){return{appProviders:[...HN,...t?.providers??[]],platformProviders:BN}}function LN(){yv.makeCurrent()}function NN(){return new Hr}function VN(){return w2(document),document}var BN=[{provide:nn,useValue:pv},{provide:F1,useValue:LN,multi:!0},{provide:Tt,useFactory:VN,deps:[]}];var HN=[{provide:ih,useValue:"root"},{provide:Hr,useFactory:NN,deps:[]},{provide:xv,useClass:AN,multi:!0,deps:[Tt,rt,nn]},{provide:xv,useClass:ON,multi:!0,deps:[Tt]},Oh,gE,mE,{provide:la,useExisting:Oh},{provide:Fh,useClass:SN,deps:[]},[]];var xE=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(st(Tt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cv=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=st(zN),r},providedIn:"root"})}}return t})(),zN=(()=>{class t extends Cv{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case vo.NONE:return i;case vo.HTML:return Tl(i,"HTML")?os(i):O2(this._doc,String(i)).toString();case vo.STYLE:return Tl(i,"Style")?os(i):i;case vo.SCRIPT:if(Tl(i,"Script"))return os(i);throw new De(5200,!1);case vo.URL:return Tl(i,"URL")?os(i):L1(String(i));case vo.RESOURCE_URL:if(Tl(i,"ResourceURL"))return os(i);throw new De(5201,!1);default:throw new De(5202,!1)}}bypassSecurityTrustHtml(e){return S2(e)}bypassSecurityTrustStyle(e){return E2(e)}bypassSecurityTrustScript(e){return T2(e)}bypassSecurityTrustUrl(e){return I2(e)}bypassSecurityTrustResourceUrl(e){return D2(e)}static{this.\u0275fac=function(i){return new(i||t)(st(Tt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var bt="primary",Du=Symbol("RouteTitle"),Dv=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Rl(t){return new Dv(t)}function jN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let s=0;s<i.length;s++){let o=i[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function UN(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!as(t[e],n[e]))return!1;return!0}function as(t,n){let e=t?kv(t):void 0,i=n?kv(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!ME(t[r],n[r]))return!1;return!0}function kv(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ME(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,s)=>i[s]===r)}else return t===n}function AE(t){return t.length>0?t[t.length-1]:null}function Co(t){return Lm(t)?t:Ls(t)?pn(Promise.resolve(t)):at(t)}var WN={exact:PE,subset:OE},FE={exact:$N,subset:GN,ignored:()=>!0};function wE(t,n,e){return WN[e.paths](t.root,n.root,e.matrixParams)&&FE[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function $N(t,n){return as(t,n)}function PE(t,n,e){if(!_a(t.segments,n.segments)||!Vh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!PE(t.children[i],n.children[i],e))return!1;return!0}function GN(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ME(t[e],n[e]))}function OE(t,n,e){return RE(t,n,n.segments,e)}function RE(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!_a(r,e)||n.hasChildren()||!Vh(r,e,i))}else if(t.segments.length===e.length){if(!_a(t.segments,e)||!Vh(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!OE(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!_a(t.segments,r)||!Vh(t.segments,r,i)||!t.children[bt]?!1:RE(t.children[bt],n,s,i)}}function Vh(t,n,e){return n.every((i,r)=>FE[e](t[r].parameters,i.parameters))}var xo=class{constructor(n=new Yt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Rl(this.queryParams),this._queryParamMap}toString(){return YN.serialize(this)}},Yt=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bh(this)}},va=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Rl(this.parameters),this._parameterMap}toString(){return NE(this)}};function qN(t,n){return _a(t,n)&&t.every((e,i)=>as(e.parameters,n[i].parameters))}function _a(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function KN(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===bt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==bt&&(e=e.concat(n(r,i)))}),e}var ku=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new yu,providedIn:"root"})}}return t})(),yu=class{parse(n){let e=new Av(n);return new xo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${hu(n.root,!0)}`,i=QN(n.queryParams),r=typeof n.fragment=="string"?`#${XN(n.fragment)}`:"";return`${e}${i}${r}`}},YN=new yu;function Bh(t){return t.segments.map(n=>NE(n)).join("/")}function hu(t,n){if(!t.hasChildren())return Bh(t);if(n){let e=t.children[bt]?hu(t.children[bt],!1):"",i=[];return Object.entries(t.children).forEach(([r,s])=>{r!==bt&&i.push(`${r}:${hu(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=KN(t,(i,r)=>r===bt?[hu(t.children[bt],!1)]:[`${r}:${hu(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[bt]!=null?`${Bh(t)}/${e[0]}`:`${Bh(t)}/(${e.join("//")})`}}function LE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lh(t){return LE(t).replace(/%3B/gi,";")}function XN(t){return encodeURI(t)}function Mv(t){return LE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hh(t){return decodeURIComponent(t)}function CE(t){return Hh(t.replace(/\+/g,"%20"))}function NE(t){return`${Mv(t.path)}${ZN(t.parameters)}`}function ZN(t){return Object.entries(t).map(([n,e])=>`;${Mv(n)}=${Mv(e)}`).join("")}function QN(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Lh(e)}=${Lh(r)}`).join("&"):`${Lh(e)}=${Lh(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var JN=/^[^\/()?;#]+/;function Sv(t){let n=t.match(JN);return n?n[0]:""}var e5=/^[^\/()?;=#]+/;function t5(t){let n=t.match(e5);return n?n[0]:""}var n5=/^[^=?&#]+/;function i5(t){let n=t.match(n5);return n?n[0]:""}var r5=/^[^&#]+/;function s5(t){let n=t.match(r5);return n?n[0]:""}var Av=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yt([],{}):new Yt([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[bt]=new Yt(n,e)),i}parseSegment(){let n=Sv(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new De(4009,!1);return this.capture(n),new va(Hh(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=t5(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=Sv(this.remaining);r&&(i=r,this.capture(i))}n[Hh(e)]=Hh(i)}parseQueryParam(n){let e=i5(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let o=s5(this.remaining);o&&(i=o,this.capture(i))}let r=CE(e),s=CE(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(s)}else n[r]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Sv(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new De(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=bt);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[bt]:new Yt([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new De(4011,!1)}};function VE(t){return t.segments.length>0?new Yt([],{[bt]:t}):t}function BE(t){let n={};for(let[i,r]of Object.entries(t.children)){let s=BE(r);if(i===bt&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))n[o]=a;else(s.segments.length>0||s.hasChildren())&&(n[i]=s)}let e=new Yt(t.segments,n);return o5(e)}function o5(t){if(t.numberOfChildren===1&&t.children[bt]){let n=t.children[bt];return new Yt(t.segments.concat(n.segments),n.children)}return t}function Ll(t){return t instanceof xo}function a5(t,n,e=null,i=null){let r=HE(t);return zE(r,n,e,i)}function HE(t){let n;function e(s){let o={};for(let l of s.children){let c=e(l);o[l.outlet]=c}let a=new Yt(s.url,o);return s===t&&(n=a),a}let i=e(t.root),r=VE(i);return n??r}function zE(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return Ev(r,r,r,e,i);let s=l5(n);if(s.toRoot())return Ev(r,r,new Yt([],{}),e,i);let o=c5(s,r,t),a=o.processChildren?gu(o.segmentGroup,o.index,s.commands):UE(o.segmentGroup,o.index,s.commands);return Ev(r,o.segmentGroup,a,e,i)}function zh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xu(t){return typeof t=="object"&&t!=null&&t.outlets}function Ev(t,n,e,i,r){let s={};i&&Object.entries(i).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;t===n?o=e:o=jE(t,n,e);let a=VE(BE(o));return new xo(a,s,r)}function jE(t,n,e){let i={};return Object.entries(t.children).forEach(([r,s])=>{s===n?i[r]=e:i[r]=jE(s,n,e)}),new Yt(t.segments,i)}var jh=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&zh(i[0]))throw new De(4003,!1);let r=i.find(xu);if(r&&r!==AE(i))throw new De(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function l5(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new jh(!0,0,t);let n=0,e=!1,i=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new jh(e,n,i)}var Pl=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function c5(t,n,e){if(t.isAbsolute)return new Pl(n,!0,0);if(!e)return new Pl(n,!1,NaN);if(e.parent===null)return new Pl(e,!0,0);let i=zh(t.commands[0])?0:1,r=e.segments.length-1+i;return u5(e,r,t.numberOfDoubleDots)}function u5(t,n,e){let i=t,r=n,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new De(4005,!1);r=i.segments.length}return new Pl(i,!1,r-s)}function d5(t){return xu(t[0])?t[0].outlets:{[bt]:t}}function UE(t,n,e){if(t??=new Yt([],{}),t.segments.length===0&&t.hasChildren())return gu(t,n,e);let i=f5(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let s=new Yt(t.segments.slice(0,i.pathIndex),{});return s.children[bt]=new Yt(t.segments.slice(i.pathIndex),t.children),gu(s,0,r)}else return i.match&&r.length===0?new Yt(t.segments,{}):i.match&&!t.hasChildren()?Fv(t,n,e):i.match?gu(t,0,r):Fv(t,n,e)}function gu(t,n,e){if(e.length===0)return new Yt(t.segments,{});{let i=d5(e),r={};if(Object.keys(i).some(s=>s!==bt)&&t.children[bt]&&t.numberOfChildren===1&&t.children[bt].segments.length===0){let s=gu(t.children[bt],n,e);return new Yt(t.segments,s.children)}return Object.entries(i).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=UE(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{i[s]===void 0&&(r[s]=o)}),new Yt(t.segments,r)}}function f5(t,n,e){let i=0,r=n,s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return s;let o=t.segments[r],a=e[i];if(xu(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!EE(l,c,o))return s;i+=2}else{if(!EE(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function Fv(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let s=e[r];if(xu(s)){let l=h5(s.outlets);return new Yt(i,l)}if(r===0&&zh(e[0])){let l=t.segments[n];i.push(new va(l.path,SE(e[0]))),r++;continue}let o=xu(s)?s.outlets[bt]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&zh(a)?(i.push(new va(o,SE(a))),r+=2):(i.push(new va(o,{})),r++)}return new Yt(i,{})}function h5(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=Fv(new Yt([],{}),0,i))}),n}function SE(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function EE(t,n,e){return t==e.path&&as(n,e.parameters)}var vu="imperative",ni=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}(ni||{}),wr=class{constructor(n,e){this.id=n,this.url=e}},Nl=class extends wr{constructor(n,e,i="imperative",r=null){super(n,e),this.type=ni.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Hs=class extends wr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=ni.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},cr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(cr||{}),Uh=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Uh||{}),bo=class extends wr{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=ni.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},wo=class extends wr{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=ni.NavigationSkipped}},bu=class extends wr{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=ni.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Wh=class extends wr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ni.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pv=class extends wr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ni.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ov=class extends wr{constructor(n,e,i,r,s){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s,this.type=ni.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Rv=class extends wr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ni.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lv=class extends wr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ni.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nv=class{constructor(n){this.route=n,this.type=ni.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vv=class{constructor(n){this.route=n,this.type=ni.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Bv=class{constructor(n){this.snapshot=n,this.type=ni.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hv=class{constructor(n){this.snapshot=n,this.type=ni.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zv=class{constructor(n){this.snapshot=n,this.type=ni.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jv=class{constructor(n){this.snapshot=n,this.type=ni.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$h=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=ni.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},wu=class{},Cu=class{constructor(n){this.url=n}};var Uv=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Mu,this.attachRef=null}},Mu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Uv,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Gh=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Wv(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=Wv(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=$v(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return $v(n,this._root).map(e=>e.value)}};function Wv(t,n){if(t===n.value)return n;for(let e of n.children){let i=Wv(t,e);if(i)return i}return null}function $v(t,n){if(t===n.value)return[n];for(let e of n.children){let i=$v(t,e);if(i.length)return i.unshift(n),i}return[]}var lr=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Fl(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var qh=class extends Gh{constructor(n,e){super(n),this.snapshot=e,t_(this,n)}toString(){return this.snapshot.toString()}};function WE(t){let n=p5(t),e=new qn([new va("",{})]),i=new qn({}),r=new qn({}),s=new qn({}),o=new qn(""),a=new ya(e,i,s,o,r,bt,t,n.root);return a.snapshot=n.root,new qh(new lr(a,[]),n)}function p5(t){let n={},e={},i={},r="",s=new Su([],n,i,r,e,bt,t,null,{});return new Kh("",new lr(s,[]))}var ya=class{constructor(n,e,i,r,s,o,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(wt(c=>c[Du]))??at(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s}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(wt(n=>Rl(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(wt(n=>Rl(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function e_(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:xe(xe({},n.params),t.params),data:xe(xe({},n.data),t.data),resolve:xe(xe(xe(xe({},t.data),n.data),r?.data),t._resolvedData)}:i={params:xe({},t.params),data:xe({},t.data),resolve:xe(xe({},t.data),t._resolvedData??{})},r&&GE(r)&&(i.resolve[Du]=r.title),i}var Su=class{get title(){return this.data?.[Du]}constructor(n,e,i,r,s,o,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}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??=Rl(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Rl(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Kh=class extends Gh{constructor(n,e){super(e),this.url=n,t_(this,e)}toString(){return $E(this._root)}};function t_(t,n){n.value._routerState=t,n.children.forEach(e=>t_(t,e))}function $E(t){let n=t.children.length>0?` { ${t.children.map($E).join(", ")} } `:"";return`${t.value}${n}`}function Tv(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),as(n.params,e.params)||t.paramsSubject.next(e.params),UN(n.url,e.url)||t.urlSubject.next(e.url),as(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Gv(t,n){let e=as(t.params,n.params)&&qN(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||Gv(t.parent,n.parent))}function GE(t){return typeof t.title=="string"||t.title===null}var Au=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=bt,this.activateEvents=new ve,this.deactivateEvents=new ve,this.attachEvents=new ve,this.detachEvents=new ve,this.parentContexts=_e(Mu),this.location=_e(Ur),this.changeDetector=_e(Lt),this.environmentInjector=_e(ji),this.inputBinder=_e(Qh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)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 De(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new De(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new De(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new De(4013,!1);this._activatedRoute=e;let r=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new qv(e,a,r.injector);this.activated=r.createComponent(o,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=kt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[xn]})}}return t})(),qv=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ya?this.route:n===Mu?this.childContexts:this.parent.get(n,e)}},Qh=new it(""),TE=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=Nc([i.queryParams,i.params,i.data]).pipe(Di(([s,o,a],l)=>(a=xe(xe(xe({},s),o),a),l===0?at(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let o=YS(i.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of o.inputs)e.activatedComponentRef.setInput(a,s[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function m5(t,n,e){let i=Eu(t,n._root,e?e._root:void 0);return new qh(i,n)}function Eu(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=g5(t,n,e);return new lr(i,r)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>Eu(t,a)),o}}let i=v5(n.value),r=n.children.map(s=>Eu(t,s));return new lr(i,r)}}function g5(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Eu(t,i,r);return Eu(t,i)})}function v5(t){return new ya(new qn(t.url),new qn(t.params),new qn(t.queryParams),new qn(t.fragment),new qn(t.data),t.outlet,t.component,t)}var qE="ngNavigationCancelingError";function KE(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Ll(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=YE(!1,cr.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function YE(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[qE]=!0,e.cancellationCode=n,e}function _5(t){return XE(t)&&Ll(t.url)}function XE(t){return!!t&&t[qE]}var y5=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["ng-component"]],standalone:!0,features:[Me],decls:1,vars:0,template:function(i,r){i&1&&re(0,"router-outlet")},dependencies:[Au],encapsulation:2})}}return t})();function x5(t,n){return t.providers&&!t._injector&&(t._injector=xh(t.providers,n,`Route: ${t.path}`)),t._injector??n}function n_(t){let n=t.children&&t.children.map(n_),e=n?ft(xe({},t),{children:n}):xe({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==bt&&(e.component=y5),e}function ls(t){return t.outlet||bt}function b5(t,n){let e=t.filter(i=>ls(i)===n);return e.push(...t.filter(i=>ls(i)!==n)),e}function Fu(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var w5=(t,n,e,i)=>wt(r=>(new Kv(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),Kv=class{constructor(n,e,i,r,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Tv(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Fl(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(n,e,i){let r=n.value,s=e?e.value:null;if(r===s)if(r.component){let o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=Fl(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(i&&i.outlet){let o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=Fl(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Fl(e);n.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new jv(s.value.snapshot))}),n.children.length&&this.forwardEvent(new Hv(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,s=e?e.value:null;if(Tv(r),r===s)if(r.component){let o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Tv(a.route.value),this.activateChildRoutes(n,null,o.children)}else{let a=Fu(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}},Yh=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ol=class{constructor(n,e){this.component=n,this.route=e}};function C5(t,n,e){let i=t._root,r=n?n._root:null;return pu(i,r,e,[i.value])}function S5(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Bl(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!pC(t)?t:n.get(t):i}function pu(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Fl(n);return t.children.forEach(o=>{E5(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>_u(a,e.getContext(o),r)),r}function E5(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=T5(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Yh(i)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?pu(t,n,a?a.children:null,i,r):pu(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ol(a.outlet.component,o))}else o&&_u(n,a,r),r.canActivateChecks.push(new Yh(i)),s.component?pu(t,null,a?a.children:null,i,r):pu(t,null,e,i,r);return r}function T5(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!_a(t.url,n.url);case"pathParamsOrQueryParamsChange":return!_a(t.url,n.url)||!as(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gv(t,n)||!as(t.queryParams,n.queryParams);case"paramsChange":default:return!Gv(t,n)}}function _u(t,n,e){let i=Fl(t),r=t.value;Object.entries(i).forEach(([s,o])=>{r.component?n?_u(o,n.children.getContext(s),e):_u(o,null,e):_u(o,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ol(n.outlet.component,r)):e.canDeactivateChecks.push(new Ol(null,r)):e.canDeactivateChecks.push(new Ol(null,r))}function Pu(t){return typeof t=="function"}function I5(t){return typeof t=="boolean"}function D5(t){return t&&Pu(t.canLoad)}function k5(t){return t&&Pu(t.canActivate)}function M5(t){return t&&Pu(t.canActivateChild)}function A5(t){return t&&Pu(t.canDeactivate)}function F5(t){return t&&Pu(t.canMatch)}function ZE(t){return t instanceof Es||t?.name==="EmptyError"}var Nh=Symbol("INITIAL_VALUE");function Vl(){return Di(t=>Nc(t.map(n=>n.pipe(Ts(1),Um(Nh)))).pipe(wt(n=>{for(let e of n)if(e!==!0){if(e===Nh)return Nh;if(e===!1||e instanceof xo)return e}return!0}),Ii(n=>n!==Nh),Ts(1)))}function P5(t,n){return Tn(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?at(ft(xe({},e),{guardsResult:!0})):O5(o,i,r,t).pipe(Tn(a=>a&&I5(a)?R5(i,s,t,n):at(a)),wt(a=>ft(xe({},e),{guardsResult:a})))})}function O5(t,n,e,i){return pn(t).pipe(Tn(r=>H5(r.component,r.route,e,n,i)),Jr(r=>r!==!0,!0))}function R5(t,n,e,i){return pn(n).pipe(Zo(r=>nl(N5(r.route.parent,i),L5(r.route,i),B5(t,r.path,e),V5(t,r.route,e))),Jr(r=>r!==!0,!0))}function L5(t,n){return t!==null&&n&&n(new zv(t)),at(!0)}function N5(t,n){return t!==null&&n&&n(new Bv(t)),at(!0)}function V5(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return at(!0);let r=i.map(s=>il(()=>{let o=Fu(n)??e,a=Bl(s,o),l=k5(a)?a.canActivate(n,t):ks(o,()=>a(n,t));return Co(l).pipe(Jr())}));return at(r).pipe(Vl())}function B5(t,n,e){let i=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>S5(o)).filter(o=>o!==null).map(o=>il(()=>{let a=o.guards.map(l=>{let c=Fu(o.node)??e,u=Bl(l,c),d=M5(u)?u.canActivateChild(i,t):ks(c,()=>u(i,t));return Co(d).pipe(Jr())});return at(a).pipe(Vl())}));return at(s).pipe(Vl())}function H5(t,n,e,i,r){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return at(!0);let o=s.map(a=>{let l=Fu(n)??r,c=Bl(a,l),u=A5(c)?c.canDeactivate(t,n,e,i):ks(l,()=>c(t,n,e,i));return Co(u).pipe(Jr())});return at(o).pipe(Vl())}function z5(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return at(!0);let s=r.map(o=>{let a=Bl(o,t),l=D5(a)?a.canLoad(n,e):ks(t,()=>a(n,e));return Co(l)});return at(s).pipe(Vl(),QE(i))}function QE(t){return Am(Kn(n=>{if(Ll(n))throw KE(t,n)}),wt(n=>n===!0))}function j5(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return at(!0);let s=r.map(o=>{let a=Bl(o,t),l=F5(a)?a.canMatch(n,e):ks(t,()=>a(n,e));return Co(l)});return at(s).pipe(Vl(),QE(i))}var Tu=class{constructor(n){this.segmentGroup=n||null}},Xh=class extends Error{constructor(n){super(),this.urlTree=n}};function Al(t){return el(new Tu(t))}function U5(t){return el(new De(4e3,!1))}function W5(t){return el(YE(!1,cr.GuardRejected))}var Yv=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return at(i);if(r.numberOfChildren>1||!r.children[bt])return U5(n.redirectTo);r=r.children[bt]}}applyRedirectCommands(n,e,i){let r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new Xh(r);return r}applyRedirectCreateUrlTree(n,e,i,r){let s=this.createSegmentGroup(n,e.root,i,r);return new xo(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);i[r]=e[a]}else i[r]=s}),i}createSegmentGroup(n,e,i,r){let s=this.createSegments(n,e.segments,i,r),o={};return Object.entries(e.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(n,l,i,r)}),new Yt(s,o)}createSegments(n,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(n,s,r):this.findOrReturn(s,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new De(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},Xv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $5(t,n,e,i,r){let s=i_(t,n,e);return s.matched?(i=x5(n,i),j5(i,n,e,r).pipe(wt(o=>o===!0?s:xe({},Xv)))):at(s)}function i_(t,n,e){if(n.path==="**")return G5(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?xe({},Xv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||jN)(e,t,n);if(!r)return xe({},Xv);let s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=r.consumed.length>0?xe(xe({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function G5(t){return{matched:!0,parameters:t.length>0?AE(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function IE(t,n,e,i){return e.length>0&&Y5(t,e,i)?{segmentGroup:new Yt(n,K5(i,new Yt(e,t.children))),slicedSegments:[]}:e.length===0&&X5(t,e,i)?{segmentGroup:new Yt(t.segments,q5(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Yt(t.segments,t.children),slicedSegments:e}}function q5(t,n,e,i){let r={};for(let s of e)if(Jh(t,n,s)&&!i[ls(s)]){let o=new Yt([],{});r[ls(s)]=o}return xe(xe({},i),r)}function K5(t,n){let e={};e[bt]=n;for(let i of t)if(i.path===""&&ls(i)!==bt){let r=new Yt([],{});e[ls(i)]=r}return e}function Y5(t,n,e){return e.some(i=>Jh(t,n,i)&&ls(i)!==bt)}function X5(t,n,e){return e.some(i=>Jh(t,n,i))}function Jh(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Z5(t,n,e,i){return ls(t)!==i&&(i===bt||!Jh(n,e,t))?!1:i_(n,t,e).matched}function Q5(t,n,e){return n.length===0&&!t.children[e]}var Zv=class{};function J5(t,n,e,i,r,s,o="emptyOnly"){return new Qv(t,n,e,i,r,o,s).recognize()}var e8=31,Qv=class{constructor(n,e,i,r,s,o,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Yv(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new De(4002,`'${n.segmentGroup}'`)}recognize(){let n=IE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(wt(e=>{let i=new Su([],Object.freeze({}),Object.freeze(xe({},this.urlTree.queryParams)),this.urlTree.fragment,{},bt,this.rootComponentType,null,{}),r=new lr(i,e),s=new Kh("",r),o=a5(i,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,bt).pipe(oo(i=>{if(i instanceof Xh)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Tu?this.noMatchError(i):i}))}inheritParamsAndData(n,e){let i=n.value,r=e_(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(r.params),i.data=Object.freeze(r.data),n.children.forEach(s=>this.inheritParamsAndData(s,i))}processSegmentGroup(n,e,i,r){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0).pipe(wt(s=>s instanceof lr?[s]:[]))}processChildren(n,e,i){let r=[];for(let s of Object.keys(i.children))s==="primary"?r.unshift(s):r.push(s);return pn(r).pipe(Zo(s=>{let o=i.children[s],a=b5(e,s);return this.processSegmentGroup(n,a,o,s)}),Hm((s,o)=>(s.push(...o),s)),ao(null),Bm(),Tn(s=>{if(s===null)return Al(i);let o=JE(s);return t8(o),at(o)}))}processSegment(n,e,i,r,s,o){return pn(e).pipe(Zo(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,s,o).pipe(oo(l=>{if(l instanceof Tu)return at(null);throw l}))),Jr(a=>!!a),oo(a=>{if(ZE(a))return Q5(i,r,s)?at(new Zv):Al(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,s,o,a){return Z5(i,r,s,o)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,s,o):Al(r):Al(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=i_(e,r,s);if(!a)return Al(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>e8&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,d).pipe(Tn(f=>this.processSegment(n,i,e,f.concat(u),o,!1)))}matchSegmentAgainstRoute(n,e,i,r,s){let o=$5(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),o.pipe(Di(a=>a.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(Di(({routes:l})=>{let c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:f}=a,h=new Su(u,f,Object.freeze(xe({},this.urlTree.queryParams)),this.urlTree.fragment,i8(i),ls(i),i.component??i._loadedComponent??null,i,r8(i)),{segmentGroup:m,slicedSegments:p}=IE(e,u,d,l);if(p.length===0&&m.hasChildren())return this.processChildren(c,l,m).pipe(wt(v=>v===null?null:new lr(h,v)));if(l.length===0&&p.length===0)return at(new lr(h,[]));let g=ls(i)===s;return this.processSegment(c,l,m,p,g?bt:s,!0).pipe(wt(v=>new lr(h,v instanceof lr?[v]:[])))}))):Al(e)))}getChildConfig(n,e,i){return e.children?at({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?at({routes:e._loadedRoutes,injector:e._loadedInjector}):z5(n,e,i,this.urlSerializer).pipe(Tn(r=>r?this.configLoader.loadChildren(n,e).pipe(Kn(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):W5(e))):at({routes:[],injector:n})}};function t8(t){t.sort((n,e)=>n.value.outlet===bt?-1:e.value.outlet===bt?1:n.value.outlet.localeCompare(e.value.outlet))}function n8(t){let n=t.value.routeConfig;return n&&n.path===""}function JE(t){let n=[],e=new Set;for(let i of t){if(!n8(i)){n.push(i);continue}let r=n.find(s=>i.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=JE(i.children);n.push(new lr(i.value,r))}return n.filter(i=>!e.has(i))}function i8(t){return t.data||{}}function r8(t){return t.resolve||{}}function s8(t,n,e,i,r,s){return Tn(o=>J5(t,n,e,i,o.extractedUrl,r,s).pipe(wt(({state:a,tree:l})=>ft(xe({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function o8(t,n){return Tn(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return at(e);let s=new Set(r.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of eT(l))o.add(c);let a=0;return pn(o).pipe(Zo(l=>s.has(l)?a8(l,i,t,n):(l.data=e_(l,l.parent,t).resolve,at(void 0))),Kn(()=>a++),rl(1),Tn(l=>a===o.size?at(e):ir))})}function eT(t){let n=t.children.map(e=>eT(e)).flat();return[t,...n]}function a8(t,n,e,i){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!GE(r)&&(s[Du]=r.title),l8(s,t,n,i).pipe(wt(o=>(t._resolvedData=o,t.data=e_(t,t.parent,e).resolve,null)))}function l8(t,n,e,i){let r=kv(t);if(r.length===0)return at({});let s={};return pn(r).pipe(Tn(o=>c8(t[o],n,e,i).pipe(Jr(),Kn(a=>{s[o]=a}))),rl(1),Vm(s),oo(o=>ZE(o)?ir:el(o)))}function c8(t,n,e,i){let r=Fu(n)??i,s=Bl(t,r),o=s.resolve?s.resolve(n,e):ks(r,()=>s(n,e));return Co(o)}function Iv(t){return Di(n=>{let e=t(n);return e?pn(e).pipe(wt(()=>n)):at(n)})}var tT=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===bt);return i}getResolvedTitleForRoute(e){return e.data[Du]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>_e(u8),providedIn:"root"})}}return t})(),u8=(()=>{class t extends tT{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(st(xE))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ou=new it("",{providedIn:"root",factory:()=>({})}),Iu=new it(""),r_=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=_e(Ih)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return at(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Co(e.loadComponent()).pipe(wt(nT),Kn(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Vc(()=>{this.componentLoaders.delete(e)})),r=new Ja(i,()=>new Ht).pipe(Qa());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return at({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=d8(i,this.compiler,e,this.onLoadEndListener).pipe(Vc(()=>{this.childrenLoaders.delete(i)})),o=new Ja(s,()=>new Ht).pipe(Qa());return this.childrenLoaders.set(i,o),o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function d8(t,n,e,i){return Co(t.loadChildren()).pipe(wt(nT),Tn(r=>r instanceof Xc||Array.isArray(r)?at(r):pn(n.compileModuleAsync(r))),wt(r=>{i&&i(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(e).injector,o=s.get(Iu,[],{optional:!0,self:!0}).flat()),{routes:o.map(n_),injector:s}}))}function f8(t){return t&&typeof t=="object"&&"default"in t}function nT(t){return f8(t)?t.default:t}var s_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>_e(h8),providedIn:"root"})}}return t})(),h8=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iT=new it(""),rT=new it("");function p8(t,n,e){let i=t.get(rT),r=t.get(Tt);return t.get(rt).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),m8(t))),{onViewTransitionCreated:l}=i;return l&&ks(t,()=>l({transition:a,from:n,to:e})),o})}function m8(t){return new Promise(n=>{yh(n,{injector:t})})}var o_=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ht,this.transitionAbortSubject=new Ht,this.configLoader=_e(r_),this.environmentInjector=_e(ji),this.urlSerializer=_e(ku),this.rootContexts=_e(Mu),this.location=_e(Ml),this.inputBindingEnabled=_e(Qh,{optional:!0})!==null,this.titleStrategy=_e(tT),this.options=_e(Ou,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=_e(s_),this.createViewTransition=_e(iT,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>at(void 0),this.rootComponentType=null;let e=r=>this.events.next(new Nv(r)),i=r=>this.events.next(new Vv(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ft(xe(xe({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new qn({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:vu,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ii(s=>s.id!==0),wt(s=>ft(xe({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Di(s=>{let o=!1,a=!1;return at(s).pipe(Di(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",cr.SupersededByNewNavigation),ir;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ft(xe({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&u!=="reload"){let d="";return this.events.next(new wo(l.id,this.urlSerializer.serialize(l.rawUrl),d,Uh.IgnoredSameUrlNavigation)),l.resolve(null),ir}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return at(l).pipe(Di(d=>{let f=this.transitions?.getValue();return this.events.next(new Nl(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?ir:Promise.resolve(d)}),s8(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Kn(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=ft(xe({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let f=new Wh(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:d,extractedUrl:f,source:h,restoredState:m,extras:p}=l,g=new Nl(d,this.urlSerializer.serialize(f),h,m);this.events.next(g);let v=WE(this.rootComponentType).snapshot;return this.currentTransition=s=ft(xe({},l),{targetSnapshot:v,urlAfterRedirects:f,extras:ft(xe({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,at(s)}else{let d="";return this.events.next(new wo(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Uh.IgnoredByUrlHandlingStrategy)),l.resolve(null),ir}}),Kn(l=>{let c=new Pv(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),wt(l=>(this.currentTransition=s=ft(xe({},l),{guards:C5(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),P5(this.environmentInjector,l=>this.events.next(l)),Kn(l=>{if(s.guardsResult=l.guardsResult,Ll(l.guardsResult))throw KE(this.urlSerializer,l.guardsResult);let c=new Ov(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ii(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",cr.GuardRejected),!1)),Iv(l=>{if(l.guards.canActivateChecks.length)return at(l).pipe(Kn(c=>{let u=new Rv(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Di(c=>{let u=!1;return at(c).pipe(o8(this.paramsInheritanceStrategy,this.environmentInjector),Kn({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",cr.NoDataFromResolver)}}))}),Kn(c=>{let u=new Lv(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),Iv(l=>{let c=u=>{let d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Kn(f=>{u.component=f}),wt(()=>{})));for(let f of u.children)d.push(...c(f));return d};return Nc(c(l.targetSnapshot.root)).pipe(ao(null),Ts(1))}),Iv(()=>this.afterPreactivation()),Di(()=>{let{currentSnapshot:l,targetSnapshot:c}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?pn(u).pipe(wt(()=>s)):at(s)}),wt(l=>{let c=m5(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=ft(xe({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),Kn(()=>{this.events.next(new wu)}),w5(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Ts(1),Kn({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Hs(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Bc(this.transitionAbortSubject.pipe(Kn(l=>{throw l}))),Vc(()=>{!o&&!a&&this.cancelNavigationTransition(s,"",cr.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),oo(l=>{if(a=!0,XE(l))this.events.next(new bo(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),_5(l)?this.events.next(new Cu(l.url)):s.resolve(!1);else{this.events.next(new bu(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(c)}}return ir}))}))}cancelNavigationTransition(e,i,r){let s=new bo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function g8(t){return t!==vu}var v8=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>_e(_8),providedIn:"root"})}}return t})(),Jv=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},_8=(()=>{class t extends Jv{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),sT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>_e(y8),providedIn:"root"})}}return t})(),y8=(()=>{class t extends sT{constructor(){super(...arguments),this.location=_e(Ml),this.urlSerializer=_e(ku),this.options=_e(Ou,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=_e(s_),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new xo,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=WE(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Nl)this.stateMemento=this.createStateMemento();else if(e instanceof wo)this.rawUrlTree=i.initialUrl;else if(e instanceof Wh){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof wu?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof bo&&(e.code===cr.GuardRejected||e.code===cr.NoDataFromResolver)?this.restoreHistory(i):e instanceof bu?this.restoreHistory(i,!0):e instanceof Hs&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let s=this.browserPageId,o=xe(xe({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(r,"",o)}else{let s=xe(xe({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,s=this.currentPageId-r;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(mu||{});function oT(t,n){t.events.pipe(Ii(e=>e instanceof Hs||e instanceof bo||e instanceof bu||e instanceof wo),wt(e=>e instanceof Hs||e instanceof wo?mu.COMPLETE:(e instanceof bo?e.code===cr.Redirect||e.code===cr.SupersededByNewNavigation:!1)?mu.REDIRECTING:mu.FAILED),Ii(e=>e!==mu.REDIRECTING),Ts(1)).subscribe(()=>{n()})}function x8(t){throw t}var b8={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},w8={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ti=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=_e(Sh),this.stateManager=_e(sT),this.options=_e(Ou,{optional:!0})||{},this.pendingTasks=_e(ru),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=_e(o_),this.urlSerializer=_e(ku),this.location=_e(Ml),this.urlHandlingStrategy=_e(s_),this._events=new Ht,this.errorHandler=this.options.errorHandler||x8,this.navigated=!1,this.routeReuseStrategy=_e(v8),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=_e(Iu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!_e(Qh,{optional:!0}),this.eventsSubscription=new Gn,this.isNgZoneEnabled=_e(rt)instanceof rt&&rt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(r!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof bo&&i.code!==cr.Redirect&&i.code!==cr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Hs)this.navigated=!0;else if(i instanceof Cu){let o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),a={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||g8(r.source)};this.scheduleNavigation(o,vu,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}S8(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.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),vu,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let s={replaceUrl:!0},o=r?.navigationId?r:null;if(r){let l=xe({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(n_),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:o,u=null;switch(a){case"merge":u=xe(xe({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let f=r?r.snapshot:this.routerState.snapshot.root;d=HE(f)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return zE(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Ll(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,vu,null,i)}navigate(e,i={skipLocationChange:!1}){return C8(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=xe({},b8):i===!1?r=xe({},w8):r=i,Ll(e))return wE(this.currentUrlTree,e,r);let s=this.parseUrl(e);return wE(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,s])=>(s!=null&&(i[r]=s),i),{})}scheduleNavigation(e,i,r,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c;o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((d,f)=>{a=d,l=f});let u=this.pendingTasks.add();return oT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function C8(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new De(4008,!1)}function S8(t){return!(t instanceof wu)&&!(t instanceof Cu)}var Zh=class{};var E8=(()=>{class t{constructor(e,i,r,s,o){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Ii(e=>e instanceof Hs),Zo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let s of i){s.providers&&!s._injector&&(s._injector=xh(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,a=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&r.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&r.push(this.processRoutes(a,s.children??s._loadedRoutes))}return pn(r).pipe(tl())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=at(null);let s=r.pipe(Tn(o=>o===null?at(void 0):(i._loadedRoutes=o.routes,i._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(i.loadComponent&&!i._loadedComponent){let o=this.loader.loadComponent(i);return pn([s,o]).pipe(tl())}else return s})}static{this.\u0275fac=function(i){return new(i||t)(st(ti),st(Ih),st(ji),st(Zh),st(r_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),aT=new it(""),T8=(()=>{class t{constructor(e,i,r,s,o={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=_e(ji),o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}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 Nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Hs?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof wo&&e.code===Uh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof $h&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>xm(this,null,function*(){yield new Promise(r=>{setTimeout(()=>{r()}),yh(()=>{r()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new $h(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){K2()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function lT(t,...n){return nh([{provide:Iu,multi:!0,useValue:t},[],{provide:ya,useFactory:cT,deps:[ti]},{provide:Th,multi:!0,useFactory:uT},n.map(e=>e.\u0275providers)])}function cT(t){return t.routerState.root}function Ru(t,n){return{\u0275kind:t,\u0275providers:n}}function uT(){let t=_e(or);return n=>{let e=t.get(au);if(n!==e.components[0])return;let i=t.get(ti),r=t.get(dT);t.get(a_)===1&&i.initialNavigation(),t.get(fT,null,Dt.Optional)?.setUpPreloading(),t.get(aT,null,Dt.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var dT=new it("",{factory:()=>new Ht}),a_=new it("",{providedIn:"root",factory:()=>1});function I8(){return Ru(2,[{provide:a_,useValue:0},{provide:Eh,multi:!0,deps:[or],useFactory:n=>{let e=n.get(sE,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(ti),s=n.get(dT);oT(r,()=>{i(!0)}),n.get(o_).afterPreactivation=()=>(i(!0),s.closed?at(void 0):s),r.initialNavigation()}))}}])}function D8(){return Ru(3,[{provide:Eh,multi:!0,useFactory:()=>{let n=_e(ti);return()=>{n.setUpLocationChangeListener()}}},{provide:a_,useValue:2}])}var fT=new it("");function k8(t){return Ru(0,[{provide:fT,useExisting:E8},{provide:Zh,useExisting:t}])}function M8(){return Ru(8,[TE,{provide:Qh,useExisting:TE}])}function A8(t){let n=[{provide:iT,useValue:p8},{provide:rT,useValue:xe({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ru(9,n)}var DE=new it("ROUTER_FORROOT_GUARD"),F8=[Ml,{provide:ku,useClass:yu},ti,Mu,{provide:ya,useFactory:cT,deps:[ti]},r_,[]],hT=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[F8,[],{provide:Iu,multi:!0,useValue:e},{provide:DE,useFactory:L8,deps:[[ti,new Jc,new eh]]},{provide:Ou,useValue:i||{}},i?.useHash?O8():R8(),P8(),i?.preloadingStrategy?k8(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?N8(i):[],i?.bindToComponentInputs?M8().\u0275providers:[],i?.enableViewTransitions?A8().\u0275providers:[],V8()]}}static forChild(e){return{ngModule:t,providers:[{provide:Iu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(st(DE,8))}}static{this.\u0275mod=tt({type:t})}static{this.\u0275inj=et({})}}return t})();function P8(){return{provide:aT,useFactory:()=>{let t=_e(fE),n=_e(rt),e=_e(Ou),i=_e(o_),r=_e(ku);return e.scrollOffset&&t.setOffset(e.scrollOffset),new T8(r,i,t,n,e)}}}function O8(){return{provide:ga,useClass:aE}}function R8(){return{provide:ga,useClass:hv}}function L8(t){return"guarded"}function N8(t){return[t.initialNavigation==="disabled"?D8().\u0275providers:[],t.initialNavigation==="enabledBlocking"?I8().\u0275providers:[]]}var kE=new it("");function V8(){return[{provide:kE,useFactory:uT},{provide:Th,multi:!0,useExisting:kE}]}var dt=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}(dt||{}),cs="*";function zs(t,n){return{type:dt.Trigger,name:t,definitions:n,options:{}}}function Wi(t,n=null){return{type:dt.Animate,styles:n,timings:t}}function mT(t,n=null){return{type:dt.Sequence,steps:t,options:n}}function Hn(t){return{type:dt.Style,styles:t,offset:null}}function ep(t,n,e){return{type:dt.State,name:t,styles:n,options:e}}function Pi(t,n,e=null){return{type:dt.Transition,expr:t,animation:n,options:e}}function Hl(t,n=null){return{type:dt.Reference,animation:t,options:n}}function gT(t=null){return{type:dt.AnimateChild,options:t}}function zl(t,n=null){return{type:dt.AnimateRef,animation:t,options:n}}function vT(t,n,e=null){return{type:dt.Query,selector:t,animation:n,options:e}}var So=class{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Lu=class{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},tp="!";function _T(t){return new De(3e3,!1)}function B8(){return new De(3100,!1)}function H8(){return new De(3101,!1)}function z8(t){return new De(3001,!1)}function j8(t){return new De(3003,!1)}function U8(t){return new De(3004,!1)}function W8(t,n){return new De(3005,!1)}function $8(){return new De(3006,!1)}function G8(){return new De(3007,!1)}function q8(t,n){return new De(3008,!1)}function K8(t){return new De(3002,!1)}function Y8(t,n,e,i,r){return new De(3010,!1)}function X8(){return new De(3011,!1)}function Z8(){return new De(3012,!1)}function Q8(){return new De(3200,!1)}function J8(){return new De(3202,!1)}function e7(){return new De(3013,!1)}function t7(t){return new De(3014,!1)}function n7(t){return new De(3015,!1)}function i7(t){return new De(3016,!1)}function r7(t,n){return new De(3404,!1)}function s7(t){return new De(3502,!1)}function o7(t){return new De(3503,!1)}function a7(){return new De(3300,!1)}function l7(t){return new De(3504,!1)}function c7(t){return new De(3301,!1)}function u7(t,n){return new De(3302,!1)}function d7(t){return new De(3303,!1)}function f7(t,n){return new De(3400,!1)}function h7(t){return new De(3401,!1)}function p7(t){return new De(3402,!1)}function m7(t,n){return new De(3505,!1)}function Eo(t){switch(t.length){case 0:return new So;case 1:return t[0];default:return new Lu(t)}}function FT(t,n,e=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(n.forEach(l=>{let c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((f,h)=>{let m=h,p=f;if(h!=="offset")switch(m=t.normalizePropertyName(m,r),p){case tp:p=e.get(h);break;case cs:p=i.get(h);break;default:p=t.normalizeStyleValue(h,m,p,r);break}d.set(m,p)}),u||s.push(d),a=d,o=c}),r.length)throw s7(r);return s}function M_(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&l_(e,"start",t)));break;case"done":t.onDone(()=>i(e&&l_(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&l_(e,"destroy",t)));break}}function l_(t,n,e){let i=e.totalTime,r=!!e.disabled,s=A_(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),o=t._data;return o!=null&&(s._data=o),s}function A_(t,n,e,i,r="",s=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function dr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function yT(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var g7=typeof document>"u"?null:document.documentElement;function F_(t){let n=t.parentNode||t.host||null;return n===g7?null:n}function v7(t){return t.substring(1,6)=="ebkit"}var xa=null,xT=!1;function _7(t){xa||(xa=y7()||{},xT=xa.style?"WebkitAppearance"in xa.style:!1);let n=!0;return xa.style&&!v7(t)&&(n=t in xa.style,!n&&xT&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in xa.style)),n}function y7(){return typeof document<"u"?document.body:null}function PT(t,n){for(;n;){if(n===t)return!0;n=F_(n)}return!1}function OT(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var P_=(()=>{class t{validateStyleProperty(e){return _7(e)}matchesElement(e,i){return!1}containsElement(e,i){return PT(e,i)}getParentElement(e){return F_(e)}query(e,i,r){return OT(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new So(r,s)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),Ca=class{static{this.NOOP=new P_}},Sa=class{};var x7=1e3,RT="{{",b7="}}",LT="ng-enter",p_="ng-leave",np="ng-trigger",ap=".ng-trigger",bT="ng-animating",m_=".ng-animating";function js(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:g_(parseFloat(n[1]),n[2])}function g_(t,n){switch(n){case"s":return t*x7;default:return t}}function lp(t,n,e){return t.hasOwnProperty("duration")?t:w7(t,n,e)}function w7(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof t=="string"){let a=t.match(i);if(a===null)return n.push(_T(t)),{duration:0,delay:0,easing:""};r=g_(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=g_(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(B8()),a=!0),s<0&&(n.push(H8()),a=!0),a&&n.splice(l,0,_T(t))}return{duration:r,delay:s,easing:o}}function C7(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function us(t,n,e){n.forEach((i,r)=>{let s=O_(r);e&&!e.has(r)&&e.set(r,t.style[s]),t.style[s]=i})}function wa(t,n){n.forEach((e,i)=>{let r=O_(i);t.style[r]=""})}function Nu(t){return Array.isArray(t)?t.length==1?t[0]:mT(t):t}function S7(t,n,e){let i=n.params||{},r=NT(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(z8(s))})}var v_=new RegExp(`${RT}\\s*(.+?)\\s*${b7}`,"g");function NT(t){let n=[];if(typeof t=="string"){let e;for(;e=v_.exec(t);)n.push(e[1]);v_.lastIndex=0}return n}function Bu(t,n,e){let i=`${t}`,r=i.replace(v_,(s,o)=>{let a=n[o];return a==null&&(e.push(j8(o)),a=""),a.toString()});return r==i?t:r}var E7=/-+([a-z0-9])/g;function O_(t){return t.replace(E7,(...n)=>n[1].toUpperCase())}function T7(t,n){return t===0||n===0}function I7(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<n.length;s++){let o=n[s];r.forEach(a=>o.set(a,R_(t,a)))}}return n}function ur(t,n,e){switch(n.type){case dt.Trigger:return t.visitTrigger(n,e);case dt.State:return t.visitState(n,e);case dt.Transition:return t.visitTransition(n,e);case dt.Sequence:return t.visitSequence(n,e);case dt.Group:return t.visitGroup(n,e);case dt.Animate:return t.visitAnimate(n,e);case dt.Keyframes:return t.visitKeyframes(n,e);case dt.Style:return t.visitStyle(n,e);case dt.Reference:return t.visitReference(n,e);case dt.AnimateChild:return t.visitAnimateChild(n,e);case dt.AnimateRef:return t.visitAnimateRef(n,e);case dt.Query:return t.visitQuery(n,e);case dt.Stagger:return t.visitStagger(n,e);default:throw U8(n.type)}}function R_(t,n){return window.getComputedStyle(t)[n]}var D7=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"]),cp=class extends Sa{normalizePropertyName(n,e){return O_(n)}normalizeStyleValue(n,e,i,r){let s="",o=i.toString().trim();if(D7.has(e)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(W8(n,i))}return o+s}};var up="*";function k7(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>M7(i,e,n)):e.push(t),e}function M7(t,n,e){if(t[0]==":"){let l=A7(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(n7(t)),n;let r=i[1],s=i[2],o=i[3];n.push(wT(r,o));let a=r==up&&o==up;s[0]=="<"&&!a&&n.push(wT(o,r))}function A7(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(i7(t)),"* => *"}}var ip=new Set(["true","1"]),rp=new Set(["false","0"]);function wT(t,n){let e=ip.has(t)||rp.has(t),i=ip.has(n)||rp.has(n);return(r,s)=>{let o=t==up||t==r,a=n==up||n==s;return!o&&e&&typeof r=="boolean"&&(o=r?ip.has(t):rp.has(t)),!a&&i&&typeof s=="boolean"&&(a=s?ip.has(n):rp.has(n)),o&&a}}var VT=":self",F7=new RegExp(`s*${VT}s*,?`,"g");function BT(t,n,e,i){return new __(t).build(n,e,i)}var CT="",__=class{constructor(n){this._driver=n}build(n,e,i){let r=new y_(e);return this._resetContextStyleTimingState(r),ur(this,Nu(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=CT,n.collectedStyles=new Map,n.collectedStyles.set(CT,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,s=[],o=[];return n.name.charAt(0)=="@"&&e.errors.push($8()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==dt.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(a.type==dt.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(G8())}),{type:dt.Trigger,name:n.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{NT(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&e.errors.push(q8(n.name,[...s.values()]))}return{type:dt.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=ur(this,Nu(n.animation),e),r=k7(n.expr,e.errors);return{type:dt.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ba(n.options)}}visitSequence(n,e){return{type:dt.Sequence,steps:n.steps.map(i=>ur(this,i,e)),options:ba(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,s=n.steps.map(o=>{e.currentTime=i;let a=ur(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:dt.Group,steps:s,options:ba(n.options)}}visitAnimate(n,e){let i=L7(n.timings,e.errors);e.currentAnimateTimings=i;let r,s=n.styles?n.styles:Hn({});if(s.type==dt.Keyframes)r=this.visitKeyframes(s,e);else{let o=n.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Hn(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:dt.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)typeof a=="string"?a===cs?i.push(a):e.errors.push(K8(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(RT)>=0){s=!0;break}}}),{type:dt.Style,styles:i,easing:o,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),n.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l),d=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(e.errors.push(Y8(l,u.startTime,u.endTime,s,r)),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),e.options&&S7(a,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:dt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(X8()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,u=n.steps.map(v=>{let _=this._makeStyleAst(v,e),y=_.offset!=null?_.offset:R7(_.styles),x=0;return y!=null&&(s++,x=_.offset=y),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),_});l&&e.errors.push(Z8()),a&&e.errors.push(Q8());let d=n.steps.length,f=0;s>0&&s<d?e.errors.push(J8()):s==0&&(f=r/(d-1));let h=d-1,m=e.currentTime,p=e.currentAnimateTimings,g=p.duration;return u.forEach((v,_)=>{let y=f>0?_==h?1:f*_:o[_],x=y*g;e.currentTime=m+p.delay+x,p.duration=x,this._validateStyleAst(v,e),v.offset=y,i.styles.push(v)}),i}visitReference(n,e){return{type:dt.Reference,animation:ur(this,Nu(n.animation),e),options:ba(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:dt.AnimateChild,options:ba(n.options)}}visitAnimateRef(n,e){return{type:dt.AnimateRef,animation:this.visitReference(n.animation,e),options:ba(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[s,o]=P7(n.selector);e.currentQuerySelector=i.length?i+" "+s:s,dr(e.collectedStyles,e.currentQuerySelector,new Map);let a=ur(this,Nu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:dt.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:ba(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(e7());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:lp(n.timings,e.errors,!0);return{type:dt.Stagger,animation:ur(this,Nu(n.animation),e),timings:i,options:null}}};function P7(t){let n=!!t.split(/\s*,\s*/).find(e=>e==VT);return n&&(t=t.replace(F7,"")),t=t.replace(/@\*/g,ap).replace(/@\w+/g,e=>ap+"-"+e.slice(1)).replace(/:animating/g,m_),[t,n]}function O7(t){return t?xe({},t):null}var y_=class{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function R7(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function L7(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let s=lp(t,n).duration;return c_(s,0,"")}let e=t;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=c_(0,0,"");return s.dynamic=!0,s.strValue=e,s}let r=lp(e,n);return c_(r.duration,r.delay,r.easing)}function ba(t){return t?(t=xe({},t),t.params&&(t.params=O7(t.params))):t={},t}function c_(t,n,e){return{duration:t,delay:n,easing:e}}function L_(t,n,e,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Hu=class{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},N7=1,V7=":enter",B7=new RegExp(V7,"g"),H7=":leave",z7=new RegExp(H7,"g");function HT(t,n,e,i,r,s=new Map,o=new Map,a,l,c=[]){return new x_().buildKeyframes(t,n,e,i,r,s,o,a,l,c)}var x_=class{buildKeyframes(n,e,i,r,s,o,a,l,c,u=[]){c=c||new Hu;let d=new b_(n,e,c,r,s,u,[]);d.options=l;let f=l.delay?js(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,l),ur(this,i,d);let h=d.timelines.filter(m=>m.containsAnimation());if(h.length&&a.size){let m;for(let p=h.length-1;p>=0;p--){let g=h[p];if(g.element===e){m=g;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,l)}return h.length?h.map(m=>m.buildKeyframes()):[L_(e,[],[],[],0,f,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let s=r?.delay;if(s){let o=typeof s=="number"?s:js(Bu(s,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(n,e,i){let s=e.currentTimeline.currentTime,o=i.duration!=null?js(i.duration):null,a=i.delay!=null?js(i.delay):null;return o!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,e){e.updateOptions(n.options,!0),ur(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,s=n.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==dt.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=dp);let o=js(s.delay);r.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>ur(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,s=n.options&&n.options.delay?js(n.options.delay):0;n.steps.forEach(o=>{let a=e.createSubContext(n.options);s&&a.delayNextStep(s),ur(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?Bu(i,e.params,e.errors):i;return lp(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let s=n.style;s.type==dt.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(s):i.setStyles(n.styles,s,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},s=r.delay?js(r.delay):0;s&&(e.previousNode.type===dt.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=dp);let o=i,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;let d=e.createSubContext(n.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),ur(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;o=Math.max(o,f)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1),l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let u=e.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;ur(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},dp={},b_=class t{constructor(n,e,i,r,s,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new fp(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=js(i.duration)),i.delay!=null&&(r.delay=js(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Bu(s[a],o,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,s=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=dp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},s=new w_(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,s,o){let a=[];if(r&&a.push(this.element),n.length>0){n=n.replace(B7,"."+this._enterClassName),n=n.replace(z7,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(t7(e)),a}},fp=class t{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,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+=N7,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||cs),this._currentKeyframe.set(e,cs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let s=r&&r.params||{},o=j7(n,this._globalTimelineStyles);for(let[a,l]of o){let c=Bu(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??cs),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===tp?n.add(d):u===cs&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...n.values()],o=[...e.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return L_(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},w_=class extends fp{constructor(n,e,i,r,s,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],o=i+e,a=e/o,l=new Map(n[0]);l.set("offset",0),s.push(l);let c=new Map(n[0]);c.set("offset",ST(a)),s.push(c);let u=n.length-1;for(let d=1;d<=u;d++){let f=new Map(n[d]),h=f.get("offset"),m=e+h*i;f.set("offset",ST(m/o)),s.push(f)}i=o,e=0,r="",n=s}return L_(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function ST(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function j7(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let s of i)e.set(s,cs)}else for(let[s,o]of r)e.set(s,o)}),e}function ET(t,n,e,i,r,s,o,a,l,c,u,d,f){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}var u_={},hp=class{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return U7(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,s,o,a,l,c,u){let d=[],f=this.ast.options&&this.ast.options.params||u_,h=a&&a.params||u_,m=this.buildStyles(i,h,d),p=l&&l.params||u_,g=this.buildStyles(r,p,d),v=new Set,_=new Map,y=new Map,x=r==="void",w={params:zT(p,f),delay:this.ast.options?.delay},T=u?[]:HT(n,e,this.ast.animation,s,o,m,g,w,c,d),E=0;return T.forEach(k=>{E=Math.max(k.duration+k.delay,E)}),d.length?ET(e,this._triggerName,i,r,x,m,g,[],[],_,y,E,d):(T.forEach(k=>{let F=k.element,G=dr(_,F,new Set);k.preStyleProps.forEach(W=>G.add(W));let Y=dr(y,F,new Set);k.postStyleProps.forEach(W=>Y.add(W)),F!==e&&v.add(F)}),ET(e,this._triggerName,i,r,x,m,g,T,[...v.values()],_,y,E))}};function U7(t,n,e,i,r){return t.some(s=>s(n,e,i,r))}function zT(t,n){let e=xe({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var C_=class{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=zT(n,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Bu(o,r,e));let l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(a,o)})}),i}};function W7(t,n,e){return new S_(t,n,e)}var S_=class{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new C_(r.style,s,i))}),TT(this.states,"true","1"),TT(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new hp(n,r,this.states))}),this.fallbackTransition=$7(n,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(o=>o.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function $7(t,n,e){let i=[(o,a)=>!0],r={type:dt.Sequence,steps:[],options:null},s={type:dt.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new hp(t,s,n)}function TT(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var G7=new Hu,E_=class{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){let i=[],r=[],s=BT(this._driver,e,i,r);if(i.length)throw o7(i);r.length&&void 0,this._animations.set(n,s)}_buildPlayer(n,e,i){let r=n.element,s=FT(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,s,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],s=this._animations.get(n),o,a=new Map;if(s?(o=HT(this._driver,e,s,LT,p_,new Map,new Map,i,G7,r),o.forEach(u=>{let d=dr(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(r.push(a7()),o=[]),r.length)throw l7(r);a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,cs))})});let l=o.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Eo(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw c7(n);return e}listen(n,e,i,r){let s=A_(e,"","","");return M_(this._getPlayer(n),i,s,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(n,e,o);return}let s=this._getPlayer(n);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},IT="ng-animate-queued",q7=".ng-animate-queued",d_="ng-animate-disabled",K7=".ng-animate-disabled",Y7="ng-star-inserted",X7=".ng-star-inserted",Z7=[],jT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Q7={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wr="__ng_removed",zu=class{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=e9(r),i){let s=n,{value:o}=s,a=Ob(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Vu="void",f_=new zu(Vu),T_=class{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Cr(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw u7(i,e);if(i==null||i.length==0)throw d7(e);if(!t9(i))throw f7(i,e);let s=dr(this._elementListeners,n,[]),o={name:e,phase:i,callback:r};s.push(o);let a=dr(this._engine.statesByElement,n,new Map);return a.has(e)||(Cr(n,np),Cr(n,np+"-"+e),a.set(e,f_)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw h7(n);return e}trigger(n,e,i,r=!0){let s=this._getTrigger(e),o=new ju(this.id,e,n),a=this._engine.statesByElement.get(n);a||(Cr(n,np),Cr(n,np+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e),c=new zu(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=f_),!(c.value===Vu)&&l.value===c.value){if(!r9(l.params,c.params)){let p=[],g=s.matchStyles(l.value,l.params,p),v=s.matchStyles(c.value,c.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(()=>{wa(n,g),us(n,v)})}return}let f=dr(this._engine.playersByElement,n,[]);f.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let h=s.matchTransition(l.value,c.value,n,c.params),m=!1;if(!h){if(!r)return;h=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(Cr(n,IT),o.onStart(()=>{jl(n,IT)})),o.onDone(()=>{let p=this.players.indexOf(o);p>=0&&this.players.splice(p,1);let g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(o);v>=0&&g.splice(v,1)}}),this.players.push(o),f.push(o),o}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,ap,!0);i.forEach(r=>{if(r[Wr])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let s=this._engine.statesByElement.get(n),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let u=this.trigger(n,c,Vu,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&Eo(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||f_,u=new zu(Vu),d=new ju(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(n):[];if(s&&s.length)r=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let s=n[Wr];(!s||s===jT)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Cr(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=A_(s,i.triggerName,i.fromState.value,i.toState.value);l._data=n,M_(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},I_=class{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,r){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,o)=>{}}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new T_(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}}return e}trigger(n,e,i,r){if(sp(e)){let s=this._fetchNamespace(n);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!sp(e))return;let s=e[Wr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){let o=this._fetchNamespace(n);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Cr(n,d_)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),jl(n,d_))}removeNode(n,e,i){if(sp(e)){this.scheduler?.notify();let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,s){this.collectedLeaveElements.push(e),e[Wr]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,e,i,r,s){return sp(e)?this._fetchNamespace(n).listen(e,i,r,s):()=>{}}_buildInstruction(n,e,i,r,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,s)}destroyInnerAnimations(n){let e=this.driver.query(n,ap,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,m_,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Eo(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Wr];if(e&&e.setForRemoval){if(n[Wr]=jT,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(d_)&&this.markElementAsDisabled(n,!1),this.driver.query(n,K7,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];Cr(r,Y7)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Eo(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw p7(n)}_flushAnimations(n,e){let i=new Hu,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(M=>{u.add(M);let R=this.driver.query(M,q7,!0);for(let S=0;S<R.length;S++)u.add(R[S])});let d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=MT(f,this.collectedEnterElements),m=new Map,p=0;h.forEach((M,R)=>{let S=LT+p++;m.set(R,S),M.forEach(D=>Cr(D,S))});let g=[],v=new Set,_=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){let R=this.collectedLeaveElements[M],S=R[Wr];S&&S.setForRemoval&&(g.push(R),v.add(R),S.hasAnimation?this.driver.query(R,X7,!0).forEach(D=>v.add(D)):_.add(R))}let y=new Map,x=MT(f,Array.from(v));x.forEach((M,R)=>{let S=p_+p++;y.set(R,S),M.forEach(D=>Cr(D,S))}),n.push(()=>{h.forEach((M,R)=>{let S=m.get(R);M.forEach(D=>jl(D,S))}),x.forEach((M,R)=>{let S=y.get(R);M.forEach(D=>jl(D,S))}),g.forEach(M=>{this.processLeaveNode(M)})});let w=[],T=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(S=>{let D=S.player,Q=S.element;if(w.push(D),this.collectedEnterElements.length){let Ee=Q[Wr];if(Ee&&Ee.setForMove){if(Ee.previousTriggersValues&&Ee.previousTriggersValues.has(S.triggerName)){let Ue=Ee.previousTriggersValues.get(S.triggerName),Ae=this.statesByElement.get(S.element);if(Ae&&Ae.has(S.triggerName)){let Ce=Ae.get(S.triggerName);Ce.value=Ue,Ae.set(S.triggerName,Ce)}}D.destroy();return}}let X=!d||!this.driver.containsElement(d,Q),V=y.get(Q),ie=m.get(Q),H=this._buildInstruction(S,i,ie,V,X);if(H.errors&&H.errors.length){T.push(H);return}if(X){D.onStart(()=>wa(Q,H.fromStyles)),D.onDestroy(()=>us(Q,H.toStyles)),r.push(D);return}if(S.isFallbackTransition){D.onStart(()=>wa(Q,H.fromStyles)),D.onDestroy(()=>us(Q,H.toStyles)),r.push(D);return}let K=[];H.timelines.forEach(Ee=>{Ee.stretchStartingKeyframe=!0,this.disabledNodes.has(Ee.element)||K.push(Ee)}),H.timelines=K,i.append(Q,H.timelines);let de={instruction:H,player:D,element:Q};o.push(de),H.queriedElements.forEach(Ee=>dr(a,Ee,[]).push(D)),H.preStyleProps.forEach((Ee,Ue)=>{if(Ee.size){let Ae=l.get(Ue);Ae||l.set(Ue,Ae=new Set),Ee.forEach((Ce,nt)=>Ae.add(nt))}}),H.postStyleProps.forEach((Ee,Ue)=>{let Ae=c.get(Ue);Ae||c.set(Ue,Ae=new Set),Ee.forEach((Ce,nt)=>Ae.add(nt))})});if(T.length){let M=[];T.forEach(R=>{M.push(m7(R.triggerName,R.errors))}),w.forEach(R=>R.destroy()),this.reportError(M)}let E=new Map,k=new Map;o.forEach(M=>{let R=M.element;i.has(R)&&(k.set(R,R),this._beforeAnimationBuild(M.player.namespaceId,M.instruction,E))}),r.forEach(M=>{let R=M.element;this._getPreviousPlayers(R,!1,M.namespaceId,M.triggerName,null).forEach(D=>{dr(E,R,[]).push(D),D.destroy()})});let F=g.filter(M=>AT(M,l,c)),G=new Map;kT(G,this.driver,_,c,cs).forEach(M=>{AT(M,l,c)&&F.push(M)});let W=new Map;h.forEach((M,R)=>{kT(W,this.driver,new Set(M),l,tp)}),F.forEach(M=>{let R=G.get(M),S=W.get(M);G.set(M,new Map([...R?.entries()??[],...S?.entries()??[]]))});let le=[],ge=[],te={};o.forEach(M=>{let{element:R,player:S,instruction:D}=M;if(i.has(R)){if(u.has(R)){S.onDestroy(()=>us(R,D.toStyles)),S.disabled=!0,S.overrideTotalTime(D.totalTime),r.push(S);return}let Q=te;if(k.size>1){let V=R,ie=[];for(;V=V.parentNode;){let H=k.get(V);if(H){Q=H;break}ie.push(V)}ie.forEach(H=>k.set(H,Q))}let X=this._buildAnimation(S.namespaceId,D,E,s,W,G);if(S.setRealPlayer(X),Q===te)le.push(S);else{let V=this.playersByElement.get(Q);V&&V.length&&(S.parentPlayer=Eo(V)),r.push(S)}}else wa(R,D.fromStyles),S.onDestroy(()=>us(R,D.toStyles)),ge.push(S),u.has(R)&&r.push(S)}),ge.forEach(M=>{let R=s.get(M.element);if(R&&R.length){let S=Eo(R);M.setRealPlayer(S)}}),r.forEach(M=>{M.parentPlayer?M.syncPlayerEvents(M.parentPlayer):M.destroy()});for(let M=0;M<g.length;M++){let R=g[M],S=R[Wr];if(jl(R,p_),S&&S.hasAnimation)continue;let D=[];if(a.size){let X=a.get(R);X&&X.length&&D.push(...X);let V=this.driver.query(R,m_,!0);for(let ie=0;ie<V.length;ie++){let H=a.get(V[ie]);H&&H.length&&D.push(...H)}}let Q=D.filter(X=>!X.destroyed);Q.length?n9(this,R,Q):this.processLeaveNode(R)}return g.length=0,le.forEach(M=>{this.players.push(M),M.onDone(()=>{M.destroy();let R=this.players.indexOf(M);this.players.splice(R,1)}),M.play()}),le}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,s){let o=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(o=a)}else{let a=this.playersByElement.get(n);if(a){let l=!s||s==Vu;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){let r=e.triggerName,s=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,u=c!==s,d=dr(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(h=>{let m=h.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),h.destroy(),d.push(h)})}wa(s,e.fromStyles)}_buildAnimation(n,e,i,r,s,o){let a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(m=>{let p=m.element;u.add(p);let g=p[Wr];if(g&&g.removedBeforeQueried)return new So(m.duration,m.delay);let v=p!==l,_=i9((i.get(p)||Z7).map(E=>E.getRealPlayer())).filter(E=>{let k=E;return k.element?k.element===p:!1}),y=s.get(p),x=o.get(p),w=FT(this._normalizer,m.keyframes,y,x),T=this._buildPlayer(m,w,_);if(m.subTimeline&&r&&d.add(p),v){let E=new ju(n,a,p);E.setRealPlayer(T),c.push(E)}return T});c.forEach(m=>{dr(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>J7(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>Cr(m,bT));let h=Eo(f);return h.onDestroy(()=>{u.forEach(m=>jl(m,bT)),us(l,e.toStyles)}),d.forEach(m=>{dr(r,m,[]).push(h)}),h}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new So(n.duration,n.delay)}},ju=class{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new So,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>M_(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){dr(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function J7(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function e9(t){return t??null}function sp(t){return t&&t.nodeType===1}function t9(t){return t=="start"||t=="done"}function DT(t,n){let e=t.style.display;return t.style.display=n??"none",e}function kT(t,n,e,i,r){let s=[];e.forEach(l=>s.push(DT(l)));let o=[];i.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let f=n.computeStyle(c,d,r);u.set(d,f),(!f||f.length==0)&&(c[Wr]=Q7,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>DT(l,s[a++])),o}function MT(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let i=1,r=new Set(n),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return n.forEach(a=>{let l=o(a);l!==i&&e.get(l).push(a)}),e}function Cr(t,n){t.classList?.add(n)}function jl(t,n){t.classList?.remove(n)}function n9(t,n,e){Eo(e).onDone(()=>t.processLeaveNode(n))}function i9(t){let n=[];return UT(t,n),n}function UT(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof Lu?UT(i.players,n):n.push(i)}}function r9(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let s=e[r];if(!n.hasOwnProperty(s)||t[s]!==n[s])return!1}return!0}function AT(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(s=>r.add(s)):n.set(t,i),e.delete(t),!0}var Ul=class{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new I_(n.body,e,i,r),this._timelineEngine=new E_(n.body,e,i),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(n,e,i,r,s){let o=n+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],u=BT(this._driver,s,l,c);if(l.length)throw r7(r,l);c.length&&void 0,a=W7(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[s,o]=yT(i),a=r;this._timelineEngine.command(s,e,o,a)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,s){if(i.charAt(0)=="@"){let[o,a]=yT(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(n,e,i,r,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function s9(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=h_(n[0]),n.length>1&&(i=h_(n[n.length-1]))):n instanceof Map&&(e=h_(n)),e||i?new D_(t,e,i):null}var D_=class t{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(n);r||t.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&us(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(us(this._element,this._initialStyles),this._endStyles&&(us(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(wa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wa(this._element,this._endStyles),this._endStyles=null),us(this._element,this._initialStyles),this._state=3)}};function h_(t){let n=null;return t.forEach((e,i)=>{o9(i)&&(n=n||new Map,n.set(i,e))}),n}function o9(t){return t==="display"||t==="position"}var pp=class{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:R_(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},mp=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return PT(n,e)}getParentElement(n){return F_(n)}query(n,e,i){return OT(n,e,i)}computeStyle(n,e,i){return R_(n,e)}animate(n,e,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,u=o.filter(h=>h instanceof pp);T7(i,r)&&u.forEach(h=>{h.currentSnapshot.forEach((m,p)=>c.set(p,m))});let d=C7(e).map(h=>new Map(h));d=I7(n,d,c);let f=s9(n,d);return new pp(n,d,l,f)}};var op="@",WT="@.disabled",gp=class{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==op&&e==WT?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},k_=class extends gp{constructor(n,e,i,r,s){super(e,i,r,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==op?e.charAt(1)=="."&&e==WT?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if(e.charAt(0)==op){let r=a9(n),s=e.slice(1),o="";return s.charAt(0)!=op&&([s,o]=l9(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(n,e,i)}};function a9(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function l9(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var vp=class{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new gp(i,r,this.engine,d),c.set(r,u)}return u}let s=e.id,o=e.id+"-"+this._currentId;this._currentId++,this.engine.register(o,n);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,n,c.name,c)};return e.data.animation.forEach(a),new k_(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}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()}};var u9=(()=>{class t extends Ul{constructor(e,i,r){super(e,i,r,_e(vl,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(st(Tt),st(Ca),st(Sa))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function d9(){return new cp}function f9(t,n,e){return new vp(t,n,e)}var $T=[{provide:Sa,useFactory:d9},{provide:Ul,useClass:u9},{provide:la,useFactory:f9,deps:[Oh,Ul,rt]}],h9=[{provide:Ca,useFactory:()=>new mp},{provide:P1,useValue:"BrowserAnimations"},...$T],upe=[{provide:Ca,useClass:P_},{provide:P1,useValue:"NoopAnimations"},...$T];function GT(){return _o("NgEagerAnimations"),[...h9]}var Se=class t{static isArray(n,e=!0){return Array.isArray(n)&&(e||n.length!==0)}static isObject(n,e=!0){return typeof n=="object"&&!Array.isArray(n)&&n!=null&&(e||Object.keys(n).length!==0)}static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var i=Array.isArray(n),r=Array.isArray(e),s,o,a;if(i&&r){if(o=n.length,o!=e.length)return!1;for(s=o;s--!==0;)if(!this.equalsByValue(n[s],e[s]))return!1;return!0}if(i!=r)return!1;var l=this.isDate(n),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var f=Object.keys(n);if(o=f.length,o!==Object.keys(e).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,f[s]))return!1;for(s=o;s--!==0;)if(a=f[s],!this.equalsByValue(n[a],e[a]))return!1;return!0}return n!==n&&e!==e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(e.indexOf(".")==-1)return n[e];{let i=e.split("."),r=n;for(let s=0,o=i.length;s<o;++s){if(r==null)return null;r=r[i[s]]}return r}}else return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,e,i){let r;n&&e!==i&&(i>=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,i,r){if(i.length>0){let s=!1;for(let o=0;o<i.length;o++)if(this.findIndexInList(i[o],r)>e){i.splice(o,0,n),s=!0;break}s||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e){for(let r=0;r<e.length;r++)if(e[r]==n){i=r;break}}return i}static contains(n,e){if(n!=null&&e&&e.length){for(let i of e)if(this.equals(n,i))return!0}return!1}static removeAccents(n){return n&&(n=n.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),n}static isDate(n){return Object.prototype.toString.call(n)==="[object Date]"}static isEmpty(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!this.isDate(n)&&typeof n=="object"&&Object.keys(n).length===0}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,e,i,r=1){let s=-1,o=this.isEmpty(n),a=this.isEmpty(e);return o&&a?s=0:o?s=r:a?s=-r:typeof n=="string"&&typeof e=="string"?s=n.localeCompare(e,i,{numeric:!0}):s=n<e?-1:n>e?1:0,s}static sort(n,e,i=1,r,s=1){let o=t.compare(n,e,r,i),a=i;return(t.isEmpty(n)||t.isEmpty(e))&&(a=s===1?i:s),a*o}static merge(n,e){if(!(n==null&&e==null)){{if((n==null||typeof n=="object")&&(e==null||typeof e=="object"))return xe(xe({},n||{}),e||{});if((n==null||typeof n=="string")&&(e==null||typeof e=="string"))return[n||"",e||""].join(" ")}return e||n}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}static getItemValue(n,...e){return this.isFunction(n)?n(...e):n}static findLastIndex(n,e){let i=-1;if(this.isNotEmpty(n))try{i=n.findLastIndex(e)}catch{i=n.lastIndexOf([...n].reverse().find(e))}return i}static findLast(n,e){let i;if(this.isNotEmpty(n))try{i=n.findLast(e)}catch{i=[...n].reverse().find(e)}return i}static deepEquals(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var i=Array.isArray(n),r=Array.isArray(e),s,o,a;if(i&&r){if(o=n.length,o!=e.length)return!1;for(s=o;s--!==0;)if(!this.deepEquals(n[s],e[s]))return!1;return!0}if(i!=r)return!1;var l=n instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var f=Object.keys(n);if(o=f.length,o!==Object.keys(e).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,f[s]))return!1;for(s=o;s--!==0;)if(a=f[s],!this.deepEquals(n[a],e[a]))return!1;return!0}return n!==n&&e!==e}},qT=0;function ht(t="pn_id_"){return qT++,`${t}${qT}`}function p9(){let t=[],n=(s,o)=>{let a=t.length>0?t[t.length-1]:{key:s,value:o},l=a.value+(a.key===s?0:o)+2;return t.push({key:s,value:l}),l},e=s=>{t=t.filter(o=>o.value!==s)},i=()=>t.length>0?t[t.length-1].value:0,r=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:r,set:(s,o,a)=>{o&&(o.style.zIndex=String(n(s,a)))},clear:s=>{s&&(e(r(s)),s.style.zIndex="")},getCurrent:()=>i()}}var Nn=p9();var KT=["*"];var ii=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return t})(),N_=(()=>{class t{static AND="and";static OR="or"}return t})(),_p=(()=>{class t{filter(e,i,r,s,o){let a=[];if(e)for(let l of e)for(let c of i){let u=Se.resolveFieldData(l,c);if(this.filters[s](u,r,o)){a.push(l);break}}return a}filters={startsWith:(e,i,r)=>{if(i==null||i.trim()==="")return!0;if(e==null)return!1;let s=Se.removeAccents(i.toString()).toLocaleLowerCase(r);return Se.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,s.length)===s},contains:(e,i,r)=>{if(i==null||typeof i=="string"&&i.trim()==="")return!0;if(e==null)return!1;let s=Se.removeAccents(i.toString()).toLocaleLowerCase(r);return Se.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(s)!==-1},notContains:(e,i,r)=>{if(i==null||typeof i=="string"&&i.trim()==="")return!0;if(e==null)return!1;let s=Se.removeAccents(i.toString()).toLocaleLowerCase(r);return Se.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(s)===-1},endsWith:(e,i,r)=>{if(i==null||i.trim()==="")return!0;if(e==null)return!1;let s=Se.removeAccents(i.toString()).toLocaleLowerCase(r),o=Se.removeAccents(e.toString()).toLocaleLowerCase(r);return o.indexOf(s,o.length-s.length)!==-1},equals:(e,i,r)=>i==null||typeof i=="string"&&i.trim()===""?!0:e==null?!1:e.getTime&&i.getTime?e.getTime()===i.getTime():e==i?!0:Se.removeAccents(e.toString()).toLocaleLowerCase(r)==Se.removeAccents(i.toString()).toLocaleLowerCase(r),notEquals:(e,i,r)=>i==null||typeof i=="string"&&i.trim()===""?!1:e==null?!0:e.getTime&&i.getTime?e.getTime()!==i.getTime():e==i?!1:Se.removeAccents(e.toString()).toLocaleLowerCase(r)!=Se.removeAccents(i.toString()).toLocaleLowerCase(r),in:(e,i)=>{if(i==null||i.length===0)return!0;for(let r=0;r<i.length;r++)if(Se.equals(e,i[r]))return!0;return!1},between:(e,i)=>i==null||i[0]==null||i[1]==null?!0:e==null?!1:e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1],lt:(e,i,r)=>i==null?!0:e==null?!1:e.getTime&&i.getTime?e.getTime()<i.getTime():e<i,lte:(e,i,r)=>i==null?!0:e==null?!1:e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i,gt:(e,i,r)=>i==null?!0:e==null?!1:e.getTime&&i.getTime?e.getTime()>i.getTime():e>i,gte:(e,i,r)=>i==null?!0:e==null?!1:e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i,is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>i==null?!0:e==null?!1:e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>i==null?!0:e==null?!1:e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>i==null?!0:e==null?!1:e.getTime()<i.getTime(),dateAfter:(e,i)=>{if(i==null)return!0;if(e==null)return!1;let r=new Date(e);return r.setHours(0,0,0,0),r.getTime()>i.getTime()}};register(e,i){this.filters[e]=i}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yp=(()=>{class t{messageSource=new Ht;clearSource=new Ht;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac})}return t})(),Wl=(()=>{class t{clickSource=new Ht;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vn=(()=>{class t{ripple=!1;inputStyle=ar("outlined");overlayOptions={};csp=ar({nonce:void 0});filterMatchModeOptions={text:[ii.STARTS_WITH,ii.CONTAINS,ii.NOT_CONTAINS,ii.ENDS_WITH,ii.EQUALS,ii.NOT_EQUALS],numeric:[ii.EQUALS,ii.NOT_EQUALS,ii.LESS_THAN,ii.LESS_THAN_OR_EQUAL_TO,ii.GREATER_THAN,ii.GREATER_THAN_OR_EQUAL_TO],date:[ii.DATE_IS,ii.DATE_IS_NOT,ii.DATE_BEFORE,ii.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new Ht;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=xe(xe({},this.translation),e),this.translationSource.next(this.translation)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=me({type:t,selectors:[["p-header"]],standalone:!0,features:[Me],ngContentSelectors:KT,decls:1,vars:0,template:function(i,r){i&1&&(Ln(),cn(0))},encapsulation:2})}return t})(),bp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=me({type:t,selectors:[["p-footer"]],standalone:!0,features:[Me],ngContentSelectors:KT,decls:1,vars:0,template:function(i,r){i&1&&(Ln(),cn(0))},encapsulation:2})}return t})(),Mt=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(i){return new(i||t)(se(zr))};static \u0275dir=kt({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[Z.None,"pTemplate","name"]},standalone:!0})}return t})(),Nt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({})}return t})(),ri=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return t})();var iI=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(se(ln),se(gt))}}static{this.\u0275dir=kt({type:t})}}return t})(),m9=(()=>{class t extends iI{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})()}static{this.\u0275dir=kt({type:t,features:[We]})}}return t})(),hi=new it("");var g9={provide:hi,useExisting:Dn(()=>rI),multi:!0};function v9(){let t=Bs()?Bs().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var _9=new it(""),rI=(()=>{class t extends iI{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!v9())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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{this.\u0275fac=function(i){return new(i||t)(se(ln),se(gt),se(_9,8))}}static{this.\u0275dir=kt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&ye("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[kn([g9]),We]})}}return t})();function To(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function sI(t){return t!=null&&typeof t.length=="number"}var Mp=new it(""),j_=new it(""),y9=/^(?=.{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])?)*$/,fr=class{static min(n){return x9(n)}static max(n){return b9(n)}static required(n){return w9(n)}static requiredTrue(n){return C9(n)}static email(n){return S9(n)}static minLength(n){return E9(n)}static maxLength(n){return T9(n)}static pattern(n){return oI(n)}static nullValidator(n){return Cp(n)}static compose(n){return fI(n)}static composeAsync(n){return pI(n)}};function x9(t){return n=>{if(To(n.value)||To(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function b9(t){return n=>{if(To(n.value)||To(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function w9(t){return To(t.value)?{required:!0}:null}function C9(t){return t.value===!0?null:{required:!0}}function S9(t){return To(t.value)||y9.test(t.value)?null:{email:!0}}function E9(t){return n=>To(n.value)||!sI(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}function T9(t){return n=>sI(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function oI(t){if(!t)return Cp;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(To(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Cp(t){return null}function aI(t){return t!=null}function lI(t){return Ls(t)?pn(t):t}function cI(t){let n={};return t.forEach(e=>{n=e!=null?xe(xe({},n),e):n}),Object.keys(n).length===0?null:n}function uI(t,n){return n.map(e=>e(t))}function I9(t){return!t.validate}function dI(t){return t.map(n=>I9(n)?n:e=>n.validate(e))}function fI(t){if(!t)return null;let n=t.filter(aI);return n.length==0?null:function(e){return cI(uI(e,n))}}function hI(t){return t!=null?fI(dI(t)):null}function pI(t){if(!t)return null;let n=t.filter(aI);return n.length==0?null:function(e){let i=uI(e,n).map(lI);return Nm(i).pipe(wt(cI))}}function mI(t){return t!=null?pI(dI(t)):null}function YT(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gI(t){return t._rawValidators}function vI(t){return t._rawAsyncValidators}function V_(t){return t?Array.isArray(t)?t:[t]:[]}function Sp(t,n){return Array.isArray(t)?t.includes(n):t===n}function XT(t,n){let e=V_(n);return V_(t).forEach(r=>{Sp(e,r)||e.push(r)}),e}function ZT(t,n){return V_(n).filter(e=>!Sp(t,e))}var Ep=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=hI(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=mI(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ea=class extends Ep{get formDirective(){return null}get path(){return null}},Us=class extends Ep{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Tp=class{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},D9={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Vpe=ft(xe({},D9),{"[class.ng-submitted]":"isSubmitted"}),ql=(()=>{class t extends Tp{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(se(Us,2))}}static{this.\u0275dir=kt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Xn("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)},features:[We]})}}return t})(),Ap=(()=>{class t extends Tp{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(se(Ea,10))}}static{this.\u0275dir=kt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Xn("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)},features:[We]})}}return t})();var Uu="VALID",wp="INVALID",$l="PENDING",Wu="DISABLED";function U_(t){return(Fp(t)?t.validators:t)||null}function k9(t){return Array.isArray(t)?hI(t):t||null}function W_(t,n){return(Fp(n)?n.asyncValidators:t)||null}function M9(t){return Array.isArray(t)?mI(t):t||null}function Fp(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _I(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new De(1e3,"");if(!i[e])throw new De(1001,"")}function yI(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new De(1002,"")})}var Gl=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Uu}get invalid(){return this.status===wp}get pending(){return this.status==$l}get disabled(){return this.status===Wu}get enabled(){return this.status!==Wu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(XT(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(XT(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ZT(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ZT(n,this._rawAsyncValidators))}hasValidator(n){return Sp(this._rawValidators,n)}hasAsyncValidator(n){return Sp(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=$l,n.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Wu,this.errors=null,this._forEachChild(i=>{i.disable(ft(xe({},n),{onlySelf:!0}))}),this._updateValue(),n.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ft(xe({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Uu,this._forEachChild(i=>{i.enable(ft(xe({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(ft(xe({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Uu||this.status===$l)&&this._runAsyncValidator(n.emitEvent)),n.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wu:Uu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=$l,this._hasOwnPendingAsyncValidator=!0;let e=lI(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?Wu:this.errors?wp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($l)?$l:this._anyControlsHaveStatus(wp)?wp:Uu}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Fp(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=k9(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=M9(this._rawAsyncValidators)}},Ip=class extends Gl{constructor(n,e,i){super(U_(e),W_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){yI(this,!0,n),Object.keys(n).forEach(i=>{_I(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var B_=class extends Ip{};var Pp=new it("CallSetDisabledState",{providedIn:"root",factory:()=>Op}),Op="always";function xI(t,n){return[...n.path,t]}function H_(t,n,e=Op){$_(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),F9(t,n),O9(t,n),P9(t,n),A9(t,n)}function QT(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),kp(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Dp(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function A9(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function $_(t,n){let e=gI(t);n.validator!==null?t.setValidators(YT(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=vI(t);n.asyncValidator!==null?t.setAsyncValidators(YT(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Dp(n._rawValidators,r),Dp(n._rawAsyncValidators,r)}function kp(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=gI(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==n.validator);s.length!==r.length&&(e=!0,t.setValidators(s))}}if(n.asyncValidator!==null){let r=vI(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==n.asyncValidator);s.length!==r.length&&(e=!0,t.setAsyncValidators(s))}}}let i=()=>{};return Dp(n._rawValidators,i),Dp(n._rawAsyncValidators,i),e}function F9(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&bI(t,n)})}function P9(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&bI(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function bI(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function O9(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function R9(t,n){t==null,$_(t,n)}function L9(t,n){return kp(t,n)}function wI(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function N9(t){return Object.getPrototypeOf(t.constructor)===m9}function V9(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function CI(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(s=>{s.constructor===rI?e=s:N9(s)?i=s:r=s}),r||i||e||null}function B9(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function JT(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function eI(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var $u=class extends Gl{constructor(n=null,e,i){super(U_(e),W_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(eI(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){JT(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){JT(this._onDisabledChange,n)}_forEachChild(n){}_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(n){eI(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var H9=t=>t instanceof $u;var z9={provide:Us,useExisting:Dn(()=>Gu)},tI=Promise.resolve(),Gu=(()=>{class t extends Us{constructor(e,i,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new $u,this._registered=!1,this.name="",this.update=new ve,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=CI(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),wI(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){H_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){tI.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&oe(i);tI.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?xI(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(se(Ea,9),se(Mp,10),se(j_,10),se(hi,10),se(Lt,8),se(Pp,8))}}static{this.\u0275dir=kt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Z.None,"disabled","isDisabled"],model:[Z.None,"ngModel","model"],options:[Z.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[kn([z9]),We,xn]})}}return t})(),Rp=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=kt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return t})();var SI=new it("");var j9={provide:Ea,useExisting:Dn(()=>qu)},qu=(()=>{class t extends Ea{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(kp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return H_(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){QT(e.control||null,e,!1),B9(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,V9(this.form,this.directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(QT(i||null,e),H9(r)&&(H_(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);R9(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&L9(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){$_(this.form,this),this._oldForm&&kp(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(i){return new(i||t)(se(Mp,10),se(j_,10),se(Pp,8))}}static{this.\u0275dir=kt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&ye("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[Z.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kn([j9]),We,xn]})}}return t})();var U9={provide:Us,useExisting:Dn(()=>Ku)},Ku=(()=>{class t extends Us{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new ve,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=CI(this,s)}ngOnChanges(e){this._added||this._setUpControl(),wI(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return xI(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(i){return new(i||t)(se(Ea,13),se(Mp,10),se(j_,10),se(hi,10),se(SI,8))}}static{this.\u0275dir=kt({type:t,selectors:[["","formControlName",""]],inputs:{name:[Z.None,"formControlName","name"],isDisabled:[Z.None,"disabled","isDisabled"],model:[Z.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[kn([U9]),We,xn]})}}return t})();var W9=(()=>{class t{constructor(){this._validator=Cp}ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Cp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=kt({type:t,features:[xn]})}}return t})();var $9={provide:Mp,useExisting:Dn(()=>Yu),multi:!0},Yu=(()=>{class t extends W9{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>oI(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})()}static{this.\u0275dir=kt({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ne("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[kn([$9]),We]})}}return t})();var EI=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=tt({type:t})}static{this.\u0275inj=et({})}}return t})(),z_=class extends Gl{constructor(n,e,i){super(U_(e),W_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);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:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){yI(this,!1,n),n.forEach((i,r)=>{_I(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function nI(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Lp=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),s={};return nI(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Ip(r,s)}record(e,i=null){let r=this._reduceControls(e);return new B_(r,i)}control(e,i,r){let s={};return this.useNonNullable?(nI(i)?s=i:(s.validators=i,s.asyncValidators=r),new $u(e,ft(xe({},s),{nonNullable:!0}))):new $u(e,i,r)}array(e,i,r){let s=e.map(o=>this._createControl(o));return new z_(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof $u)return e;if(e instanceof Gl)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ta=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pp,useValue:e.callSetDisabledState??Op}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=tt({type:t})}static{this.\u0275inj=et({imports:[EI]})}}return t})(),Np=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:SI,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Pp,useValue:e.callSetDisabledState??Op}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=tt({type:t})}static{this.\u0275inj=et({imports:[EI]})}}return t})();function G9(t,n){if(t&1&&(P(0,"div",4),Te(1),O()),t&2){let e=I();C(),Vt(" ",e.errorMessage,`
`)}}var Bp=(()=>{class t{constructor(){this.label="",this.pattern=/.*/,this.placeholder="",this.errorMessage="Invalid input",this.startValidate=!1,this.type="text",this.value="",this.isFocused=!1,this.valueChange=new ve,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}onInputChange(e){let i=e.target;this.value=i.value,this.onChange(this.value),this.valueChange.emit(this.value)}isValid(){return new RegExp(this.pattern).test(this.value)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-input-field"]],inputs:{label:"label",pattern:"pattern",placeholder:"placeholder",errorMessage:"errorMessage",startValidate:"startValidate",type:"type"},outputs:{valueChange:"valueChange"},standalone:!0,features:[kn([{provide:hi,useExisting:Dn(()=>t),multi:!0}]),Me],decls:5,vars:13,consts:[[1,"relative","w-[25rem]","lg:w-screen","max-w-[80vw]","lg:max-w-[20vw]","px-6","py-3","rounded-3xl","bg-white"],["for","input",1,"absolute","left-6","top-4","transition-all","text-xl"],["id","input",1,"block","w-full","bg-white","px-4","mt-4","text-gray-900","placeholder-transparent","rounded-lg","focus:outline-none","text-xl",3,"input","focus","blur","type","value","placeholder"],["class","text-primary-400 text-base mt-2 ml-5",4,"ngIf"],[1,"text-primary-400","text-base","mt-2","ml-5"]],template:function(i,r){i&1&&(P(0,"div",0)(1,"label",1),Te(2),O(),P(3,"input",2),ye("input",function(o){return r.onInputChange(o)})("focus",function(){return r.isFocused=!0})("blur",function(){return r.isFocused=r.value!==""}),O()(),N(4,G9,2,1,"div",3)),i&2&&(C(),Xn("text-gray-400",!r.value&&!r.isFocused)("text-xs",r.value||r.isFocused)("text-gray-500",r.value||r.isFocused)("-translate-y-3",r.value||r.isFocused),C(),Vt(" ",r.label," "),C(),b("type",r.type)("value",r.value)("placeholder",r.isFocused?"":r.placeholder),C(),b("ngIf",r.startValidate&&!r.isValid()))},dependencies:[Ta,Ut],encapsulation:2})}}return t})();var q=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let s=0;s<r.length;s++)e.classList.add(r[s])}else{let r=i.split(" ");for(let s=0;s<r.length;s++)e.className+=" "+r[s]}}static removeClass(e,i){e&&i&&(e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,i){e&&i&&[i].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,i){return e&&i?e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className):!1}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(i){return i!==e})}static find(e,i){return Array.from(e.querySelectorAll(i))}static findSingle(e,i){return this.isElement(e)?e.querySelector(i):null}static index(e){let i=e.parentNode.childNodes,r=0;for(var s=0;s<i.length;s++){if(i[s]==e)return r;i[s].nodeType==1&&r++}return-1}static indexWithinGroup(e,i){let r=e.parentNode?e.parentNode.childNodes:[],s=0;for(var o=0;o<r.length;o++){if(r[o]==e)return s;r[o].attributes&&r[o].attributes[i]&&r[o].nodeType==1&&s++}return-1}static appendOverlay(e,i,r="self"){r!=="self"&&e&&i&&this.appendChild(e,i)}static alignOverlay(e,i,r="self",s=!0){e&&i&&(s&&(e.style.minWidth=`${t.getOuterWidth(i)}px`),r==="self"?this.relativePosition(e,i):this.absolutePosition(e,i))}static relativePosition(e,i,r=!0){let s=_=>{if(_)return getComputedStyle(_).getPropertyValue("position")==="relative"?_:s(_.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=i.offsetHeight??i.getBoundingClientRect().height,l=i.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),d=this.getViewport(),h=s(e)?.getBoundingClientRect()||{top:-1*c,left:-1*u},m,p;l.top+a+o.height>d.height?(m=l.top-h.top-o.height,e.style.transformOrigin="bottom",l.top+m<0&&(m=-1*l.top)):(m=a+l.top-h.top,e.style.transformOrigin="top");let g=l.left+o.width-d.width,v=l.left-h.left;o.width>d.width?p=(l.left-h.left)*-1:g>0?p=v-g:p=l.left-h.left,e.style.top=m+"px",e.style.left=p+"px",r&&(e.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(e,i,r=!0){let s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=s.height,a=s.width,l=i.offsetHeight??i.getBoundingClientRect().height,c=i.offsetWidth??i.getBoundingClientRect().width,u=i.getBoundingClientRect(),d=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),h=this.getViewport(),m,p;u.top+l+o>h.height?(m=u.top+d-o,e.style.transformOrigin="bottom",m<0&&(m=d)):(m=l+u.top+d,e.style.transformOrigin="top"),u.left+a>h.width?p=Math.max(0,u.left+f+c-a):p=u.left+f,e.style.top=m+"px",e.style.left=p+"px",r&&(e.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,i=[]){return e.parentNode===null?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e),s=/(auto|scroll)/,o=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=a.nodeType===1&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&o(d)&&i.push(d)}}a.nodeType!==9&&o(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=r?parseFloat(r):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),a=o?parseFloat(o):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,d=e.scrollTop,f=e.clientHeight,h=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+h>f&&(e.scrollTop=d+u-f+h)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,s=0,o=function(){s=+e.style.opacity.replace(",",".")+(new Date().getTime()-r)/i,e.style.opacity=s,r=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(e,i){var r=1,s=50,o=i,a=s/o;let l=setInterval(()=>{r=r-a,r<=0&&(r=0,clearInterval(l)),e.style.opacity=r},s)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype,s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(o){return[].indexOf.call(document.querySelectorAll(o),this)!==-1};return s.call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,s=i.getElementsByTagName("body")[0],o=e.innerWidth||r.clientWidth||s.clientWidth,a=e.innerHeight||r.clientHeight||s.clientHeight;return{width:o,height:a}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent,i=e.indexOf("MSIE ");if(i>0)return!0;var r=e.indexOf("Trident/");if(r>0){var s=e.indexOf("rv:");return!0}var o=e.indexOf("Edge/");return o>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else if(i&&i.el&&i.el.nativeElement)i.el.nativeElement.appendChild(e);else throw"Cannot append "+i+" to "+e}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else if(i.el&&i.el.nativeElement)i.el.nativeElement.removeChild(e);else throw"Cannot remove "+e+" from "+i}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||e.offsetParent===null}static isVisible(e){return e&&e.offsetParent!=null}static isExist(e){return e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
        .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,i=""){let r=this.find(e,this.getFocusableSelectorString(i)),s=[];for(let o of r){let a=getComputedStyle(o);this.isVisible(o)&&a.display!="none"&&a.visibility!="hidden"&&s.push(o)}return s}static getFocusableElement(e,i=""){let r=this.findSingle(e,this.getFocusableSelectorString(i));if(r){let s=getComputedStyle(r);if(this.isVisible(r)&&s.display!="none"&&s.visibility!="hidden")return r}return null}static getFirstFocusableElement(e,i=""){let r=this.getFocusableElements(e,i);return r.length>0?r[0]:null}static getLastFocusableElement(e,i){let r=this.getFocusableElements(e,i);return r.length>0?r[r.length-1]:null}static getNextFocusableElement(e,i=!1){let r=t.getFocusableElements(e),s=0;if(r&&r.length>0){let o=r.indexOf(r[0].ownerDocument.activeElement);i?o==-1||o===0?s=r.length-1:s=o-1:o!=-1&&o!==r.length-1&&(s=o+1)}return r[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:let r=typeof e;if(r==="string")return document.querySelector(e);if(r==="object"&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;let o=(a=>!!(a&&a.constructor&&a.call&&a.apply))(e)?e():e;return o&&o.nodeType===9||this.isExist(o)?o:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,i){if(e){let r=e.getAttribute(i);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,i={},...r){if(e){let s=document.createElement(e);return this.setAttributes(s,i),s.append(...r),s}}static setAttribute(e,i="",r){this.isElement(e)&&r!==null&&r!==void 0&&e.setAttribute(i,r)}static setAttributes(e,i={}){if(this.isElement(e)){let r=(s,o)=>{let a=e?.$attrs?.[s]?[e?.$attrs?.[s]]:[];return[o].flat().reduce((l,c)=>{if(c!=null){let u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){let d=Array.isArray(c)?r(s,c):Object.entries(c).map(([f,h])=>s==="style"&&(h||h===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?f:void 0);l=d.length?l.concat(d.filter(f=>!!f)):l}}return l},a)};Object.entries(i).forEach(([s,o])=>{if(o!=null){let a=s.match(/^on(.+)/);a?e.addEventListener(a[1].toLowerCase(),o):s==="pBind"?this.setAttributes(e,o):(o=s==="class"?[...new Set(r("class",o))].join(" ").trim():s==="style"?r("style",o).join(";").trim():o,(e.$attrs=e.$attrs||{})&&(e.$attrs[s]=o),e.setAttribute(s,o))}})}}static isFocusableElement(e,i=""){return this.isElement(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}`):!1}}return t})(),Ws=class{element;listener;scrollableParents;constructor(n,e=()=>{}){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=q.getScrollableParents(this.element);for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}};var TI=(()=>{class t{pFocusTrapDisabled=!1;platformId=_e(nn);host=_e(gt);document=_e(Tt);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){gn(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){e.pFocusTrapDisabled&&gn(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",i=r=>q.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:r?.bind(this)});this.firstHiddenFocusableElement=i(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=i(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.host.nativeElement.prepend(this.firstHiddenFocusableElement),this.host.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:i,relatedTarget:r}=e,s=r===this.lastHiddenFocusableElement||!this.host.nativeElement?.contains(r)?q.getFirstFocusableElement(i.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;q.focus(s)}onLastHiddenElementFocus(e){let{currentTarget:i,relatedTarget:r}=e,s=r===this.firstHiddenFocusableElement||!this.host.nativeElement?.contains(r)?q.getLastFocusableElement(i.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;q.focus(s)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=kt({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],inputs:{pFocusTrapDisabled:[Z.HasDecoratorInputTransform,"pFocusTrapDisabled","pFocusTrapDisabled",oe]},features:[Et,xn]})}return t})(),II=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It]})}return t})();var K9=["*"],Qe=(()=>{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let e=Se.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=me({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[Z.HasDecoratorInputTransform,"spin","spin",oe],styleClass:"styleClass"},standalone:!0,features:[Et,Me],ngContentSelectors:K9,decls:1,vars:0,template:function(i,r){i&1&&(Ln(),cn(0))},encapsulation:2,changeDetection:0})}return t})();var si=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var G_=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var q_=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var Gi=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,i,r,s,o,a){this.document=e,this.platformId=i,this.renderer=r,this.el=s,this.zone=o,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){gn(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let i=this.getInk();if(!i||this.document.defaultView?.getComputedStyle(i,null).display==="none")return;if(q.removeClass(i,"p-ink-active"),!q.getHeight(i)&&!q.getWidth(i)){let a=Math.max(q.getOuterWidth(this.el.nativeElement),q.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=q.getOffset(this.el.nativeElement),s=e.pageX-r.left+this.document.body.scrollTop-q.getWidth(i)/2,o=e.pageY-r.top+this.document.body.scrollLeft-q.getHeight(i)/2;this.renderer.setStyle(i,"top",o+"px"),this.renderer.setStyle(i,"left",s+"px"),q.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&q.removeClass(a,"p-ink-active")},401)}getInk(){let e=this.el.nativeElement.children;for(let i=0;i<e.length;i++)if(typeof e[i].className=="string"&&e[i].className.indexOf("p-ink")!==-1)return e[i];return null}resetInk(){let e=this.getInk();e&&q.removeClass(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),q.removeClass(e.currentTarget,"p-ink-active")}create(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"p-ink"),this.renderer.appendChild(this.el.nativeElement,e),this.renderer.setAttribute(e,"aria-hidden","true"),this.renderer.setAttribute(e,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(e,"animationend",this.onAnimationEnd.bind(this)))}remove(){let e=this.getInk();e&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,q.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(i){return new(i||t)(se(Tt),se(nn),se(ln),se(gt),se(rt),se(vn,8))};static \u0275dir=kt({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"],standalone:!0})}return t})(),Sr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({})}return t})();var Er=(()=>{class t{autofocus=!1;focused=!1;platformId=_e(nn);document=_e(Tt);host=_e(gt);ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){gn(this.platformId)&&this.autofocus&&setTimeout(()=>{let e=q.getFocusableElements(this.host?.nativeElement);e.length===0&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=kt({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe]},standalone:!0,features:[Et]})}return t})(),ds=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({})}return t})();var Io=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var Y9=["*"],DI=t=>({class:t});function X9(t,n){t&1&&Re(0)}function Z9(t,n){if(t&1&&re(0,"span",8),t&2){let e=I(3);b("ngClass",e.iconClass()),ne("aria-hidden",!0)("data-pc-section","loadingicon")}}function Q9(t,n){if(t&1&&re(0,"SpinnerIcon",9),t&2){let e=I(3);b("styleClass",e.spinnerIconClass())("spin",!0),ne("aria-hidden",!0)("data-pc-section","loadingicon")}}function J9(t,n){if(t&1&&(Fe(0),N(1,Z9,1,3,"span",6)(2,Q9,1,4,"SpinnerIcon",7),Pe()),t&2){let e=I(2);C(),b("ngIf",e.loadingIcon),C(),b("ngIf",!e.loadingIcon)}}function eV(t,n){}function tV(t,n){if(t&1&&N(0,eV,0,0,"ng-template",10),t&2){let e=I(2);b("ngIf",e.loadingIconTemplate)}}function nV(t,n){if(t&1&&(Fe(0),N(1,J9,3,2,"ng-container",2)(2,tV,1,1,null,5),Pe()),t&2){let e=I();C(),b("ngIf",!e.loadingIconTemplate),C(),b("ngTemplateOutlet",e.loadingIconTemplate)("ngTemplateOutletContext",Xe(3,DI,e.iconClass()))}}function iV(t,n){if(t&1&&re(0,"span",8),t&2){let e=I(2);b("ngClass",e.iconClass()),ne("data-pc-section","icon")}}function rV(t,n){}function sV(t,n){if(t&1&&N(0,rV,0,0,"ng-template",10),t&2){let e=I(2);b("ngIf",!e.icon&&e.iconTemplate)}}function oV(t,n){if(t&1&&(Fe(0),N(1,iV,1,2,"span",6)(2,sV,1,1,null,5),Pe()),t&2){let e=I();C(),b("ngIf",e.icon&&!e.iconTemplate),C(),b("ngTemplateOutlet",e.iconTemplate)("ngTemplateOutletContext",Xe(3,DI,e.iconClass()))}}function aV(t,n){if(t&1&&(P(0,"span",11),Te(1),O()),t&2){let e=I();ne("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),C(),yt(e.label)}}function lV(t,n){if(t&1&&(P(0,"span",8),Te(1),O()),t&2){let e=I();be(e.badgeClass),b("ngClass",e.badgeStyleClass()),ne("data-pc-section","badge"),C(),yt(e.badge)}}var Do={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"},fs=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}severity;raised=!1;rounded=!1;text=!1;outlined=!1;size=null;plain=!1;_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(Do);constructor(e,i){this.el=e,this.document=i}ngAfterViewInit(){q.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e=[Do.button,Do.component];return this.icon&&!this.label&&Se.isEmpty(this.htmlElement.textContent)&&e.push(Do.iconOnly),this.loading&&(e.push(Do.disabled,Do.loading),!this.icon&&this.label&&e.push(Do.labelOnly),this.icon&&!this.label&&!Se.isEmpty(this.htmlElement.textContent)&&e.push(Do.iconOnly)),this.text&&e.push("p-button-text"),this.severity&&e.push(`p-button-${this.severity}`),this.plain&&e.push("p-button-plain"),this.raised&&e.push("p-button-raised"),this.size&&e.push(`p-button-${this.size}`),this.outlined&&e.push("p-button-outlined"),this.rounded&&e.push("p-button-rounded"),this.size==="small"&&e.push("p-button-sm"),this.size==="large"&&e.push("p-button-lg"),e}setStyleClass(){let e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(!q.findSingle(this.htmlElement,".p-button-label")&&this.label){let i=this.document.createElement("span");this.icon&&!this.label&&i.setAttribute("aria-hidden","true"),i.className="p-button-label",i.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(i)}}createIcon(){if(!q.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let i=this.document.createElement("span");i.className="p-button-icon",i.setAttribute("aria-hidden","true");let r=this.label?"p-button-icon-"+this.iconPos:null;r&&q.addClass(i,r);let s=this.getIconClass();s&&q.addMultipleClasses(i,s),this.htmlElement.insertBefore(i,this.htmlElement.firstChild)}}updateLabel(){let e=q.findSingle(this.htmlElement,".p-button-label");if(!this.label){e&&this.htmlElement.removeChild(e);return}e?e.textContent=this.label:this.createLabel()}updateIcon(){let e=q.findSingle(this.htmlElement,".p-button-icon"),i=q.findSingle(this.htmlElement,".p-button-label");e?this.iconPos?e.className="p-button-icon "+(i?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():e.className="p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon pi-spin "+(this.loadingIcon??"pi pi-spinner"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(i){return new(i||t)(se(gt),se(Tt))};static \u0275dir=kt({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading",severity:"severity",raised:[Z.HasDecoratorInputTransform,"raised","raised",oe],rounded:[Z.HasDecoratorInputTransform,"rounded","rounded",oe],text:[Z.HasDecoratorInputTransform,"text","text",oe],outlined:[Z.HasDecoratorInputTransform,"outlined","outlined",oe],size:"size",plain:[Z.HasDecoratorInputTransform,"plain","plain",oe]},standalone:!0,features:[Et]})}return t})(),cV=(()=>{class t{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new ve;onFocus=new ve;onBlur=new ve;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(e){this.el=e}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[i])=>e+` ${i}`,"p-button-loading-icon")}iconClass(){let e={"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label};return this.loading?e[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]=!0:this.icon&&(e[this.icon]=!0),e}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"icon":this.iconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&String(this.badge).length===1}}focus(){this.el.nativeElement.firstChild.focus()}static \u0275fac=function(i){return new(i||t)(se(gt))};static \u0275cmp=me({type:t,selectors:[["p-button"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(i,r){i&2&&Xn("p-disabled",r.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[Z.HasDecoratorInputTransform,"disabled","disabled",oe],loading:[Z.HasDecoratorInputTransform,"loading","loading",oe],loadingIcon:"loadingIcon",raised:[Z.HasDecoratorInputTransform,"raised","raised",oe],rounded:[Z.HasDecoratorInputTransform,"rounded","rounded",oe],text:[Z.HasDecoratorInputTransform,"text","text",oe],plain:[Z.HasDecoratorInputTransform,"plain","plain",oe],severity:"severity",outlined:[Z.HasDecoratorInputTransform,"outlined","outlined",oe],link:[Z.HasDecoratorInputTransform,"link","link",oe],tabindex:[Z.HasDecoratorInputTransform,"tabindex","tabindex",Je],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},standalone:!0,features:[Et,Me],ngContentSelectors:Y9,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[1,"p-button-label"]],template:function(i,r){i&1&&(Ln(),P(0,"button",0),ye("click",function(o){return r.onClick.emit(o)})("focus",function(o){return r.onFocus.emit(o)})("blur",function(o){return r.onBlur.emit(o)}),cn(1),N(2,X9,1,0,"ng-container",1)(3,nV,3,5,"ng-container",2)(4,oV,3,5,"ng-container",2)(5,aV,2,3,"span",3)(6,lV,2,5,"span",4),O()),i&2&&(b("ngStyle",r.style)("disabled",r.disabled||r.loading)("ngClass",r.buttonClass)("autofocus",r.autofocus),ne("type",r.type)("aria-label",r.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",r.tabindex),C(2),b("ngTemplateOutlet",r.contentTemplate),C(),b("ngIf",r.loading),C(),b("ngIf",!r.loading),C(),b("ngIf",!r.contentTemplate&&r.label),C(),b("ngIf",!r.contentTemplate&&r.badge))},dependencies:[Ut,qt,Bt,zt,Gi,Er,Io],encapsulation:2,changeDetection:0})}return t})(),Oi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[cV,Nt]})}return t})();var uV=["titlebar"],dV=["content"],fV=["footer"],hV=["*",[["p-header"]],[["p-footer"]]],pV=["*","p-header","p-footer"],mV=(t,n,e,i,r,s,o,a,l,c)=>({"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":n,"p-dialog-left":e,"p-dialog-right":i,"p-dialog-top":r,"p-dialog-top-left":s,"p-dialog-top-right":o,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}),gV=(t,n,e,i)=>({"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":n,"p-dialog-resizable":e,"p-dialog-maximized":i}),vV=(t,n)=>({transform:t,transition:n}),_V=t=>({value:"visible",params:t}),yV=()=>({"p-dialog-header-icon p-dialog-header-maximize p-link":!0}),xV=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0}),bV=()=>({"min-width":0});function wV(t,n){t&1&&Re(0)}function CV(t,n){if(t&1&&(Fe(0),N(1,wV,1,0,"ng-container",10),Pe()),t&2){let e=I(3);C(),b("ngTemplateOutlet",e.headlessTemplate)}}function SV(t,n){if(t&1){let e=He();P(0,"div",15),ye("mousedown",function(r){J(e);let s=I(4);return ee(s.initResize(r))}),O()}}function EV(t,n){if(t&1&&(P(0,"span",21),Te(1),O()),t&2){let e=I(5);b("id",e.ariaLabelledBy),C(),yt(e.header)}}function TV(t,n){if(t&1&&(P(0,"span",21),cn(1,1),O()),t&2){let e=I(5);b("id",e.ariaLabelledBy)}}function IV(t,n){t&1&&Re(0)}function DV(t,n){if(t&1&&re(0,"span",25),t&2){let e=I(6);b("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function kV(t,n){t&1&&re(0,"WindowMaximizeIcon",27),t&2&&b("styleClass","p-dialog-header-maximize-icon")}function MV(t,n){t&1&&re(0,"WindowMinimizeIcon",27),t&2&&b("styleClass","p-dialog-header-maximize-icon")}function AV(t,n){if(t&1&&(Fe(0),N(1,kV,1,1,"WindowMaximizeIcon",26)(2,MV,1,1,"WindowMinimizeIcon",26),Pe()),t&2){let e=I(6);C(),b("ngIf",!e.maximized&&!e.maximizeIconTemplate),C(),b("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function FV(t,n){}function PV(t,n){t&1&&N(0,FV,0,0,"ng-template")}function OV(t,n){if(t&1&&(Fe(0),N(1,PV,1,0,null,10),Pe()),t&2){let e=I(6);C(),b("ngTemplateOutlet",e.maximizeIconTemplate)}}function RV(t,n){}function LV(t,n){t&1&&N(0,RV,0,0,"ng-template")}function NV(t,n){if(t&1&&(Fe(0),N(1,LV,1,0,null,10),Pe()),t&2){let e=I(6);C(),b("ngTemplateOutlet",e.minimizeIconTemplate)}}function VV(t,n){if(t&1){let e=He();P(0,"button",22),ye("click",function(){J(e);let r=I(5);return ee(r.maximize())})("keydown.enter",function(){J(e);let r=I(5);return ee(r.maximize())}),N(1,DV,1,1,"span",23)(2,AV,3,2,"ng-container",24)(3,OV,2,1,"ng-container",24)(4,NV,2,1,"ng-container",24),O()}if(t&2){let e=I(5);b("ngClass",Bn(7,yV)),ne("tabindex",e.maximizable?"0":"-1")("aria-label",e.maximizeLabel),C(),b("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),C(),b("ngIf",!e.maximizeIcon),C(),b("ngIf",!e.maximized),C(),b("ngIf",e.maximized)}}function BV(t,n){if(t&1&&re(0,"span",30),t&2){let e=I(7);b("ngClass",e.closeIcon)}}function HV(t,n){t&1&&re(0,"TimesIcon",27),t&2&&b("styleClass","p-dialog-header-close-icon")}function zV(t,n){if(t&1&&(Fe(0),N(1,BV,1,1,"span",29)(2,HV,1,1,"TimesIcon",26),Pe()),t&2){let e=I(6);C(),b("ngIf",e.closeIcon),C(),b("ngIf",!e.closeIcon)}}function jV(t,n){}function UV(t,n){t&1&&N(0,jV,0,0,"ng-template")}function WV(t,n){if(t&1&&(P(0,"span"),N(1,UV,1,0,null,10),O()),t&2){let e=I(6);C(),b("ngTemplateOutlet",e.closeIconTemplate)}}function $V(t,n){if(t&1){let e=He();P(0,"button",28),ye("click",function(r){J(e);let s=I(5);return ee(s.close(r))})("keydown.enter",function(r){J(e);let s=I(5);return ee(s.close(r))}),N(1,zV,3,2,"ng-container",24)(2,WV,2,1,"span",24),O()}if(t&2){let e=I(5);b("ngClass",Bn(6,xV))("ngStyle",Bn(7,bV)),ne("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),C(),b("ngIf",!e.closeIconTemplate),C(),b("ngIf",e.closeIconTemplate)}}function GV(t,n){if(t&1){let e=He();P(0,"div",16,3),ye("mousedown",function(r){J(e);let s=I(4);return ee(s.initDrag(r))}),N(2,EV,2,2,"span",17)(3,TV,2,1,"span",17)(4,IV,1,0,"ng-container",10),P(5,"div",18),N(6,VV,5,8,"button",19)(7,$V,3,8,"button",20),O()()}if(t&2){let e=I(4);C(2),b("ngIf",!e.headerFacet&&!e.headerTemplate),C(),b("ngIf",e.headerFacet),C(),b("ngTemplateOutlet",e.headerTemplate),C(2),b("ngIf",e.maximizable),C(),b("ngIf",e.closable)}}function qV(t,n){t&1&&Re(0)}function KV(t,n){t&1&&Re(0)}function YV(t,n){if(t&1&&(P(0,"div",31,4),cn(2,2),N(3,KV,1,0,"ng-container",10),O()),t&2){let e=I(4);C(3),b("ngTemplateOutlet",e.footerTemplate)}}function XV(t,n){if(t&1&&(N(0,SV,1,0,"div",11)(1,GV,8,5,"div",12),P(2,"div",13,2),cn(4),N(5,qV,1,0,"ng-container",10),O(),N(6,YV,4,1,"div",14)),t&2){let e=I(3);b("ngIf",e.resizable),C(),b("ngIf",e.showHeader),C(),be(e.contentStyleClass),b("ngClass","p-dialog-content")("ngStyle",e.contentStyle),C(3),b("ngTemplateOutlet",e.contentTemplate),C(),b("ngIf",e.footerFacet||e.footerTemplate)}}function ZV(t,n){if(t&1){let e=He();P(0,"div",8,0),ye("@animation.start",function(r){J(e);let s=I(2);return ee(s.onAnimationStart(r))})("@animation.done",function(r){J(e);let s=I(2);return ee(s.onAnimationEnd(r))}),N(2,CV,2,1,"ng-container",9)(3,XV,7,8,"ng-template",null,1,ei),O()}if(t&2){let e=mn(4),i=I(2);be(i.styleClass),b("ngClass",pa(10,gV,i.rtl,i.draggable,i.resizable,i.maximized))("ngStyle",i.style)("pFocusTrapDisabled",i.focusTrap===!1)("@animation",Xe(18,_V,Zt(15,vV,i.transformOptions,i.transitionOptions))),ne("aria-labelledby",i.ariaLabelledBy)("aria-modal",!0),C(2),b("ngIf",i.headlessTemplate)("ngIfElse",e)}}function QV(t,n){if(t&1&&(P(0,"div",6),N(1,ZV,5,20,"div",7),O()),t&2){let e=I();be(e.maskStyleClass),b("ngStyle",e.maskStyle)("ngClass",su(5,mV,[e.modal,e.modal||e.blockScroll,e.position==="left",e.position==="right",e.position==="top",e.position==="topleft"||e.position==="top-left",e.position==="topright"||e.position==="top-right",e.position==="bottom",e.position==="bottomleft"||e.position==="bottom-left",e.position==="bottomright"||e.position==="bottom-right"])),C(),b("ngIf",e.visible)}}var JV=Hl([Hn({transform:"{{transform}}",opacity:0}),Wi("{{transition}}")]),eB=Hl([Wi("{{transition}}",Hn({transform:"{{transform}}",opacity:0}))]),Hp=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=xe({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}onShow=new ve;onHide=new ve;visibleChange=new ve;onResizeInit=new ve;onResizeEnd=new ve;onDragEnd=new ve;onMaximize=new ve;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=ht();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;get maximizeLabel(){return this.config.getTranslation(ri.ARIA).maximizeLabel}constructor(e,i,r,s,o,a,l){this.document=e,this.platformId=i,this.el=r,this.renderer=s,this.zone=o,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return this.header!==null?ht()+"_header":null}parseDurationToMilliseconds(e){let i=/([\d\.]+)(ms|s)\b/g,r=0,s;for(;(s=i.exec(e))!==null;){let o=parseFloat(s[1]),a=s[2];a==="ms"?r+=o:a==="s"&&(r+=o*1e3)}if(r!==0)return r}focus(e=this.contentViewChild?.nativeElement){let i=this.parseDurationToMilliseconds(this.transitionOptions),r=q.getFocusableElement(e,"[autofocus]");if(r){this.zone.runOutsideAngular(()=>{setTimeout(()=>r.focus(),i||5)});return}let s=q.getFocusableElement(e);s?this.zone.runOutsideAngular(()=>{setTimeout(()=>s.focus(),i||5)}):this.footerViewChild&&e!==this.footerViewChild.nativeElement&&this.focus(this.footerViewChild.nativeElement)}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&q.blockBodyScroll()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&e.length==1&&q.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?q.blockBodyScroll():q.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Nn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(gn(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",q.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let i in this.breakpoints)e+=`
                        @media screen and (max-width: ${i}) {
                            .p-dialog[${this.id}]:not(.p-dialog-maximized) {
                                width: ${this.breakpoints[i]} !important;
                            }
                        }
                    `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){q.hasClass(e.target,"p-dialog-header-icon")||q.hasClass(e.target,"p-dialog-header-close-icon")||q.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",q.addClass(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging){let i=q.getOuterWidth(this.container),r=q.getOuterHeight(this.container),s=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),d=a.left+s-c,f=a.top+o-u,h=q.getViewport();this.container.style.position="fixed",this.keepInViewport?(d>=this.minX&&d+i<h.width&&(this._style.left=`${d}px`,this.lastPageX=e.pageX,this.container.style.left=`${d}px`),f>=this.minY&&f+r<h.height&&(this._style.top=`${f}px`,this.lastPageY=e.pageY,this.container.style.top=`${f}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${d}px`,this.lastPageY=e.pageY,this.container.style.top=`${f}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,q.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,q.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let i=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,s=q.getOuterWidth(this.container),o=q.getOuterHeight(this.container),a=q.getOuterHeight(this.contentViewChild?.nativeElement),l=s+i,c=o+r,u=this.container.style.minWidth,d=this.container.style.minHeight,f=this.container.getBoundingClientRect(),h=q.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=i,c+=r),(!u||l>parseInt(u))&&f.left+l<h.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!d||c>parseInt(d))&&f.top+c<h.height&&(this.contentViewChild.nativeElement.style.height=a+c-o+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,q.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",i=>{i.key=="Escape"&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.wrapper):q.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.moveOnTop(),this.appendContainer(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&q.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&q.addClass(this.wrapper,"p-component-overlay-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({});break}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(q.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&q.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Nn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?xe({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(i){return new(i||t)(se(Tt),se(nn),se(gt),se(ln),se(rt),se(Lt),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-dialog"]],contentQueries:function(i,r,s){if(i&1&&(jt(s,xp,5),jt(s,bp,5),jt(s,Mt,4)),i&2){let o;qe(o=Ke())&&(r.headerFacet=o.first),qe(o=Ke())&&(r.footerFacet=o.first),qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&(vt(uV,5),vt(dV,5),vt(fV,5)),i&2){let s;qe(s=Ke())&&(r.headerViewChild=s.first),qe(s=Ke())&&(r.contentViewChild=s.first),qe(s=Ke())&&(r.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:[Z.HasDecoratorInputTransform,"draggable","draggable",oe],resizable:[Z.HasDecoratorInputTransform,"resizable","resizable",oe],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[Z.HasDecoratorInputTransform,"modal","modal",oe],closeOnEscape:[Z.HasDecoratorInputTransform,"closeOnEscape","closeOnEscape",oe],dismissableMask:[Z.HasDecoratorInputTransform,"dismissableMask","dismissableMask",oe],rtl:[Z.HasDecoratorInputTransform,"rtl","rtl",oe],closable:[Z.HasDecoratorInputTransform,"closable","closable",oe],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[Z.HasDecoratorInputTransform,"showHeader","showHeader",oe],breakpoint:"breakpoint",blockScroll:[Z.HasDecoratorInputTransform,"blockScroll","blockScroll",oe],autoZIndex:[Z.HasDecoratorInputTransform,"autoZIndex","autoZIndex",oe],baseZIndex:[Z.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Je],minX:[Z.HasDecoratorInputTransform,"minX","minX",Je],minY:[Z.HasDecoratorInputTransform,"minY","minY",Je],focusOnShow:[Z.HasDecoratorInputTransform,"focusOnShow","focusOnShow",oe],maximizable:[Z.HasDecoratorInputTransform,"maximizable","maximizable",oe],keepInViewport:[Z.HasDecoratorInputTransform,"keepInViewport","keepInViewport",oe],focusTrap:[Z.HasDecoratorInputTransform,"focusTrap","focusTrap",oe],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[Et],ngContentSelectors:pV,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["footer",""],[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["class","p-resizable-handle",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","","pButton","",3,"ngClass","ngStyle","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","pRipple","","pButton","",3,"click","keydown.enter","ngClass"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","","pButton","",3,"click","keydown.enter","ngClass","ngStyle"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"]],template:function(i,r){i&1&&(Ln(hV),N(0,QV,2,16,"div",5)),i&2&&b("ngIf",r.maskVisible)},dependencies:()=>[zt,Ut,qt,Bt,TI,fs,Gi,si,G_,q_],styles:[`@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}
`],encapsulation:2,data:{animation:[zs("animation",[Pi("void => visible",[zl(JV)]),Pi("visible => void",[zl(eB)])])]},changeDetection:0})}return t})(),zp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,II,Oi,Sr,si,G_,q_,Nt]})}return t})();var $r=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var K_=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[We,Me],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1)(3,"path",2)(4,"path",3),O(),P(5,"defs")(6,"clipPath",4),re(7,"rect",5),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(5),b("id",r.pathId))},encapsulation:2})}return t})();var Y_=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var X_=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var MI=["container"],tB=t=>[t,"p-toast-message"],nB=(t,n,e,i)=>({showTransformParams:t,hideTransformParams:n,showTransitionParams:e,hideTransitionParams:i}),iB=t=>({value:"visible",params:t}),rB=(t,n)=>({$implicit:t,closeFn:n}),sB=t=>({$implicit:t});function oB(t,n){t&1&&Re(0)}function aB(t,n){if(t&1&&(Fe(0),N(1,oB,1,0,"ng-container",4),Pe()),t&2){let e=I();C(),b("ngTemplateOutlet",e.headlessTemplate)("ngTemplateOutletContext",Zt(2,rB,e.message,e.onCloseIconClick))}}function lB(t,n){if(t&1&&re(0,"span"),t&2){let e=I(3);be("p-toast-message-icon pi "+e.message.icon)}}function cB(t,n){t&1&&re(0,"CheckIcon"),t&2&&ne("aria-hidden",!0)("data-pc-section","icon")}function uB(t,n){t&1&&re(0,"InfoCircleIcon"),t&2&&ne("aria-hidden",!0)("data-pc-section","icon")}function dB(t,n){t&1&&re(0,"TimesCircleIcon"),t&2&&ne("aria-hidden",!0)("data-pc-section","icon")}function fB(t,n){t&1&&re(0,"ExclamationTriangleIcon"),t&2&&ne("aria-hidden",!0)("data-pc-section","icon")}function hB(t,n){if(t&1&&(P(0,"span",13),Fe(1),N(2,cB,1,2,"CheckIcon",6)(3,uB,1,2,"InfoCircleIcon",6)(4,dB,1,2,"TimesCircleIcon",6)(5,fB,1,2,"ExclamationTriangleIcon",6),Pe(),O()),t&2){let e=I(3);ne("aria-hidden",!0)("data-pc-section","icon"),C(2),b("ngIf",e.message.severity==="success"),C(),b("ngIf",e.message.severity==="info"),C(),b("ngIf",e.message.severity==="error"),C(),b("ngIf",e.message.severity==="warn")}}function pB(t,n){if(t&1&&(Fe(0),N(1,lB,1,2,"span",8)(2,hB,6,6,"span",9),P(3,"div",10)(4,"div",11),Te(5),O(),P(6,"div",12),Te(7),O()(),Pe()),t&2){let e=I(2);C(),b("ngIf",e.message.icon),C(),b("ngIf",!e.message.icon),C(),ne("data-pc-section","text"),C(),ne("data-pc-section","summary"),C(),yt(e.message.summary),C(),ne("data-pc-section","detail"),C(),yt(e.message.detail)}}function mB(t,n){t&1&&Re(0)}function gB(t,n){if(t&1&&re(0,"span"),t&2){let e=I(3);be("pt-1 text-base p-toast-message-icon pi "+e.message.closeIcon)}}function vB(t,n){t&1&&re(0,"TimesIcon",16),t&2&&(b("styleClass","p-toast-icon-close-icon"),ne("aria-hidden",!0)("data-pc-section","closeicon"))}function _B(t,n){if(t&1){let e=He();P(0,"button",14),ye("click",function(r){J(e);let s=I(2);return ee(s.onCloseIconClick(r))})("keydown.enter",function(r){J(e);let s=I(2);return ee(s.onCloseIconClick(r))}),N(1,gB,1,2,"span",8)(2,vB,1,3,"TimesIcon",15),O()}if(t&2){let e=I(2);ne("aria-label",e.closeAriaLabel)("data-pc-section","closebutton"),C(),b("ngIf",e.message.closeIcon),C(),b("ngIf",!e.message.closeIcon)}}function yB(t,n){if(t&1&&(P(0,"div",5),N(1,pB,8,7,"ng-container",6)(2,mB,1,0,"ng-container",4)(3,_B,3,4,"button",7),O()),t&2){let e=I();b("ngClass",e.message==null?null:e.message.contentStyleClass),ne("data-pc-section","content"),C(),b("ngIf",!e.template),C(),b("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Xe(6,sB,e.message)),C(),b("ngIf",(e.message==null?null:e.message.closable)!==!1)}}function xB(t,n){if(t&1){let e=He();P(0,"p-toastItem",3),ye("onClose",function(r){J(e);let s=I();return ee(s.onMessageClose(r))})("@toastAnimation.start",function(r){J(e);let s=I();return ee(s.onAnimationStart(r))})("@toastAnimation.done",function(r){J(e);let s=I();return ee(s.onAnimationEnd(r))}),O()}if(t&2){let e=n.$implicit,i=n.index,r=I();b("message",e)("index",i)("life",r.life)("template",r.template)("headlessTemplate",r.headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}var bB=(()=>{class t{zone;config;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new ve;containerViewChild;timeout;constructor(e,i){this.zone=e,this.config=i}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=e=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout()}static \u0275fac=function(i){return new(i||t)(se(rt),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-toastItem"]],viewQuery:function(i,r){if(i&1&&vt(MI,5),i&2){let s;qe(s=Ke())&&(r.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:[Z.HasDecoratorInputTransform,"index","index",Je],life:[Z.HasDecoratorInputTransform,"life","life",Je],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},features:[Et],decls:5,vars:18,consts:[["container",""],["notHeadless",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"mouseenter","mouseleave","ngClass"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(i,r){if(i&1){let s=He();P(0,"div",2,0),ye("mouseenter",function(){return J(s),ee(r.onMouseEnter())})("mouseleave",function(){return J(s),ee(r.onMouseLeave())}),N(2,aB,2,5,"ng-container",3)(3,yB,4,8,"ng-template",null,1,ei),O()}if(i&2){let s=mn(4);be(r.message==null?null:r.message.styleClass),b("ngClass",Xe(9,tB,"p-toast-message-"+(r.message==null?null:r.message.severity)))("@messageState",Xe(16,iB,pa(11,nB,r.showTransformOptions,r.hideTransformOptions,r.showTransitionOptions,r.hideTransitionOptions))),ne("id",r.message==null?null:r.message.id)("data-pc-name","toast")("data-pc-section","root"),C(2),b("ngIf",r.headlessTemplate)("ngIfElse",s)}},dependencies:()=>[zt,Ut,qt,Gi,$r,Y_,X_,K_,si],encapsulation:2,data:{animation:[zs("messageState",[ep("visible",Hn({transform:"translateY(0)",opacity:1})),Pi("void => *",[Hn({transform:"{{showTransformParams}}",opacity:0}),Wi("{{showTransitionParams}}")]),Pi("* => void",[Wi("{{hideTransitionParams}}",Hn({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return t})(),AI=(()=>{class t{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(e){this._position=e,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new ve;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;headlessTemplate;_position="top-right";constructor(e,i,r,s,o){this.document=e,this.renderer=i,this.messageService=r,this.cd=s,this.config=o}styleElement;id=ht();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(Array.isArray(e)){let i=e.filter(r=>this.canAdd(r));this.add(i)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let i=this.key===e.key;return i&&this.preventOpenDuplicates&&(i=!this.containsMessage(this.messages,e)),i&&this.preventDuplicates&&(i=!this.containsMessage(this.messagesArchieve,e)),i}containsMessage(e,i){return e?e.find(r=>r.summary===i.summary&&r.detail==i.detail&&r.severity===i.severity)!=null:!1}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"message":this.template=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.template=e.template;break}})}onMessageClose(e){this.messages?.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){e.fromState==="void"&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&this.containerViewChild?.nativeElement.style.zIndex===""&&Nn.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){e.toState==="void"&&this.autoZIndex&&Se.isEmpty(this.messages)&&Nn.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",q.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let i in this.breakpoints){let r="";for(let s in this.breakpoints[i])r+=s+":"+this.breakpoints[i][s]+" !important;";e+=`
                    @media screen and (max-width: ${i}) {
                        .p-toast[${this.id}] {
                           ${r}
                        }
                    }
                `}this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&Nn.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(i){return new(i||t)(se(Tt),se(ln),se(yp),se(Lt),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-toast"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&vt(MI,5),i&2){let s;qe(s=Ke())&&(r.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:[Z.HasDecoratorInputTransform,"autoZIndex","autoZIndex",oe],baseZIndex:[Z.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Je],life:[Z.HasDecoratorInputTransform,"life","life",Je],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[Z.HasDecoratorInputTransform,"preventOpenDuplicates","preventOpenDuplicates",oe],preventDuplicates:[Z.HasDecoratorInputTransform,"preventDuplicates","preventDuplicates",oe],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[Et],decls:3,vars:5,consts:[["container",""],[1,"p-toast","p-component",3,"ngClass","ngStyle"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"onClose","message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions"]],template:function(i,r){i&1&&(P(0,"div",1,0),N(2,xB,1,10,"p-toastItem",2),O()),i&2&&(be(r.styleClass),b("ngClass","p-toast-"+r._position)("ngStyle",r.style),C(2),b("ngForOf",r.messages))},dependencies:[zt,wi,Bt,bB],styles:[`@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex:none}.p-toast-icon-close.p-link{cursor:pointer}}
`],encapsulation:2,data:{animation:[zs("toastAnimation",[Pi(":enter, :leave",[vT("@*",gT())])])]},changeDetection:0})}return t})(),jp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Sr,$r,Y_,X_,K_,si,Nt]})}return t})();var bn=function(t){return t.SUPER_ADMIN="super_admin",t.ADMIN="admin",t.USER="user",t}(bn||{});var Up=(()=>{class t{getUser(){return JSON.parse(localStorage.getItem("user"))}setUser(e,i){localStorage.setItem("user",JSON.stringify({email:e,password:i,username:e.split("@")[0],role:e==="joao@gmail.com"?bn.ADMIN:bn.USER}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function SB(t,n){if(t&1){let e=He();P(0,"button",11),ye("click",function(){J(e);let r=I();return ee(r.showDialog=!1)}),O()}}var FI=(()=>{class t{constructor(e,i,r){this.fb=e,this.router=i,this.userServ=r,this.submitted=!1,this.showDialog=!1,this.emailPattern=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,this.passwordPattern=/^[A-Za-z0-9]{8,}$/,this.form=this.fb.group({email:["",[fr.required,fr.pattern(this.emailPattern)]],password:["",[fr.required,fr.pattern(this.passwordPattern)]]})}get email(){return this.form.get("email")}get password(){return this.form.get("password")}onSubmit(){if(this.submitted=!0,this.form.valid){let e="joao@gmail.com",i="muhammad@gmail.com",r=(this.email?.value).toLocaleLowerCase();r===e&&this.password?.value==="12345678"||r===i&&this.password?.value==="12345678"?(this.userServ.setUser(r,this.password.value),this.router.navigate(["home"])):this.showDialog=!0}}static{this.\u0275fac=function(i){return new(i||t)(se(Lp),se(ti),se(Up))}}static{this.\u0275cmp=me({type:t,selectors:[["app-login"]],standalone:!0,features:[Me],decls:15,vars:10,consts:[[1,"h-screen","flex","flex-col","items-center","justify-center"],[1,"pb-5","mt-[-5rem]"],["src","assets/imgs/eRegisto_logo.png","alt","eRegisto",1,"w-[20rem]","h-[7rem]"],[1,"p-10","rounded-[2rem]","bg-primary-800","drop-shadow-xl"],[1,"text-center","text-4xl","font-bold","text-primary-500"],[1,"flex","flex-col","items-center","space-y-10","py-10",3,"ngSubmit","formGroup"],["label","Email","formControlName","email","type","email",3,"pattern","startValidate","errorMessage"],["label","Senha","formControlName","password","type","password",3,"pattern","startValidate","errorMessage"],["type","submit",1,"w-[80%]","py-2","rounded-full","bg-primary-500","text-xl","text-white"],["modal","","header","Erro de Autentica\xE7\xE3o!",3,"visibleChange","visible","draggable","resizable"],["pTemplate","footer"],["pButton","","label","Fechar",1,"p-button-danger",3,"click"]],template:function(i,r){i&1&&(P(0,"div",0)(1,"div",1),re(2,"img",2),O(),P(3,"div",3)(4,"p",4),Te(5,"Iniciar Sess\xE3o"),O(),P(6,"form",5),ye("ngSubmit",function(){return r.onSubmit()}),re(7,"app-input-field",6)(8,"app-input-field",7),P(9,"button",8),Te(10," Continuar "),O()()()(),P(11,"p-dialog",9),Rs("visibleChange",function(o){return yo(r.showDialog,o)||(r.showDialog=o),o}),P(12,"p"),Te(13,"Email ou senha n\xE3o encontrados. Tente novamente!"),O(),N(14,SB,1,0,"ng-template",10),O()),i&2&&(C(6),b("formGroup",r.form),C(),b("pattern",r.emailPattern)("startValidate",r.submitted)("errorMessage","Email inv\xE1lido, por favor volte a digitar!"),C(),b("pattern",r.passwordPattern)("startValidate",r.submitted)("errorMessage","Senha inv\xE1lida, m\xEDnimo 8 caracteres!"),C(3),Os("visible",r.showDialog),b("draggable",!1)("resizable",!1))},dependencies:[Np,Rp,ql,Ap,Yu,qu,Ku,Bp,zp,Hp,Mt,Oi,fs,jp]})}}return t})();function ed(t){return t+.5|0}var ko=(t,n,e)=>Math.max(Math.min(t,e),n);function Qu(t){return ko(ed(t*2.55),0,255)}function Mo(t){return ko(ed(t*255),0,255)}function $s(t){return ko(ed(t/2.55)/100,0,1)}function PI(t){return ko(ed(t*100),0,100)}var Tr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Q_=[..."0123456789ABCDEF"],EB=t=>Q_[t&15],TB=t=>Q_[(t&240)>>4]+Q_[t&15],Wp=t=>(t&240)>>4===(t&15),IB=t=>Wp(t.r)&&Wp(t.g)&&Wp(t.b)&&Wp(t.a);function DB(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&Tr[t[1]]*17,g:255&Tr[t[2]]*17,b:255&Tr[t[3]]*17,a:n===5?Tr[t[4]]*17:255}:(n===7||n===9)&&(e={r:Tr[t[1]]<<4|Tr[t[2]],g:Tr[t[3]]<<4|Tr[t[4]],b:Tr[t[5]]<<4|Tr[t[6]],a:n===9?Tr[t[7]]<<4|Tr[t[8]]:255})),e}var kB=(t,n)=>t<255?n(t):"";function MB(t){var n=IB(t)?EB:TB;return t?"#"+n(t.r)+n(t.g)+n(t.b)+kB(t.a,n):void 0}var AB=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function NI(t,n,e){let i=n*Math.min(e,1-e),r=(s,o=(s+t/30)%12)=>e-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function FB(t,n,e){let i=(r,s=(r+t/60)%6)=>e-e*n*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function PB(t,n,e){let i=NI(t,1,.5),r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function OB(t,n,e,i,r){return t===r?(n-e)/i+(n<e?6:0):n===r?(e-t)/i+2:(t-n)/i+4}function J_(t){let e=t.r/255,i=t.g/255,r=t.b/255,s=Math.max(e,i,r),o=Math.min(e,i,r),a=(s+o)/2,l,c,u;return s!==o&&(u=s-o,c=a>.5?u/(2-s-o):u/(s+o),l=OB(e,i,r,u,s),l=l*60+.5),[l|0,c||0,a]}function ey(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(Mo)}function ty(t,n,e){return ey(NI,t,n,e)}function RB(t,n,e){return ey(PB,t,n,e)}function LB(t,n,e){return ey(FB,t,n,e)}function VI(t){return(t%360+360)%360}function NB(t){let n=AB.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Qu(+n[5]):Mo(+n[5]));let r=VI(+n[2]),s=+n[3]/100,o=+n[4]/100;return n[1]==="hwb"?i=RB(r,s,o):n[1]==="hsv"?i=LB(r,s,o):i=ty(r,s,o),{r:i[0],g:i[1],b:i[2],a:e}}function VB(t,n){var e=J_(t);e[0]=VI(e[0]+n),e=ty(e),t.r=e[0],t.g=e[1],t.b=e[2]}function BB(t){if(!t)return;let n=J_(t),e=n[0],i=PI(n[1]),r=PI(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${$s(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var OI={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},RI={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function HB(){let t={},n=Object.keys(RI),e=Object.keys(OI),i,r,s,o,a;for(i=0;i<n.length;i++){for(o=a=n[i],r=0;r<e.length;r++)s=e[r],a=a.replace(s,OI[s]);s=parseInt(RI[o],16),t[a]=[s>>16&255,s>>8&255,s&255]}return t}var $p;function zB(t){$p||($p=HB(),$p.transparent=[0,0,0,0]);let n=$p[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var jB=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function UB(t){let n=jB.exec(t),e=255,i,r,s;if(n){if(n[7]!==i){let o=+n[7];e=n[8]?Qu(o):ko(o*255,0,255)}return i=+n[1],r=+n[3],s=+n[5],i=255&(n[2]?Qu(i):ko(i,0,255)),r=255&(n[4]?Qu(r):ko(r,0,255)),s=255&(n[6]?Qu(s):ko(s,0,255)),{r:i,g:r,b:s,a:e}}}function WB(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${$s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var Z_=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Yl=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function $B(t,n,e){let i=Yl($s(t.r)),r=Yl($s(t.g)),s=Yl($s(t.b));return{r:Mo(Z_(i+e*(Yl($s(n.r))-i))),g:Mo(Z_(r+e*(Yl($s(n.g))-r))),b:Mo(Z_(s+e*(Yl($s(n.b))-s))),a:t.a+e*(n.a-t.a)}}function Gp(t,n,e){if(t){let i=J_(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=ty(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function BI(t,n){return t&&Object.assign(n||{},t)}function LI(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Mo(t[3]))):(n=BI(t,{r:0,g:0,b:0,a:1}),n.a=Mo(n.a)),n}function GB(t){return t.charAt(0)==="r"?UB(t):NB(t)}var Ju=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=LI(n):e==="string"&&(i=DB(n)||zB(n)||GB(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=BI(this._rgb);return n&&(n.a=$s(n.a)),n}set rgb(n){this._rgb=LI(n)}rgbString(){return this._valid?WB(this._rgb):void 0}hexString(){return this._valid?MB(this._rgb):void 0}hslString(){return this._valid?BB(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,r=n.rgb,s,o=e===s?.5:e,a=2*o-1,l=i.a-r.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*r.r+.5,i.g=255&c*i.g+s*r.g+.5,i.b=255&c*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=$B(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=Mo(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=ed(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Gp(this._rgb,2,n),this}darken(n){return Gp(this._rgb,2,-n),this}saturate(n){return Gp(this._rgb,1,n),this}desaturate(n){return Gp(this._rgb,1,-n),this}rotate(n){return VB(this._rgb,n),this}};function ms(){}var XI=(()=>{let t=0;return()=>t++})();function At(t){return t==null}function un(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function Ft(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Sn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Ki(t,n){return Sn(t)?t:n}function _t(t,n){return typeof t>"u"?n:t}var ZI=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,sy=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function on(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function Xt(t,n,e,i){let r,s,o;if(un(t))if(s=t.length,i)for(r=s-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;r<s;r++)n.call(e,t[r],r);else if(Ft(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)n.call(e,t[o[r]],o[r])}function id(t,n){let e,i,r,s;if(!t||!n||t.length!==n.length)return!1;for(e=0,i=t.length;e<i;++e)if(r=t[e],s=n[e],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function Xp(t){if(un(t))return t.map(Xp);if(Ft(t)){let n=Object.create(null),e=Object.keys(t),i=e.length,r=0;for(;r<i;++r)n[e[r]]=Xp(t[e[r]]);return n}return t}function QI(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function qB(t,n,e,i){if(!QI(t))return;let r=n[t],s=e[t];Ft(r)&&Ft(s)?Zl(r,s,i):n[t]=Xp(s)}function Zl(t,n,e){let i=un(n)?n:[n],r=i.length;if(!Ft(t))return t;e=e||{};let s=e.merger||qB,o;for(let a=0;a<r;++a){if(o=i[a],!Ft(o))continue;let l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)s(l[c],t,o,e)}return t}function Jl(t,n){return Zl(t,n,{merger:KB})}function KB(t,n,e){if(!QI(t))return;let i=n[t],r=e[t];Ft(i)&&Ft(r)?Jl(i,r):Object.prototype.hasOwnProperty.call(n,t)||(n[t]=Xp(r))}var HI={"":t=>t,x:t=>t.x,y:t=>t.y};function YB(t){let n=t.split("."),e=[],i="";for(let r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function XB(t){let n=YB(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function Ks(t,n){return(HI[n]||(HI[n]=XB(n)))(t)}function e0(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ec=t=>typeof t<"u",Gs=t=>typeof t=="function",oy=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function JI(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var dn=Math.PI,fn=2*dn,ZB=fn+dn,Zp=Number.POSITIVE_INFINITY,QB=dn/180,Mn=dn/2,Ia=dn/4,zI=dn*2/3,qs=Math.log10,Gr=Math.sign;function tc(t,n,e){return Math.abs(t-n)<e}function ay(t){let n=Math.round(t);t=tc(t,n,t/1e3)?n:t;let e=Math.pow(10,Math.floor(qs(t))),i=t/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function eD(t){let n=[],e=Math.sqrt(t),i;for(i=1;i<e;i++)t%i===0&&(n.push(i),n.push(t/i));return e===(e|0)&&n.push(e),n.sort((r,s)=>r-s).pop(),n}function JB(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Ma(t){return!JB(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function tD(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function ly(t,n,e){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][e],isNaN(s)||(n.min=Math.min(n.min,s),n.max=Math.max(n.max,s))}function Ir(t){return t*(dn/180)}function t0(t){return t*(180/dn)}function cy(t){if(!Sn(t))return;let n=1,e=0;for(;Math.round(t*n)/n!==t;)n*=10,e++;return e}function uy(t,n){let e=n.x-t.x,i=n.y-t.y,r=Math.sqrt(e*e+i*i),s=Math.atan2(i,e);return s<-.5*dn&&(s+=fn),{angle:s,distance:r}}function Qp(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function eH(t,n){return(t-n+ZB)%fn-dn}function qi(t){return(t%fn+fn)%fn}function nc(t,n,e,i){let r=qi(t),s=qi(n),o=qi(e),a=qi(s-r),l=qi(o-r),c=qi(r-s),u=qi(r-o);return r===s||r===o||i&&s===o||a>l&&c<u}function Zn(t,n,e){return Math.max(n,Math.min(e,t))}function nD(t){return Zn(t,-32768,32767)}function gs(t,n,e,i=1e-6){return t>=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function n0(t,n,e){e=e||(o=>t[o]<n);let i=t.length-1,r=0,s;for(;i-r>1;)s=r+i>>1,e(s)?r=s:i=s;return{lo:r,hi:i}}var hs=(t,n,e,i)=>n0(t,e,i?r=>{let s=t[r][n];return s<e||s===e&&t[r+1][n]===e}:r=>t[r][n]<e),iD=(t,n,e)=>n0(t,e,i=>t[i][n]>=e);function rD(t,n,e){let i=0,r=t.length;for(;i<r&&t[i]<n;)i++;for(;r>i&&t[r-1]>e;)r--;return i>0||r<t.length?t.slice(i,r):t}var sD=["push","pop","shift","splice","unshift"];function oD(t,n){if(t._chartjs){t._chartjs.listeners.push(n);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),sD.forEach(e=>{let i="_onData"+e0(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){let o=r.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),o}})})}function dy(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(n);r!==-1&&i.splice(r,1),!(i.length>0)&&(sD.forEach(s=>{delete t[s]}),delete t._chartjs)}function fy(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var hy=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function py(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,hy.call(window,()=>{i=!1,t.apply(n,e)}))}}function aD(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var i0=t=>t==="start"?"left":t==="end"?"right":"center",pi=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,lD=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function my(t,n,e){let i=n.length,r=0,s=i;if(t._sorted){let{iScale:o,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:h,maxDefined:m}=o.getUserBounds();if(h){if(r=Math.min(hs(l,u,d).lo,e?i:hs(n,u,o.getPixelForValue(d)).lo),c){let p=l.slice(0,r+1).reverse().findIndex(g=>!At(g[a.axis]));r-=Math.max(0,p)}r=Zn(r,0,i-1)}if(m){let p=Math.max(hs(l,o.axis,f,!0).hi+1,e?0:hs(n,u,o.getPixelForValue(f),!0).hi+1);if(c){let g=l.slice(p-1).findIndex(v=>!At(v[a.axis]));p+=Math.max(0,g)}s=Zn(p,r,i)-r}else s=i-r}return{start:r,count:s}}function gy(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;let s=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),s}var qp=t=>t===0||t===1,jI=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*fn/e)),UI=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*fn/e)+1,Xl={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Mn)+1,easeOutSine:t=>Math.sin(t*Mn),easeInOutSine:t=>-.5*(Math.cos(dn*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>qp(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>qp(t)?t:jI(t,.075,.3),easeOutElastic:t=>qp(t)?t:UI(t,.075,.3),easeInOutElastic(t){return qp(t)?t:t<.5?.5*jI(t*2,.1125,.45):.5+.5*UI(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-Xl.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Xl.easeInBounce(t*2)*.5:Xl.easeOutBounce(t*2-1)*.5+.5};function vy(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function _y(t){return vy(t)?t:new Ju(t)}function ny(t){return vy(t)?t:new Ju(t).saturate(.5).darken(.1).hexString()}var tH=["x","y","borderWidth","radius","tension"],nH=["color","borderColor","backgroundColor"];function iH(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:nH},numbers:{type:"number",properties:tH}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function rH(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var WI=new Map;function sH(t,n){n=n||{};let e=t+JSON.stringify(n),i=WI.get(e);return i||(i=new Intl.NumberFormat(t,n),WI.set(e,i)),i}function ic(t,n,e){return sH(n,e).format(t)}var cD={values(t){return un(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,r,s=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),s=oH(t,e)}let o=qs(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ic(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(qs(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?cD.numeric.call(this,t,n,e):""}};function oH(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var rd={formatters:cD};function aH(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:rd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Fo=Object.create(null),r0=Object.create(null);function td(t,n){if(!n)return t;let e=n.split(".");for(let i=0,r=e.length;i<r;++i){let s=e[i];t=t[s]||(t[s]=Object.create(null))}return t}function iy(t,n,e){return typeof n=="string"?Zl(td(t,n),e):Zl(td(t,""),n)}var ry=class{constructor(n,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>ny(r.backgroundColor),this.hoverBorderColor=(i,r)=>ny(r.borderColor),this.hoverColor=(i,r)=>ny(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return iy(this,n,e)}get(n){return td(this,n)}describe(n,e){return iy(r0,n,e)}override(n,e){return iy(Fo,n,e)}route(n,e,i,r){let s=td(this,n),o=td(this,i),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[a],c=o[r];return Ft(l)?Object.assign({},c,l):_t(l,c)},set(l){this[a]=l}}})}apply(n){n.forEach(e=>e(this))}},_n=new ry({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[iH,rH,aH]);function lH(t){return!t||At(t.size)||At(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function nd(t,n,e,i,r){let s=n[r];return s||(s=n[r]=t.measureText(r).width,e.push(r)),s>i&&(i=s),i}function uD(t,n,e,i){i=i||{};let r=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},s=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let o=0,a=e.length,l,c,u,d,f;for(l=0;l<a;l++)if(d=e[l],d!=null&&!un(d))o=nd(t,r,s,o,d);else if(un(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!un(f)&&(o=nd(t,r,s,o,f));t.restore();let h=s.length/2;if(h>e.length){for(l=0;l<h;l++)delete r[s[l]];s.splice(0,h)}return o}function Po(t,n,e){let i=t.currentDevicePixelRatio,r=e!==0?Math.max(e/2,.5):0;return Math.round((n-r)*i)/i+r}function yy(t,n){!n&&!t||(n=n||t.getContext("2d"),n.save(),n.resetTransform(),n.clearRect(0,0,t.width,t.height),n.restore())}function s0(t,n,e,i){xy(t,n,e,i,null)}function xy(t,n,e,i,r){let s,o,a,l,c,u,d,f,h=n.pointStyle,m=n.rotation,p=n.radius,g=(m||0)*QB;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(e,i),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:r?t.ellipse(e,i,r/2,p,0,0,fn):t.arc(e,i,p,0,fn),t.closePath();break;case"triangle":u=r?r/2:p,t.moveTo(e+Math.sin(g)*u,i-Math.cos(g)*p),g+=zI,t.lineTo(e+Math.sin(g)*u,i-Math.cos(g)*p),g+=zI,t.lineTo(e+Math.sin(g)*u,i-Math.cos(g)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(g+Ia)*l,d=Math.cos(g+Ia)*(r?r/2-c:l),a=Math.sin(g+Ia)*l,f=Math.sin(g+Ia)*(r?r/2-c:l),t.arc(e-d,i-a,c,g-dn,g-Mn),t.arc(e+f,i-o,c,g-Mn,g),t.arc(e+d,i+a,c,g,g+Mn),t.arc(e-f,i+o,c,g+Mn,g+dn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=r?r/2:l,t.rect(e-u,i-l,2*u,2*l);break}g+=Ia;case"rectRot":d=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,a=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(e-d,i-a),t.lineTo(e+f,i-o),t.lineTo(e+d,i+a),t.lineTo(e-f,i+o),t.closePath();break;case"crossRot":g+=Ia;case"cross":d=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,a=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(e-d,i-a),t.lineTo(e+d,i+a),t.moveTo(e+f,i-o),t.lineTo(e-f,i+o);break;case"star":d=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,a=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(e-d,i-a),t.lineTo(e+d,i+a),t.moveTo(e+f,i-o),t.lineTo(e-f,i+o),g+=Ia,d=Math.cos(g)*(r?r/2:p),o=Math.cos(g)*p,a=Math.sin(g)*p,f=Math.sin(g)*(r?r/2:p),t.moveTo(e-d,i-a),t.lineTo(e+d,i+a),t.moveTo(e+f,i-o),t.lineTo(e-f,i+o);break;case"line":o=r?r/2:Math.cos(g)*p,a=Math.sin(g)*p,t.moveTo(e-o,i-a),t.lineTo(e+o,i+a);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(g)*(r?r/2:p),i+Math.sin(g)*p);break;case!1:t.closePath();break}t.fill(),n.borderWidth>0&&t.stroke()}}function ps(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.x<n.right+e&&t.y>n.top-e&&t.y<n.bottom+e}function sd(t,n){t.save(),t.beginPath(),t.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),t.clip()}function od(t){t.restore()}function dD(t,n,e,i,r){if(!n)return t.lineTo(e.x,e.y);if(r==="middle"){let s=(n.x+e.x)/2;t.lineTo(s,n.y),t.lineTo(s,e.y)}else r==="after"!=!!i?t.lineTo(n.x,e.y):t.lineTo(e.x,n.y);t.lineTo(e.x,e.y)}function fD(t,n,e,i){if(!n)return t.lineTo(e.x,e.y);t.bezierCurveTo(i?n.cp1x:n.cp2x,i?n.cp1y:n.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function cH(t,n){n.translation&&t.translate(n.translation[0],n.translation[1]),At(n.rotation)||t.rotate(n.rotation),n.color&&(t.fillStyle=n.color),n.textAlign&&(t.textAlign=n.textAlign),n.textBaseline&&(t.textBaseline=n.textBaseline)}function uH(t,n,e,i,r){if(r.strikethrough||r.underline){let s=t.measureText(i),o=n-s.actualBoundingBoxLeft,a=n+s.actualBoundingBoxRight,l=e-s.actualBoundingBoxAscent,c=e+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(a,u),t.stroke()}}function dH(t,n){let e=t.fillStyle;t.fillStyle=n.color,t.fillRect(n.left,n.top,n.width,n.height),t.fillStyle=e}function Oo(t,n,e,i,r,s={}){let o=un(n)?n:[n],a=s.strokeWidth>0&&s.strokeColor!=="",l,c;for(t.save(),t.font=r.string,cH(t,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&dH(t,s.backdrop),a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),At(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,e,i,s.maxWidth)),t.fillText(c,e,i,s.maxWidth),uH(t,e,i,c,s),i+=Number(r.lineHeight);t.restore()}function rc(t,n){let{x:e,y:i,w:r,h:s,radius:o}=n;t.arc(e+o.topLeft,i+o.topLeft,o.topLeft,1.5*dn,dn,!0),t.lineTo(e,i+s-o.bottomLeft),t.arc(e+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,dn,Mn,!0),t.lineTo(e+r-o.bottomRight,i+s),t.arc(e+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,Mn,0,!0),t.lineTo(e+r,i+o.topRight),t.arc(e+r-o.topRight,i+o.topRight,o.topRight,0,-Mn,!0),t.lineTo(e+o.topLeft,i)}var fH=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,hH=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function pH(t,n){let e=(""+t).match(fH);if(!e||e[1]==="normal")return n*1.2;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100;break}return n*t}var mH=t=>+t||0;function o0(t,n){let e={},i=Ft(n),r=i?Object.keys(n):n,s=Ft(t)?i?o=>_t(t[o],t[n[o]]):o=>t[o]:()=>t;for(let o of r)e[o]=mH(s(o));return e}function by(t){return o0(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ro(t){return o0(t,["topLeft","topRight","bottomLeft","bottomRight"])}function mi(t){let n=by(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function zn(t,n){t=t||{},n=n||_n.font;let e=_t(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=_t(t.style,n.style);i&&!(""+i).match(hH)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:_t(t.family,n.family),lineHeight:pH(_t(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:_t(t.weight,n.weight),string:""};return r.string=lH(r),r}function sc(t,n,e,i){let r=!0,s,o,a;for(s=0,o=t.length;s<o;++s)if(a=t[s],a!==void 0&&(n!==void 0&&typeof a=="function"&&(a=a(n),r=!1),e!==void 0&&un(a)&&(a=a[e%a.length],r=!1),a!==void 0))return i&&!r&&(i.cacheable=!1),a}function hD(t,n,e){let{min:i,max:r}=t,s=sy(n,(r-i)/2),o=(a,l)=>e&&a===0?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function Ys(t,n){return Object.assign(Object.create(t),n)}function a0(t,n=[""],e,i,r=()=>t[0]){let s=e||t;typeof i>"u"&&(i=gD("_fallback",t));let o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:a=>a0([a,...t],n,s,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return pD(a,l,()=>CH(l,n,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return GI(a).includes(l)},ownKeys(a){return GI(a)},set(a,l,c){let u=a._storage||(a._storage=r());return a[l]=u[l]=c,delete a._keys,!0}})}function ka(t,n,e,i){let r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:wy(t,i),setContext:s=>ka(t,s,e,i),override:s=>ka(t.override(s),n,e,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,a){return pD(s,o,()=>vH(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,a){return t[o]=a,delete s[o],!0}})}function wy(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:Gs(e)?e:()=>e,isIndexable:Gs(i)?i:()=>i}}var gH=(t,n)=>t?t+e0(n):n,Cy=(t,n)=>Ft(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function pD(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||n==="constructor")return t[n];let i=e();return t[n]=i,i}function vH(t,n,e){let{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t,a=i[n];return Gs(a)&&o.isScriptable(n)&&(a=_H(n,a,t,e)),un(a)&&a.length&&(a=yH(n,a,t,o.isIndexable)),Cy(n,a)&&(a=ka(a,r,s&&s[n],o)),a}function _H(t,n,e,i){let{_proxy:r,_context:s,_subProxy:o,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=n(s,o||i);return a.delete(t),Cy(t,l)&&(l=Sy(r._scopes,r,t,l)),l}function yH(t,n,e,i){let{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=e;if(typeof s.index<"u"&&i(t))return n[s.index%n.length];if(Ft(n[0])){let l=n,c=r._scopes.filter(u=>u!==l);n=[];for(let u of l){let d=Sy(c,r,t,u);n.push(ka(d,s,o&&o[t],a))}}return n}function mD(t,n,e){return Gs(t)?t(n,e):t}var xH=(t,n)=>t===!0?n:typeof t=="string"?Ks(n,t):void 0;function bH(t,n,e,i,r){for(let s of n){let o=xH(e,s);if(o){t.add(o);let a=mD(o._fallback,e,r);if(typeof a<"u"&&a!==e&&a!==i)return a}else if(o===!1&&typeof i<"u"&&e!==i)return null}return!1}function Sy(t,n,e,i){let r=n._rootScopes,s=mD(n._fallback,e,i),o=[...t,...r],a=new Set;a.add(i);let l=$I(a,o,e,s||e,i);return l===null||typeof s<"u"&&s!==e&&(l=$I(a,o,s,l,i),l===null)?!1:a0(Array.from(a),[""],r,s,()=>wH(n,e,i))}function $I(t,n,e,i,r){for(;e;)e=bH(t,n,e,i,r);return e}function wH(t,n,e){let i=t._getTarget();n in i||(i[n]={});let r=i[n];return un(r)&&Ft(e)?e:r||{}}function CH(t,n,e,i){let r;for(let s of n)if(r=gD(gH(s,t),e),typeof r<"u")return Cy(t,r)?Sy(e,i,t,r):r}function gD(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function GI(t){let n=t._keys;return n||(n=t._keys=SH(t._scopes)),n}function SH(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}function Ey(t,n,e,i){let{iScale:r}=t,{key:s="r"}=this._parsing,o=new Array(i),a,l,c,u;for(a=0,l=i;a<l;++a)c=a+e,u=n[c],o[a]={r:r.parse(Ks(u,s),c)};return o}var EH=Number.EPSILON||1e-14,Ql=(t,n)=>n<t.length&&!t[n].skip&&t[n],vD=t=>t==="x"?"y":"x";function TH(t,n,e,i){let r=t.skip?n:t,s=n,o=e.skip?n:e,a=Qp(s,r),l=Qp(o,s),c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;let d=i*c,f=i*u;return{previous:{x:s.x-d*(o.x-r.x),y:s.y-d*(o.y-r.y)},next:{x:s.x+f*(o.x-r.x),y:s.y+f*(o.y-r.y)}}}function IH(t,n,e){let i=t.length,r,s,o,a,l,c=Ql(t,0);for(let u=0;u<i-1;++u)if(l=c,c=Ql(t,u+1),!(!l||!c)){if(tc(n[u],0,EH)){e[u]=e[u+1]=0;continue}r=e[u]/n[u],s=e[u+1]/n[u],a=Math.pow(r,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),e[u]=r*o*n[u],e[u+1]=s*o*n[u])}}function DH(t,n,e="x"){let i=vD(e),r=t.length,s,o,a,l=Ql(t,0);for(let c=0;c<r;++c){if(o=a,a=l,l=Ql(t,c+1),!a)continue;let u=a[e],d=a[i];o&&(s=(u-o[e])/3,a[`cp1${e}`]=u-s,a[`cp1${i}`]=d-s*n[c]),l&&(s=(l[e]-u)/3,a[`cp2${e}`]=u+s,a[`cp2${i}`]=d+s*n[c])}}function kH(t,n="x"){let e=vD(n),i=t.length,r=Array(i).fill(0),s=Array(i),o,a,l,c=Ql(t,0);for(o=0;o<i;++o)if(a=l,l=c,c=Ql(t,o+1),!!l){if(c){let u=c[n]-l[n];r[o]=u!==0?(c[e]-l[e])/u:0}s[o]=a?c?Gr(r[o-1])!==Gr(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}IH(t,r,s),DH(t,s,n)}function Kp(t,n,e){return Math.max(Math.min(t,e),n)}function MH(t,n){let e,i,r,s,o,a=ps(t[0],n);for(e=0,i=t.length;e<i;++e)o=s,s=a,a=e<i-1&&ps(t[e+1],n),s&&(r=t[e],o&&(r.cp1x=Kp(r.cp1x,n.left,n.right),r.cp1y=Kp(r.cp1y,n.top,n.bottom)),a&&(r.cp2x=Kp(r.cp2x,n.left,n.right),r.cp2y=Kp(r.cp2y,n.top,n.bottom)))}function _D(t,n,e,i,r){let s,o,a,l;if(n.spanGaps&&(t=t.filter(c=>!c.skip)),n.cubicInterpolationMode==="monotone")kH(t,r);else{let c=i?t[t.length-1]:t[0];for(s=0,o=t.length;s<o;++s)a=t[s],l=TH(c,a,t[Math.min(s+1,o-(i?0:1))%o],n.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}n.capBezierPoints&&MH(t,e)}function l0(){return typeof window<"u"&&typeof document<"u"}function c0(t){let n=t.parentNode;return n&&n.toString()==="[object ShadowRoot]"&&(n=n.host),n}function Jp(t,n,e){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*n.parentNode[e])):i=t,i}var u0=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function AH(t,n){return u0(t).getPropertyValue(n)}var FH=["top","right","bottom","left"];function Da(t,n,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let s=FH[r];i[s]=parseFloat(t[n+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var PH=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function OH(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:s}=i,o=!1,a,l;if(PH(r,s,t.target))a=r,l=s;else{let c=n.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function Lo(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,r=u0(e),s=r.boxSizing==="border-box",o=Da(r,"padding"),a=Da(r,"border","width"),{x:l,y:c,box:u}=OH(t,e),d=o.left+(u&&a.left),f=o.top+(u&&a.top),{width:h,height:m}=n;return s&&(h-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-d)/h*e.width/i),y:Math.round((c-f)/m*e.height/i)}}function RH(t,n,e){let i,r;if(n===void 0||e===void 0){let s=t&&c0(t);if(!s)n=t.clientWidth,e=t.clientHeight;else{let o=s.getBoundingClientRect(),a=u0(s),l=Da(a,"border","width"),c=Da(a,"padding");n=o.width-c.width-l.width,e=o.height-c.height-l.height,i=Jp(a.maxWidth,s,"clientWidth"),r=Jp(a.maxHeight,s,"clientHeight")}}return{width:n,height:e,maxWidth:i||Zp,maxHeight:r||Zp}}var Yp=t=>Math.round(t*10)/10;function yD(t,n,e,i){let r=u0(t),s=Da(r,"margin"),o=Jp(r.maxWidth,t,"clientWidth")||Zp,a=Jp(r.maxHeight,t,"clientHeight")||Zp,l=RH(t,n,e),{width:c,height:u}=l;if(r.boxSizing==="content-box"){let f=Da(r,"border","width"),h=Da(r,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=Yp(Math.min(c,o,l.maxWidth)),u=Yp(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Yp(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=Yp(Math.floor(u*i))),{width:c,height:u}}function Ty(t,n,e){let i=n||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);let o=t.canvas;return o.style&&(e||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s?(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var xD=function(){let t=!1;try{let n={get passive(){return t=!0,!1}};l0()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t}();function Iy(t,n){let e=AH(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ao(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function bD(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function wD(t,n,e,i){let r={x:t.cp2x,y:t.cp2y},s={x:n.cp1x,y:n.cp1y},o=Ao(t,r,e),a=Ao(r,s,e),l=Ao(s,n,e),c=Ao(o,a,e),u=Ao(a,l,e);return Ao(c,u,e)}var LH=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},NH=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function Aa(t,n,e){return t?LH(n,e):NH()}function Dy(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function ky(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function CD(t){return t==="angle"?{between:nc,compare:eH,normalize:qi}:{between:gs,compare:(n,e)=>n-e,normalize:n=>n}}function qI({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:r}}function VH(t,n,e){let{property:i,start:r,end:s}=e,{between:o,normalize:a}=CD(i),l=n.length,{start:c,end:u,loop:d}=t,f,h;if(d){for(c+=l,u+=l,f=0,h=l;f<h&&o(a(n[c%l][i]),r,s);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:t.style}}function My(t,n,e){if(!e)return[t];let{property:i,start:r,end:s}=e,o=n.length,{compare:a,between:l,normalize:c}=CD(i),{start:u,end:d,loop:f,style:h}=VH(t,n,e),m=[],p=!1,g=null,v,_,y,x=()=>l(r,y,v)&&a(r,y)!==0,w=()=>a(s,v)===0||l(s,y,v),T=()=>p||x(),E=()=>!p||w();for(let k=u,F=u;k<=d;++k)_=n[k%o],!_.skip&&(v=c(_[i]),v!==y&&(p=l(v,r,s),g===null&&T()&&(g=a(v,r)===0?k:F),g!==null&&E()&&(m.push(qI({start:g,end:k,loop:f,count:o,style:h})),g=null),F=k,y=v));return g!==null&&m.push(qI({start:g,end:d,loop:f,count:o,style:h})),m}function Ay(t,n){let e=[],i=t.segments;for(let r=0;r<i.length;r++){let s=My(i[r],t.points,n);s.length&&e.push(...s)}return e}function BH(t,n,e,i){let r=0,s=n-1;if(e&&!i)for(;r<n&&!t[r].skip;)r++;for(;r<n&&t[r].skip;)r++;for(r%=n,e&&(s+=r);s>r&&t[s%n].skip;)s--;return s%=n,{start:r,end:s}}function HH(t,n,e,i){let r=t.length,s=[],o=n,a=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%r];c.skip||c.stop?a.skip||(i=!1,s.push({start:n%r,end:(l-1)%r,loop:i}),n=o=c.stop?l:null):(o=l,a.skip&&(n=l)),a=c}return o!==null&&s.push({start:n%r,end:o%r,loop:i}),s}function SD(t,n){let e=t.points,i=t.options.spanGaps,r=e.length;if(!r)return[];let s=!!t._loop,{start:o,end:a}=BH(e,r,s,i);if(i===!0)return KI(t,[{start:o,end:a,loop:s}],e,n);let l=a<o?a+r:a,c=!!t._fullLoop&&o===0&&a===r-1;return KI(t,HH(e,o,l,c),e,n)}function KI(t,n,e,i){return!i||!i.setContext||!e?n:zH(t,n,e,i)}function zH(t,n,e,i){let r=t._chart.getContext(),s=YI(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,l=e.length,c=[],u=s,d=n[0].start,f=d;function h(m,p,g,v){let _=a?-1:1;if(m!==p){for(m+=l;e[m%l].skip;)m-=_;for(;e[p%l].skip;)p+=_;m%l!==p%l&&(c.push({start:m%l,end:p%l,loop:g,style:v}),u=v,d=p%l)}}for(let m of n){d=a?d:m.start;let p=e[d%l],g;for(f=d+1;f<=m.end;f++){let v=e[f%l];g=YI(i.setContext(Ys(r,{type:"segment",p0:p,p1:v,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),jH(g,u)&&h(d,f-1,m.loop,u),p=v,u=g}d<f-1&&h(d,f-1,m.loop,u)}return c}function YI(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function jH(t,n){if(!n)return!1;let e=[],i=function(r,s){return vy(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(t,i)!==JSON.stringify(n,i)}var jy=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,e,i,r){let s=e.listeners[r],o=e.duration;s.forEach(a=>a({chart:n,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=hy.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let s=i.items,o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,n,"progress")),s.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=s.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},Xs=new jy,ED="transparent",UH={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=_y(t||ED),r=i.valid&&_y(n||ED);return r&&r.valid?r.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},Uy=class{constructor(n,e,i,r){let s=e[i];r=sc([n.to,r,s,n.from]);let o=sc([n.from,s,r]);this._active=!0,this._fn=n.fn||UH[n.type||typeof o],this._easing=Xl[n.easing]||Xl.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,n.duration)),this._total+=s,this._loop=!!n.loop,this._to=sc([n.to,e,r,n.from]),this._from=sc([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to,l;if(this._active=s!==a&&(o||e<i),!this._active){this._target[r]=a,this._notify(!0);return}if(e<0){this._target[r]=s;return}l=e/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}},x0=class{constructor(n,e){this._chart=n,this._properties=new Map,this.configure(e)}configure(n){if(!Ft(n))return;let e=Object.keys(_n.animation),i=this._properties;Object.getOwnPropertyNames(n).forEach(r=>{let s=n[r];if(!Ft(s))return;let o={};for(let a of e)o[a]=s[a];(un(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(n,e){let i=e.options,r=$H(n,i);if(!r)return[];let s=this._createAnimations(r,i);return i.$shared&&WH(n.options.$animations,i).then(()=>{n.options=i},()=>{}),s}_createAnimations(n,e){let i=this._properties,r=[],s=n.$animations||(n.$animations={}),o=Object.keys(e),a=Date.now(),l;for(l=o.length-1;l>=0;--l){let c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(n,e));continue}let u=e[c],d=s[c],f=i.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){n[c]=u;continue}s[c]=d=new Uy(f,n,c,u),r.push(d)}return r}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return Xs.add(this._chart,i),!0}};function WH(t,n){let e=[],i=Object.keys(n);for(let r=0;r<i.length;r++){let s=t[i[r]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function $H(t,n){if(!n)return;let e=t.options;if(!e){t.options=n;return}return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function TD(t,n){let e=t&&t.options||{},i=e.reverse,r=e.min===void 0?n:0,s=e.max===void 0?n:0;return{start:i?s:r,end:i?r:s}}function GH(t,n,e){if(e===!1)return!1;let i=TD(t,e),r=TD(n,e);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function qH(t){let n,e,i,r;return Ft(t)?(n=t.top,e=t.right,i=t.bottom,r=t.left):n=e=i=r=t,{top:n,right:e,bottom:i,left:r,disabled:t===!1}}function Ek(t,n){let e=[],i=t._getSortedDatasetMetas(n),r,s;for(r=0,s=i.length;r<s;++r)e.push(i[r].index);return e}function ID(t,n,e,i={}){let r=t.keys,s=i.mode==="single",o,a,l,c;if(n===null)return;let u=!1;for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===e){if(u=!0,i.all)continue;break}c=t.values[l],Sn(c)&&(s||n===0||Gr(n)===Gr(c))&&(n+=c)}return!u&&!i.all?0:n}function KH(t,n){let{iScale:e,vScale:i}=n,r=e.axis==="x"?"x":"y",s=i.axis==="x"?"x":"y",o=Object.keys(t),a=new Array(o.length),l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[r]:u,[s]:t[u]};return a}function Fy(t,n){let e=t&&t.options.stacked;return e||e===void 0&&n.stack!==void 0}function YH(t,n,e){return`${t.id}.${n.id}.${e.stack||e.type}`}function XH(t){let{min:n,max:e,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}function ZH(t,n,e){let i=t[n]||(t[n]={});return i[e]||(i[e]={})}function DD(t,n,e,i){for(let r of n.getMatchingVisibleMetas(i).reverse()){let s=t[r.index];if(e&&s>0||!e&&s<0)return r.index}return null}function kD(t,n){let{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=YH(s,o,i),d=n.length,f;for(let h=0;h<d;++h){let m=n[h],{[l]:p,[c]:g}=m,v=m._stacks||(m._stacks={});f=v[c]=ZH(r,u,p),f[a]=g,f._top=DD(f,o,!0,i.type),f._bottom=DD(f,o,!1,i.type);let _=f._visualValues||(f._visualValues={});_[a]=g}}function Py(t,n){let e=t.scales;return Object.keys(e).filter(i=>e[i].axis===n).shift()}function QH(t,n){return Ys(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function JH(t,n,e){return Ys(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function ad(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let r of n){let s=r._stacks;if(!s||s[i]===void 0||s[i][e]===void 0)return;delete s[i][e],s[i]._visualValues!==void 0&&s[i]._visualValues[e]!==void 0&&delete s[i]._visualValues[e]}}}var Oy=t=>t==="reset"||t==="none",MD=(t,n)=>n?t:Object.assign({},t),ez=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:Ek(e,!0),values:null},Vo=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Fy(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ad(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,r=this.getDataset(),s=(f,h,m,p)=>f==="x"?h:f==="r"?p:m,o=i.xAxisID=_t(r.xAxisID,Py(e,"x")),a=i.yAxisID=_t(r.yAxisID,Py(e,"y")),l=i.rAxisID=_t(r.rAxisID,Py(e,"r")),c=i.indexAxis,u=i.iAxisID=s(c,o,a,l),d=i.vAxisID=s(c,a,o,l);i.xScale=this.getScaleForId(o),i.yScale=this.getScaleForId(a),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(u),i.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&dy(this._data,this),e._stacked&&ad(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(Ft(i)){let s=this._cachedMeta;this._data=KH(i,s)}else if(r!==i){if(r){dy(r,this);let s=this._cachedMeta;ad(s),s._parsed=[]}i&&Object.isExtensible(i)&&oD(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,r=this.getDataset(),s=!1;this._dataCheck();let o=i._stacked;i._stacked=Fy(i.vScale,i),i.stack!==r.stack&&(s=!0,ad(i),i.stack=r.stack),this._resyncElements(e),(s||o!==i._stacked)&&(kD(this,i._parsed),i._stacked=Fy(i.vScale,i))}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:r,_data:s}=this,{iScale:o,_stacked:a}=r,l=o.axis,c=e===0&&i===s.length?!0:r._sorted,u=e>0&&r._parsed[e-1],d,f,h;if(this._parsing===!1)r._parsed=s,r._sorted=!0,h=s;else{un(s[e])?h=this.parseArrayData(r,s,e,i):Ft(s[e])?h=this.parseObjectData(r,s,e,i):h=this.parsePrimitiveData(r,s,e,i);let m=()=>f[l]===null||u&&f[l]<u[l];for(d=0;d<i;++d)r._parsed[d+e]=f=h[d],c&&(m()&&(c=!1),u=f);r._sorted=c}a&&kD(this,h)}parsePrimitiveData(e,i,r,s){let{iScale:o,vScale:a}=e,l=o.axis,c=a.axis,u=o.getLabels(),d=o===a,f=new Array(s),h,m,p;for(h=0,m=s;h<m;++h)p=h+r,f[h]={[l]:d||o.parse(u[p],p),[c]:a.parse(i[p],p)};return f}parseArrayData(e,i,r,s){let{xScale:o,yScale:a}=e,l=new Array(s),c,u,d,f;for(c=0,u=s;c<u;++c)d=c+r,f=i[d],l[c]={x:o.parse(f[0],d),y:a.parse(f[1],d)};return l}parseObjectData(e,i,r,s){let{xScale:o,yScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=new Array(s),d,f,h,m;for(d=0,f=s;d<f;++d)h=d+r,m=i[h],u[d]={x:o.parse(Ks(m,l),h),y:a.parse(Ks(m,c),h)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,i,r){let s=this.chart,o=this._cachedMeta,a=i[e.axis],l={keys:Ek(s,!0),values:i._stacks[e.axis]._visualValues};return ID(l,a,o.index,{mode:r})}updateRangeFromParsed(e,i,r,s){let o=r[i.axis],a=o===null?NaN:o,l=s&&r._stacks[i.axis];s&&l&&(s.values=l,a=ID(s,o,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,i){let r=this._cachedMeta,s=r._parsed,o=r._sorted&&e===r.iScale,a=s.length,l=this._getOtherScale(e),c=ez(i,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=XH(l),h,m;function p(){m=s[h];let g=m[l.axis];return!Sn(m[e.axis])||d>g||f<g}for(h=0;h<a&&!(!p()&&(this.updateRangeFromParsed(u,e,m,c),o));++h);if(o){for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(u,e,m,c);break}}return u}getAllParsedValues(e){let i=this._cachedMeta._parsed,r=[],s,o,a;for(s=0,o=i.length;s<o;++s)a=i[s][e.axis],Sn(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){let i=this._cachedMeta,r=i.iScale,s=i.vScale,o=this.getParsed(e);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(e){let i=this._cachedMeta;this.update(e||"default"),i._clip=qH(_t(this.options.clip,GH(i.xScale,i.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,i=this.chart,r=this._cachedMeta,s=r.data||[],o=i.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||s.length-l,u=this.options.drawActiveElementsOnTop,d;for(r.dataset&&r.dataset.draw(e,o,l,c),d=l;d<l+c;++d){let f=s[d];f.hidden||(f.active&&u?a.push(f):f.draw(e,o))}for(d=0;d<a.length;++d)a[d].draw(e,o)}getStyle(e,i){let r=i?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,i,r){let s=this.getDataset(),o;if(e>=0&&e<this._cachedMeta.data.length){let a=this._cachedMeta.data[e];o=a.$context||(a.$context=JH(this.getContext(),e,a)),o.parsed=this.getParsed(e),o.raw=s.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=QH(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!i,o.mode=r,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,i){return this._resolveElementOptions(this.dataElementType.id,i,e)}_resolveElementOptions(e,i="default",r){let s=i==="active",o=this._cachedDataOpts,a=e+"-"+i,l=o[a],c=this.enableOptionSharing&&ec(r);if(l)return MD(l,c);let u=this.chart.config,d=u.datasetElementScopeKeys(this._type,e),f=s?[`${e}Hover`,"hover",e,""]:[e,""],h=u.getOptionScopes(this.getDataset(),d),m=Object.keys(_n.elements[e]),p=()=>this.getContext(r,s,i),g=u.resolveNamedOptions(h,m,p,f);return g.$shared&&(g.$shared=c,o[a]=Object.freeze(MD(g,c))),g}_resolveAnimations(e,i,r){let s=this.chart,o=this._cachedDataOpts,a=`animation-${i}`,l=o[a];if(l)return l;let c;if(s.options.animation!==!1){let d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,i),h=d.getOptionScopes(this.getDataset(),f);c=d.createResolver(h,this.getContext(e,r,i))}let u=new x0(s,c&&c.animations);return c&&c._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||Oy(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let r=this.resolveDataElementOptions(e,i),s=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(i,o)||o!==s;return this.updateSharedOptions(o,i,r),{sharedOptions:o,includeOptions:a}}updateElement(e,i,r,s){Oy(s)?Object.assign(e,r):this._resolveAnimations(i,s).update(e,r)}updateSharedOptions(e,i,r){e&&!Oy(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,s){e.active=s;let o=this.getStyle(i,s);this._resolveAnimations(i,r,s).update(e,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,r=this._cachedMeta.data;for(let[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];let s=r.length,o=i.length,a=Math.min(o,s);a&&this.parse(0,a),o>s?this._insertElements(s,o-s,e):o<s&&this._removeElements(o,s-o)}_insertElements(e,i,r=!0){let s=this._cachedMeta,o=s.data,a=e+i,l,c=u=>{for(u.length+=i,l=u.length-1;l>=a;l--)u[l]=u[l-i]};for(c(o),l=e;l<a;++l)o[l]=new this.dataElementType;this._parsing&&c(s._parsed),this.parse(e,i),r&&this.updateElements(o,e,i,"reset")}updateElements(e,i,r,s){}_removeElements(e,i){let r=this._cachedMeta;if(this._parsing){let s=r._parsed.splice(e,i);r._stacked&&ad(r,s)}r.data.splice(e,i)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[i,r,s]=e;this[i](r,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,i){i&&this._sync(["_removeElements",e,i]);let r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return t})();function tz(t,n){if(!t._cache.$bar){let e=t.getMatchingVisibleMetas(n),i=[];for(let r=0,s=e.length;r<s;r++)i=i.concat(e[r].controller.getAllParsedValues(t));t._cache.$bar=fy(i.sort((r,s)=>r-s))}return t._cache.$bar}function nz(t){let n=t.iScale,e=tz(n,t.type),i=n._length,r,s,o,a,l=()=>{o===32767||o===-32768||(ec(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=e.length;r<s;++r)o=n.getPixelForValue(e[r]),l();for(a=void 0,r=0,s=n.ticks.length;r<s;++r)o=n.getPixelForTick(r),l();return i}function iz(t,n,e,i){let r=e.barThickness,s,o;return At(r)?(s=n.min*e.categoryPercentage,o=e.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:n.pixels[t]-s/2}}function rz(t,n,e,i){let r=n.pixels,s=r[t],o=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null,l=e.categoryPercentage;o===null&&(o=s-(a===null?n.end-n.start:a-s)),a===null&&(a=s+s-o);let c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:e.barPercentage,start:c}}function sz(t,n,e,i){let r=e.parse(t[0],i),s=e.parse(t[1],i),o=Math.min(r,s),a=Math.max(r,s),l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}function Tk(t,n,e,i){return un(t)?sz(t,n,e,i):n[e.axis]=e.parse(t,i),n}function AD(t,n,e,i){let r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[],c,u,d,f;for(c=e,u=e+i;c<u;++c)f=n[c],d={},d[r.axis]=a||r.parse(o[c],c),l.push(Tk(f,d,s,c));return l}function Ry(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function oz(t,n,e){return t!==0?Gr(t):(n.isHorizontal()?1:-1)*(n.min>=e?1:-1)}function az(t){let n,e,i,r,s;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base<t.y,e="bottom",i="top"),n?(r="end",s="start"):(r="start",s="end"),{start:e,end:i,reverse:n,top:r,bottom:s}}function lz(t,n,e,i){let r=n.borderSkipped,s={};if(!r){t.borderSkipped=s;return}if(r===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:o,end:a,reverse:l,top:c,bottom:u}=az(t);r==="middle"&&e&&(t.enableBorderRadius=!0,(e._top||0)===i?r=c:(e._bottom||0)===i?r=u:(s[FD(u,o,a,l)]=!0,r=c)),s[FD(r,o,a,l)]=!0,t.borderSkipped=s}function FD(t,n,e,i){return i?(t=cz(t,n,e),t=PD(t,e,n)):t=PD(t,n,e),t}function cz(t,n,e){return t===n?e:t===e?n:t}function PD(t,n,e){return t==="start"?n:t==="end"?e:t}function uz(t,{inflateAmount:n},e){t.inflateAmount=n==="auto"?e===1?.33:0:n}var dz=(()=>{class t extends Vo{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,s){return AD(e,i,r,s)}parseArrayData(e,i,r,s){return AD(e,i,r,s)}parseObjectData(e,i,r,s){let{iScale:o,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=o.axis==="x"?l:c,d=a.axis==="x"?l:c,f=[],h,m,p,g;for(h=r,m=r+s;h<m;++h)g=i[h],p={},p[o.axis]=o.parse(Ks(g,u),h),f.push(Tk(Ks(g,d),p,a,h));return f}updateRangeFromParsed(e,i,r,s){super.updateRangeFromParsed(e,i,r,s);let o=r._custom;o&&i===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let i=this._cachedMeta,{iScale:r,vScale:s}=i,o=this.getParsed(e),a=o._custom,l=Ry(a)?"["+a.start+", "+a.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){let i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,e)}updateElements(e,i,r,s){let o=s==="reset",{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),u=l.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(i,s);for(let m=i;m<i+r;m++){let p=this.getParsed(m),g=o||At(p[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),v=this._calculateBarIndexPixels(m,d),_=(p._stacks||{})[l.axis],y={horizontal:u,base:g.base,enableBorderRadius:!_||Ry(p._custom)||a===_._top||a===_._bottom,x:u?g.head:v.center,y:u?v.center:g.head,height:u?v.size:Math.abs(g.size),width:u?Math.abs(g.size):v.size};h&&(y.options=f||this.resolveDataElementOptions(m,e[m].active?"active":s));let x=y.options||e[m].options;lz(y,x,_,a),uz(y,x,d.ratio),this.updateElement(e[m],m,y,s)}}_getStacks(e,i){let{iScale:r}=this._cachedMeta,s=r.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),o=r.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[r.axis],u=d=>{let f=d._parsed.find(m=>m[r.axis]===c),h=f&&f[d.vScale.axis];if(At(h)||isNaN(h))return!0};for(let d of s)if(!(i!==void 0&&u(d))&&((o===!1||a.indexOf(d.stack)===-1||o===void 0&&d.stack===void 0)&&a.push(d.stack),d.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,i,r){let s=this._getStacks(e,r),o=i!==void 0?s.indexOf(i):-1;return o===-1?s.length-1:o}_getRuler(){let e=this.options,i=this._cachedMeta,r=i.iScale,s=[],o,a;for(o=0,a=i.data.length;o<a;++o)s.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));let l=e.barThickness;return{min:l||nz(i),pixels:s,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){let{_cachedMeta:{vScale:i,_stacked:r,index:s},options:{base:o,minBarLength:a}}=this,l=o||0,c=this.getParsed(e),u=c._custom,d=Ry(u),f=c[i.axis],h=0,m=r?this.applyStack(i,c,r):f,p,g;m!==f&&(h=m-f,m=f),d&&(f=u.barStart,m=u.barEnd-u.barStart,f!==0&&Gr(f)!==Gr(u.barEnd)&&(h=0),h+=f);let v=!At(o)&&!d?o:h,_=i.getPixelForValue(v);if(this.chart.getDataVisibility(e)?p=i.getPixelForValue(h+m):p=_,g=p-_,Math.abs(g)<a){g=oz(g,i,l)*a,f===l&&(_-=g/2);let y=i.getPixelForDecimal(0),x=i.getPixelForDecimal(1),w=Math.min(y,x),T=Math.max(y,x);_=Math.max(Math.min(_,T),w),p=_+g,r&&!d&&(c._stacks[i.axis]._visualValues[s]=i.getValueForPixel(p)-i.getValueForPixel(_))}if(_===i.getPixelForValue(l)){let y=Gr(g)*i.getLineWidthForValue(l)/2;_+=y,g-=y}return{size:g,base:_,head:p,center:p+g/2}}_calculateBarIndexPixels(e,i){let r=i.scale,s=this.options,o=s.skipNull,a=_t(s.maxBarThickness,1/0),l,c;if(i.grouped){let u=o?this._getStackCount(e):i.stackCount,d=s.barThickness==="flex"?rz(e,i,s,u):iz(e,i,s,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);l=d.start+d.chunk*f+d.chunk/2,c=Math.min(a,d.chunk*d.ratio)}else l=r.getPixelForValue(this.getParsed(e)[r.axis],e),c=Math.min(a,i.min*i.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let e=this._cachedMeta,i=e.vScale,r=e.data,s=r.length,o=0;for(;o<s;++o)this.getParsed(o)[i.axis]!==null&&!r[o].hidden&&r[o].draw(this._ctx)}}return t})(),fz=(()=>{class t extends Vo{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,s){let o=super.parsePrimitiveData(e,i,r,s);for(let a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+r).radius;return o}parseArrayData(e,i,r,s){let o=super.parseArrayData(e,i,r,s);for(let a=0;a<o.length;a++){let l=i[r+a];o[a]._custom=_t(l[2],this.resolveDataElementOptions(a+r).radius)}return o}parseObjectData(e,i,r,s){let o=super.parseObjectData(e,i,r,s);for(let a=0;a<o.length;a++){let l=i[r+a];o[a]._custom=_t(l&&l.r&&+l.r,this.resolveDataElementOptions(a+r).radius)}return o}getMaxOverflow(){let e=this._cachedMeta.data,i=0;for(let r=e.length-1;r>=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:s,yScale:o}=i,a=this.getParsed(e),l=s.getLabelForValue(a.x),c=o.getLabelForValue(a.y),u=a._custom;return{label:r[e]||"",value:"("+l+", "+c+(u?", "+u:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,s){let o=s==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(i,s),d=a.axis,f=l.axis;for(let h=i;h<i+r;h++){let m=e[h],p=!o&&this.getParsed(h),g={},v=g[d]=o?a.getPixelForDecimal(.5):a.getPixelForValue(p[d]),_=g[f]=o?l.getBasePixel():l.getPixelForValue(p[f]);g.skip=isNaN(v)||isNaN(_),u&&(g.options=c||this.resolveDataElementOptions(h,m.active?"active":s),o&&(g.options.radius=0)),this.updateElement(m,h,g,s)}}resolveDataElementOptions(e,i){let r=this.getParsed(e),s=super.resolveDataElementOptions(e,i);s.$shared&&(s=Object.assign({},s,{$shared:!1}));let o=s.radius;return i!=="active"&&(s.radius=0),s.radius+=_t(r&&r._custom,o),s}}return t})();function hz(t,n,e){let i=1,r=1,s=0,o=0;if(n<fn){let a=t,l=a+n,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),f=Math.sin(l),h=(y,x,w)=>nc(y,a,l,!0)?1:Math.max(x,x*e,w,w*e),m=(y,x,w)=>nc(y,a,l,!0)?-1:Math.min(x,x*e,w,w*e),p=h(0,c,d),g=h(Mn,u,f),v=m(dn,c,d),_=m(dn+Mn,u,f);i=(p-v)/2,r=(g-_)/2,s=-(p+v)/2,o=-(g+_)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}var cx=(()=>{class t extends Vo{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:s}}=e.legend.options;return i.labels.map((o,a)=>{let c=e.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let r=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let o=c=>+r[c];if(Ft(r[e])){let{key:c="value"}=this._parsing;o=u=>+Ks(r[u],c)}let a,l;for(a=e,l=e+i;a<l;++a)s._parsed[a]=o(a)}}_getRotation(){return Ir(this.options.rotation-90)}_getCircumference(){return Ir(this.options.circumference)}_getRotationExtents(){let e=fn,i=-fn;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){let s=this.chart.getDatasetMeta(r).controller,o=s._getRotation(),a=s._getCircumference();e=Math.min(e,o),i=Math.max(i,o+a)}return{rotation:e,circumference:i-e}}update(e){let i=this.chart,{chartArea:r}=i,s=this._cachedMeta,o=s.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-a)/2,0),c=Math.min(ZI(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:m,offsetX:p,offsetY:g}=hz(f,d,c),v=(r.width-a)/h,_=(r.height-a)/m,y=Math.max(Math.min(v,_)/2,0),x=sy(this.options.radius,y),w=Math.max(x*c,0),T=(x-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=g*x,s.total=this.calculateTotal(),this.outerRadius=x-T*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-T*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,i){let r=this.options,s=this._cachedMeta,o=this._getCircumference();return i&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*o/fn)}updateElements(e,i,r,s){let o=s==="reset",a=this.chart,l=a.chartArea,u=a.options.animation,d=(l.left+l.right)/2,f=(l.top+l.bottom)/2,h=o&&u.animateScale,m=h?0:this.innerRadius,p=h?0:this.outerRadius,{sharedOptions:g,includeOptions:v}=this._getSharedOptions(i,s),_=this._getRotation(),y;for(y=0;y<i;++y)_+=this._circumference(y,o);for(y=i;y<i+r;++y){let x=this._circumference(y,o),w=e[y],T={x:d+this.offsetX,y:f+this.offsetY,startAngle:_,endAngle:_+x,circumference:x,outerRadius:p,innerRadius:m};v&&(T.options=g||this.resolveDataElementOptions(y,w.active?"active":s)),_+=x,this.updateElement(w,y,T,s)}}calculateTotal(){let e=this._cachedMeta,i=e.data,r=0,s;for(s=0;s<i.length;s++){let o=e._parsed[s];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(s)&&!i[s].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(e){let i=this._cachedMeta.total;return i>0&&!isNaN(e)?fn*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,s=r.data.labels||[],o=ic(i._parsed[e],r.options.locale);return{label:s[e]||"",value:o}}getMaxBorderWidth(e){let i=0,r=this.chart,s,o,a,l,c;if(!e){for(s=0,o=r.data.datasets.length;s<o;++s)if(r.isDatasetVisible(s)){a=r.getDatasetMeta(s),e=a.data,l=a.controller;break}}if(!e)return 0;for(s=0,o=e.length;s<o;++s)c=l.resolveDataElementOptions(s),c.borderAlign!=="inner"&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}getMaxOffset(e){let i=0;for(let r=0,s=e.length;r<s;++r){let o=this.resolveDataElementOptions(r);i=Math.max(i,o.offset||0,o.hoverOffset||0)}return i}_getRingWeightOffset(e){let i=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(i+=this._getRingWeight(r));return i}_getRingWeight(e){return Math.max(_t(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return t})(),pz=(()=>{class t extends Vo{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:r,data:s=[],_dataset:o}=i,a=this.chart._animationsDisabled,{start:l,count:c}=my(i,s,a);this._drawStart=l,this._drawCount=c,gy(i)&&(l=0,c=s.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=s;let u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,i,r,s){let o=s==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(i,s),h=a.axis,m=l.axis,{spanGaps:p,segment:g}=this.options,v=Ma(p)?p:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||s==="none",y=i+r,x=e.length,w=i>0&&this.getParsed(i-1);for(let T=0;T<x;++T){let E=e[T],k=_?E:{};if(T<i||T>=y){k.skip=!0;continue}let F=this.getParsed(T),G=At(F[m]),Y=k[h]=a.getPixelForValue(F[h],T),W=k[m]=o||G?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,F,c):F[m],T);k.skip=isNaN(Y)||isNaN(W)||G,k.stop=T>0&&Math.abs(F[h]-w[h])>v,g&&(k.parsed=F,k.raw=u.data[T]),f&&(k.options=d||this.resolveDataElementOptions(T,E.active?"active":s)),_||this.updateElement(E,T,k,s),w=F}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,s=e.data||[];if(!s.length)return r;let o=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(r,o,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),Ik=(()=>{class t extends Vo{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:r,color:s}}=e.legend.options;return i.labels.map((o,a)=>{let c=e.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,r=this.chart,s=r.data.labels||[],o=ic(i._parsed[e].r,r.options.locale);return{label:s[e]||"",value:o}}parseObjectData(e,i,r,s){return Ey.bind(this)(e,i,r,s)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,s)=>{let o=this.getParsed(s).r;!isNaN(o)&&this.chart.getDataVisibility(s)&&(o<i.min&&(i.min=o),o>i.max&&(i.max=o))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,r=e.options,s=Math.min(i.right-i.left,i.bottom-i.top),o=Math.max(s/2,0),a=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),l=(o-a)/e.getVisibleDatasetCount();this.outerRadius=o-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,r,s){let o=s==="reset",a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,d=u.xCenter,f=u.yCenter,h=u.getIndexAngle(0)-.5*dn,m=h,p,g=360/this.countVisibleElements();for(p=0;p<i;++p)m+=this._computeAngle(p,s,g);for(p=i;p<i+r;p++){let v=e[p],_=m,y=m+this._computeAngle(p,s,g),x=a.getDataVisibility(p)?u.getDistanceFromCenterForValue(this.getParsed(p).r):0;m=y,o&&(c.animateScale&&(x=0),c.animateRotate&&(_=y=h));let w={x:d,y:f,innerRadius:0,outerRadius:x,startAngle:_,endAngle:y,options:this.resolveDataElementOptions(p,v.active?"active":s)};this.updateElement(v,p,w,s)}}countVisibleElements(){let e=this._cachedMeta,i=0;return e.data.forEach((r,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?Ir(this.resolveDataElementOptions(e,i).angle||r):0}}return t})(),mz=(()=>{class t extends cx{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),gz=(()=>{class t extends Vo{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,s){return Ey.bind(this)(e,i,r,s)}update(e){let i=this._cachedMeta,r=i.dataset,s=i.data||[],o=i.iScale.getLabels();if(r.points=s,e!=="resize"){let a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:o.length===s.length,options:a};this.updateElement(r,void 0,l,e)}this.updateElements(s,0,s.length,e)}updateElements(e,i,r,s){let o=this._cachedMeta.rScale,a=s==="reset";for(let l=i;l<i+r;l++){let c=e[l],u=this.resolveDataElementOptions(l,c.active?"active":s),d=o.getPointPositionForValue(l,this.getParsed(l).r),f=a?o.xCenter:d.x,h=a?o.yCenter:d.y,m={x:f,y:h,angle:d.angle,skip:isNaN(f)||isNaN(h),options:u};this.updateElement(c,l,m,s)}}}return t})(),vz=(()=>{class t extends Vo{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:s,yScale:o}=i,a=this.getParsed(e),l=s.getLabelForValue(a.x),c=o.getLabelForValue(a.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:r=[]}=i,s=this.chart._animationsDisabled,{start:o,count:a}=my(i,r,s);if(this._drawStart=o,this._drawCount=a,gy(i)&&(o=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;let u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,o,a,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,s){let o=s==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,d=this.resolveDataElementOptions(i,s),f=this.getSharedOptions(d),h=this.includeOptions(s,f),m=a.axis,p=l.axis,{spanGaps:g,segment:v}=this.options,_=Ma(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||s==="none",x=i>0&&this.getParsed(i-1);for(let w=i;w<i+r;++w){let T=e[w],E=this.getParsed(w),k=y?T:{},F=At(E[p]),G=k[m]=a.getPixelForValue(E[m],w),Y=k[p]=o||F?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,E,c):E[p],w);k.skip=isNaN(G)||isNaN(Y)||F,k.stop=w>0&&Math.abs(E[m]-x[m])>_,v&&(k.parsed=E,k.raw=u.data[w]),h&&(k.options=f||this.resolveDataElementOptions(w,T.active?"active":s)),y||this.updateElement(T,w,k,s),x=E}this.updateSharedOptions(f,s,d)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let r=e.dataset,s=r.options&&r.options.borderWidth||0;if(!i.length)return s;let o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,a)/2}}return t})(),_z=Object.freeze({__proto__:null,BarController:dz,BubbleController:fz,DoughnutController:cx,LineController:pz,PieController:mz,PolarAreaController:Ik,RadarController:gz,ScatterController:vz});function Fa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Wy=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return Fa()}parse(){return Fa()}format(){return Fa()}add(){return Fa()}diff(){return Fa()}startOf(){return Fa()}endOf(){return Fa()}},yz={_date:Wy};function xz(t,n,e,i){let{controller:r,data:s,_sorted:o}=t,a=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&n===a.axis&&n!=="r"&&o&&s.length){let c=a._reversePixels?iD:hs;if(i){if(r._sharedOptions){let u=s[0],d=typeof u.getRange=="function"&&u.getRange(n);if(d){let f=c(s,n,e-d),h=c(s,n,e+d);return{lo:f.lo,hi:h.hi}}}}else{let u=c(s,n,e);if(l){let{vScale:d}=r._cachedMeta,{_parsed:f}=t,h=f.slice(0,u.lo+1).reverse().findIndex(p=>!At(p[d.axis]));u.lo-=Math.max(0,h);let m=f.slice(u.hi).findIndex(p=>!At(p[d.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:s.length-1}}function vd(t,n,e,i,r){let s=t.getSortedVisibleDatasetMetas(),o=e[n];for(let a=0,l=s.length;a<l;++a){let{index:c,data:u}=s[a],{lo:d,hi:f}=xz(s[a],n,o,r);for(let h=d;h<=f;++h){let m=u[h];m.skip||i(m,c,h)}}}function bz(t){let n=t.indexOf("x")!==-1,e=t.indexOf("y")!==-1;return function(i,r){let s=n?Math.abs(i.x-r.x):0,o=e?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function Ly(t,n,e,i,r){let s=[];return!r&&!t.isPointInArea(n)||vd(t,e,n,function(a,l,c){!r&&!ps(a,t.chartArea,0)||a.inRange(n.x,n.y,i)&&s.push({element:a,datasetIndex:l,index:c})},!0),s}function wz(t,n,e,i){let r=[];function s(o,a,l){let{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],i),{angle:d}=uy(o,{x:n.x,y:n.y});nc(d,c,u)&&r.push({element:o,datasetIndex:a,index:l})}return vd(t,e,n,s),r}function Cz(t,n,e,i,r,s){let o=[],a=bz(e),l=Number.POSITIVE_INFINITY;function c(u,d,f){let h=u.inRange(n.x,n.y,r);if(i&&!h)return;let m=u.getCenterPoint(r);if(!(!!s||t.isPointInArea(m))&&!h)return;let g=a(n,m);g<l?(o=[{element:u,datasetIndex:d,index:f}],l=g):g===l&&o.push({element:u,datasetIndex:d,index:f})}return vd(t,e,n,c),o}function Ny(t,n,e,i,r,s){return!s&&!t.isPointInArea(n)?[]:e==="r"&&!i?wz(t,n,e,r):Cz(t,n,e,i,r,s)}function OD(t,n,e,i,r){let s=[],o=e==="x"?"inXRange":"inYRange",a=!1;return vd(t,e,n,(l,c,u)=>{l[o]&&l[o](n[e],r)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(n.x,n.y,r))}),i&&!a?[]:s}var Sz={evaluateInteractionItems:vd,modes:{index(t,n,e,i){let r=Lo(n,t),s=e.axis||"x",o=e.includeInvisible||!1,a=e.intersect?Ly(t,r,s,i,o):Ny(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,n,e,i){let r=Lo(n,t),s=e.axis||"xy",o=e.includeInvisible||!1,a=e.intersect?Ly(t,r,s,i,o):Ny(t,r,s,!1,i,o);if(a.length>0){let l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,n,e,i){let r=Lo(n,t),s=e.axis||"xy",o=e.includeInvisible||!1;return Ly(t,r,s,i,o)},nearest(t,n,e,i){let r=Lo(n,t),s=e.axis||"xy",o=e.includeInvisible||!1;return Ny(t,r,s,e.intersect,i,o)},x(t,n,e,i){let r=Lo(n,t);return OD(t,r,"x",e.intersect,i)},y(t,n,e,i){let r=Lo(n,t);return OD(t,r,"y",e.intersect,i)}}},Dk=["left","top","right","bottom"];function ld(t,n){return t.filter(e=>e.pos===n)}function RD(t,n){return t.filter(e=>Dk.indexOf(e.pos)===-1&&e.box.axis===n)}function cd(t,n){return t.sort((e,i)=>{let r=n?i:e,s=n?e:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function Ez(t){let n=[],e,i,r,s,o,a;for(e=0,i=(t||[]).length;e<i;++e)r=t[e],{position:s,options:{stack:o,stackWeight:a=1}}=r,n.push({index:e,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return n}function Tz(t){let n={};for(let e of t){let{stack:i,pos:r,stackWeight:s}=e;if(!i||!Dk.includes(r))continue;let o=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return n}function Iz(t,n){let e=Tz(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=n,s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];let{fullSize:l}=a.box,c=e[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*i:l&&n.availableWidth,a.height=r):(a.width=i,a.height=u?u*r:l&&n.availableHeight)}return e}function Dz(t){let n=Ez(t),e=cd(n.filter(c=>c.box.fullSize),!0),i=cd(ld(n,"left"),!0),r=cd(ld(n,"right")),s=cd(ld(n,"top"),!0),o=cd(ld(n,"bottom")),a=RD(n,"x"),l=RD(n,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:ld(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}function LD(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function kk(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function kz(t,n,e,i){let{pos:r,box:s}=e,o=t.maxPadding;if(!Ft(r)){e.size&&(t[r]-=e.size);let d=i[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?s.height:s.width),e.size=d.size/d.count,t[r]+=e.size}s.getPadding&&kk(o,s.getPadding());let a=Math.max(0,n.outerWidth-LD(o,t,"left","right")),l=Math.max(0,n.outerHeight-LD(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Mz(t){let n=t.maxPadding;function e(i){let r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function Az(t,n){let e=n.maxPadding;function i(r){let s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(n[o],e[o])}),s}return i(t?["left","right"]:["top","bottom"])}function fd(t,n,e,i){let r=[],s,o,a,l,c,u;for(s=0,o=t.length,c=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||n.w,a.height||n.h,Az(a.horizontal,n));let{same:d,other:f}=kz(n,e,a,i);c|=d&&r.length,u=u||f,l.fullSize||r.push(a)}return c&&fd(r,n,e,i)||u}function d0(t,n,e,i,r){t.top=e,t.left=n,t.right=n+i,t.bottom=e+r,t.width=i,t.height=r}function ND(t,n,e,i){let r=e.padding,{x:s,y:o}=n;for(let a of t){let l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){let d=n.w*u,f=c.size||l.height;ec(c.start)&&(o=c.start),l.fullSize?d0(l,r.left,o,e.outerWidth-r.right-r.left,f):d0(l,n.left+c.placed,o,d,f),c.start=o,c.placed+=d,o=l.bottom}else{let d=n.h*u,f=c.size||l.width;ec(c.start)&&(s=c.start),l.fullSize?d0(l,s,r.top,f,e.outerHeight-r.bottom-r.top):d0(l,s,n.top+c.placed,f,d),c.start=s,c.placed+=d,s=l.right}}n.x=s,n.y=o}var Ci={addBox(t,n){t.boxes||(t.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(e){n.draw(e)}}]},t.boxes.push(n)},removeBox(t,n){let e=t.boxes?t.boxes.indexOf(n):-1;e!==-1&&t.boxes.splice(e,1)},configure(t,n,e){n.fullSize=e.fullSize,n.position=e.position,n.weight=e.weight},update(t,n,e,i){if(!t)return;let r=mi(t.options.layout.padding),s=Math.max(n-r.width,0),o=Math.max(e-r.height,0),a=Dz(t.boxes),l=a.vertical,c=a.horizontal;Xt(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});let u=l.reduce((p,g)=>g.box.options&&g.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},r);kk(f,mi(i));let h=Object.assign({maxPadding:f,w:s,h:o,x:r.left,y:r.top},r),m=Iz(l.concat(c),d);fd(a.fullSize,h,d,m),fd(l,h,d,m),fd(c,h,d,m)&&fd(l,h,d,m),Mz(h),ND(a.leftAndTop,h,d,m),h.x+=h.w,h.y+=h.h,ND(a.rightAndBottom,h,d,m),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Xt(a.chartArea,p=>{let g=p.box;Object.assign(g,t.chartArea),g.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}},b0=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}},$y=class extends b0{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},_0="$chartjs",Fz={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},VD=t=>t===null||t==="";function Pz(t,n){let e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[_0]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",VD(r)){let s=Iy(t,"width");s!==void 0&&(t.width=s)}if(VD(i))if(t.style.height==="")t.height=t.width/(n||2);else{let s=Iy(t,"height");s!==void 0&&(t.height=s)}return t}var Mk=xD?{passive:!0}:!1;function Oz(t,n,e){t&&t.addEventListener(n,e,Mk)}function Rz(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,Mk)}function Lz(t,n){let e=Fz[t.type]||t.type,{x:i,y:r}=Lo(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function w0(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function Nz(t,n,e){let i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(let a of s)o=o||w0(a.addedNodes,i),o=o&&!w0(a.removedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function Vz(t,n,e){let i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(let a of s)o=o||w0(a.removedNodes,i),o=o&&!w0(a.addedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var pd=new Map,BD=0;function Ak(){let t=window.devicePixelRatio;t!==BD&&(BD=t,pd.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function Bz(t,n){pd.size||window.addEventListener("resize",Ak),pd.set(t,n)}function Hz(t){pd.delete(t),pd.size||window.removeEventListener("resize",Ak)}function zz(t,n,e){let i=t.canvas,r=i&&c0(i);if(!r)return;let s=py((a,l)=>{let c=r.clientWidth;e(a,l),c<r.clientWidth&&e()},window),o=new ResizeObserver(a=>{let l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(r),Bz(t,s),o}function Vy(t,n,e){e&&e.disconnect(),n==="resize"&&Hz(t)}function jz(t,n,e){let i=t.canvas,r=py(s=>{t.ctx!==null&&e(Lz(s,t))},t);return Oz(i,n,r),r}var Gy=class extends b0{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(Pz(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[_0])return!1;let i=e[_0].initial;["height","width"].forEach(s=>{let o=i[s];At(o)?e.removeAttribute(s):e.setAttribute(s,o)});let r=i.style||{};return Object.keys(r).forEach(s=>{e.style[s]=r[s]}),e.width=e.width,delete e[_0],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let r=n.$proxies||(n.$proxies={}),o={attach:Nz,detach:Vz,resize:zz}[e]||jz;r[e]=o(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),r=i[e];if(!r)return;({attach:Vy,detach:Vy,resize:Vy}[e]||Rz)(n,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return yD(n,e,i,r)}isAttached(n){let e=n&&c0(n);return!!(e&&e.isConnected)}};function Uz(t){return!l0()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?$y:Gy}var qr=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return Ma(this.x)&&Ma(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let r={};return n.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}};function Wz(t,n){let e=t.options.ticks,i=$z(t),r=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?qz(n):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return Kz(n,c,s,o/r),c;let u=Gz(s,n,r);if(o>0){let d,f,h=o>1?Math.round((l-a)/(o-1)):null;for(f0(n,c,u,At(h)?0:a-h,a),d=0,f=o-1;d<f;d++)f0(n,c,u,s[d],s[d+1]);return f0(n,c,u,l,At(h)?n.length:l+h),c}return f0(n,c,u),c}function $z(t){let n=t.options.offset,e=t._tickSize(),i=t._length/e+(n?0:1),r=t._maxLength/e;return Math.floor(Math.min(i,r))}function Gz(t,n,e){let i=Yz(t),r=n.length/e;if(!i)return Math.max(r,1);let s=eD(i);for(let o=0,a=s.length-1;o<a;o++){let l=s[o];if(l>r)return l}return Math.max(r,1)}function qz(t){let n=[],e,i;for(e=0,i=t.length;e<i;e++)t[e].major&&n.push(e);return n}function Kz(t,n,e,i){let r=0,s=e[0],o;for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(n.push(t[o]),r++,s=e[r*i])}function f0(t,n,e,i,r){let s=_t(i,0),o=Math.min(_t(r,t.length),t.length),a=0,l,c,u;for(e=Math.ceil(e),r&&(l=r-i,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);c<o;c++)c===u&&(n.push(t[c]),a++,u=Math.round(s+a*e))}function Yz(t){let n=t.length,e,i;if(n<2)return!1;for(i=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==i)return!1;return i}var Xz=t=>t==="left"?"right":t==="right"?"left":t,HD=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,zD=(t,n)=>Math.min(n||t,t);function jD(t,n){let e=[],i=t.length/n,r=t.length,s=0;for(;s<r;s+=i)e.push(t[Math.floor(s)]);return e}function Zz(t,n,e){let i=t.ticks.length,r=Math.min(n,i-1),s=t._startPixel,o=t._endPixel,a=1e-6,l=t.getPixelForTick(r),c;if(!(e&&(i===1?c=Math.max(l-s,o-l):n===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(r-1))/2,l+=r<n?c:-c,l<s-a||l>o+a)))return l}function Qz(t,n){Xt(t,e=>{let i=e.gc,r=i.length/2,s;if(r>n){for(s=0;s<r;++s)delete e.data[i[s]];i.splice(0,r)}})}function ud(t){return t.drawTicks?t.tickLength:0}function UD(t,n){if(!t.display)return 0;let e=zn(t.font,n),i=mi(t.padding);return(un(t.text)?t.text.length:1)*e.lineHeight+i.height}function Jz(t,n){return Ys(t,{scale:n,type:"scale"})}function ej(t,n,e){return Ys(t,{tick:e,index:n,type:"tick"})}function tj(t,n,e){let i=i0(t);return(e&&n!=="right"||!e&&n==="right")&&(i=Xz(i)),i}function nj(t,n,e,i){let{top:r,left:s,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:u}=l,d=0,f,h,m,p=o-r,g=a-s;if(t.isHorizontal()){if(h=pi(i,s,a),Ft(e)){let v=Object.keys(e)[0],_=e[v];m=u[v].getPixelForValue(_)+p-n}else e==="center"?m=(c.bottom+c.top)/2+p-n:m=HD(t,e,n);f=a-s}else{if(Ft(e)){let v=Object.keys(e)[0],_=e[v];h=u[v].getPixelForValue(_)-g+n}else e==="center"?h=(c.left+c.right)/2-g+n:h=HD(t,e,n);m=pi(i,o,r),d=e==="left"?-Mn:Mn}return{titleX:h,titleY:m,maxWidth:f,rotation:d}}var Oa=class t extends qr{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,e){return n}getUserBounds(){let{_userMin:n,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return n=Ki(n,Number.POSITIVE_INFINITY),e=Ki(e,Number.NEGATIVE_INFINITY),i=Ki(i,Number.POSITIVE_INFINITY),r=Ki(r,Number.NEGATIVE_INFINITY),{min:Ki(n,i),max:Ki(e,r),minDefined:Sn(n),maxDefined:Sn(e)}}getMinMax(n){let{min:e,max:i,minDefined:r,maxDefined:s}=this.getUserBounds(),o;if(r&&s)return{min:e,max:i};let a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,n),r||(e=Math.min(e,o.min)),s||(i=Math.max(i,o.max));return e=s&&e>i?i:e,i=r&&e>i?e:i,{min:Ki(e,Ki(i,e)),max:Ki(i,Ki(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=hD(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a<this.ticks.length;this._convertTicksToLabels(l?jD(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Wz(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let n=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,n=!n),this._startPixel=e,this._endPixel=i,this._reversePixels=n,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){on(this.options.afterUpdate,[this])}beforeSetDimensions(){on(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){on(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),on(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){on(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){let e=this.options.ticks,i,r,s;for(i=0,r=n.length;i<r;i++)s=n[i],s.label=on(e.callback,[s.value,i,n],this)}afterTickToLabelConversion(){on(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){on(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let n=this.options,e=n.ticks,i=zD(this.ticks.length,n.ticks.maxTicksLimit),r=e.minRotation||0,s=e.maxRotation,o=r,a,l,c;if(!this._isVisible()||!e.display||r>=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=Zn(this.chart.width-d,0,this.maxWidth);a=n.offset?this.maxWidth/i:h/(i-1),d+6>a&&(a=h/(i-(n.offset?.5:1)),l=this.maxHeight-ud(n.grid)-e.padding-UD(n.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=t0(Math.min(Math.asin(Zn((u.highest.height+6)/a,-1,1)),Math.asin(Zn(l/c,-1,1))-Math.asin(Zn(f/c,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){let l=UD(r,e.options.font);if(a?(n.width=this.maxWidth,n.height=ud(s)+l):(n.height=this.maxHeight,n.width=ud(s)+l),i.display&&this.ticks.length){let{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=i.padding*2,m=Ir(this.labelRotation),p=Math.cos(m),g=Math.sin(m);if(a){let v=i.mirror?0:g*d.width+p*f.height;n.height=Math.min(this.maxHeight,n.height+v+h)}else{let v=i.mirror?0:p*d.width+g*f.height;n.width=Math.min(this.maxWidth,n.width+v+h)}this._calculatePadding(c,u,g,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){let{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),f=0,h=0;l?c?(f=r*n.width,h=i*e.height):(f=i*n.height,h=r*e.width):s==="start"?h=e.width:s==="end"?f=n.width:s!=="inner"&&(f=n.width/2,h=e.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let u=e.height/2,d=n.height/2;s==="start"?(u=0,d=n.height):s==="end"&&(u=e.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e<i;e++)At(n[e].label)&&(n.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=jD(i,e)),this._labelSizes=n=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return n}_computeLabelSizes(n,e,i){let{ctx:r,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(e/zD(e,i)),c=0,u=0,d,f,h,m,p,g,v,_,y,x,w;for(d=0;d<e;d+=l){if(m=n[d].label,p=this._resolveTickFontOptions(d),r.font=g=p.string,v=s[g]=s[g]||{data:{},gc:[]},_=p.lineHeight,y=x=0,!At(m)&&!un(m))y=nd(r,v.data,v.gc,y,m),x=_;else if(un(m))for(f=0,h=m.length;f<h;++f)w=m[f],!At(w)&&!un(w)&&(y=nd(r,v.data,v.gc,y,w),x+=_);o.push(y),a.push(x),c=Math.max(y,c),u=Math.max(x,u)}Qz(s,e);let T=o.indexOf(c),E=a.indexOf(u),k=F=>({width:o[F]||0,height:a[F]||0});return{first:k(0),last:k(e-1),widest:k(T),highest:k(E),widths:o,heights:a}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return nD(this._alignToPixels?Po(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&n<e.length){let i=e[n];return i.$context||(i.$context=ej(this.getContext(),n,i))}return this.$context||(this.$context=Jz(this.chart.getContext(),this))}_tickSize(){let n=this.options.ticks,e=Ir(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=n.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){let n=this.options.display;return n!=="auto"?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){let e=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=ud(s),h=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,g=p/2,v=function(M){return Po(i,M,p)},_,y,x,w,T,E,k,F,G,Y,W,le;if(o==="top")_=v(this.bottom),E=this.bottom-f,F=_-g,Y=v(n.top)+g,le=n.bottom;else if(o==="bottom")_=v(this.top),Y=n.top,le=v(n.bottom)-g,E=_+g,F=this.top+f;else if(o==="left")_=v(this.right),T=this.right-f,k=_-g,G=v(n.left)+g,W=n.right;else if(o==="right")_=v(this.left),G=n.left,W=v(n.right)-g,T=_+g,k=this.left+f;else if(e==="x"){if(o==="center")_=v((n.top+n.bottom)/2+.5);else if(Ft(o)){let M=Object.keys(o)[0],R=o[M];_=v(this.chart.scales[M].getPixelForValue(R))}Y=n.top,le=n.bottom,E=_+g,F=E+f}else if(e==="y"){if(o==="center")_=v((n.left+n.right)/2);else if(Ft(o)){let M=Object.keys(o)[0],R=o[M];_=v(this.chart.scales[M].getPixelForValue(R))}T=_-g,k=T-f,G=n.left,W=n.right}let ge=_t(r.ticks.maxTicksLimit,d),te=Math.max(1,Math.ceil(d/ge));for(y=0;y<d;y+=te){let M=this.getContext(y),R=s.setContext(M),S=a.setContext(M),D=R.lineWidth,Q=R.color,X=S.dash||[],V=S.dashOffset,ie=R.tickWidth,H=R.tickColor,K=R.tickBorderDash||[],de=R.tickBorderDashOffset;x=Zz(this,y,l),x!==void 0&&(w=Po(i,x,D),c?T=k=G=W=w:E=F=Y=le=w,h.push({tx1:T,ty1:E,tx2:k,ty2:F,x1:G,y1:Y,x2:W,y2:le,width:D,color:Q,borderDash:X,borderDashOffset:V,tickWidth:ie,tickColor:H,tickBorderDash:K,tickBorderDashOffset:de}))}return this._ticksLength=d,this._borderValue=_,h}_computeLabelItems(n){let e=this.axis,i=this.options,{position:r,ticks:s}=i,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,f=ud(i.grid),h=f+u,m=d?-u:h,p=-Ir(this.labelRotation),g=[],v,_,y,x,w,T,E,k,F,G,Y,W,le="middle";if(r==="top")T=this.bottom-m,E=this._getXAxisLabelAlignment();else if(r==="bottom")T=this.top+m,E=this._getXAxisLabelAlignment();else if(r==="left"){let te=this._getYAxisLabelAlignment(f);E=te.textAlign,w=te.x}else if(r==="right"){let te=this._getYAxisLabelAlignment(f);E=te.textAlign,w=te.x}else if(e==="x"){if(r==="center")T=(n.top+n.bottom)/2+h;else if(Ft(r)){let te=Object.keys(r)[0],M=r[te];T=this.chart.scales[te].getPixelForValue(M)+h}E=this._getXAxisLabelAlignment()}else if(e==="y"){if(r==="center")w=(n.left+n.right)/2-h;else if(Ft(r)){let te=Object.keys(r)[0],M=r[te];w=this.chart.scales[te].getPixelForValue(M)}E=this._getYAxisLabelAlignment(f).textAlign}e==="y"&&(l==="start"?le="top":l==="end"&&(le="bottom"));let ge=this._getLabelSizes();for(v=0,_=a.length;v<_;++v){y=a[v],x=y.label;let te=s.setContext(this.getContext(v));k=this.getPixelForTick(v)+s.labelOffset,F=this._resolveTickFontOptions(v),G=F.lineHeight,Y=un(x)?x.length:1;let M=Y/2,R=te.color,S=te.textStrokeColor,D=te.textStrokeWidth,Q=E;o?(w=k,E==="inner"&&(v===_-1?Q=this.options.reverse?"left":"right":v===0?Q=this.options.reverse?"right":"left":Q="center"),r==="top"?c==="near"||p!==0?W=-Y*G+G/2:c==="center"?W=-ge.highest.height/2-M*G+G:W=-ge.highest.height+G/2:c==="near"||p!==0?W=G/2:c==="center"?W=ge.highest.height/2-M*G:W=ge.highest.height-Y*G,d&&(W*=-1),p!==0&&!te.showLabelBackdrop&&(w+=G/2*Math.sin(p))):(T=k,W=(1-Y)*G/2);let X;if(te.showLabelBackdrop){let V=mi(te.backdropPadding),ie=ge.heights[v],H=ge.widths[v],K=W-V.top,de=0-V.left;switch(le){case"middle":K-=ie/2;break;case"bottom":K-=ie;break}switch(E){case"center":de-=H/2;break;case"right":de-=H;break;case"inner":v===_-1?de-=H:v>0&&(de-=H/2);break}X={left:de,top:K,width:H+V.width,height:ie+V.height,color:te.backdropColor}}g.push({label:x,font:F,textOffset:W,options:{rotation:p,color:R,strokeColor:S,strokeWidth:D,textAlign:Q,textBaseline:le,translation:[w,T],backdrop:X}})}return g}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-Ir(this.labelRotation))return n==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),a=n+s,l=o.widest.width,c,u;return e==="left"?r?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):e==="right"?r?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:r,width:s,height:o}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,s,o),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(s=>s.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),s,o,a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=r.length;s<o;++s){let l=r[s];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:n,ctx:e,options:{border:i,grid:r}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;let a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,u,d,f;this.isHorizontal()?(c=Po(n,this.left,o)-o/2,u=Po(n,this.right,a)+a/2,d=f=l):(d=Po(n,this.top,o)-o/2,f=Po(n,this.bottom,a)+a/2,c=u=l),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(c,d),e.lineTo(u,f),e.stroke(),e.restore()}drawLabels(n){if(!this.options.ticks.display)return;let i=this.ctx,r=this._computeLabelArea();r&&sd(i,r);let s=this.getLabelItems(n);for(let o of s){let a=o.options,l=o.font,c=o.label,u=o.textOffset;Oo(i,c,0,u,l,a)}r&&od(i)}drawTitle(){let{ctx:n,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;let s=zn(i.font),o=mi(i.padding),a=i.align,l=s.lineHeight/2;e==="bottom"||e==="center"||Ft(e)?(l+=o.bottom,un(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=o.top;let{titleX:c,titleY:u,maxWidth:d,rotation:f}=nj(this,l,e,a);Oo(n,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:f,textAlign:tj(a,e,r),textBaseline:"middle",translation:[c,u]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){let n=this.options,e=n.ticks&&n.ticks.z||0,i=_t(n.grid&&n.grid.z,-1),r=_t(n.border&&n.border.z,0);return!this._isVisible()||this.draw!==t.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],s,o;for(s=0,o=e.length;s<o;++s){let a=e[s];a[i]===this.id&&(!n||a.type===n)&&r.push(a)}return r}_resolveTickFontOptions(n){let e=this.options.ticks.setContext(this.getContext(n));return zn(e.font)}_maxDigits(){let n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}},ac=class{constructor(n,e,i){this.type=n,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){let e=Object.getPrototypeOf(n),i;sj(e)&&(i=this.register(e));let r=this.items,s=n.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+n);return s in r||(r[s]=n,ij(n,o,i),this.override&&_n.override(n.id,n.overrides)),o}get(n){return this.items[n]}unregister(n){let e=this.items,i=n.id,r=this.scope;i in e&&delete e[i],r&&i in _n[r]&&(delete _n[r][i],this.override&&delete Fo[i])}};function ij(t,n,e){let i=Zl(Object.create(null),[e?_n.get(e):{},_n.get(n),t.defaults]);_n.set(n,i),t.defaultRoutes&&rj(n,t.defaultRoutes),t.descriptors&&_n.describe(n,t.descriptors)}function rj(t,n){Object.keys(n).forEach(e=>{let i=e.split("."),r=i.pop(),s=[t].concat(i).join("."),o=n[e].split("."),a=o.pop(),l=o.join(".");_n.route(s,r,l,a)})}function sj(t){return"id"in t&&"defaults"in t}var qy=class{constructor(){this.controllers=new ac(Vo,"datasets",!0),this.elements=new ac(qr,"elements"),this.plugins=new ac(Object,"plugins"),this.scales=new ac(Oa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{let s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(n,s,r):Xt(r,o=>{let a=i||this._getRegistryForType(o);this._exec(n,a,o)})})}_exec(n,e,i){let r=e0(n);on(i["before"+r],[],i),e[n](i),on(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(n))return i}return this.plugins}_get(n,e,i){let r=e.get(n);if(r===void 0)throw new Error('"'+n+'" is not a registered '+i+".");return r}},_s=new qy,Ky=class{constructor(){this._init=[]}notify(n,e,i,r){e==="beforeInit"&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));let s=r?this._descriptors(n).filter(r):this._descriptors(n),o=this._notify(s,n,e,i);return e==="afterDestroy"&&(this._notify(s,n,"stop"),this._notify(this._init,n,"uninstall")),o}_notify(n,e,i,r){r=r||{};for(let s of n){let o=s.plugin,a=o[i],l=[e,r,s.options];if(on(a,l,o)===!1&&r.cancelable)return!1}return!0}invalidate(){At(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),e}_createDescriptors(n,e){let i=n&&n.config,r=_t(i.options&&i.options.plugins,{}),s=oj(i);return r===!1&&!e?[]:lj(n,s,r,e)}_notifyStateChanges(n){let e=this._oldCache||[],i=this._cache,r=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}};function oj(t){let n={},e=[],i=Object.keys(_s.plugins.items);for(let s=0;s<i.length;s++)e.push(_s.getPlugin(i[s]));let r=t.plugins||[];for(let s=0;s<r.length;s++){let o=r[s];e.indexOf(o)===-1&&(e.push(o),n[o.id]=!0)}return{plugins:e,localIds:n}}function aj(t,n){return!n&&t===!1?null:t===!0?{}:t}function lj(t,{plugins:n,localIds:e},i,r){let s=[],o=t.getContext();for(let a of n){let l=a.id,c=aj(i[l],r);c!==null&&s.push({plugin:a,options:cj(t.config,{plugin:a,local:e[l]},c,o)})}return s}function cj(t,{plugin:n,local:e},i,r){let s=t.pluginScopeKeys(n),o=t.getOptionScopes(i,s);return e&&n.defaults&&o.push(n.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Yy(t,n){let e=_n.datasets[t]||{};return((n.datasets||{})[t]||{}).indexAxis||n.indexAxis||e.indexAxis||"x"}function uj(t,n){let e=t;return t==="_index_"?e=n:t==="_value_"&&(e=n==="x"?"y":"x"),e}function dj(t,n){return t===n?"_index_":"_value_"}function WD(t){if(t==="x"||t==="y"||t==="r")return t}function fj(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Xy(t,...n){if(WD(t))return t;for(let e of n){let i=e.axis||fj(e.position)||t.length>1&&WD(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function $D(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function hj(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return $D(t,"x",e[0])||$D(t,"y",e[0])}return{}}function pj(t,n){let e=Fo[t.type]||{scales:{}},i=n.scales||{},r=Yy(t.type,n),s=Object.create(null);return Object.keys(i).forEach(o=>{let a=i[o];if(!Ft(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);let l=Xy(o,a,hj(o,t),_n.scales[a.type]),c=dj(l,r),u=e.scales||{};s[o]=Jl(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{let a=o.type||t.type,l=o.indexAxis||Yy(a,n),u=(Fo[a]||{}).scales||{};Object.keys(u).forEach(d=>{let f=uj(d,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),Jl(s[h],[{axis:f},i[h],u[d]])})}),Object.keys(s).forEach(o=>{let a=s[o];Jl(a,[_n.scales[a.type],_n.scale])}),s}function Fk(t){let n=t.options||(t.options={});n.plugins=_t(n.plugins,{}),n.scales=pj(t,n)}function Pk(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function mj(t){return t=t||{},t.data=Pk(t.data),Fk(t),t}var GD=new Map,Ok=new Set;function h0(t,n){let e=GD.get(t);return e||(e=n(),GD.set(t,e),Ok.add(e)),e}var dd=(t,n,e)=>{let i=Ks(n,e);i!==void 0&&t.add(i)},Zy=class{constructor(n){this._config=mj(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=Pk(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),Fk(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return h0(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return h0(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return h0(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return h0(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){let{options:r,type:s}=this,o=this._cachedScopes(n,i),a=o.get(e);if(a)return a;let l=new Set;e.forEach(u=>{n&&(l.add(n),u.forEach(d=>dd(l,n,d))),u.forEach(d=>dd(l,r,d)),u.forEach(d=>dd(l,Fo[s]||{},d)),u.forEach(d=>dd(l,_n,d)),u.forEach(d=>dd(l,r0,d))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Ok.has(e)&&o.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Fo[e]||{},_n.datasets[e]||{},{type:e},_n,r0]}resolveNamedOptions(n,e,i,r=[""]){let s={$shared:!0},{resolver:o,subPrefixes:a}=qD(this._resolverCache,n,r),l=o;if(vj(o,e)){s.$shared=!1,i=Gs(i)?i():i;let c=this.createResolver(n,i,a);l=ka(o,i,c)}for(let c of e)s[c]=l[c];return s}createResolver(n,e,i=[""],r){let{resolver:s}=qD(this._resolverCache,n,i);return Ft(e)?ka(s,e,void 0,r):s}};function qD(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let r=e.join(),s=i.get(r);return s||(s={resolver:a0(n,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}var gj=t=>Ft(t)&&Object.getOwnPropertyNames(t).some(n=>Gs(t[n]));function vj(t,n){let{isScriptable:e,isIndexable:i}=wy(t);for(let r of n){let s=e(r),o=i(r),a=(o||s)&&t[r];if(s&&(Gs(a)||gj(a))||o&&un(a))return!0}return!1}var _j="4.4.8",yj=["top","bottom","left","right","chartArea"];function KD(t,n){return t==="top"||t==="bottom"||yj.indexOf(t)===-1&&n==="x"}function YD(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function XD(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),on(e&&e.onComplete,[t],n)}function xj(t){let n=t.chart,e=n.options.animation;on(e&&e.onProgress,[t],n)}function Rk(t){return l0()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var y0={},ZD=t=>{let n=Rk(t);return Object.values(y0).filter(e=>e.canvas===n).pop()};function bj(t,n,e){let i=Object.keys(t);for(let r of i){let s=+r;if(s>=n){let o=t[r];delete t[r],(e>0||s>n)&&(t[s+e]=o)}}}function wj(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}function p0(t,n,e){return t.options.clip?t[e]:n[e]}function Cj(t,n){let{xScale:e,yScale:i}=t;return e&&i?{left:p0(e,n,"left"),right:p0(e,n,"right"),top:p0(i,n,"top"),bottom:p0(i,n,"bottom")}:n}var T0=(()=>{class t{static defaults=_n;static instances=y0;static overrides=Fo;static registry=_s;static version=_j;static getChart=ZD;static register(...e){_s.add(...e),QD()}static unregister(...e){_s.remove(...e),QD()}constructor(e,i){let r=this.config=new Zy(i),s=Rk(e),o=ZD(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");let a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Uz(s)),this.platform.updateConfig(r);let l=this.platform.acquireContext(s,a.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;if(this.id=XI(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ky,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=aD(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],y0[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Xs.listen(this,"complete",XD),Xs.listen(this,"progress",xj),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:s,_aspectRatio:o}=this;return At(e)?i&&o?o:s?r/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return _s}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ty(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yy(this.canvas,this.ctx),this}stop(){return Xs.stop(this),this}resize(e,i){Xs.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let r=this.options,s=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(s,e,i,o),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Ty(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};Xt(i,(r,s)=>{r.id=s})}buildOrUpdateScales(){let e=this.options,i=e.scales,r=this.scales,s=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{}),o=[];i&&(o=o.concat(Object.keys(i).map(a=>{let l=i[a],c=Xy(a,l),u=c==="r",d=c==="x";return{options:l,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Xt(o,a=>{let l=a.options,c=l.id,u=Xy(c,l),d=_t(l.type,a.dtype);(l.position===void 0||KD(l.position,u)!==KD(a.dposition))&&(l.position=a.dposition),s[c]=!0;let f=null;if(c in r&&r[c].type===d)f=r[c];else{let h=_s.getScale(d);f=new h({id:c,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),Xt(s,(a,l)=>{a||delete r[l]}),Xt(r,a=>{Ci.configure(this,a,a.options),Ci.addBox(this,a)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((s,o)=>s.index-o.index),r>i){for(let s=i;s<r;++s)this._destroyDatasetMeta(s);e.splice(i,r-i)}this._sortedMetasets=e.slice(0).sort(YD("order","index"))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:i}}=this;e.length>i.length&&delete this._stacks,e.forEach((r,s)=>{i.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,r,s;for(this._removeUnreferencedMetasets(),r=0,s=i.length;r<s;r++){let o=i[r],a=this.getDatasetMeta(r),l=o.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=l,a.indexAxis=o.indexAxis||Yy(l,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{let c=_s.getController(l),{datasetElementType:u,dataElementType:d}=_n.datasets[l];Object.assign(c,{dataElementType:_s.getElement(d),datasetElementType:u&&_s.getElement(u)}),a.controller=new c(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Xt(this.data.datasets,(e,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,d=this.data.datasets.length;u<d;u++){let{controller:f}=this.getDatasetMeta(u),h=!s&&o.indexOf(f)===-1;f.buildOrUpdateElements(h),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),s||Xt(o,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(YD("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Xt(this.scales,e=>{Ci.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!oy(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:s,count:o}of i){let a=r==="_removeElements"?-o:o;bj(e,s,a)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=o=>new Set(e.filter(a=>a[0]===o).map((a,l)=>l+","+a.splice(1).join(","))),s=r(0);for(let o=1;o<i;o++)if(!oy(s,r(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ci.update(this,this.width,this.height,e);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],Xt(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i<r;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,r=this.data.datasets.length;i<r;++i)this._updateDataset(i,Gs(e)?e({datasetIndex:i}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,i){let r=this.getDatasetMeta(e),s={meta:r,index:e,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(i),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Xs.has(this)?this.attached&&!Xs.running(this)&&Xs.start(this):(this.draw(),XD({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){let i=this._sortedMetasets,r=[],s,o;for(s=0,o=i.length;s<o;++s){let a=i[s];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,r=e._clip,s=!r.disabled,o=Cj(e,this.chartArea),a={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(s&&sd(i,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),e.controller.draw(),s&&od(i),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return ps(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,s){let o=Sz.modes[i];return typeof o=="function"?o(this,e,r,s):[]}getDatasetMeta(e){let i=this.data.datasets[e],r=this._metasets,s=r.filter(o=>o&&o._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(s)),s}getContext(){return this.$context||(this.$context=Ys(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(e,i){let r=this.getDatasetMeta(e);r.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){let s=r?"show":"hide",o=this.getDatasetMeta(e),a=o.controller._resolveAnimations(void 0,s);ec(i)?(o.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(o,{visible:r}),this.update(l=>l.datasetIndex===e?s:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),Xs.remove(this),e=0,i=this.data.datasets.length;e<i;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:e,ctx:i}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),yy(e,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete y0[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,i=this.platform,r=(o,a)=>{i.addEventListener(this,o,a),e[o]=a},s=(o,a,l)=>{o.offsetX=a,o.offsetY=l,this._eventHandler(o)};Xt(this.options.events,o=>r(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(c,u)=>{i.addEventListener(this,c,u),e[c]=u},s=(c,u)=>{e[c]&&(i.removeEventListener(this,c,u),delete e[c])},o=(c,u)=>{this.canvas&&this.resize(c,u)},a,l=()=>{s("attach",l),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():a()}unbindEvents(){Xt(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},Xt(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){let s=r?"set":"remove",o,a,l,c;for(i==="dataset"&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){a=e[l];let u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[s+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let i=this._active||[],r=e.map(({datasetIndex:o,index:a})=>{let l=this.getDatasetMeta(o);if(!l)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:l.data[a],index:a}});!id(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,r){let s=this.options.hover,o=(c,u)=>c.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=o(i,e),l=r?e:o(e,i);a.length&&this.updateHoverStyle(a,s.mode,!1),l.length&&s.mode&&this.updateHoverStyle(l,s.mode,!0)}_eventHandler(e,i){let r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},s=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;let o=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(o||r.changed)&&this.render(),this}_handleEvent(e,i,r){let{_active:s=[],options:o}=this,a=i,l=this._getActiveElements(e,s,r,a),c=JI(e),u=wj(e,this._lastEvent,r,c);r&&(this._lastEvent=null,on(o.onHover,[e,l,this],this),c&&on(o.onClick,[e,l,this],this));let d=!id(l,s);return(d||i)&&(this._active=l,this._updateHoverStyles(l,s,i)),this._lastEvent=u,d}_getActiveElements(e,i,r,s){if(e.type==="mouseout")return[];if(!r)return i;let o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,s)}}return t})();function QD(){return Xt(T0.instances,t=>t._plugins.invalidate())}function Sj(t,n,e){let{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=n,c=r/a;t.beginPath(),t.arc(s,o,a,i-c,e+c),l>r?(c=r/l,t.arc(s,o,l,e+c,i-c,!0)):t.arc(s,o,r,e+Mn,i-Mn),t.closePath(),t.clip()}function Ej(t){return o0(t,["outerStart","outerEnd","innerStart","innerEnd"])}function Tj(t,n,e,i){let r=Ej(t.options.borderRadius),s=(e-n)/2,o=Math.min(s,i*n/2),a=l=>{let c=(e-Math.min(s,l))*i/2;return Zn(l,0,Math.min(s,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Zn(r.innerStart,0,o),innerEnd:Zn(r.innerEnd,0,o)}}function oc(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function C0(t,n,e,i,r,s){let{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=n,d=Math.max(n.outerRadius+i+e-c,0),f=u>0?u+i+e+c:0,h=0,m=r-l;if(i){let te=u>0?u-i:0,M=d>0?d-i:0,R=(te+M)/2,S=R!==0?m*R/(R+i):m;h=(m-S)/2}let p=Math.max(.001,m*d-e/dn)/d,g=(m-p)/2,v=l+g+h,_=r-g-h,{outerStart:y,outerEnd:x,innerStart:w,innerEnd:T}=Tj(n,f,d,_-v),E=d-y,k=d-x,F=v+y/E,G=_-x/k,Y=f+w,W=f+T,le=v+w/Y,ge=_-T/W;if(t.beginPath(),s){let te=(F+G)/2;if(t.arc(o,a,d,F,te),t.arc(o,a,d,te,G),x>0){let D=oc(k,G,o,a);t.arc(D.x,D.y,x,G,_+Mn)}let M=oc(W,_,o,a);if(t.lineTo(M.x,M.y),T>0){let D=oc(W,ge,o,a);t.arc(D.x,D.y,T,_+Mn,ge+Math.PI)}let R=(_-T/f+(v+w/f))/2;if(t.arc(o,a,f,_-T/f,R,!0),t.arc(o,a,f,R,v+w/f,!0),w>0){let D=oc(Y,le,o,a);t.arc(D.x,D.y,w,le+Math.PI,v-Mn)}let S=oc(E,v,o,a);if(t.lineTo(S.x,S.y),y>0){let D=oc(E,F,o,a);t.arc(D.x,D.y,y,v-Mn,F)}}else{t.moveTo(o,a);let te=Math.cos(F)*d+o,M=Math.sin(F)*d+a;t.lineTo(te,M);let R=Math.cos(G)*d+o,S=Math.sin(G)*d+a;t.lineTo(R,S)}t.closePath()}function Ij(t,n,e,i,r){let{fullCircles:s,startAngle:o,circumference:a}=n,l=n.endAngle;if(s){C0(t,n,e,i,l,r);for(let c=0;c<s;++c)t.fill();isNaN(a)||(l=o+(a%fn||fn))}return C0(t,n,e,i,l,r),t.fill(),l}function Dj(t,n,e,i,r){let{fullCircles:s,startAngle:o,circumference:a,options:l}=n,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let m=n.endAngle;if(s){C0(t,n,e,i,m,r);for(let p=0;p<s;++p)t.stroke();isNaN(a)||(m=o+(a%fn||fn))}h&&Sj(t,n,m),s||(C0(t,n,e,i,m,r),t.stroke())}var Qy=class extends qr{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let r=this.getProps(["x","y"],i),{angle:s,distance:o}=uy(r,{x:n,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,h=_t(d,l-a),m=nc(s,a,l)&&a!==l,p=h>=fn||m,g=gs(o,c+f,u+f);return p&&g}getCenterPoint(n){let{x:e,y:i,startAngle:r,endAngle:s,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,u=(r+s)/2,d=(o+a+c+l)/2;return{x:e+Math.cos(u)*d,y:i+Math.sin(u)*d}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,r=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>fn?Math.floor(i/fn):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let a=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(a)*r,Math.sin(a)*r);let l=1-Math.sin(Math.min(dn,i||0)),c=r*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,Ij(n,this,c,s,o),Dj(n,this,c,s,o),n.restore()}};function Lk(t,n,e=n){t.lineCap=_t(e.borderCapStyle,n.borderCapStyle),t.setLineDash(_t(e.borderDash,n.borderDash)),t.lineDashOffset=_t(e.borderDashOffset,n.borderDashOffset),t.lineJoin=_t(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=_t(e.borderWidth,n.borderWidth),t.strokeStyle=_t(e.borderColor,n.borderColor)}function kj(t,n,e){t.lineTo(e.x,e.y)}function Mj(t){return t.stepped?dD:t.tension||t.cubicInterpolationMode==="monotone"?fD:kj}function Nk(t,n,e={}){let i=t.length,{start:r=0,end:s=i-1}=e,{start:o,end:a}=n,l=Math.max(r,o),c=Math.min(s,a),u=r<o&&s<o||r>a&&s>a;return{count:i,start:l,loop:n.loop,ilen:c<l&&!u?i+c-l:c-l}}function Aj(t,n,e,i){let{points:r,options:s}=n,{count:o,start:a,loop:l,ilen:c}=Nk(r,e,i),u=Mj(s),{move:d=!0,reverse:f}=i||{},h,m,p;for(h=0;h<=c;++h)m=r[(a+(f?c-h:h))%o],!m.skip&&(d?(t.moveTo(m.x,m.y),d=!1):u(t,p,m,f,s.stepped),p=m);return l&&(m=r[(a+(f?c:0))%o],u(t,p,m,f,s.stepped)),!!l}function Fj(t,n,e,i){let r=n.points,{count:s,start:o,ilen:a}=Nk(r,e,i),{move:l=!0,reverse:c}=i||{},u=0,d=0,f,h,m,p,g,v,_=x=>(o+(c?a-x:x))%s,y=()=>{p!==g&&(t.lineTo(u,g),t.lineTo(u,p),t.lineTo(u,v))};for(l&&(h=r[_(0)],t.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=r[_(f)],h.skip)continue;let x=h.x,w=h.y,T=x|0;T===m?(w<p?p=w:w>g&&(g=w),u=(d*u+x)/++d):(y(),t.lineTo(x,w),m=T,d=0,p=g=w),v=w}y()}function Jy(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?Fj:Aj}function Pj(t){return t.stepped?bD:t.tension||t.cubicInterpolationMode==="monotone"?wD:Ao}function Oj(t,n,e,i){let r=n._path;r||(r=n._path=new Path2D,n.path(r,e,i)&&r.closePath()),Lk(t,n.options),t.stroke(r)}function Rj(t,n,e,i){let{segments:r,options:s}=n,o=Jy(n);for(let a of r)Lk(t,s,a.style),t.beginPath(),o(t,n,a,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var Lj=typeof Path2D=="function";function Nj(t,n,e,i){Lj&&!n.options.segment?Oj(t,n,e,i):Rj(t,n,e,i)}var I0=(()=>{class t extends qr{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){let r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){let s=r.spanGaps?this._loop:this._fullLoop;_D(this._points,r,e,s,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SD(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,r=e.length;return r&&i[e[r-1].end]}interpolate(e,i){let r=this.options,s=e[i],o=this.points,a=Ay(this,{property:i,start:s,end:s});if(!a.length)return;let l=[],c=Pj(r),u,d;for(u=0,d=a.length;u<d;++u){let{start:f,end:h}=a[u],m=o[f],p=o[h];if(m===p){l.push(m);continue}let g=Math.abs((s-m[i])/(p[i]-m[i])),v=c(m,p,g,r.stepped);v[i]=e[i],l.push(v)}return l.length===1?l[0]:l}pathSegment(e,i,r){return Jy(this)(e,this,i,r)}path(e,i,r){let s=this.segments,o=Jy(this),a=this._loop;i=i||0,r=r||this.points.length-i;for(let l of s)a&=o(e,this,l,{start:i,end:i+r-1});return!!a}draw(e,i,r,s){let o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),Nj(e,this,r,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return t})();function JD(t,n,e,i){let r=t.options,{[e]:s}=t.getProps([e],i);return Math.abs(n-s)<r.radius+r.hitRadius}var Vj=(()=>{class t extends qr{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let s=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(e-o,2)+Math.pow(i-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,i){return JD(this,e,"x",i)}inYRange(e,i){return JD(this,e,"y",i)}getCenterPoint(e){let{x:i,y:r}=this.getProps(["x","y"],e);return{x:i,y:r}}size(e){e=e||this.options||{};let i=e.radius||0;i=Math.max(i,i&&e.hoverRadius||0);let r=i&&e.borderWidth||0;return(i+r)*2}draw(e,i){let r=this.options;this.skip||r.radius<.1||!ps(this,i,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,s0(e,r,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}}return t})();function Vk(t,n){let{x:e,y:i,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],n),a,l,c,u,d;return t.horizontal?(d=o/2,a=Math.min(e,r),l=Math.max(e,r),c=i-d,u=i+d):(d=s/2,a=e-d,l=e+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function No(t,n,e,i){return t?0:Zn(n,e,i)}function Bj(t,n,e){let i=t.options.borderWidth,r=t.borderSkipped,s=by(i);return{t:No(r.top,s.top,0,e),r:No(r.right,s.right,0,n),b:No(r.bottom,s.bottom,0,e),l:No(r.left,s.left,0,n)}}function Hj(t,n,e){let{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=Ro(r),o=Math.min(n,e),a=t.borderSkipped,l=i||Ft(r);return{topLeft:No(!l||a.top||a.left,s.topLeft,0,o),topRight:No(!l||a.top||a.right,s.topRight,0,o),bottomLeft:No(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:No(!l||a.bottom||a.right,s.bottomRight,0,o)}}function zj(t){let n=Vk(t),e=n.right-n.left,i=n.bottom-n.top,r=Bj(t,e/2,i/2),s=Hj(t,e/2,i/2);return{outer:{x:n.left,y:n.top,w:e,h:i,radius:s},inner:{x:n.left+r.l,y:n.top+r.t,w:e-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function By(t,n,e,i){let r=n===null,s=e===null,a=t&&!(r&&s)&&Vk(t,i);return a&&(r||gs(n,a.left,a.right))&&(s||gs(e,a.top,a.bottom))}function jj(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function Uj(t,n){t.rect(n.x,n.y,n.w,n.h)}function Hy(t,n,e={}){let i=t.x!==e.x?-n:0,r=t.y!==e.y?-n:0,s=(t.x+t.w!==e.x+e.w?n:0)-i,o=(t.y+t.h!==e.y+e.h?n:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+s,h:t.h+o,radius:t.radius}}var ex=class extends qr{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(n){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,n&&Object.assign(this,n)}draw(n){let{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:s,outer:o}=zj(this),a=jj(o.radius)?rc:Uj;n.save(),(o.w!==s.w||o.h!==s.h)&&(n.beginPath(),a(n,Hy(o,e,s)),n.clip(),a(n,Hy(s,-e,o)),n.fillStyle=i,n.fill("evenodd")),n.beginPath(),a(n,Hy(s,e)),n.fillStyle=r,n.fill(),n.restore()}inRange(n,e,i){return By(this,n,e,i)}inXRange(n,e){return By(this,n,null,e)}inYRange(n,e){return By(this,null,n,e)}getCenterPoint(n){let{x:e,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],n);return{x:s?(e+r)/2:e,y:s?i:(i+r)/2}}getRange(n){return n==="x"?this.width/2:this.height/2}},Wj=Object.freeze({__proto__:null,ArcElement:Qy,BarElement:ex,LineElement:I0,PointElement:Vj}),tx=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],ek=tx.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Bk(t){return tx[t%tx.length]}function Hk(t){return ek[t%ek.length]}function $j(t,n){return t.borderColor=Bk(n),t.backgroundColor=Hk(n),++n}function Gj(t,n){return t.backgroundColor=t.data.map(()=>Bk(n++)),n}function qj(t,n){return t.backgroundColor=t.data.map(()=>Hk(n++)),n}function Kj(t){let n=0;return(e,i)=>{let r=t.getDatasetMeta(i).controller;r instanceof cx?n=Gj(e,n):r instanceof Ik?n=qj(e,n):r&&(n=$j(e,n))}}function tk(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function Yj(t){return t&&(t.borderColor||t.backgroundColor)}function Xj(){return _n.borderColor!=="rgba(0,0,0,0.1)"||_n.backgroundColor!=="rgba(0,0,0,0.1)"}var Zj={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=t.config,{elements:s}=r,o=tk(i)||Yj(r)||s&&tk(s)||Xj();if(!e.forceOverride&&o)return;let a=Kj(t);i.forEach(a)}};function Qj(t,n,e,i,r){let s=r.samples||i;if(s>=e)return t.slice(n,n+e);let o=[],a=(e-2)/(s-2),l=0,c=n+e-1,u=n,d,f,h,m,p;for(o[l++]=t[u],d=0;d<s-2;d++){let g=0,v=0,_,y=Math.floor((d+1)*a)+1+n,x=Math.min(Math.floor((d+2)*a)+1,e)+n,w=x-y;for(_=y;_<x;_++)g+=t[_].x,v+=t[_].y;g/=w,v/=w;let T=Math.floor(d*a)+1+n,E=Math.min(Math.floor((d+1)*a)+1,e)+n,{x:k,y:F}=t[u];for(h=m=-1,_=T;_<E;_++)m=.5*Math.abs((k-g)*(t[_].y-F)-(k-t[_].x)*(v-F)),m>h&&(h=m,f=t[_],p=_);o[l++]=f,u=p}return o[l++]=t[c],o}function Jj(t,n,e,i){let r=0,s=0,o,a,l,c,u,d,f,h,m,p,g=[],v=n+e-1,_=t[n].x,x=t[v].x-_;for(o=n;o<n+e;++o){a=t[o],l=(a.x-_)/x*i,c=a.y;let w=l|0;if(w===u)c<m?(m=c,d=o):c>p&&(p=c,f=o),r=(s*r+a.x)/++s;else{let T=o-1;if(!At(d)&&!At(f)){let E=Math.min(d,f),k=Math.max(d,f);E!==h&&E!==T&&g.push(ft(xe({},t[E]),{x:r})),k!==h&&k!==T&&g.push(ft(xe({},t[k]),{x:r}))}o>0&&T!==h&&g.push(t[T]),g.push(a),u=w,s=0,m=p=c,d=f=h=o}}return g}function zk(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function nk(t){t.data.datasets.forEach(n=>{zk(n)})}function eU(t,n){let e=n.length,i=0,r,{iScale:s}=t,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(i=Zn(hs(n,s.axis,o).lo,0,e-1)),c?r=Zn(hs(n,s.axis,a).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var tU={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){nk(t);return}let i=t.width;t.data.datasets.forEach((r,s)=>{let{_data:o,indexAxis:a}=r,l=t.getDatasetMeta(s),c=o||r.data;if(sc([a,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let u=t.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:d,count:f}=eU(l,c),h=e.threshold||4*i;if(f<=h){zk(r);return}At(o)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(e.algorithm){case"lttb":m=Qj(c,d,f,i,e);break;case"min-max":m=Jj(c,d,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=m})},destroy(t){nk(t)}};function nU(t,n,e){let i=t.segments,r=t.points,s=n.points,o=[];for(let a of i){let{start:l,end:c}=a;c=ux(l,c,r);let u=nx(e,r[l],r[c],a.loop);if(!n.segments){o.push({source:a,target:u,start:r[l],end:r[c]});continue}let d=Ay(n,u);for(let f of d){let h=nx(e,s[f.start],s[f.end],f.loop),m=My(a,r,h);for(let p of m)o.push({source:p,target:f,start:{[e]:ik(u,h,"start",Math.max)},end:{[e]:ik(u,h,"end",Math.min)}})}}return o}function nx(t,n,e,i){if(i)return;let r=n[t],s=e[t];return t==="angle"&&(r=qi(r),s=qi(s)),{property:t,start:r,end:s}}function iU(t,n){let{x:e=null,y:i=null}=t||{},r=n.points,s=[];return n.segments.forEach(({start:o,end:a})=>{a=ux(o,a,r);let l=r[o],c=r[a];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):e!==null&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}function ux(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function ik(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function jk(t,n){let e=[],i=!1;return un(t)?(i=!0,e=t):e=iU(t,n),e.length?new I0({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function rk(t){return t&&t.fill!==!1}function rU(t,n,e){let r=t[n].fill,s=[n],o;if(!e)return r;for(;r!==!1&&s.indexOf(r)===-1;){if(!Sn(r))return r;if(o=t[r],!o)return!1;if(o.visible)return r;s.push(r),r=o.fill}return!1}function sU(t,n,e){let i=cU(t);if(Ft(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Sn(r)&&Math.floor(r)===r?oU(i[0],n,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function oU(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function aU(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:Ft(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function lU(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:Ft(t)?i=t.value:i=n.getBaseValue(),i}function cU(t){let n=t.options,e=n.fill,i=_t(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function uU(t){let{scale:n,index:e,line:i}=t,r=[],s=i.segments,o=i.points,a=dU(n,e);a.push(jk({x:null,y:n.bottom},i));for(let l=0;l<s.length;l++){let c=s[l];for(let u=c.start;u<=c.end;u++)fU(r,o[u],a)}return new I0({points:r,options:{}})}function dU(t,n){let e=[],i=t.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){let s=i[r];if(s.index===n)break;s.hidden||e.unshift(s.dataset)}return e}function fU(t,n,e){let i=[];for(let r=0;r<e.length;r++){let s=e[r],{first:o,last:a,point:l}=hU(s,n,"x");if(!(!l||o&&a)){if(o)i.unshift(l);else if(t.push(l),!a)break}}t.push(...i)}function hU(t,n,e){let i=t.interpolate(n,e);if(!i)return{};let r=i[e],s=t.segments,o=t.points,a=!1,l=!1;for(let c=0;c<s.length;c++){let u=s[c],d=o[u.start][e],f=o[u.end][e];if(gs(r,d,f)){a=r===d,l=r===f;break}}return{first:a,last:l,point:i}}var S0=class{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,e,i){let{x:r,y:s,radius:o}=this;return e=e||{start:0,end:fn},n.arc(r,s,o,e.end,e.start,!0),!i.bounds}interpolate(n){let{x:e,y:i,radius:r}=this,s=n.angle;return{x:e+Math.cos(s)*r,y:i+Math.sin(s)*r,angle:s}}};function pU(t){let{chart:n,fill:e,line:i}=t;if(Sn(e))return mU(n,e);if(e==="stack")return uU(t);if(e==="shape")return!0;let r=gU(t);return r instanceof S0?r:jk(r,i)}function mU(t,n){let e=t.getDatasetMeta(n);return e&&t.isDatasetVisible(n)?e.dataset:null}function gU(t){return(t.scale||{}).getPointPositionForValue?_U(t):vU(t)}function vU(t){let{scale:n={},fill:e}=t,i=aU(e,n);if(Sn(i)){let r=n.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function _U(t){let{scale:n,fill:e}=t,i=n.options,r=n.getLabels().length,s=i.reverse?n.max:n.min,o=lU(e,n,s),a=[];if(i.grid.circular){let l=n.getPointPositionForValue(0,s);return new S0({x:l.x,y:l.y,radius:n.getDistanceFromCenterForValue(o)})}for(let l=0;l<r;++l)a.push(n.getPointPositionForValue(l,o));return a}function zy(t,n,e){let i=pU(n),{line:r,scale:s,axis:o}=n,a=r.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};i&&r.points.length&&(sd(t,e),yU(t,{line:r,target:i,above:u,below:d,area:e,scale:s,axis:o}),od(t))}function yU(t,n){let{line:e,target:i,above:r,below:s,area:o,scale:a}=n,l=e._loop?"angle":n.axis;t.save(),l==="x"&&s!==r&&(sk(t,i,o.top),ok(t,{line:e,target:i,color:r,scale:a,property:l}),t.restore(),t.save(),sk(t,i,o.bottom)),ok(t,{line:e,target:i,color:s,scale:a,property:l}),t.restore()}function sk(t,n,e){let{segments:i,points:r}=n,s=!0,o=!1;t.beginPath();for(let a of i){let{start:l,end:c}=a,u=r[l],d=r[ux(l,c,r)];s?(t.moveTo(u.x,u.y),s=!1):(t.lineTo(u.x,e),t.lineTo(u.x,u.y)),o=!!n.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(d.x,e)}t.lineTo(n.first().x,e),t.closePath(),t.clip()}function ok(t,n){let{line:e,target:i,property:r,color:s,scale:o}=n,a=nU(e,i,r);for(let{source:l,target:c,start:u,end:d}of a){let{style:{backgroundColor:f=s}={}}=l,h=i!==!0;t.save(),t.fillStyle=f,xU(t,o,h&&nx(r,u,d)),t.beginPath();let m=!!e.pathSegment(t,l),p;if(h){m?t.closePath():ak(t,i,d,r);let g=!!i.pathSegment(t,c,{move:m,reverse:!0});p=m&&g,p||ak(t,i,u,r)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function xU(t,n,e){let{top:i,bottom:r}=n.chart.chartArea,{property:s,start:o,end:a}=e||{};s==="x"&&(t.beginPath(),t.rect(o,i,a-o,r-i),t.clip())}function ak(t,n,e,i){let r=n.interpolate(e,i);r&&t.lineTo(r.x,r.y)}var bU={id:"filler",afterDatasetsUpdate(t,n,e){let i=(t.data.datasets||[]).length,r=[],s,o,a,l;for(o=0;o<i;++o)s=t.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof I0&&(l={visible:t.isDatasetVisible(o),index:o,fill:sU(a,o,i),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],!(!l||l.fill===!1)&&(l.fill=rU(r,o,e.propagate))},beforeDraw(t,n,e){let i=e.drawTime==="beforeDraw",r=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let o=r.length-1;o>=0;--o){let a=r[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),i&&a.fill&&zy(t.ctx,a,s))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let s=i[r].$filler;rk(s)&&zy(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!rk(i)||e.drawTime!=="beforeDatasetDraw"||zy(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},lk=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},wU=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,E0=class extends qr{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=on(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,r=zn(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=lk(i,s),c,u;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,r,a,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(u,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){let{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a,d=n;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((m,p)=>{let g=i+e/2+s.measureText(m.text).width;(p===0||c[c.length-1]+g+2*a>o)&&(d+=u,c[c.length-(p>0?0:1)]=0,h+=u,f++),l[p]={left:0,top:h,row:f,width:g,height:r},c[c.length-1]+=g+a}),d}_fitCols(n,e,i,r){let{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-n,d=a,f=0,h=0,m=0,p=0;return this.legendItems.forEach((g,v)=>{let{itemWidth:_,itemHeight:y}=CU(i,e,s,g,r);v>0&&h+y+2*a>u&&(d+=f+a,c.push({width:f,height:h}),m+=f+a,p++,f=h=0),l[v]={left:m,top:h,col:p,width:_,height:y},f=Math.max(f,_),h+=y+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:s}}=this,o=Aa(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=pi(i,this.left+r,this.right-this.lineWidths[a]);for(let c of e)a!==c.row&&(a=c.row,l=pi(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+n+r,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+r}else{let a=0,l=pi(i,this.top+n+r,this.bottom-this.columnSizes[a].height);for(let c of e)c.col!==a&&(a=c.col,l=pi(i,this.top+n+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;sd(n,this),this._draw(),od(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:s,labels:o}=n,a=_n.color,l=Aa(n.rtl,this.left,this.width),c=zn(o.font),{padding:u}=o,d=c.size,f=d/2,h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:m,boxHeight:p,itemHeight:g}=lk(o,d),v=function(T,E,k){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;r.save();let F=_t(k.lineWidth,1);if(r.fillStyle=_t(k.fillStyle,a),r.lineCap=_t(k.lineCap,"butt"),r.lineDashOffset=_t(k.lineDashOffset,0),r.lineJoin=_t(k.lineJoin,"miter"),r.lineWidth=F,r.strokeStyle=_t(k.strokeStyle,a),r.setLineDash(_t(k.lineDash,[])),o.usePointStyle){let G={radius:p*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:F},Y=l.xPlus(T,m/2),W=E+f;xy(r,G,Y,W,o.pointStyleWidth&&m)}else{let G=E+Math.max((d-p)/2,0),Y=l.leftForLtr(T,m),W=Ro(k.borderRadius);r.beginPath(),Object.values(W).some(le=>le!==0)?rc(r,{x:Y,y:G,w:m,h:p,radius:W}):r.rect(Y,G,m,p),r.fill(),F!==0&&r.stroke()}r.restore()},_=function(T,E,k){Oo(r,k.text,T,E+g/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},y=this.isHorizontal(),x=this._computeTitleHeight();y?h={x:pi(s,this.left+u,this.right-i[0]),y:this.top+u+x,line:0}:h={x:this.left+u,y:pi(s,this.top+x+u,this.bottom-e[0].height),line:0},Dy(this.ctx,n.textDirection);let w=g+u;this.legendItems.forEach((T,E)=>{r.strokeStyle=T.fontColor,r.fillStyle=T.fontColor;let k=r.measureText(T.text).width,F=l.textAlign(T.textAlign||(T.textAlign=o.textAlign)),G=m+f+k,Y=h.x,W=h.y;l.setWidth(this.width),y?E>0&&Y+G+u>this.right&&(W=h.y+=w,h.line++,Y=h.x=pi(s,this.left+u,this.right-i[h.line])):E>0&&W+w>this.bottom&&(Y=h.x=Y+e[h.line].width+u,h.line++,W=h.y=pi(s,this.top+x+u,this.bottom-e[h.line].height));let le=l.x(Y);if(v(le,W,T),Y=lD(F,Y+m+f,y?Y+G:this.right,n.rtl),_(l.x(Y),W,T),y)h.x+=G+u;else if(typeof T.text!="string"){let ge=c.lineHeight;h.y+=Uk(T,ge)+u}else h.y+=w}),ky(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=zn(e.font),r=mi(e.padding);if(!e.display)return;let s=Aa(n.rtl,this.left,this.width),o=this.ctx,a=e.position,l=i.size/2,c=r.top+l,u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=pi(n.align,d,this.right-f);else{let m=this.columnSizes.reduce((p,g)=>Math.max(p,g.height),0);u=c+pi(n.align,this.top,this.bottom-m-n.labels.padding-this._computeTitleHeight())}let h=pi(a,d,d+f);o.textAlign=s.textAlign(i0(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Oo(o,e.text,h,u,i)}_computeTitleHeight(){let n=this.options.title,e=zn(n.font),i=mi(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,s;if(gs(n,this.left,this.right)&&gs(e,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],gs(n,r.left,r.left+r.width)&&gs(e,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(n){let e=this.options;if(!TU(n.type,e))return;let i=this._getLegendItemAt(n.x,n.y);if(n.type==="mousemove"||n.type==="mouseout"){let r=this._hoveredItem,s=wU(r,i);r&&!s&&on(e.onLeave,[n,r,this],this),this._hoveredItem=i,i&&!s&&on(e.onHover,[n,i,this],this)}else i&&on(e.onClick,[n,i,this],this)}};function CU(t,n,e,i,r){let s=SU(i,t,n,e),o=EU(r,i,n.lineHeight);return{itemWidth:s,itemHeight:o}}function SU(t,n,e,i){let r=t.text;return r&&typeof r!="string"&&(r=r.reduce((s,o)=>s.length>o.length?s:o)),n+e.size/2+i.measureText(r).width}function EU(t,n,e){let i=t;return typeof n.text!="string"&&(i=Uk(n,e)),i}function Uk(t,n){let e=t.text?t.text.length:0;return n*e}function TU(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var IU={id:"legend",_element:E0,start(t,n,e){let i=t.legend=new E0({ctx:t.ctx,options:e,chart:t});Ci.configure(t,i,e),Ci.addBox(t,i)},stop(t){Ci.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Ci.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),u=mi(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},md=class extends qr{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let r=un(i.text)?i.text.length:1;this._padding=mi(i.padding);let s=r*zn(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:r,right:s,options:o}=this,a=o.align,l=0,c,u,d;return this.isHorizontal()?(u=pi(a,i,s),d=e+n,c=s-i):(o.position==="left"?(u=i+n,d=pi(a,r,e),l=dn*-.5):(u=s-n,d=pi(a,e,r),l=dn*.5),c=r-e),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=zn(e.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Oo(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:i0(e.align),textBaseline:"middle",translation:[o,a]})}};function DU(t,n){let e=new md({ctx:t.ctx,options:n,chart:t});Ci.configure(t,e,n),Ci.addBox(t,e),t.titleBlock=e}var kU={id:"title",_element:md,start(t,n,e){DU(t,e)},stop(t){let n=t.titleBlock;Ci.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Ci.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},m0=new WeakMap,MU={id:"subtitle",start(t,n,e){let i=new md({ctx:t.ctx,options:e,chart:t});Ci.configure(t,i,e),Ci.addBox(t,i),m0.set(t,i)},stop(t){Ci.removeBox(t,m0.get(t)),m0.delete(t)},beforeUpdate(t,n,e){let i=m0.get(t);Ci.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},hd={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,s=0;for(n=0,e=t.length;n<e;++n){let a=t[n].element;if(a&&a.hasValue()){let l=a.tooltipPosition();i.add(l.x),r+=l.y,++s}}return s===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:r/s}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=t.length;s<o;++s){let l=t[s].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),u=Qp(n,c);u<r&&(r=u,a=l)}}if(a){let l=a.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function vs(t,n){return n&&(un(n)?Array.prototype.push.apply(t,n):t.push(n)),t}function Zs(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
`)>-1?t.split(`
`):t}function AU(t,n){let{element:e,datasetIndex:i,index:r}=n,s=t.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function ck(t,n){let e=t.chart.ctx,{body:i,footer:r,title:s}=t,{boxWidth:o,boxHeight:a}=n,l=zn(n.bodyFont),c=zn(n.titleFont),u=zn(n.footerFont),d=s.length,f=r.length,h=i.length,m=mi(n.padding),p=m.height,g=0,v=i.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*n.titleSpacing+n.titleMarginBottom),v){let x=n.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*x+(v-h)*l.lineHeight+(v-1)*n.bodySpacing}f&&(p+=n.footerMarginTop+f*u.lineHeight+(f-1)*n.footerSpacing);let _=0,y=function(x){g=Math.max(g,e.measureText(x).width+_)};return e.save(),e.font=c.string,Xt(t.title,y),e.font=l.string,Xt(t.beforeBody.concat(t.afterBody),y),_=n.displayColors?o+2+n.boxPadding:0,Xt(i,x=>{Xt(x.before,y),Xt(x.lines,y),Xt(x.after,y)}),_=0,e.font=u.string,Xt(t.footer,y),e.restore(),g+=m.width,{width:g,height:p}}function FU(t,n){let{y:e,height:i}=n;return e<i/2?"top":e>t.height-i/2?"bottom":"center"}function PU(t,n,e,i){let{x:r,width:s}=i,o=e.caretSize+e.caretPadding;if(t==="left"&&r+s+o>n.width||t==="right"&&r-s-o<0)return!0}function OU(t,n,e,i){let{x:r,width:s}=e,{width:o,chartArea:{left:a,right:l}}=t,c="center";return i==="center"?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),PU(c,t,n,e)&&(c="center"),c}function uk(t,n,e){let i=e.yAlign||n.yAlign||FU(t,e);return{xAlign:e.xAlign||n.xAlign||OU(t,n,e,i),yAlign:i}}function RU(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function LU(t,n,e){let{y:i,height:r}=t;return n==="top"?i+=e:n==="bottom"?i-=r+e:i-=r/2,i}function dk(t,n,e,i){let{caretSize:r,caretPadding:s,cornerRadius:o}=t,{xAlign:a,yAlign:l}=e,c=r+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Ro(o),m=RU(n,a),p=LU(n,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,f)+r:a==="right"&&(m+=Math.max(d,h)+r),{x:Zn(m,0,i.width-n.width),y:Zn(p,0,i.height-n.height)}}function g0(t,n,e){let i=mi(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function fk(t){return vs([],Zs(t))}function NU(t,n,e){return Ys(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function hk(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var Wk={beforeTitle:ms,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex<i)return e[n.dataIndex]}return""},afterTitle:ms,beforeBody:ms,beforeLabel:ms,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let n=t.dataset.label||"";n&&(n+=": ");let e=t.formattedValue;return At(e)||(n+=e),n},labelColor(t){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:ms,afterBody:ms,beforeFooter:ms,footer:ms,afterFooter:ms};function Yi(t,n,e,i){let r=t[n].call(e,i);return typeof r>"u"?Wk[n].call(e,i):r}var pk=(()=>{class t extends qr{static positioners=hd;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&i.options.animation&&r.animations,o=new x0(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=NU(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:r}=i,s=Yi(r,"beforeTitle",this,e),o=Yi(r,"title",this,e),a=Yi(r,"afterTitle",this,e),l=[];return l=vs(l,Zs(s)),l=vs(l,Zs(o)),l=vs(l,Zs(a)),l}getBeforeBody(e,i){return fk(Yi(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:r}=i,s=[];return Xt(e,o=>{let a={before:[],lines:[],after:[]},l=hk(r,o);vs(a.before,Zs(Yi(l,"beforeLabel",this,o))),vs(a.lines,Yi(l,"label",this,o)),vs(a.after,Zs(Yi(l,"afterLabel",this,o))),s.push(a)}),s}getAfterBody(e,i){return fk(Yi(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:r}=i,s=Yi(r,"beforeFooter",this,e),o=Yi(r,"footer",this,e),a=Yi(r,"afterFooter",this,e),l=[];return l=vs(l,Zs(s)),l=vs(l,Zs(o)),l=vs(l,Zs(a)),l}_createItems(e){let i=this._active,r=this.chart.data,s=[],o=[],a=[],l=[],c,u;for(c=0,u=i.length;c<u;++c)l.push(AU(this.chart,i[c]));return e.filter&&(l=l.filter((d,f,h)=>e.filter(d,f,h,r))),e.itemSort&&(l=l.sort((d,f)=>e.itemSort(d,f,r))),Xt(l,d=>{let f=hk(e.callbacks,d);s.push(Yi(f,"labelColor",this,d)),o.push(Yi(f,"labelPointStyle",this,d)),a.push(Yi(f,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(e,i){let r=this.options.setContext(this.getContext()),s=this._active,o,a=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{let l=hd[r.position].call(this,s,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);let c=this._size=ck(this,r),u=Object.assign({},l,c),d=uk(this.chart,r,u),f=dk(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,s){let o=this.getCaretPosition(e,r,s);i.lineTo(o.x1,o.y1),i.lineTo(o.x2,o.y2),i.lineTo(o.x3,o.y3)}getCaretPosition(e,i,r){let{xAlign:s,yAlign:o}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Ro(l),{x:h,y:m}=e,{width:p,height:g}=i,v,_,y,x,w,T;return o==="center"?(w=m+g/2,s==="left"?(v=h,_=v-a,x=w+a,T=w-a):(v=h+p,_=v+a,x=w-a,T=w+a),y=v):(s==="left"?_=h+Math.max(c,d)+a:s==="right"?_=h+p-Math.max(u,f)-a:_=this.caretX,o==="top"?(x=m,w=x-a,v=_-a,y=_+a):(x=m+g,w=x+a,v=_+a,y=_-a),T=x),{x1:v,x2:_,x3:y,y1:x,y2:w,y3:T}}drawTitle(e,i,r){let s=this.title,o=s.length,a,l,c;if(o){let u=Aa(r.rtl,this.x,this.width);for(e.x=g0(this,r.titleAlign,r),i.textAlign=u.textAlign(r.titleAlign),i.textBaseline="middle",a=zn(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=a.string,c=0;c<o;++c)i.fillText(s[c],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+l,c+1===o&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,i,r,s,o){let a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:u}=o,d=zn(o.bodyFont),f=g0(this,"left",o),h=s.x(f),m=c<d.lineHeight?(d.lineHeight-c)/2:0,p=i.y+m;if(o.usePointStyle){let g={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},v=s.leftForLtr(h,u)+u/2,_=p+c/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,s0(e,g,v,_),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,s0(e,g,v,_)}else{e.lineWidth=Ft(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;let g=s.leftForLtr(h,u),v=s.leftForLtr(s.xPlus(h,1),u-2),_=Ro(a.borderRadius);Object.values(_).some(y=>y!==0)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,rc(e,{x:g,y:p,w:u,h:c,radius:_}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),rc(e,{x:v,y:p+1,w:u-2,h:c-2,radius:_}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(g,p,u,c),e.strokeRect(g,p,u,c),e.fillStyle=a.backgroundColor,e.fillRect(v,p+1,u-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){let{body:s}=this,{bodySpacing:o,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:d}=r,f=zn(r.bodyFont),h=f.lineHeight,m=0,p=Aa(r.rtl,this.x,this.width),g=function(F){i.fillText(F,p.x(e.x+m),e.y+h/2),e.y+=h+o},v=p.textAlign(a),_,y,x,w,T,E,k;for(i.textAlign=a,i.textBaseline="middle",i.font=f.string,e.x=g0(this,v,r),i.fillStyle=r.bodyColor,Xt(this.beforeBody,g),m=l&&v!=="right"?a==="center"?u/2+d:u+2+d:0,w=0,E=s.length;w<E;++w){for(_=s[w],y=this.labelTextColors[w],i.fillStyle=y,Xt(_.before,g),x=_.lines,l&&x.length&&(this._drawColorBox(i,e,w,p,r),h=Math.max(f.lineHeight,c)),T=0,k=x.length;T<k;++T)g(x[T]),h=f.lineHeight;Xt(_.after,g)}m=0,h=f.lineHeight,Xt(this.afterBody,g),e.y-=o}drawFooter(e,i,r){let s=this.footer,o=s.length,a,l;if(o){let c=Aa(r.rtl,this.x,this.width);for(e.x=g0(this,r.footerAlign,r),e.y+=r.footerMarginTop,i.textAlign=c.textAlign(r.footerAlign),i.textBaseline="middle",a=zn(r.footerFont),i.fillStyle=r.footerColor,i.font=a.string,l=0;l<o;++l)i.fillText(s[l],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,i,r,s){let{xAlign:o,yAlign:a}=this,{x:l,y:c}=e,{width:u,height:d}=r,{topLeft:f,topRight:h,bottomLeft:m,bottomRight:p}=Ro(s.cornerRadius);i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,i.lineWidth=s.borderWidth,i.beginPath(),i.moveTo(l+f,c),a==="top"&&this.drawCaret(e,i,r,s),i.lineTo(l+u-h,c),i.quadraticCurveTo(l+u,c,l+u,c+h),a==="center"&&o==="right"&&this.drawCaret(e,i,r,s),i.lineTo(l+u,c+d-p),i.quadraticCurveTo(l+u,c+d,l+u-p,c+d),a==="bottom"&&this.drawCaret(e,i,r,s),i.lineTo(l+m,c+d),i.quadraticCurveTo(l,c+d,l,c+d-m),a==="center"&&o==="left"&&this.drawCaret(e,i,r,s),i.lineTo(l,c+f),i.quadraticCurveTo(l,c,l+f,c),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,r=this.$animations,s=r&&r.x,o=r&&r.y;if(s||o){let a=hd[e.position].call(this,this._active,this._eventPosition);if(!a)return;let l=this._size=ck(this,e),c=Object.assign({},a,this._size),u=uk(i,e,c),d=dk(e,c,u,i);(s._to!==d.x||o._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),r=this.opacity;if(!r)return;this._updateAnimationTarget(i);let s={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;let a=mi(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,s,i),Dy(e,i.textDirection),o.y+=a.top,this.drawTitle(o,e,i),this.drawBody(o,e,i),this.drawFooter(o,e,i),ky(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let r=this._active,s=e.map(({datasetIndex:l,index:c})=>{let u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),o=!id(r,s),a=this._positionChanged(s,i);(o||a)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,o=this._active||[],a=this._getActiveElements(e,o,i,r),l=this._positionChanged(a,e),c=i||!id(a,o)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,r,s){let o=this.options;if(e.type==="mouseout")return[];if(!s)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(e,i){let{caretX:r,caretY:s,options:o}=this,a=hd[o.position].call(this,e,i);return a!==!1&&(r!==a.x||s!==a.y)}}return t})(),VU={id:"tooltip",_element:pk,positioners:hd,afterInit(t,n,e){e&&(t.tooltip=new pk({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",ft(xe({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Wk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},BU=Object.freeze({__proto__:null,Colors:Zj,Decimation:tU,Filler:bU,Legend:IU,SubTitle:MU,Title:kU,Tooltip:VU}),HU=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function zU(t,n,e,i){let r=t.indexOf(n);if(r===-1)return HU(t,n,e,i);let s=t.lastIndexOf(n);return r!==s?e:r}var jU=(t,n)=>t===null?null:Zn(Math.round(t),0,n);function mk(t){let n=this.getLabels();return t>=0&&t<n.length?n[t]:t}var UU=(()=>{class t extends Oa{static id="category";static defaults={ticks:{callback:mk}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let r=this.getLabels();for(let{index:s,label:o}of i)r[s]===o&&r.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(At(e))return null;let r=this.getLabels();return i=isFinite(i)&&r[i]===e?i:zU(r,e,_t(i,e),this._addedLabels),jU(i,r.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),i||(s=this.getLabels().length-1)),this.min=r,this.max=s}buildTicks(){let e=this.min,i=this.max,r=this.options.offset,s=[],o=this.getLabels();o=e===0&&i===o.length-1?o:o.slice(e,i+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=i;a++)s.push({value:a});return s}getLabelForValue(e){return mk.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function WU(t,n){let e=[],{bounds:r,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=t,h=s||1,m=u-1,{min:p,max:g}=n,v=!At(o),_=!At(a),y=!At(c),x=(g-p)/(d+1),w=ay((g-p)/m/h)*h,T,E,k,F;if(w<1e-14&&!v&&!_)return[{value:p},{value:g}];F=Math.ceil(g/w)-Math.floor(p/w),F>m&&(w=ay(F*w/m/h)*h),At(l)||(T=Math.pow(10,l),w=Math.ceil(w*T)/T),r==="ticks"?(E=Math.floor(p/w)*w,k=Math.ceil(g/w)*w):(E=p,k=g),v&&_&&s&&tD((a-o)/s,w/1e3)?(F=Math.round(Math.min((a-o)/w,u)),w=(a-o)/F,E=o,k=a):y?(E=v?o:E,k=_?a:k,F=c-1,w=(k-E)/F):(F=(k-E)/w,tc(F,Math.round(F),w/1e3)?F=Math.round(F):F=Math.ceil(F));let G=Math.max(cy(w),cy(E));T=Math.pow(10,At(l)?G:l),E=Math.round(E*T)/T,k=Math.round(k*T)/T;let Y=0;for(v&&(f&&E!==o?(e.push({value:o}),E<o&&Y++,tc(Math.round((E+Y*w)*T)/T,o,gk(o,x,t))&&Y++):E<o&&Y++);Y<F;++Y){let W=Math.round((E+Y*w)*T)/T;if(_&&W>a)break;e.push({value:W})}return _&&f&&k!==a?e.length&&tc(e[e.length-1].value,a,gk(a,x,t))?e[e.length-1].value=a:e.push({value:a}):(!_||k===a)&&e.push({value:k}),e}function gk(t,n,{horizontal:e,minRotation:i}){let r=Ir(i),s=(e?Math.sin(r):Math.cos(r))||.001,o=.75*n*(""+t).length;return Math.min(n/s,o)}var lc=class extends Oa{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return At(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:s}=this,o=l=>r=e?r:l,a=l=>s=i?s:l;if(n){let l=Gr(r),c=Gr(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(r===s){let l=s===0?1:Math.abs(s*.05);a(s+l),n||o(r-l)}this.min=r,this.max=s}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},s=this._range||this,o=WU(r,s);return n.bounds==="ticks"&&ly(o,this,"value"),n.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let r=(i-e)/Math.max(n.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return ic(n,this.chart.options.locale,this.options.ticks.format)}},ix=class extends lc{static id="linear";static defaults={ticks:{callback:rd.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Sn(n)?n:0,this.max=Sn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=Ir(this.options.ticks.minRotation),r=(n?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/r))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},gd=t=>Math.floor(qs(t)),Pa=(t,n)=>Math.pow(10,gd(t)+n);function vk(t){return t/Math.pow(10,gd(t))===1}function _k(t,n,e){let i=Math.pow(10,e),r=Math.floor(t/i);return Math.ceil(n/i)-r}function $U(t,n){let e=n-t,i=gd(e);for(;_k(t,n,i)>10;)i++;for(;_k(t,n,i)<10;)i--;return Math.min(i,gd(t))}function GU(t,{min:n,max:e}){n=Ki(t.min,n);let i=[],r=gd(n),s=$U(n,e),o=s<0?Math.pow(10,Math.abs(s)):1,a=Math.pow(10,s),l=r>s?Math.pow(10,r):0,c=Math.round((n-l)*o)/o,u=Math.floor((n-l)/a/10)*a*10,d=Math.floor((c-u)/Math.pow(10,s)),f=Ki(t.min,Math.round((l+u+d*Math.pow(10,s))*o)/o);for(;f<e;)i.push({value:f,major:vk(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,o=s>=0?1:o),f=Math.round((l+u+d*Math.pow(10,s))*o)/o;let h=Ki(t.max,f);return i.push({value:h,major:vk(h),significand:d}),i}var rx=class extends Oa{static id="logarithmic";static defaults={ticks:{callback:rd.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=lc.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return Sn(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=Sn(n)?Math.max(0,n):null,this.max=Sn(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Sn(this._userMin)&&(this.min=n===Pa(this.min,0)?Pa(this.min,-1):Pa(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,s=a=>i=n?i:a,o=a=>r=e?r:a;i===r&&(i<=0?(s(1),o(10)):(s(Pa(i,-1)),o(Pa(r,1)))),i<=0&&s(Pa(r,-1)),r<=0&&o(Pa(i,1)),this.min=i,this.max=r}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=GU(e,this);return n.bounds==="ticks"&&ly(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":ic(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=qs(n),this._valueRange=qs(this.max)-qs(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(qs(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function sx(t){let n=t.ticks;if(n.display&&t.display){let e=mi(n.backdropPadding);return _t(n.font&&n.font.size,_n.font.size)+e.height}return 0}function qU(t,n,e){return e=un(e)?e:[e],{w:uD(t,n.string,e),h:e.length*n.lineHeight}}function yk(t,n,e,i,r){return t===i||t===r?{start:n-e/2,end:n+e/2}:t<i||t>r?{start:n-e,end:n}:{start:n,end:n+e}}function KU(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],r=[],s=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?dn/s:0;for(let l=0;l<s;l++){let c=o.setContext(t.getPointLabelContext(l));r[l]=c.padding;let u=t.getPointPosition(l,t.drawingArea+r[l],a),d=zn(c.font),f=qU(t.ctx,d,t._pointLabels[l]);i[l]=f;let h=qi(t.getIndexAngle(l)+a),m=Math.round(t0(h)),p=yk(m,u.x,f.w,0,180),g=yk(m,u.y,f.h,90,270);YU(e,n,h,p,g)}t.setCenterPoint(n.l-e.l,e.r-n.r,n.t-e.t,e.b-n.b),t._pointLabelItems=QU(t,i,r)}function YU(t,n,e,i,r){let s=Math.abs(Math.sin(e)),o=Math.abs(Math.cos(e)),a=0,l=0;i.start<n.l?(a=(n.l-i.start)/s,t.l=Math.min(t.l,n.l-a)):i.end>n.r&&(a=(i.end-n.r)/s,t.r=Math.max(t.r,n.r+a)),r.start<n.t?(l=(n.t-r.start)/o,t.t=Math.min(t.t,n.t-l)):r.end>n.b&&(l=(r.end-n.b)/o,t.b=Math.max(t.b,n.b+l))}function XU(t,n,e){let i=t.drawingArea,{extra:r,additionalAngle:s,padding:o,size:a}=e,l=t.getPointPosition(n,i+r+o,s),c=Math.round(t0(qi(l.angle+Mn))),u=tW(l.y,a.h,c),d=JU(c),f=eW(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function ZU(t,n){if(!n)return!0;let{left:e,top:i,right:r,bottom:s}=t;return!(ps({x:e,y:i},n)||ps({x:e,y:s},n)||ps({x:r,y:i},n)||ps({x:r,y:s},n))}function QU(t,n,e){let i=[],r=t._pointLabels.length,s=t.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:sx(s)/2,additionalAngle:o?dn/r:0},c;for(let u=0;u<r;u++){l.padding=e[u],l.size=n[u];let d=XU(t,u,l);i.push(d),a==="auto"&&(d.visible=ZU(d,c),d.visible&&(c=d))}return i}function JU(t){return t===0||t===180?"center":t<180?"left":"right"}function eW(t,n,e){return e==="right"?t-=n:e==="center"&&(t-=n/2),t}function tW(t,n,e){return e===90||e===270?t-=n/2:(e>270||e<90)&&(t-=n),t}function nW(t,n,e){let{left:i,top:r,right:s,bottom:o}=e,{backdropColor:a}=n;if(!At(a)){let l=Ro(n.borderRadius),c=mi(n.backdropPadding);t.fillStyle=a;let u=i-c.left,d=r-c.top,f=s-i+c.width,h=o-r+c.height;Object.values(l).some(m=>m!==0)?(t.beginPath(),rc(t,{x:u,y:d,w:f,h,radius:l}),t.fill()):t.fillRect(u,d,f,h)}}function iW(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let r=n-1;r>=0;r--){let s=t._pointLabelItems[r];if(!s.visible)continue;let o=i.setContext(t.getPointLabelContext(r));nW(e,o,s);let a=zn(o.font),{x:l,y:c,textAlign:u}=s;Oo(e,t._pointLabels[r],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function $k(t,n,e,i){let{ctx:r}=t;if(e)r.arc(t.xCenter,t.yCenter,n,0,fn);else{let s=t.getPointPosition(0,n);r.moveTo(s.x,s.y);for(let o=1;o<i;o++)s=t.getPointPosition(o,n),r.lineTo(s.x,s.y)}}function rW(t,n,e,i,r){let s=t.ctx,o=n.circular,{color:a,lineWidth:l}=n;!o&&!i||!a||!l||e<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(r.dash||[]),s.lineDashOffset=r.dashOffset,s.beginPath(),$k(t,e,o,i),s.closePath(),s.stroke(),s.restore())}function sW(t,n,e){return Ys(t,{label:e,index:n,type:"pointLabel"})}var ox=class extends lc{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:rd.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(n){return n},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(n){super(n),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let n=this._padding=mi(sx(this.options)/2),e=this.width=this.maxWidth-n.width,i=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+e/2+n.left),this.yCenter=Math.floor(this.top+i/2+n.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!1);this.min=Sn(n)&&!isNaN(n)?n:0,this.max=Sn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/sx(this.options))}generateTickLabels(n){lc.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((e,i)=>{let r=on(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?KU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,r){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,r))}getIndexAngle(n){let e=fn/(this._pointLabels.length||1),i=this.options.startAngle||0;return qi(n*e+Ir(i))}getDistanceFromCenterForValue(n){if(At(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(At(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n<e.length){let i=e[n];return sW(this.getContext(),n,i)}}getPointPosition(n,e,i=0){let r=this.getIndexAngle(n)-Mn+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(n,e){return this.getPointPosition(n,this.getDistanceFromCenterForValue(e))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){let{left:e,top:i,right:r,bottom:s}=this._pointLabelItems[n];return{left:e,top:i,right:r,bottom:s}}drawBackground(){let{backgroundColor:n,grid:{circular:e}}=this.options;if(n){let i=this.ctx;i.save(),i.beginPath(),$k(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=n,i.fill(),i.restore()}}drawGrid(){let n=this.ctx,e=this.options,{angleLines:i,grid:r,border:s}=e,o=this._pointLabels.length,a,l,c;if(e.pointLabels.display&&iW(this,o),r.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);let f=this.getContext(d),h=r.setContext(f),m=s.setContext(f);rW(this,h,l,o,m)}}),i.display){for(n.save(),a=o-1;a>=0;a--){let u=i.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(n.lineWidth=f,n.strokeStyle=d,n.setLineDash(u.borderDash),n.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(a,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),s,o;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),u=zn(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=u.string,o=n.measureText(a.label).width,n.fillStyle=c.backdropColor;let d=mi(c.backdropPadding);n.fillRect(-o/2-d.left,-s-u.size/2-d.top,o+d.width,u.size+d.height)}Oo(n,a.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},D0={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Xi=Object.keys(D0);function xk(t,n){return t-n}function bk(t,n){if(At(n))return null;let e=t._adapter,{parser:i,round:r,isoWeekday:s}=t._parseOpts,o=n;return typeof i=="function"&&(o=i(o)),Sn(o)||(o=typeof i=="string"?e.parse(o,i):e.parse(o)),o===null?null:(r&&(o=r==="week"&&(Ma(s)||s===!0)?e.startOf(o,"isoWeek",s):e.startOf(o,r)),+o)}function wk(t,n,e,i){let r=Xi.length;for(let s=Xi.indexOf(t);s<r-1;++s){let o=D0[Xi[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((e-n)/(a*o.size))<=i)return Xi[s]}return Xi[r-1]}function oW(t,n,e,i,r){for(let s=Xi.length-1;s>=Xi.indexOf(e);s--){let o=Xi[s];if(D0[o].common&&t._adapter.diff(r,i,o)>=n-1)return o}return Xi[e?Xi.indexOf(e):0]}function aW(t){for(let n=Xi.indexOf(t)+1,e=Xi.length;n<e;++n)if(D0[Xi[n]].common)return Xi[n]}function Ck(t,n,e){if(!e)t[n]=!0;else if(e.length){let{lo:i,hi:r}=n0(e,n),s=e[i]>=n?e[i]:e[r];t[s]=!0}}function lW(t,n,e,i){let r=t._adapter,s=+r.startOf(n[0].value,i),o=n[n.length-1].value,a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=e[a],l>=0&&(n[l].major=!0);return n}function Sk(t,n,e){let i=[],r={},s=n.length,o,a;for(o=0;o<s;++o)a=n[o],r[a]=o,i.push({value:a,major:!1});return s===0||!e?i:lW(t,i,r,e)}var ax=(()=>{class t extends Oa{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let r=e.time||(e.time={}),s=this._adapter=new yz._date(e.adapters.date);s.init(i),Jl(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:bk(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,r=e.time.unit||"day",{min:s,max:o,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!a||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),s=Sn(s)&&!isNaN(s)?s:+i.startOf(Date.now(),r),o=Sn(o)&&!isNaN(o)?o:+i.endOf(Date.now(),r)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],r=e[e.length-1]),{min:i,max:r}}buildTicks(){let e=this.options,i=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let o=this.min,a=this.max,l=rD(s,o,a);return this._unit=i.unit||(r.autoSkip?wk(i.minUnit,this.min,this.max,this._getLabelCapacity(o)):oW(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:aW(this._unit),this.initOffsets(s),e.reverse&&l.reverse(),Sk(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,r=0,s,o;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?i=1-s:i=(this.getDecimalForValue(e[1])-s)/2,o=this.getDecimalForValue(e[e.length-1]),e.length===1?r=o:r=(o-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;i=Zn(i,0,a),r=Zn(r,0,a),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let e=this._adapter,i=this.min,r=this.max,s=this.options,o=s.time,a=o.unit||wk(o.minUnit,i,r,this._getLabelCapacity(i)),l=_t(s.ticks.stepSize,1),c=a==="week"?o.isoWeekday:!1,u=Ma(c)||c===!0,d={},f=i,h,m;if(u&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,u?"day":a),e.diff(r,i,a)>1e5*l)throw new Error(i+" and "+r+" are too far apart with stepSize of "+l+" "+a);let p=s.ticks.source==="data"&&this.getDataTimestamps();for(h=f,m=0;h<r;h=+e.add(h,l,a),m++)Ck(d,h,p);return(h===r||s.bounds==="ticks"||m===1)&&Ck(d,h,p),Object.keys(d).sort(xk).map(g=>+g)}getLabelForValue(e){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(e,r.tooltipFormat):i.format(e,r.displayFormats.datetime)}format(e,i){let s=this.options.time.displayFormats,o=this._unit,a=i||s[o];return this._adapter.format(e,a)}_tickFormatFunction(e,i,r,s){let o=this.options,a=o.ticks.callback;if(a)return on(a,[e,i,r],this);let l=o.time.displayFormats,c=this._unit,u=this._majorUnit,d=c&&l[c],f=u&&l[u],h=r[i],m=u&&f&&h&&h.major;return this._adapter.format(e,s||(m?f:d))}generateTickLabels(e){let i,r,s;for(i=0,r=e.length;i<r;++i)s=e[i],s.label=this._tickFormatFunction(s.value,i,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let i=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((i.start+r)*i.factor)}getValueForPixel(e){let i=this._offsets,r=this.getDecimalForPixel(e)/i.factor-i.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){let i=this.options.ticks,r=this.ctx.measureText(e).width,s=Ir(this.isHorizontal()?i.maxRotation:i.minRotation),o=Math.cos(s),a=Math.sin(s),l=this._resolveTickFontOptions(0).size;return{w:r*o+l*a,h:r*a+l*o}}_getLabelCapacity(e){let i=this.options.time,r=i.displayFormats,s=r[i.unit]||r.millisecond,o=this._tickFormatFunction(e,0,Sk(this,[e],this._majorUnit),s),a=this._getLabelSize(o),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,r;if(e.length)return e;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,r=s.length;i<r;++i)e=e.concat(s[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],i,r;if(e.length)return e;let s=this.getLabels();for(i=0,r=s.length;i<r;++i)e.push(bk(this,s[i]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return fy(e.sort(xk))}}return t})();function v0(t,n,e){let i=0,r=t.length-1,s,o,a,l;e?(n>=t[i].pos&&n<=t[r].pos&&({lo:i,hi:r}=hs(t,"pos",n)),{pos:s,time:a}=t[i],{pos:o,time:l}=t[r]):(n>=t[i].time&&n<=t[r].time&&({lo:i,hi:r}=hs(t,"time",n)),{time:s,pos:a}=t[i],{time:o,pos:l}=t[r]);let c=o-s;return c?a+(l-a)*(n-s)/c:a}var lx=class extends ax{static id="timeseries";static defaults=ax.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=v0(e,this.min),this._tableRange=v0(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,r=[],s=[],o,a,l,c,u;for(o=0,a=n.length;o<a;++o)c=n[o],c>=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],l=r[o-1],c=r[o],Math.round((u+l)/2)!==c&&s.push({time:c,pos:o/(a-1)});return s}_generate(){let n=this.min,e=this.max,i=super.getDataTimestamps();return(!i.includes(n)||!i.length)&&i.splice(0,0,n),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((r,s)=>r-s)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(v0(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return v0(this._table,i*this._tableRange+this._minPos,!0)}},cW=Object.freeze({__proto__:null,CategoryScale:UU,LinearScale:ix,LogarithmicScale:rx,RadialLinearScale:ox,TimeScale:ax,TimeSeriesScale:lx}),Gk=[_z,Wj,BU,cW];T0.register(...Gk);var qk=T0;var uW=(t,n)=>({position:"relative",width:t,height:n}),dW=(t,n)=>({width:t,height:n}),Kk=(()=>{class t{platformId;el;zone;type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(e){this._data=e,this.reinit()}get options(){return this._options}set options(e){this._options=e,this.reinit()}onDataSelect=new ve;isBrowser=!1;initialized;_data;_options={};chart;constructor(e,i,r){this.platformId=e,this.el=i,this.zone=r}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(e){if(this.chart){let i=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);i&&i[0]&&r&&this.onDataSelect.emit({originalEvent:e,element:i[0],dataset:r})}}initChart(){if(gn(this.platformId)){let e=this.options||{};e.responsive=this.responsive,e.responsive&&(this.height||this.width)&&(e.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new qk(this.el.nativeElement.children[0].children[0],{type:this.type,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(i){return new(i||t)(se(nn),se(gt),se(rt))};static \u0275cmp=me({type:t,selectors:[["p-chart"]],hostAttrs:[1,"p-element"],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:[Z.HasDecoratorInputTransform,"responsive","responsive",oe],ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},features:[Et],decls:2,vars:10,consts:[[3,"ngStyle"],["role","img",3,"click","ngStyle"]],template:function(i,r){i&1&&(P(0,"div",0)(1,"canvas",1),ye("click",function(o){return r.onCanvasClick(o)}),O()()),i&2&&(b("ngStyle",Zt(4,uW,r.responsive&&!r.width?null:r.width,r.responsive&&!r.height?null:r.height)),C(),b("ngStyle",Zt(7,dW,r.responsive&&!r.width?null:r.width,r.responsive&&!r.height?null:r.height)),ne("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy))},dependencies:[Bt],encapsulation:2,changeDetection:0})}return t})(),Yk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It]})}return t})();var hW=["*"],Xk=(()=>{class t{style;styleClass;layout="horizontal";type="solid";align;containerClass(){return{"p-divider p-component":!0,"p-divider-horizontal":this.layout==="horizontal","p-divider-vertical":this.layout==="vertical","p-divider-solid":this.type==="solid","p-divider-dashed":this.type==="dashed","p-divider-dotted":this.type==="dotted","p-divider-left":this.layout==="horizontal"&&(!this.align||this.align==="left"),"p-divider-center":this.layout==="horizontal"&&this.align==="center"||this.layout==="vertical"&&(!this.align||this.align==="center"),"p-divider-right":this.layout==="horizontal"&&this.align==="right","p-divider-top":this.layout==="vertical"&&this.align==="top","p-divider-bottom":this.layout==="vertical"&&this.align==="bottom"}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=me({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",layout:"layout",type:"type",align:"align"},ngContentSelectors:hW,decls:3,vars:6,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(i,r){i&1&&(Ln(),P(0,"div",0)(1,"div",1),cn(2),O()()),i&2&&(be(r.styleClass),b("ngClass",r.containerClass())("ngStyle",r.style),ne("aria-orientation",r.layout)("data-pc-name","divider"))},dependencies:[zt,Bt],styles:[`@layer primeng{.p-divider-horizontal{display:flex;width:100%;position:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0 1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-vertical:before{border-left-style:dotted}}
`],encapsulation:2,changeDetection:0})}return t})(),Zk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It]})}return t})();var mW=["*",[["p-header"]],[["p-footer"]]],gW=["*","p-header","p-footer"];function vW(t,n){t&1&&Re(0)}function _W(t,n){if(t&1&&(P(0,"div",8),cn(1,1),N(2,vW,1,0,"ng-container",6),O()),t&2){let e=I();C(2),b("ngTemplateOutlet",e.headerTemplate)}}function yW(t,n){t&1&&Re(0)}function xW(t,n){if(t&1&&(P(0,"div",9),Te(1),N(2,yW,1,0,"ng-container",6),O()),t&2){let e=I();C(),Vt(" ",e.header," "),C(),b("ngTemplateOutlet",e.titleTemplate)}}function bW(t,n){t&1&&Re(0)}function wW(t,n){if(t&1&&(P(0,"div",10),Te(1),N(2,bW,1,0,"ng-container",6),O()),t&2){let e=I();C(),Vt(" ",e.subheader," "),C(),b("ngTemplateOutlet",e.subtitleTemplate)}}function CW(t,n){t&1&&Re(0)}function SW(t,n){t&1&&Re(0)}function EW(t,n){if(t&1&&(P(0,"div",11),cn(1,2),N(2,SW,1,0,"ng-container",6),O()),t&2){let e=I();C(2),b("ngTemplateOutlet",e.footerTemplate)}}var k0=(()=>{class t{el;header;subheader;set style(e){Se.equals(this._style(),e)||this._style.set(e)}styleClass;headerFacet;footerFacet;templates;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_style=ar(null);constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}getBlockableElement(){return this.el.nativeElement.children[0]}static \u0275fac=function(i){return new(i||t)(se(gt))};static \u0275cmp=me({type:t,selectors:[["p-card"]],contentQueries:function(i,r,s){if(i&1&&(jt(s,xp,5),jt(s,bp,5),jt(s,Mt,4)),i&2){let o;qe(o=Ke())&&(r.headerFacet=o.first),qe(o=Ke())&&(r.footerFacet=o.first),qe(o=Ke())&&(r.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:gW,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(i,r){i&1&&(Ln(mW),P(0,"div",0),N(1,_W,3,1,"div",1),P(2,"div",2),N(3,xW,3,2,"div",3)(4,wW,3,2,"div",4),P(5,"div",5),cn(6),N(7,CW,1,0,"ng-container",6),O(),N(8,EW,3,1,"div",7),O()()),i&2&&(be(r.styleClass),b("ngClass","p-card p-component")("ngStyle",r._style()),ne("data-pc-name","card"),C(),b("ngIf",r.headerFacet||r.headerTemplate),C(2),b("ngIf",r.header||r.titleTemplate),C(),b("ngIf",r.subheader||r.subtitleTemplate),C(3),b("ngTemplateOutlet",r.contentTemplate),C(),b("ngIf",r.footerFacet||r.footerTemplate))},dependencies:[zt,Ut,qt,Bt],styles:[`@layer primeng{.p-card-header img{width:100%}}
`],encapsulation:2,changeDetection:0})}return t})(),M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Nt]})}return t})();var Jk=(()=>{class t{transform(e){return e&&e.split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()).join("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=th({name:"capitalCase",type:t,pure:!0,standalone:!0})}}return t})();var A0=(()=>{class t{constructor(){this.groups=[{name:"NGO",description:"Grupo de Utilizadores da NGO",users:[{username:"Joao",email:"joao@gmail.com",role:bn.ADMIN},{username:"Pedro",email:"pedro@gmail.com",role:bn.ADMIN},{username:"Muhammad",email:"muhammad@gmail.com",role:bn.USER},{username:"Ivo",email:"ivo@gmail.com",role:bn.USER}]},{name:"OPAVELA",description:"Grupo de Utilizadores da OPAVELA",users:[{username:"Carlos",email:"carlos@gmail.com",role:bn.ADMIN},{username:"Esselina",email:"esselina@gmail.com",role:bn.USER}]}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var eM=(()=>{class t{constructor(){this.userServ=_e(Up),this.name=this.userServ.getUser().username,this.groupServ=_e(A0),this.groups=this.groupServ.groups,this.groupsData={labels:["Julho","Agosto","Setembro","Novembro","Dezembro","Janeiro","Fevereiro","Mar\xE7o"],datasets:[{label:this.groups[0].name,data:[50,75,59,65,75,56,55,60],fill:!1,borderColor:"#F19400",tension:.4},{label:this.groups[1].name,data:[32,28,48,40,19,86,27,90],fill:!1,borderColor:"#8E5700",tension:.4}]},this.individualsData={labels:this.getLabels(),datasets:[{label:"Percentagem Individual",data:this.getLabels().map(()=>Math.random()*100),backgroundColor:"#F19400",borderWidth:1}]}}get valorTotal(){return 100200}getLabels(){let e=[];return this.groups.forEach(i=>{i.users?.forEach(r=>{e.push(r.username)})}),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-home"]],standalone:!0,features:[Me],decls:30,vars:11,consts:[[1,"h-screen","flex","flex-col","pl-10","space-y-20"],[1,"pt-16","text-6xl"],[1,"text-primary-500"],[1,"w-[90%]","grid","grid-cols-3","space-x-8"],["header","Total Poupado"],[1,"text-4xl"],["header","Total de Grupos"],[1,"px-2","text-4xl"],["header","Total de Membros"],[1,"flex","flex-row","space-x-10"],[1,"text-3xl","text-center"],[1,"w-[32rem]","rounded-lg","border-1","border-gray-400","p-5","shadow-lg"],["type","line",3,"data"],["type","solid","layout","vertical","styleClass","custom-divider"],["type","bar",3,"data"]],template:function(i,r){i&1&&(P(0,"div",0)(1,"div",1)(2,"p"),Te(3," Bem vindo "),P(4,"span",2),Te(5),ev(6,"capitalCase"),O()()(),P(7,"div",3)(8,"p-card",4)(9,"p",5),Te(10),ev(11,"currency"),O()(),P(12,"p-card",6)(13,"p",7),Te(14,"2"),O()(),P(15,"p-card",8)(16,"p",7),Te(17,"6"),O()()(),P(18,"div",9)(19,"div")(20,"p",10),Te(21,"Poupan\xE7as de Grupo"),O(),P(22,"div",11),re(23,"p-chart",12),O()(),re(24,"p-divider",13),P(25,"div")(26,"p",10),Te(27,"Poupan\xE7a Individual"),O(),P(28,"div",11),re(29,"p-chart",14),O()()()()),i&2&&(C(5),Vt(" ",HS(6,4,r.name),""),C(5),Vt("",zS(11,6,r.valorTotal,"","","1.2-2")," MZN"),C(13),b("data",r.groupsData),C(6),b("data",r.individualsData))},dependencies:[Yk,Kk,Oi,Zk,Xk,M0,k0,Jk,dE]})}}return t})();var dx=(t,n)=>{let e=_e(ti);return(typeof window<"u"&&window.localStorage?localStorage.getItem("user"):null)?(console.log(`URL: ${n.url.toString()}`),(n.url.toString()==="/login"||n.url.toString()==="/")&&e.navigate(["/home"]),!0):n.url.toString()==="/login"?!0:(e.navigate(["/login"]),!1)};var tM=(()=>{class t{constructor(){this.label="",this.icon="",this.onClick=()=>{}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-sidebar-tile"]],inputs:{label:"label",icon:"icon",onClick:"onClick"},standalone:!0,features:[Me],decls:4,vars:4,consts:[[1,"hover:bg-primary-700","px-4","text-center","hover:rounded-full","text-primary-800","hover:text-white"],[1,"text-3xl","py-2",3,"click"],[2,"font-size","1.5rem","line-height","2rem"]],template:function(i,r){i&1&&(P(0,"div",0)(1,"button",1),ye("click",function(){return r.onClick()}),re(2,"span",2),Te(3),O()()),i&2&&(C(2),OS("pi pi-",r.icon," px-2"),C(),Vt(" ",r.label," "))}})}}return t})();function TW(t,n){if(t&1){let e=He();P(0,"li")(1,"app-sidebar-tile",7),ye("click",function(){let r=J(e).$implicit,s=I();return ee(s.routeTo(r.route))}),O()()}if(t&2){let e=n.$implicit;C(),b("label",e.label)("icon",e.icon)}}var nM=(()=>{class t{constructor(){this.router=_e(ti),this.user=JSON.parse(localStorage.getItem("user")),this.tiles=this.user.role===bn.ADMIN?[{label:"In\xEDcio",icon:"home",route:"home"},{label:"Grupos",icon:"users",route:"groups"},{label:"Adicionar",icon:"user-plus",route:"add-users"}]:[{label:"In\xEDcio",icon:"home",route:"home"},{label:"Grupos",icon:"users",route:"groups"}]}routeTo(e){this.router.navigate([e])}logout(){localStorage.removeItem("user"),this.router.navigate(["login"])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-sidebar"]],standalone:!0,features:[Me],decls:9,vars:2,consts:[[1,"h-screen","bg-primary-300","flex","flex-col","items-center","rounded-br-[1.5rem]","rounded-tr-[1.5rem]"],[1,"flex","justify-center","items-center","h-[20%]"],[1,"flex","items-center","justify-center","w-20","h-20","rounded-full","text-5xl","font-semibold","bg-primary-700","text-white","aspect-square"],[1,"flex-1","flex","flex-col","justify-center"],[1,"space-y-20"],[4,"ngFor","ngForOf"],["label","Sair","icon","sign-out",3,"click"],[3,"click","label","icon"]],template:function(i,r){if(i&1&&(P(0,"div",0)(1,"div",1)(2,"p",2),Te(3),O()(),P(4,"div",3)(5,"ul",4),N(6,TW,2,2,"li",5),O()(),P(7,"div",1)(8,"app-sidebar-tile",6),ye("click",function(){return r.logout()}),O()()()),i&2){let s;C(3),Vt(" ",r.user.username==null||(s=r.user.username.charAt(0))==null?null:s.toUpperCase()," "),C(3),b("ngForOf",r.tiles)}},dependencies:[wi,tM]})}}return t})();var iM=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-main-layout"]],standalone:!0,features:[Me],decls:4,vars:0,consts:[[1,"flex"],[1,"flex-[1.5]","h-screen"],[1,"flex-[8.5]","overflow-y-auto"]],template:function(i,r){i&1&&(P(0,"div",0),re(1,"app-sidebar",1),P(2,"div",2),re(3,"router-outlet"),O()())},dependencies:[nM,hT,Au]})}}return t})();var fx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var hx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var px=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var cc=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var mx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var IW=["container"],DW=["inputfield"],kW=["contentWrapper"],MW=[[["p-header"]],[["p-footer"]]],AW=["p-header","p-footer"],FW=(t,n,e,i,r)=>({"p-calendar":!0,"p-input-icon-right":t,"p-calendar-w-btn":n,"p-calendar-timeonly":e,"p-calendar-disabled":i,"p-focus":r}),PW=t=>({clickCallBack:t}),OW=t=>({"p-datepicker-icon":t}),RW=(t,n,e,i,r,s)=>({"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":n,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":s}),rM=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),LW=t=>({value:"visibleTouchUI",params:t}),NW=t=>({value:"visible",params:t}),gx=t=>({$implicit:t}),VW=(t,n)=>({"p-datepicker-other-month":t,"p-datepicker-today":n}),BW=(t,n)=>({"p-highlight p-datepicker-current-day":t,"p-disabled":n}),oM=(t,n)=>({"p-highlight":t,"p-disabled":n}),sM=t=>[t];function HW(t,n){if(t&1){let e=He();P(0,"TimesIcon",11),ye("click",function(){J(e);let r=I(3);return ee(r.clear())}),O()}t&2&&b("styleClass","p-calendar-clear-icon")}function zW(t,n){}function jW(t,n){t&1&&N(0,zW,0,0,"ng-template")}function UW(t,n){if(t&1){let e=He();P(0,"span",12),ye("click",function(){J(e);let r=I(3);return ee(r.clear())}),N(1,jW,1,0,null,13),O()}if(t&2){let e=I(3);C(),b("ngTemplateOutlet",e.clearIconTemplate)}}function WW(t,n){if(t&1&&(Fe(0),N(1,HW,1,1,"TimesIcon",9)(2,UW,2,1,"span",10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.clearIconTemplate),C(),b("ngIf",e.clearIconTemplate)}}function $W(t,n){if(t&1&&re(0,"span",16),t&2){let e=I(3);b("ngClass",e.icon)}}function GW(t,n){t&1&&re(0,"CalendarIcon")}function qW(t,n){}function KW(t,n){t&1&&N(0,qW,0,0,"ng-template")}function YW(t,n){if(t&1&&(Fe(0),N(1,GW,1,0,"CalendarIcon",7)(2,KW,1,0,null,13),Pe()),t&2){let e=I(3);C(),b("ngIf",!e.triggerIconTemplate),C(),b("ngTemplateOutlet",e.triggerIconTemplate)}}function XW(t,n){if(t&1){let e=He();P(0,"button",14),ye("click",function(r){J(e),I();let s=mn(1),o=I();return ee(o.onButtonClick(r,s))}),N(1,$W,1,1,"span",15)(2,YW,3,2,"ng-container",7),O()}if(t&2){let e,i=I(2);b("disabled",i.disabled),ne("aria-label",i.iconButtonAriaLabel)("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.panelId:null),C(),b("ngIf",i.icon),C(),b("ngIf",!i.icon)}}function ZW(t,n){if(t&1){let e=He();P(0,"CalendarIcon",19),ye("click",function(r){J(e);let s=I(3);return ee(s.onButtonClick(r))}),O()}if(t&2){let e=I(3);b("ngClass",Xe(1,OW,e.showOnFocus))}}function QW(t,n){t&1&&Re(0)}function JW(t,n){if(t&1&&(Fe(0),N(1,ZW,1,3,"CalendarIcon",17)(2,QW,1,0,"ng-container",18),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.inputIconTemplate),C(),b("ngTemplateOutlet",e.inputIconTemplate)("ngTemplateOutletContext",Xe(3,PW,e.onButtonClick.bind(e)))}}function e$(t,n){if(t&1){let e=He();P(0,"input",6,1),ye("focus",function(r){J(e);let s=I();return ee(s.onInputFocus(r))})("keydown",function(r){J(e);let s=I();return ee(s.onInputKeydown(r))})("click",function(){J(e);let r=I();return ee(r.onInputClick())})("blur",function(r){J(e);let s=I();return ee(s.onInputBlur(r))})("input",function(r){J(e);let s=I();return ee(s.onUserInput(r))}),O(),N(2,WW,3,2,"ng-container",7)(3,XW,3,6,"button",8)(4,JW,3,5,"ng-container",7)}if(t&2){let e,i=I();be(i.inputStyleClass),b("value",i.inputFieldValue)("readonly",i.readonlyInput)("ngStyle",i.inputStyle)("placeholder",i.placeholder||"")("disabled",i.disabled)("ngClass",i.inputClass)("autofocus",i.autofocus),ne("id",i.inputId)("name",i.name)("required",i.required)("aria-required",i.required)("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.panelId:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("tabindex",i.tabindex)("inputmode",i.touchUI?"off":null),C(2),b("ngIf",i.showClear&&!i.disabled&&i.value!=null),C(),b("ngIf",i.showIcon&&i.iconDisplay==="button"),C(),b("ngIf",i.iconDisplay==="input"&&i.showIcon)}}function t$(t,n){t&1&&Re(0)}function n$(t,n){t&1&&re(0,"ChevronLeftIcon",40),t&2&&b("styleClass","p-datepicker-prev-icon")}function i$(t,n){}function r$(t,n){t&1&&N(0,i$,0,0,"ng-template")}function s$(t,n){if(t&1&&(P(0,"span",41),N(1,r$,1,0,null,13),O()),t&2){let e=I(5);C(),b("ngTemplateOutlet",e.previousIconTemplate)}}function o$(t,n){if(t&1){let e=He();P(0,"button",38),ye("keydown",function(r){J(e);let s=I(4);return ee(s.onContainerButtonKeydown(r))})("click",function(r){J(e);let s=I(4);return ee(s.onPrevButtonClick(r))}),N(1,n$,1,1,"ChevronLeftIcon",35)(2,s$,2,1,"span",39),O()}if(t&2){let e=I(4);ne("aria-label",e.prevIconAriaLabel),C(),b("ngIf",!e.previousIconTemplate),C(),b("ngIf",e.previousIconTemplate)}}function a$(t,n){if(t&1){let e=He();P(0,"button",42),ye("click",function(r){J(e);let s=I(4);return ee(s.switchToMonthView(r))})("keydown",function(r){J(e);let s=I(4);return ee(s.onContainerButtonKeydown(r))}),Te(1),O()}if(t&2){let e=I().$implicit,i=I(3);b("disabled",i.switchViewButtonDisabled()),ne("aria-label",i.getTranslation("chooseMonth")),C(),Vt(" ",i.getMonthName(e.month)," ")}}function l$(t,n){if(t&1){let e=He();P(0,"button",43),ye("click",function(r){J(e);let s=I(4);return ee(s.switchToYearView(r))})("keydown",function(r){J(e);let s=I(4);return ee(s.onContainerButtonKeydown(r))}),Te(1),O()}if(t&2){let e=I().$implicit,i=I(3);b("disabled",i.switchViewButtonDisabled()),ne("aria-label",i.getTranslation("chooseYear")),C(),Vt(" ",i.getYear(e)," ")}}function c$(t,n){if(t&1&&(Fe(0),Te(1),Pe()),t&2){let e=I(5);C(),J1("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function u$(t,n){t&1&&Re(0)}function d$(t,n){if(t&1&&(P(0,"span",44),N(1,c$,2,2,"ng-container",7)(2,u$,1,0,"ng-container",18),O()),t&2){let e=I(4);C(),b("ngIf",!e.decadeTemplate),C(),b("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",Xe(3,gx,e.yearPickerValues))}}function f$(t,n){t&1&&re(0,"ChevronRightIcon",40),t&2&&b("styleClass","p-datepicker-next-icon")}function h$(t,n){}function p$(t,n){t&1&&N(0,h$,0,0,"ng-template")}function m$(t,n){if(t&1&&(P(0,"span",45),N(1,p$,1,0,null,13),O()),t&2){let e=I(4);C(),b("ngTemplateOutlet",e.nextIconTemplate)}}function g$(t,n){if(t&1&&(P(0,"th",51)(1,"span"),Te(2),O()()),t&2){let e=I(5);C(2),yt(e.getTranslation("weekHeader"))}}function v$(t,n){if(t&1&&(P(0,"th",52)(1,"span"),Te(2),O()()),t&2){let e=n.$implicit;C(2),yt(e)}}function _$(t,n){if(t&1&&(P(0,"td",55)(1,"span",56),Te(2),O()()),t&2){let e=I().index,i=I(2).$implicit;C(2),Vt(" ",i.weekNumbers[e]," ")}}function y$(t,n){if(t&1&&(Fe(0),Te(1),Pe()),t&2){let e=I(2).$implicit;C(),yt(e.day)}}function x$(t,n){t&1&&Re(0)}function b$(t,n){if(t&1&&(Fe(0),N(1,x$,1,0,"ng-container",18),Pe()),t&2){let e=I(2).$implicit,i=I(6);C(),b("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",Xe(2,gx,e))}}function w$(t,n){t&1&&Re(0)}function C$(t,n){if(t&1&&(Fe(0),N(1,w$,1,0,"ng-container",18),Pe()),t&2){let e=I(2).$implicit,i=I(6);C(),b("ngTemplateOutlet",i.disabledDateTemplate)("ngTemplateOutletContext",Xe(2,gx,e))}}function S$(t,n){if(t&1&&(P(0,"div",59),Te(1),O()),t&2){let e=I(2).$implicit;C(),Vt(" ",e.day," ")}}function E$(t,n){if(t&1){let e=He();Fe(0),P(1,"span",57),ye("click",function(r){J(e);let s=I().$implicit,o=I(6);return ee(o.onDateSelect(r,s))})("keydown",function(r){J(e);let s=I().$implicit,o=I(3).index,a=I(3);return ee(a.onDateCellKeydown(r,s,o))}),N(2,y$,2,1,"ng-container",7)(3,b$,2,4,"ng-container",7)(4,C$,2,4,"ng-container",7),O(),N(5,S$,2,1,"div",58),Pe()}if(t&2){let e=I().$implicit,i=I(6);C(),b("ngClass",Zt(6,BW,i.isSelected(e)&&e.selectable,!e.selectable)),ne("data-date",i.formatDateKey(i.formatDateMetaToDate(e))),C(),b("ngIf",!i.dateTemplate&&(e.selectable||!i.disabledDateTemplate)),C(),b("ngIf",e.selectable||!i.disabledDateTemplate),C(),b("ngIf",!e.selectable),C(),b("ngIf",i.isSelected(e))}}function T$(t,n){if(t&1&&(P(0,"td",16),N(1,E$,6,9,"ng-container",7),O()),t&2){let e=n.$implicit,i=I(6);b("ngClass",Zt(3,VW,e.otherMonth,e.today)),ne("aria-label",e.day),C(),b("ngIf",e.otherMonth?i.showOtherMonths:!0)}}function I$(t,n){if(t&1&&(P(0,"tr"),N(1,_$,3,1,"td",53)(2,T$,2,6,"td",54),O()),t&2){let e=n.$implicit,i=I(5);C(),b("ngIf",i.showWeek),C(),b("ngForOf",e)}}function D$(t,n){if(t&1&&(P(0,"div",46)(1,"table",47)(2,"thead")(3,"tr"),N(4,g$,3,1,"th",48)(5,v$,3,1,"th",49),O()(),P(6,"tbody"),N(7,I$,3,2,"tr",50),O()()()),t&2){let e=I().$implicit,i=I(3);C(4),b("ngIf",i.showWeek),C(),b("ngForOf",i.weekDays),C(2),b("ngForOf",e.dates)}}function k$(t,n){if(t&1){let e=He();P(0,"div",27)(1,"div",28),N(2,o$,3,3,"button",29),P(3,"div",30),N(4,a$,2,3,"button",31)(5,l$,2,3,"button",32)(6,d$,3,5,"span",33),O(),P(7,"button",34),ye("keydown",function(r){J(e);let s=I(3);return ee(s.onContainerButtonKeydown(r))})("click",function(r){J(e);let s=I(3);return ee(s.onNextButtonClick(r))}),N(8,f$,1,1,"ChevronRightIcon",35)(9,m$,2,1,"span",36),O()(),N(10,D$,8,3,"div",37),O()}if(t&2){let e=n.index,i=I(3);C(2),b("ngIf",e===0),C(2),b("ngIf",i.currentView==="date"),C(),b("ngIf",i.currentView!=="year"),C(),b("ngIf",i.currentView==="year"),C(),da("display",i.numberOfMonths===1||e===i.numberOfMonths-1?"inline-flex":"none"),ne("aria-label",i.nextIconAriaLabel),C(),b("ngIf",!i.nextIconTemplate),C(),b("ngIf",i.nextIconTemplate),C(),b("ngIf",i.currentView==="date")}}function M$(t,n){if(t&1&&(P(0,"div",59),Te(1),O()),t&2){let e=I().$implicit;C(),Vt(" ",e," ")}}function A$(t,n){if(t&1){let e=He();P(0,"span",62),ye("click",function(r){let s=J(e).index,o=I(4);return ee(o.onMonthSelect(r,s))})("keydown",function(r){let s=J(e).index,o=I(4);return ee(o.onMonthCellKeydown(r,s))}),Te(1),N(2,M$,2,1,"div",58),O()}if(t&2){let e=n.$implicit,i=n.index,r=I(4);b("ngClass",Zt(3,oM,r.isMonthSelected(i),r.isMonthDisabled(i))),C(),Vt(" ",e," "),C(),b("ngIf",r.isMonthSelected(i))}}function F$(t,n){if(t&1&&(P(0,"div",60),N(1,A$,3,6,"span",61),O()),t&2){let e=I(3);C(),b("ngForOf",e.monthPickerValues())}}function P$(t,n){if(t&1&&(P(0,"div",59),Te(1),O()),t&2){let e=I().$implicit;C(),Vt(" ",e," ")}}function O$(t,n){if(t&1){let e=He();P(0,"span",65),ye("click",function(r){let s=J(e).$implicit,o=I(4);return ee(o.onYearSelect(r,s))})("keydown",function(r){let s=J(e).$implicit,o=I(4);return ee(o.onYearCellKeydown(r,s))}),Te(1),N(2,P$,2,1,"div",58),O()}if(t&2){let e=n.$implicit,i=I(4);b("ngClass",Zt(3,oM,i.isYearSelected(e),i.isYearDisabled(e))),C(),Vt(" ",e," "),C(),b("ngIf",i.isYearSelected(e))}}function R$(t,n){if(t&1&&(P(0,"div",63),N(1,O$,3,6,"span",64),O()),t&2){let e=I(3);C(),b("ngForOf",e.yearPickerValues())}}function L$(t,n){if(t&1&&(Fe(0),P(1,"div",23),N(2,k$,11,10,"div",24),O(),N(3,F$,2,1,"div",25)(4,R$,2,1,"div",26),Pe()),t&2){let e=I(2);C(2),b("ngForOf",e.months),C(),b("ngIf",e.currentView==="month"),C(),b("ngIf",e.currentView==="year")}}function N$(t,n){t&1&&re(0,"ChevronUpIcon")}function V$(t,n){}function B$(t,n){t&1&&N(0,V$,0,0,"ng-template")}function H$(t,n){t&1&&(Fe(0),Te(1,"0"),Pe())}function z$(t,n){t&1&&re(0,"ChevronDownIcon")}function j$(t,n){}function U$(t,n){t&1&&N(0,j$,0,0,"ng-template")}function W$(t,n){t&1&&re(0,"ChevronUpIcon")}function $$(t,n){}function G$(t,n){t&1&&N(0,$$,0,0,"ng-template")}function q$(t,n){t&1&&(Fe(0),Te(1,"0"),Pe())}function K$(t,n){t&1&&re(0,"ChevronDownIcon")}function Y$(t,n){}function X$(t,n){t&1&&N(0,Y$,0,0,"ng-template")}function Z$(t,n){if(t&1&&(P(0,"div",69)(1,"span"),Te(2),O()()),t&2){let e=I(3);C(2),yt(e.timeSeparator)}}function Q$(t,n){t&1&&re(0,"ChevronUpIcon")}function J$(t,n){}function eG(t,n){t&1&&N(0,J$,0,0,"ng-template")}function tG(t,n){t&1&&(Fe(0),Te(1,"0"),Pe())}function nG(t,n){t&1&&re(0,"ChevronDownIcon")}function iG(t,n){}function rG(t,n){t&1&&N(0,iG,0,0,"ng-template")}function sG(t,n){if(t&1){let e=He();P(0,"div",74)(1,"button",68),ye("keydown",function(r){J(e);let s=I(3);return ee(s.onContainerButtonKeydown(r))})("keydown.enter",function(r){J(e);let s=I(3);return ee(s.incrementSecond(r))})("keydown.space",function(r){J(e);let s=I(3);return ee(s.incrementSecond(r))})("mousedown",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseUp(r))})("keyup.space",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseUp(r))})("mouseleave",function(){J(e);let r=I(3);return ee(r.onTimePickerElementMouseLeave())}),N(2,Q$,1,0,"ChevronUpIcon",7)(3,eG,1,0,null,13),O(),P(4,"span"),N(5,tG,2,0,"ng-container",7),Te(6),O(),P(7,"button",68),ye("keydown",function(r){J(e);let s=I(3);return ee(s.onContainerButtonKeydown(r))})("keydown.enter",function(r){J(e);let s=I(3);return ee(s.decrementSecond(r))})("keydown.space",function(r){J(e);let s=I(3);return ee(s.decrementSecond(r))})("mousedown",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseUp(r))})("keyup.space",function(r){J(e);let s=I(3);return ee(s.onTimePickerElementMouseUp(r))})("mouseleave",function(){J(e);let r=I(3);return ee(r.onTimePickerElementMouseLeave())}),N(8,nG,1,0,"ChevronDownIcon",7)(9,rG,1,0,null,13),O()()}if(t&2){let e=I(3);C(),ne("aria-label",e.getTranslation("nextSecond")),C(),b("ngIf",!e.incrementIconTemplate),C(),b("ngTemplateOutlet",e.incrementIconTemplate),C(2),b("ngIf",e.currentSecond<10),C(),yt(e.currentSecond),C(),ne("aria-label",e.getTranslation("prevSecond")),C(),b("ngIf",!e.decrementIconTemplate),C(),b("ngTemplateOutlet",e.decrementIconTemplate)}}function oG(t,n){t&1&&re(0,"ChevronUpIcon")}function aG(t,n){}function lG(t,n){t&1&&N(0,aG,0,0,"ng-template")}function cG(t,n){t&1&&re(0,"ChevronDownIcon")}function uG(t,n){}function dG(t,n){t&1&&N(0,uG,0,0,"ng-template")}function fG(t,n){if(t&1){let e=He();P(0,"div",75)(1,"button",76),ye("keydown",function(r){J(e);let s=I(3);return ee(s.onContainerButtonKeydown(r))})("click",function(r){J(e);let s=I(3);return ee(s.toggleAMPM(r))})("keydown.enter",function(r){J(e);let s=I(3);return ee(s.toggleAMPM(r))}),N(2,oG,1,0,"ChevronUpIcon",7)(3,lG,1,0,null,13),O(),P(4,"span"),Te(5),O(),P(6,"button",76),ye("keydown",function(r){J(e);let s=I(3);return ee(s.onContainerButtonKeydown(r))})("click",function(r){J(e);let s=I(3);return ee(s.toggleAMPM(r))})("keydown.enter",function(r){J(e);let s=I(3);return ee(s.toggleAMPM(r))}),N(7,cG,1,0,"ChevronDownIcon",7)(8,dG,1,0,null,13),O()()}if(t&2){let e=I(3);C(),ne("aria-label",e.getTranslation("am")),C(),b("ngIf",!e.incrementIconTemplate),C(),b("ngTemplateOutlet",e.incrementIconTemplate),C(2),yt(e.pm?"PM":"AM"),C(),ne("aria-label",e.getTranslation("pm")),C(),b("ngIf",!e.decrementIconTemplate),C(),b("ngTemplateOutlet",e.decrementIconTemplate)}}function hG(t,n){if(t&1){let e=He();P(0,"div",66)(1,"div",67)(2,"button",68),ye("keydown",function(r){J(e);let s=I(2);return ee(s.onContainerButtonKeydown(r))})("keydown.enter",function(r){J(e);let s=I(2);return ee(s.incrementHour(r))})("keydown.space",function(r){J(e);let s=I(2);return ee(s.incrementHour(r))})("mousedown",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.space",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("mouseleave",function(){J(e);let r=I(2);return ee(r.onTimePickerElementMouseLeave())}),N(3,N$,1,0,"ChevronUpIcon",7)(4,B$,1,0,null,13),O(),P(5,"span"),N(6,H$,2,0,"ng-container",7),Te(7),O(),P(8,"button",68),ye("keydown",function(r){J(e);let s=I(2);return ee(s.onContainerButtonKeydown(r))})("keydown.enter",function(r){J(e);let s=I(2);return ee(s.decrementHour(r))})("keydown.space",function(r){J(e);let s=I(2);return ee(s.decrementHour(r))})("mousedown",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.space",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("mouseleave",function(){J(e);let r=I(2);return ee(r.onTimePickerElementMouseLeave())}),N(9,z$,1,0,"ChevronDownIcon",7)(10,U$,1,0,null,13),O()(),P(11,"div",69)(12,"span"),Te(13),O()(),P(14,"div",70)(15,"button",68),ye("keydown",function(r){J(e);let s=I(2);return ee(s.onContainerButtonKeydown(r))})("keydown.enter",function(r){J(e);let s=I(2);return ee(s.incrementMinute(r))})("keydown.space",function(r){J(e);let s=I(2);return ee(s.incrementMinute(r))})("mousedown",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.space",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("mouseleave",function(){J(e);let r=I(2);return ee(r.onTimePickerElementMouseLeave())}),N(16,W$,1,0,"ChevronUpIcon",7)(17,G$,1,0,null,13),O(),P(18,"span"),N(19,q$,2,0,"ng-container",7),Te(20),O(),P(21,"button",68),ye("keydown",function(r){J(e);let s=I(2);return ee(s.onContainerButtonKeydown(r))})("keydown.enter",function(r){J(e);let s=I(2);return ee(s.decrementMinute(r))})("keydown.space",function(r){J(e);let s=I(2);return ee(s.decrementMinute(r))})("mousedown",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("keyup.space",function(r){J(e);let s=I(2);return ee(s.onTimePickerElementMouseUp(r))})("mouseleave",function(){J(e);let r=I(2);return ee(r.onTimePickerElementMouseLeave())}),N(22,K$,1,0,"ChevronDownIcon",7)(23,X$,1,0,null,13),O()(),N(24,Z$,3,1,"div",71)(25,sG,10,8,"div",72)(26,fG,9,7,"div",73),O()}if(t&2){let e=I(2);C(2),ne("aria-label",e.getTranslation("nextHour")),C(),b("ngIf",!e.incrementIconTemplate),C(),b("ngTemplateOutlet",e.incrementIconTemplate),C(2),b("ngIf",e.currentHour<10),C(),yt(e.currentHour),C(),ne("aria-label",e.getTranslation("prevHour")),C(),b("ngIf",!e.decrementIconTemplate),C(),b("ngTemplateOutlet",e.decrementIconTemplate),C(3),yt(e.timeSeparator),C(2),ne("aria-label",e.getTranslation("nextMinute")),C(),b("ngIf",!e.incrementIconTemplate),C(),b("ngTemplateOutlet",e.incrementIconTemplate),C(2),b("ngIf",e.currentMinute<10),C(),yt(e.currentMinute),C(),ne("aria-label",e.getTranslation("prevMinute")),C(),b("ngIf",!e.decrementIconTemplate),C(),b("ngTemplateOutlet",e.decrementIconTemplate),C(),b("ngIf",e.showSeconds),C(),b("ngIf",e.showSeconds),C(),b("ngIf",e.hourFormat=="12")}}function pG(t,n){if(t&1){let e=He();P(0,"div",77)(1,"button",78),ye("keydown",function(r){J(e);let s=I(2);return ee(s.onContainerButtonKeydown(r))})("click",function(r){J(e);let s=I(2);return ee(s.onTodayButtonClick(r))}),O(),P(2,"button",78),ye("keydown",function(r){J(e);let s=I(2);return ee(s.onContainerButtonKeydown(r))})("click",function(r){J(e);let s=I(2);return ee(s.onClearButtonClick(r))}),O()()}if(t&2){let e=I(2);C(),b("label",e.getTranslation("today"))("ngClass",Xe(4,sM,e.todayButtonStyleClass)),C(),b("label",e.getTranslation("clear"))("ngClass",Xe(6,sM,e.clearButtonStyleClass))}}function mG(t,n){t&1&&Re(0)}function gG(t,n){if(t&1){let e=He();P(0,"div",20,2),ye("@overlayAnimation.start",function(r){J(e);let s=I();return ee(s.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){J(e);let s=I();return ee(s.onOverlayAnimationDone(r))})("click",function(r){J(e);let s=I();return ee(s.onOverlayClick(r))}),cn(2),N(3,t$,1,0,"ng-container",13)(4,L$,5,3,"ng-container",7)(5,hG,27,20,"div",21)(6,pG,3,8,"div",22),cn(7,1),N(8,mG,1,0,"ng-container",13),O()}if(t&2){let e=I();be(e.panelStyleClass),b("ngStyle",e.panelStyle)("ngClass",ma(15,RW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,e.view==="month",e.touchUI))("@overlayAnimation",e.touchUI?Xe(25,LW,Zt(22,rM,e.showTransitionOptions,e.hideTransitionOptions)):Xe(30,NW,Zt(27,rM,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0),ne("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),C(3),b("ngTemplateOutlet",e.headerTemplate),C(),b("ngIf",!e.timeOnly),C(),b("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),C(),b("ngIf",e.showButtonBar),C(2),b("ngTemplateOutlet",e.footerTemplate)}}var vG={provide:hi,useExisting:Dn(()=>_G),multi:!0},_G=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepYearPicker=10;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;variant="outlined";get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){let i=e.split(":"),r=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(r,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}get inputClass(){return{"p-inputtext p-component":!0,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"}}onFocus=new ve;onBlur=new ve;onClose=new ve;onSelect=new ve;onClear=new ve;onInput=new ve;onTodayClick=new ve;onClearClick=new ve;onMonthChange=new ve;onYearChange=new ve;onClickOutside=new ve;onShow=new ve;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,i,r,s,o,a,l){this.document=e,this.el=i,this.renderer=r,this.cd=s,this.zone=o,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=ht(),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"inputicon":this.inputIconTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;default:this.dateTemplate=e.template;break}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=q.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(ri.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%this.stepYearPicker;for(let r=0;r<this.stepYearPicker;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r<this.numberOfMonths;r++){let s=e+r,o=i;s>11&&(s=s%11-1,o=i+1),this.months.push(this.createMonth(s,o))}}getWeekNumber(e){let i=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let s=+this.getFirstDateOfWeek();i.setDate(i.getDate()+6+s-i.getDay())}else i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],s=this.getFirstDayOfMonthIndex(e,i),o=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,u=[],d=Math.ceil((o+s)/7);for(let f=0;f<d;f++){let h=[];if(f==0){for(let p=a-s+1;p<=a;p++){let g=this.getPreviousMonthAndYear(e,i);h.push({day:p,month:g.month,year:g.year,otherMonth:!0,today:this.isToday(c,p,g.month,g.year),selectable:this.isSelectable(p,g.month,g.year,!0)})}let m=7-h.length;for(let p=0;p<m;p++)h.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)}),l++}else for(let m=0;m<7;m++){if(l>o){let p=this.getNextMonthAndYear(e,i);h.push({day:l-o,month:p.month,year:p.year,otherMonth:!0,today:this.isToday(c,l-o,p.month,p.year),selectable:this.isSelectable(l-o,p.month,p.year,!0)})}else h.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(h[0].year,h[0].month,h[0].day))),r.push(h)}return{month:e,year:i,dates:r,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.disabled){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementYearPickerStep(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.disabled){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementYearPickerStep(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear<e[0]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]-i,e[e.length-1]-i)}}decrementYearPickerStep(){this.currentYear=this.currentYear-this.stepYearPicker}incrementYearPickerStep(){this.currentYear=this.currentYear+this.stepYearPicker}incrementYear(){this.currentYear++;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear>e[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){if(this.disabled||!i.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,s)=>!this.isDateEquals(r,i)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,i){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){this.view==="year"?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++){let r=this.formatDateTime(this.value[i]);e+=r,i!==this.value.length-1&&(e+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let i=this.value[0],r=this.value[1];e=this.formatDateTime(i),r&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(r))}}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let i=this.keepInvalid?e:null,r=this.isValidDateForTimeConstraints(e);return this.isValidDate(e)?this.timeOnly?i=this.formatTime(e):(i=this.formatDate(e,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(e))):this.dataType==="string"&&(i=e),i=r?i:"",i}formatDateMetaToDate(e){return new Date(e.year,e.month,e.day)}formatDateKey(e){return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}setCurrentHourPM(e){this.hourFormat=="12"?(this.pm=e>11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=this.formatDateMetaToDate(e);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?i.setHours(this.pm?12:0):i.setHours(this.pm?this.currentHour+12:this.currentHour):i.setHours(this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let r=this.value[0],s=this.value[1];!s&&i.getTime()>=r.getTime()?s=i:(r=i,s=null),this.updateModel([r,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,this.dataType=="date")this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let s=r.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,s;return e===0?(r=11,s=i-1):(r=e-1,s=i),{month:r,year:s}}getNextMonthAndYear(e,i){let r,s;return e===11?(r=0,s=i+1):(r=e+1,s=i),{month:r,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)break;return i}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){let[i,r]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=i&&s<=(r??i)}return!1}isMonthDisabled(e,i){let r=i??this.currentYear;for(let s=1;s<this.getDaysCountInMonth(e,r)+1;s++)if(this.isSelectable(s,e,r,!1))return!1;return!0}isYearDisabled(e){return Array(12).fill(0).every((i,r)=>this.isMonthDisabled(r,e))}isYearSelected(e){if(!this.isComparable()||this.isMultipleSelection())return!1;let i=this.isRangeSelection()?this.value[0]:this.value;return i?i.getFullYear()===e:!1}isDateEquals(e,i){return e&&Se.isDate(e)?e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year:!1}isDateBetween(e,i,r){let s=!1;if(Se.isDate(e)&&Se.isDate(i)){let o=this.formatDateMetaToDate(r);return e.getTime()<=o.getTime()&&i.getTime()>=o.getTime()}return s}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,i,r,s){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===s}isSelectable(e,i,r,s){let o=!0,a=!0,l=!0,c=!0;return s&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&this.currentView!="year"&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<r||this.maxDate.getFullYear()===r&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(e,i,r)),this.disabledDays&&(c=!this.isDayDisabled(e,i,r)),o&&a&&l&&c)}isDateDisabled(e,i,r){if(this.disabledDates){for(let s of this.disabledDates)if(s.getFullYear()===r&&s.getMonth()===i&&s.getDate()===e)return!0}return!1}isDayDisabled(e,i,r){if(this.disabledDays){let o=new Date(r,i,e).getDay();return this.disabledDays.indexOf(o)!==-1}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,i=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return this.currentView==="month"?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let i=q.findSingle(this.containerViewChild?.nativeElement,".p-datepicker-header"),r=e.target;if(this.timeOnly)return;r==i.children[i?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(q.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){let s=e.currentTarget,o=s.parentElement,a=this.formatDateMetaToDate(i);switch(e.which){case 40:{s.tabIndex="-1";let m=q.index(o),p=o.parentElement.nextElementSibling;if(p){let g=p.children[m].children[0];q.hasClass(g,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(p.children[m].children[0].tabIndex="0",p.children[m].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{s.tabIndex="-1";let m=q.index(o),p=o.parentElement.previousElementSibling;if(p){let g=p.children[m].children[0];q.hasClass(g,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(g.tabIndex="0",g.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let m=o.previousElementSibling;if(m){let p=m.children[0];q.hasClass(p,"p-disabled")||q.hasClass(p.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(p.tabIndex="0",p.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{s.tabIndex="-1";let m=o.nextElementSibling;if(m){let p=m.children[0];q.hasClass(p,"p-disabled")?this.navigateToMonth(!1,r):(p.tabIndex="0",p.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,i),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}case 33:{s.tabIndex="-1";let m=new Date(a.getFullYear(),a.getMonth()-1,a.getDate()),p=this.formatDateKey(m);this.navigateToMonth(!0,r,`span[data-date='${p}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{s.tabIndex="-1";let m=new Date(a.getFullYear(),a.getMonth()+1,a.getDate()),p=this.formatDateKey(m);this.navigateToMonth(!1,r,`span[data-date='${p}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:s.tabIndex="-1";let l=new Date(a.getFullYear(),a.getMonth(),1),c=this.formatDateKey(l),u=q.findSingle(s.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);u&&(u.tabIndex="0",u.focus()),e.preventDefault();break;case 35:s.tabIndex="-1";let d=new Date(a.getFullYear(),a.getMonth()+1,0),f=this.formatDateKey(d),h=q.findSingle(s.offsetParent,`span[data-date='${f}']:not(.p-disabled):not(.p-ink)`);d&&(h.tabIndex="0",h.focus()),e.preventDefault();break;default:break}}onMonthCellKeydown(e,i){let r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=q.index(r);let a=s[e.which===40?o+3:o-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,i),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,i){let r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=q.index(r);let a=s[e.which===40?o+2:o-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,i),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,i,r){if(e)if(this.numberOfMonths===1||i===0)this.navigationState={backward:!0},this._focusKey=r,this.navBackward(event);else{let s=this.contentViewChild.nativeElement.children[i-1];if(r){let o=q.findSingle(s,r);o.tabIndex="0",o.focus()}else{let o=q.find(s,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),a=o[o.length-1];a.tabIndex="0",a.focus()}}else if(this.numberOfMonths===1||i===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=r,this.navForward(event);else{let s=this.contentViewChild.nativeElement.children[i+1];if(r){let o=q.findSingle(s,r);o.tabIndex="0",o.focus()}else{let o=q.findSingle(s,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");o.tabIndex="0",o.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?q.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():q.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;this.currentView==="month"?i=q.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?i=q.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):i=q.find(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else this.currentView==="month"?e=q.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?e=q.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):e=q.findSingle(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell();this.alignOverlay()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,i;if(this.currentView==="month"){let r=q.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=q.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");r.forEach(o=>o.tabIndex=-1),i=s||r[0],r.length===0&&q.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(this.currentView==="year"){let r=q.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=q.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");r.forEach(o=>o.tabIndex=-1),i=s||r[0],r.length===0&&q.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(i=q.findSingle(e,"span.p-highlight"),!i){let r=q.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");r?i=r:i=q.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=q.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(!i[0].ownerDocument.activeElement)i[0].focus();else{let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(r==-1||r===0)if(this.focusTrap)i[i.length-1].focus();else{if(r===-1)return this.hideOverlay();if(r===0)return}else i[r-1].focus();else if(r==-1)if(this.timeOnly)i[0].focus();else{let s=0;for(let o=0;o<i.length;o++)i[o].tagName==="SPAN"&&(s=o);i[s].focus()}else if(r===i.length-1){if(!this.focusTrap&&r!=-1)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(e,i){return this.hourFormat=="12"?e===12?i?12:0:i?e+12:e:e}constrainTime(e,i,r,s){let o=[e,i,r],a,l=this.value,c=this.convertTo24Hour(e,s),u=this.isRangeSelection(),d=this.isMultipleSelection();(u||d)&&(this.value||(this.value=[new Date,new Date]),u&&(l=this.value[1]||this.value[0]),d&&(l=this.value[this.value.length-1]));let h=l?l.toDateString():null,m=this.minDate&&h&&this.minDate.toDateString()===h,p=this.maxDate&&h&&this.maxDate.toDateString()===h;switch(m&&(a=this.minDate.getHours()>=12),!0){case(m&&a&&this.minDate.getHours()===12&&this.minDate.getHours()>c):o[0]=11;case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):o[1]=this.minDate.getMinutes();case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):o[2]=this.minDate.getSeconds();break;case(m&&!a&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):o[0]=11,this.pm=!0;case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):o[1]=this.minDate.getMinutes();case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):o[2]=this.minDate.getSeconds();break;case(m&&a&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),o[0]=this.currentHour;case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):o[1]=this.minDate.getMinutes();case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):o[2]=this.minDate.getSeconds();break;case(m&&this.minDate.getHours()>c):o[0]=this.minDate.getHours();case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):o[1]=this.minDate.getMinutes();case(m&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):o[2]=this.minDate.getSeconds();break;case(p&&this.maxDate.getHours()<c):o[0]=this.maxDate.getHours();case(p&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()<i):o[1]=this.maxDate.getMinutes();case(p&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<r):o[2]=this.maxDate.getSeconds();break}return o}incrementHour(e){let i=this.currentHour??0,r=(this.currentHour??0)+this.stepHour,s=this.pm;this.hourFormat=="24"?r=r>=24?r-24:r:this.hourFormat=="12"&&(i<12&&r>11&&(s=!this.pm),r=r>=13?r-12:r),this.toggleAMPMIfNotMinDate(s),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(r,this.currentMinute,this.currentSecond,s),e.preventDefault()}toggleAMPMIfNotMinDate(e){let i=this.value;(this.selectionMode=="range"||this.selectionMode=="multiple")&&Array.isArray(i)&&i.length>0&&(i=i[i.length-1]);let r=i?i.toDateString():null;this.minDate&&r&&this.minDate.toDateString()===r&&this.minDate.getHours()>=12?this.pm=!0:this.pm=e}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,r,s){let o=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,s),this.cd.markForCheck()},o),r){case 0:s===1?this.incrementHour(e):this.decrementHour(e);break;case 1:s===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:s===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=(this.currentHour??0)-this.stepHour,r=this.pm;this.hourFormat=="24"?i=i<0?24+i:i:this.hourFormat=="12"&&(this.currentHour===12&&(r=!this.pm),i=i<=0?12+i:i),this.toggleAMPMIfNotMinDate(r),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,r),e.preventDefault()}incrementMinute(e){let i=(this.currentMinute??0)+this.stepMinute;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let i=(this.currentMinute??0)-this.stepMinute;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let i=!this.pm;this.pm=i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,i),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)?(this.updateModel(r),this.updateUI()):this.keepInvalid&&this.updateModel(r)}catch{let s=this.keepInvalid?i:null;this.updateModel(s)}this.filled=i!=null&&i.length,this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let i=e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1));return i&&this.isRangeSelection()&&(i=e.length===1||e.length>1&&e[1]>=e[0]),i}parseValueFromString(e){if(!e||e.trim().length===0)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];for(let s of r)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<r.length;s++)i[s]=this.parseDateTime(r[s].trim())}return i}parseDateTime(e){let i,r=e.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,r[0],r[1]);else{let s=this.getDateFormat();if(this.showTime){let o=this.hourFormat=="12"?r.pop():null,a=r.pop();i=this.parseDate(r.join(" "),s),this.populateTime(i,a,o)}else i=this.parseDate(e,s)}return i}populateTime(e,i,r){if(this.hourFormat=="12"&&!r)throw"Invalid Time";this.pm=r==="PM"||r==="pm";let s=this.parseTime(i);e.setHours(s.hour),e.setMinutes(s.minute),e.setSeconds(s.second)}isValidDate(e){return Se.isDate(e)&&Se.isNotEmpty(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=e[1]||e[0]);let i=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay?.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?Nn.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):Nn.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e);break}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&Nn.clear(e.element);break}}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.document.body.appendChild(this.overlay):q.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?(this.view==="date"?(this.overlay.style.width||(this.overlay.style.width=q.getOuterWidth(this.overlay)+"px"),this.overlay.style.minWidth||(this.overlay.style.minWidth=q.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px")):this.overlay.style.width||(this.overlay.style.width=q.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px"),q.absolutePosition(this.overlay,this.inputfieldViewChild?.nativeElement)):q.relativePosition(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(e){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(e.style.zIndex)-1)),q.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),q.blockBodyScroll())}disableModality(){this.mask&&(q.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,i;for(let r=0;r<e.length;r++){let s=e[r];if(q.hasClass(s,"p-datepicker-mask-scrollblocker")){i=!0;break}}i||q.unblockBodyScroll(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(e){if(this.value=e,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(ri.FIRST_DAY_OF_WEEK)}formatDate(e,i){if(!e)return"";let r,s=u=>{let d=r+1<i.length&&i.charAt(r+1)===u;return d&&r++,d},o=(u,d,f)=>{let h=""+d;if(s(u))for(;h.length<f;)h="0"+h;return h},a=(u,d,f,h)=>s(u)?h[d]:f[d],l="",c=!1;if(e)for(r=0;r<i.length;r++)if(c)i.charAt(r)==="'"&&!s("'")?c=!1:l+=i.charAt(r);else switch(i.charAt(r)){case"d":l+=o("d",e.getDate(),2);break;case"D":l+=a("D",e.getDay(),this.getTranslation(ri.DAY_NAMES_SHORT),this.getTranslation(ri.DAY_NAMES));break;case"o":l+=o("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=o("m",e.getMonth()+1,2);break;case"M":l+=a("M",e.getMonth(),this.getTranslation(ri.MONTH_NAMES_SHORT),this.getTranslation(ri.MONTH_NAMES));break;case"y":l+=s("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=e.getTime()*1e4+this.ticksTo1970;break;case"'":s("'")?l+="'":c=!0;break;default:l+=i.charAt(r)}return l}formatTime(e){if(!e)return"";let i="",r=e.getHours(),s=e.getMinutes(),o=e.getSeconds();return this.hourFormat=="12"&&r>11&&r!=12&&(r-=12),this.hourFormat=="12"?i+=r===0?12:r<10?"0"+r:r:i+=r<10?"0"+r:r,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=o<10?"0"+o:o),this.hourFormat=="12"&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":"),r=this.showSeconds?3:2;if(i.length!==r)throw"Invalid time";let s=parseInt(i[0]),o=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(o)||s>23||o>59||this.hourFormat=="12"&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return this.hourFormat=="12"&&(s!==12&&this.pm?s+=12:!this.pm&&s===12&&(s-=12)),{hour:s,minute:o,second:a}}parseDate(e,i){if(i==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let r,s,o,a=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,f=-1,h=!1,m,p=y=>{let x=r+1<i.length&&i.charAt(r+1)===y;return x&&r++,x},g=y=>{let x=p(y),w=y==="@"?14:y==="!"?20:y==="y"&&x?4:y==="o"?3:2,T=y==="y"?w:1,E=new RegExp("^\\d{"+T+","+w+"}"),k=e.substring(a).match(E);if(!k)throw"Missing number at position "+a;return a+=k[0].length,parseInt(k[0],10)},v=(y,x,w)=>{let T=-1,E=p(y)?w:x,k=[];for(let F=0;F<E.length;F++)k.push([F,E[F]]);k.sort((F,G)=>-(F[1].length-G[1].length));for(let F=0;F<k.length;F++){let G=k[F][1];if(e.substr(a,G.length).toLowerCase()===G.toLowerCase()){T=k[F][0],a+=G.length;break}}if(T!==-1)return T+1;throw"Unknown name at position "+a},_=()=>{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for(this.view==="month"&&(d=1),r=0;r<i.length;r++)if(h)i.charAt(r)==="'"&&!p("'")?h=!1:_();else switch(i.charAt(r)){case"d":d=g("d");break;case"D":v("D",this.getTranslation(ri.DAY_NAMES_SHORT),this.getTranslation(ri.DAY_NAMES));break;case"o":f=g("o");break;case"m":u=g("m");break;case"M":u=v("M",this.getTranslation(ri.MONTH_NAMES_SHORT),this.getTranslation(ri.MONTH_NAMES));break;case"y":c=g("y");break;case"@":m=new Date(g("@")),c=m.getFullYear(),u=m.getMonth()+1,d=m.getDate();break;case"!":m=new Date((g("!")-this.ticksTo1970)/1e4),c=m.getFullYear(),u=m.getMonth()+1,d=m.getDate();break;case"'":p("'")?_():h=!0;break;default:_()}if(a<e.length&&(o=e.substr(a),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(c===-1?c=new Date().getFullYear():c<100&&(c+=new Date().getFullYear()-new Date().getFullYear()%100+(c<=l?0:-100)),f>-1){u=1,d=f;do{if(s=this.getDaysCountInMonth(c,u-1),d<=s)break;u++,d-=s}while(!0)}if(this.view==="year"&&(u=u===-1?1:u,d=d===-1?1:d),m=this.daylightSavingAdjust(new Date(c,u-1,d)),m.getFullYear()!==c||m.getMonth()+1!==u||m.getDate()!==d)throw"Invalid date";return m}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&this.inputFieldValue!=""}isValidDateForTimeConstraints(e){return this.keepInvalid?!0:(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(i.getMonth(),i.getFullYear()),this.onDateSelect(e,r),this.onTodayClick.emit(i)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",q.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!!(r.breakpoint&&r.numMonths)).sort((r,s)=>-1*r.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let r=0;r<i.length;r++){let{breakpoint:s,numMonths:o}=i[r],a=`
                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {
                            display: inline-flex !important;
                        }
                    `;for(let l=o;l<this.numberOfMonths;l++)a+=`
                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {
                                display: none !important;
                            }
                        `;e+=`
                        @media screen and (max-width: ${s}) {
                            ${a}
                        }
                    `}}this.responsiveStyleElement.innerHTML=e}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ws(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return q.hasClass(e.target,"p-datepicker-prev")||q.hasClass(e.target,"p-datepicker-prev-icon")||q.hasClass(e.target,"p-datepicker-next")||q.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!q.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Nn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(i){return new(i||t)(se(Tt),se(gt),se(ln),se(Lt),se(rt),se(vn),se(Wl))};static \u0275cmp=me({type:t,selectors:[["p-calendar"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&(vt(IW,5),vt(DW,5),vt(kW,5)),i&2){let s;qe(s=Ke())&&(r.containerViewChild=s.first),qe(s=Ke())&&(r.inputfieldViewChild=s.first),qe(s=Ke())&&(r.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){i&2&&Xn("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focus)("p-calendar-clearable",r.showClear&&!r.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[Z.HasDecoratorInputTransform,"disabled","disabled",oe],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[Z.HasDecoratorInputTransform,"inline","inline",oe],showOtherMonths:[Z.HasDecoratorInputTransform,"showOtherMonths","showOtherMonths",oe],selectOtherMonths:[Z.HasDecoratorInputTransform,"selectOtherMonths","selectOtherMonths",oe],showIcon:[Z.HasDecoratorInputTransform,"showIcon","showIcon",oe],icon:"icon",appendTo:"appendTo",readonlyInput:[Z.HasDecoratorInputTransform,"readonlyInput","readonlyInput",oe],shortYearCutoff:"shortYearCutoff",monthNavigator:[Z.HasDecoratorInputTransform,"monthNavigator","monthNavigator",oe],yearNavigator:[Z.HasDecoratorInputTransform,"yearNavigator","yearNavigator",oe],hourFormat:"hourFormat",timeOnly:[Z.HasDecoratorInputTransform,"timeOnly","timeOnly",oe],stepYearPicker:[Z.HasDecoratorInputTransform,"stepYearPicker","stepYearPicker",Je],stepHour:[Z.HasDecoratorInputTransform,"stepHour","stepHour",Je],stepMinute:[Z.HasDecoratorInputTransform,"stepMinute","stepMinute",Je],stepSecond:[Z.HasDecoratorInputTransform,"stepSecond","stepSecond",Je],showSeconds:[Z.HasDecoratorInputTransform,"showSeconds","showSeconds",oe],required:[Z.HasDecoratorInputTransform,"required","required",oe],showOnFocus:[Z.HasDecoratorInputTransform,"showOnFocus","showOnFocus",oe],showWeek:[Z.HasDecoratorInputTransform,"showWeek","showWeek",oe],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[Z.HasDecoratorInputTransform,"showClear","showClear",oe],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[Z.HasDecoratorInputTransform,"maxDateCount","maxDateCount",Je],showButtonBar:[Z.HasDecoratorInputTransform,"showButtonBar","showButtonBar",oe],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe],autoZIndex:[Z.HasDecoratorInputTransform,"autoZIndex","autoZIndex",oe],baseZIndex:[Z.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Je],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[Z.HasDecoratorInputTransform,"keepInvalid","keepInvalid",oe],hideOnDateTimeSelect:[Z.HasDecoratorInputTransform,"hideOnDateTimeSelect","hideOnDateTimeSelect",oe],touchUI:[Z.HasDecoratorInputTransform,"touchUI","touchUI",oe],timeSeparator:"timeSeparator",focusTrap:[Z.HasDecoratorInputTransform,"focusTrap","focusTrap",oe],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[Z.HasDecoratorInputTransform,"tabindex","tabindex",Je],variant:"variant",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[kn([vG]),Et],ngContentSelectors:AW,decls:4,vars:12,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off","pAutoFocus","",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","placeholder","disabled","ngClass","autofocus"],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"click","keydown","disabled"],["type","button",1,"p-datepicker-year","p-link",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"click","keydown","ngClass"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"click","keydown","ngClass"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"keydown","click","label","ngClass"]],template:function(i,r){i&1&&(Ln(MW),P(0,"span",3,0),N(2,e$,5,22,"ng-template",4)(3,gG,9,32,"div",5),O()),i&2&&(be(r.styleClass),b("ngClass",Dl(6,FW,r.showIcon&&r.iconDisplay==="input",r.showIcon&&r.iconDisplay==="button",r.timeOnly,r.disabled,r.focus||r.overlayVisible))("ngStyle",r.style),C(2),b("ngIf",!r.inline),C(),b("ngIf",r.inline||r.overlayVisible))},dependencies:()=>[zt,wi,Ut,qt,Bt,fs,Gi,fx,hx,px,cc,si,mx,Er],styles:[`@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}
`],encapsulation:2,data:{animation:[zs("overlayAnimation",[ep("visibleTouchUI",Hn({transform:"translate(-50%,-50%)",opacity:1})),Pi("void => visible",[Hn({opacity:0,transform:"scaleY(0.8)"}),Wi("{{showTransitionParams}}",Hn({opacity:1,transform:"*"}))]),Pi("visible => void",[Wi("{{hideTransitionParams}}",Hn({opacity:0}))]),Pi("void => visibleTouchUI",[Hn({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Wi("{{showTransitionParams}}")]),Pi("visibleTouchUI => void",[Wi("{{hideTransitionParams}}",Hn({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),aM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Oi,Nt,Sr,fx,hx,px,cc,si,mx,ds,Oi,Nt]})}return t})();var yG=["overlay"],xG=["content"],bG=["*"],wG=(t,n,e,i,r,s,o,a,l,c,u,d,f,h)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":n,"p-overlay-top":e,"p-overlay-top-start":i,"p-overlay-top-end":r,"p-overlay-bottom":s,"p-overlay-bottom-start":o,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":d,"p-overlay-right-start":f,"p-overlay-right-end":h}),CG=(t,n,e)=>({showTransitionParams:t,hideTransitionParams:n,transform:e}),SG=t=>({value:"visible",params:t}),EG=t=>({mode:t}),TG=t=>({$implicit:t});function IG(t,n){t&1&&Re(0)}function DG(t,n){if(t&1){let e=He();P(0,"div",3,1),ye("click",function(r){J(e);let s=I(2);return ee(s.onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){J(e);let s=I(2);return ee(s.onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){J(e);let s=I(2);return ee(s.onOverlayContentAnimationDone(r))}),cn(2),N(3,IG,1,0,"ng-container",4),O()}if(t&2){let e=I(2);be(e.contentStyleClass),b("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",Xe(11,SG,fi(7,CG,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),C(3),b("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Xe(15,TG,Xe(13,EG,e.overlayMode)))}}function kG(t,n){if(t&1){let e=He();P(0,"div",3,0),ye("click",function(){J(e);let r=I();return ee(r.onOverlayClick())}),N(2,DG,4,17,"div",2),O()}if(t&2){let e=I();be(e.styleClass),b("ngStyle",e.style)("ngClass",su(5,wG,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),C(2),b("ngIf",e.visible)}}var MG={provide:hi,useExisting:Dn(()=>vx),multi:!0},AG=Hl([Hn({transform:"{{transform}}",opacity:0}),Wi("{{showTransitionParams}}")]),FG=Hl([Wi("{{hideTransitionParams}}",Hn({transform:"{{transform}}",opacity:0}))]),vx=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return Se.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Se.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Se.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Se.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ve;onBeforeShow=new ve;onShow=new ve;onBeforeHide=new ve;onHide=new ve;onAnimationStart=new ve;onAnimationDone=new ve;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(gn(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return xe(xe({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return xe(xe({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return q.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,i,r,s,o,a,l,c){this.document=e,this.platformId=i,this.el=r,this.renderer=s,this.config=o,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&q.focus(this.targetEl),this.modal&&q.addClass(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&q.focus(this.targetEl),this.modal&&q.removeClass(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&q.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Nn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),q.appendOverlay(this.overlayEl,this.appendTo==="body"?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&q.addClass(this.overlayEl,"p-component-overlay-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&this.show(i,!0),this.bindListeners();break;case"void":if(!this.visible){this.hide(i,!0),this.modalVisible=!1,this.unbindListeners(),q.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Nn.clear(i),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.unbindListeners(),this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ws(this.targetEl,e=>{(this.listener?this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}):!0)&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let r=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&r}):r)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!q.isTouchDevice()}):!q.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!q.isTouchDevice()}):!q.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(q.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Nn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(se(Tt),se(nn),se(gt),se(ln),se(vn),se(Wl),se(Lt),se(rt))};static \u0275cmp=me({type:t,selectors:[["p-overlay"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&(vt(yG,5),vt(xG,5)),i&2){let s;qe(s=Ke())&&(r.overlayViewChild=s.first),qe(s=Ke())&&(r.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[kn([MG])],ngContentSelectors:bG,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(Ln(),N(0,kG,3,20,"div",2)),i&2&&b("ngIf",r.modalVisible)},dependencies:[zt,Ut,qt,Bt],styles:[`@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}
`],encapsulation:2,data:{animation:[zs("overlayContentAnimation",[Pi(":enter",[zl(AG)]),Pi(":leave",[zl(FG)])])]},changeDetection:0})}return t})(),_x=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Nt,Nt]})}return t})();var OG=["element"],RG=["content"],LG=["*"],NG=(t,n,e)=>({"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":n,"p-horizontal-scroll":e}),yx=(t,n)=>({$implicit:t,options:n}),VG=t=>({"p-scroller-loading":t}),BG=t=>({"p-component-overlay":t}),HG=t=>({numCols:t}),lM=t=>({options:t}),zG=()=>({styleClass:"p-scroller-loading-icon"}),jG=(t,n)=>({rows:t,columns:n});function UG(t,n){t&1&&Re(0)}function WG(t,n){if(t&1&&(Fe(0),N(1,UG,1,0,"ng-container",10),Pe()),t&2){let e=I(2);C(),b("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Zt(2,yx,e.loadedItems,e.getContentOptions()))}}function $G(t,n){t&1&&Re(0)}function GG(t,n){if(t&1&&(Fe(0),N(1,$G,1,0,"ng-container",10),Pe()),t&2){let e=n.$implicit,i=n.index,r=I(3);C(),b("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Zt(2,yx,e,r.getOptions(i)))}}function qG(t,n){if(t&1&&(P(0,"div",11,3),N(2,GG,2,5,"ng-container",12),O()),t&2){let e=I(2);b("ngClass",Xe(5,VG,e.d_loading))("ngStyle",e.contentStyle),ne("data-pc-section","content"),C(2),b("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function KG(t,n){if(t&1&&re(0,"div",13),t&2){let e=I(2);b("ngStyle",e.spacerStyle),ne("data-pc-section","spacer")}}function YG(t,n){t&1&&Re(0)}function XG(t,n){if(t&1&&(Fe(0),N(1,YG,1,0,"ng-container",10),Pe()),t&2){let e=n.index,i=I(4);C(),b("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Xe(4,lM,i.getLoaderOptions(e,i.both&&Xe(2,HG,i._numItemsInViewport.cols))))}}function ZG(t,n){if(t&1&&(Fe(0),N(1,XG,2,6,"ng-container",15),Pe()),t&2){let e=I(3);C(),b("ngForOf",e.loaderArr)}}function QG(t,n){t&1&&Re(0)}function JG(t,n){if(t&1&&(Fe(0),N(1,QG,1,0,"ng-container",10),Pe()),t&2){let e=I(4);C(),b("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Xe(3,lM,Bn(2,zG)))}}function eq(t,n){t&1&&re(0,"SpinnerIcon",16),t&2&&(b("styleClass","p-scroller-loading-icon pi-spin"),ne("data-pc-section","loadingIcon"))}function tq(t,n){if(t&1&&N(0,JG,2,5,"ng-container",6)(1,eq,1,2,"ng-template",null,5,ei),t&2){let e=mn(2),i=I(3);b("ngIf",i.loaderIconTemplate)("ngIfElse",e)}}function nq(t,n){if(t&1&&(P(0,"div",14),N(1,ZG,2,1,"ng-container",6)(2,tq,3,2,"ng-template",null,4,ei),O()),t&2){let e=mn(3),i=I(2);b("ngClass",Xe(4,BG,!i.loaderTemplate)),ne("data-pc-section","loader"),C(),b("ngIf",i.loaderTemplate)("ngIfElse",e)}}function iq(t,n){if(t&1){let e=He();Fe(0),P(1,"div",7,1),ye("scroll",function(r){J(e);let s=I();return ee(s.onContainerScroll(r))}),N(3,WG,2,5,"ng-container",6)(4,qG,3,7,"ng-template",null,2,ei)(6,KG,1,2,"div",8)(7,nq,4,6,"div",9),O(),Pe()}if(t&2){let e=mn(5),i=I();C(),be(i._styleClass),b("ngStyle",i._style)("ngClass",fi(12,NG,i.inline,i.both,i.horizontal)),ne("id",i._id)("tabindex",i.tabindex)("data-pc-name","scroller")("data-pc-section","root"),C(2),b("ngIf",i.contentTemplate)("ngIfElse",e),C(3),b("ngIf",i._showSpacer),C(),b("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function rq(t,n){t&1&&Re(0)}function sq(t,n){if(t&1&&(Fe(0),N(1,rq,1,0,"ng-container",10),Pe()),t&2){let e=I(2);C(),b("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Zt(5,yx,e.items,Zt(2,jG,e._items,e.loadedColumns)))}}function oq(t,n){if(t&1&&(cn(0),N(1,sq,2,8,"ng-container",17)),t&2){let e=I();C(),b("ngIf",e.contentTemplate)}}var F0=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}onLazyLoad=new ve;onScroll=new ve;onScrollIndexChange=new ve;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;resizeObserver;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(e,i,r,s,o){this.document=e,this.platformId=i,this.renderer=r,this.cd=s,this.zone=o}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){let{previousValue:r,currentValue:s}=e.loading;this.lazy&&r!==s&&s!==this.d_loading&&(this.d_loading=s,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:r,currentValue:s}=e.numToleratedItems;r!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){let{previousValue:r,currentValue:s}=e.options;this.lazy&&r?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,i=!0),r?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){gn(this.platformId)&&!this.initialized&&q.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.calculateAutoSize(),this.defaultWidth=q.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=q.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=q.getWidth(this.contentEl),this.defaultContentHeight=q.getHeight(this.contentEl),this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this.elementViewChild?.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||q.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(s=>s>-1):e>-1){let s=this.first,{scrollTop:o=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),c=this.getContentPosition(),u=this.itemSize,d=(v=0,_)=>v<=_?0:v,f=(v,_,y)=>v*_+y,h=(v=0,_=0)=>this.scrollTo({left:v,top:_,behavior:i}),m=this.both?{rows:0,cols:0}:0,p=!1,g=!1;this.both?(m={rows:d(e[0],l[0]),cols:d(e[1],l[1])},h(f(m.cols,u[1],c.left),f(m.rows,u[0],c.top)),g=this.lastScrollPos.top!==o||this.lastScrollPos.left!==a,p=m.rows!==s.rows||m.cols!==s.cols):(m=d(e,l),this.horizontal?h(f(m,u,c.left),o):h(a,f(m,u,c.top)),g=this.lastScrollPos!==(this.horizontal?a:o),p=m!==s),this.isRangeChanged=p,g&&(this.first=m)}}scrollInView(e,i,r="auto"){if(i){let{first:s,viewport:o}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),l=i==="to-start",c=i==="to-end";if(l){if(this.both)o.first.rows-s.rows>e[0]?a(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>e[1]&&a((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>e){let u=(o.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c){if(this.both)o.last.rows-s.rows<=e[0]+1?a(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=e[1]+1&&a((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=e+1){let u=(o.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}}else this.scrollToIndex(e,r)}getRenderedRange(){let e=(s,o)=>o||s?Math.floor(s/(o||s)):0,i=this.first,r=0;if(this.elementViewChild?.nativeElement){let{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(s,this._itemSize[0]),cols:e(o,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?o:s;i=e(a,this._itemSize),r=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>u||c?Math.ceil(c/(u||c)):0,o=c=>Math.ceil(c/2),a=this.both?{rows:s(r,this._itemSize[0]),cols:s(i,this._itemSize[1])}:s(this.horizontal?i:r,this._itemSize),l=this.d_numToleratedItems||(this.both?[o(a.rows),o(a.cols)]:o(a));return{numItemsInViewport:a,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(a<c?2:3)*c,u),s=this.first,o=this.both?{rows:r(this.first.rows,e.rows,i[0]),cols:r(this.first.cols,e.cols,i[1],!0)}:r(this.first,e,i);this.last=o,this.numItemsInViewport=e,this.d_numToleratedItems=i,this.showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[q.getWidth(this.contentEl),q.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[r,s]=[q.getWidth(this.elementViewChild.nativeElement),q.getHeight(this.elementViewChild.nativeElement)];this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain="",this.defaultWidth=r,this.defaultHeight=s,this.defaultContentWidth=e,this.defaultContentHeight=i,(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=r<this.defaultWidth?r+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px")}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),s=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),o=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:r,top:s,bottom:o,x:i+r,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement.parentElement.parentElement,i=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||e.offsetWidth}px`,r=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||e.offsetHeight}px`,s=(o,a)=>this.elementViewChild.nativeElement.style[o]=a;this.both||this.horizontal?(s("height",r),s("width",i)):s("height",r)}}setSpacerSize(){if(this._items){let e=(r,s,o)=>this.spacerStyle=ft(xe({},this.spacerStyle),{[`${r}`]:s*o+"px"}),i=this._items.length;this.both?(e("height",i,this._itemSize[0]),e("width",this._columns?.length||this._items[1]?.length,this._itemSize[1])):this.horizontal?e("width",this._columns?.length||this._items.length,this._itemSize):e("height",i,this._itemSize)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,r=(o,a)=>o*a,s=(o=0,a=0)=>this.contentStyle=ft(xe({},this.contentStyle),{transform:`translate3d(${o}px, ${a}px, 0)`});if(this.both)s(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{let o=r(i,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(e){let i=e.target,r=this.getContentPosition(),s=(g,v)=>g?g>v?g-v:g:0,o=(g,v)=>v||g?Math.floor(g/(v||g)):0,a=(g,v,_,y,x,w)=>g<=x?x:w?_-y-x:v+x-1,l=(g,v,_,y,x,w,T)=>g<=w?0:Math.max(0,T?g<v?_:g-w:g>v?_:g-2*w),c=(g,v,_,y,x,w=!1)=>{let T=v+y+2*x;return g>=x&&(T+=x+1),this.getLast(T,w)},u=s(i.scrollTop,r.top),d=s(i.scrollLeft,r.left),f=this.both?{rows:0,cols:0}:0,h=this.last,m=!1,p=this.lastScrollPos;if(this.both){let g=this.lastScrollPos.top<=u,v=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(g||v)){let _={rows:o(u,this._itemSize[0]),cols:o(d,this._itemSize[1])},y={rows:a(_.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:a(_.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};f={rows:l(_.rows,y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:l(_.cols,y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)},h={rows:c(_.rows,f.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(_.cols,f.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},m=f.rows!==this.first.rows||h.rows!==this.last.rows||f.cols!==this.first.cols||h.cols!==this.last.cols||this.isRangeChanged,p={top:u,left:d}}}else{let g=this.horizontal?d:u,v=this.lastScrollPos<=g;if(!this._appendOnly||this._appendOnly&&v){let _=o(g,this._itemSize),y=a(_,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,v);f=l(_,y,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,v),h=c(_,f,this.last,this.numItemsInViewport,this.d_numToleratedItems),m=f!==this.first||h!==this.last||this.isRangeChanged,p=g}}return{first:f,last:h,isRangeChanged:m,scrollPos:p}}onScrollChange(e){let{first:i,last:r,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(e);if(s){let a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(i)){let l={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}unbindResizeListener(){this.resizeObserver&&(this.resizeObserver.unobserve(this.elementViewChild?.nativeElement),this.resizeObserver=null)}onResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(q.isVisible(this.elementViewChild?.nativeElement)){let[e,i]=[q.getWidth(this.elementViewChild?.nativeElement),q.getHeight(this.elementViewChild?.nativeElement)],[r,s]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||s:this.horizontal?r:this.vertical?s:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.init(),this.calculateAutoSize()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-scroller-content ${this.d_loading?"p-scroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){let i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:r===0,last:r===i-1,even:r%2===0,odd:r%2!==0}}getLoaderOptions(e,i){let r=this.loaderArr.length;return xe({index:e,count:r,first:e===0,last:e===r-1,even:e%2===0,odd:e%2!==0},i)}static \u0275fac=function(i){return new(i||t)(se(Tt),se(nn),se(ln),se(Lt),se(rt))};static \u0275cmp=me({type:t,selectors:[["p-scroller"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&(vt(OG,5),vt(RG,5)),i&2){let s;qe(s=Ke())&&(r.elementViewChild=s.first),qe(s=Ke())&&(r.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[xn],ngContentSelectors:LG,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(i,r){if(i&1&&(Ln(),N(0,iq,8,16,"ng-container",6)(1,oq,2,1,"ng-template",null,0,ei)),i&2){let s=mn(2);b("ngIf",!r._disabled)("ngIfElse",s)}},dependencies:()=>[zt,wi,Ut,qt,Bt,Io],styles:[`@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}
`],encapsulation:2})}return t})(),uc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Nt,Io,Nt]})}return t})();var uM=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:ht()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;interactionInProgress=!1;constructor(e,i,r,s,o,a){this.platformId=e,this.el=i,this.zone=r,this.config=s,this.renderer=o,this.viewContainer=a}ngAfterViewInit(){gn(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),e==="focus"||e==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}setAriaDescribedBy(){let e=this.getOption("id");e&&this.active&&this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",e)}removeAriaDescribedBy(){this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=xe(xe({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(q.hasClass(e.relatedTarget,"p-tooltip")||q.hasClass(e.relatedTarget,"p-tooltip-text")||q.hasClass(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()}))}this.interactionInProgress=!0}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?q.appendChild(this.container,this.el.nativeElement):q.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener()),this.setAriaDescribedBy()}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&this.align()},100):this.align(),q.fadeIn(this.container,250),this.getOption("tooltipZIndex")==="auto"?Nn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&Nn.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e instanceof zr){let i=this.viewContainer.createEmbeddedView(e);i.detectChanges(),i.rootNodes.forEach(r=>this.tooltipText.appendChild(r))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break}}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),i=e.left+q.getWindowScrollLeft(),r=e.top+q.getWindowScrollTop();return{left:i,top:r}}else return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.activeElement,i=this.getHostOffset(),r=i.left+q.getOuterWidth(e),s=i.top+(q.getOuterHeight(e)-q.getOuterHeight(this.container))/2;this.container.style.left=r+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")?q.findSingle(this.el.nativeElement,".p-component")||this.el.nativeElement:this.el.nativeElement}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-q.getOuterWidth(this.container),r=e.top+(q.getOuterHeight(this.el.nativeElement)-q.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(q.getOuterWidth(this.el.nativeElement)-q.getOuterWidth(this.container))/2,r=e.top-q.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(q.getOuterWidth(this.el.nativeElement)-q.getOuterWidth(this.container))/2,r=e.top+q.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=xe(xe({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return q.hasClass(e,"p-inputwrapper")?q.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,s=q.getOuterWidth(this.container),o=q.getOuterHeight(this.container),a=q.getViewport();return r+s>a.width||r<0||i<0||i+o>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ws(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),e==="focus"||e==="both"){let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement))}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):q.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.removeAriaDescribedBy(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Nn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(i){return new(i||t)(se(nn),se(gt),se(rt),se(vn),se(ln),se(Ur))};static \u0275dir=kt({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[Z.HasDecoratorInputTransform,"escape","escape",oe],showDelay:[Z.HasDecoratorInputTransform,"showDelay","showDelay",Je],hideDelay:[Z.HasDecoratorInputTransform,"hideDelay","hideDelay",Je],life:[Z.HasDecoratorInputTransform,"life","life",Je],positionTop:[Z.HasDecoratorInputTransform,"positionTop","positionTop",Je],positionLeft:[Z.HasDecoratorInputTransform,"positionLeft","positionLeft",Je],autoHide:[Z.HasDecoratorInputTransform,"autoHide","autoHide",oe],fitContent:[Z.HasDecoratorInputTransform,"fitContent","fitContent",oe],hideOnEscape:[Z.HasDecoratorInputTransform,"hideOnEscape","hideOnEscape",oe],content:[Z.None,"pTooltip","content"],disabled:[Z.None,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Et,xn]})}return t})(),dM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It]})}return t})();var xx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["BlankIcon"]],standalone:!0,features:[We,Me],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg","v-bind","pti()"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"rect",1),O())},encapsulation:2})}return t})();var bx=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var _d=t=>({height:t}),lq=(t,n,e)=>({"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n,"p-focus":e}),wx=t=>({$implicit:t});function cq(t,n){t&1&&re(0,"CheckIcon",4),t&2&&b("styleClass","p-dropdown-check-icon")}function uq(t,n){t&1&&re(0,"BlankIcon",4),t&2&&b("styleClass","p-dropdown-blank-icon")}function dq(t,n){if(t&1&&(Fe(0),N(1,cq,1,1,"CheckIcon",3)(2,uq,1,1,"BlankIcon",3),Pe()),t&2){let e=I();C(),b("ngIf",e.selected),C(),b("ngIf",!e.selected)}}function fq(t,n){if(t&1&&(P(0,"span"),Te(1),O()),t&2){let e,i=I();C(),yt((e=i.label)!==null&&e!==void 0?e:"empty")}}function hq(t,n){t&1&&Re(0)}var pq=["container"],mq=["filter"],gq=["focusInput"],vq=["editableInput"],_q=["items"],yq=["scroller"],xq=["overlay"],bq=["firstHiddenFocusableEl"],wq=["lastHiddenFocusableEl"],Cq=t=>({"max-height":t}),fM=t=>({options:t}),Sq=t=>({"p-variant-filled":t}),hM=(t,n)=>({$implicit:t,options:n}),Eq=()=>({});function Tq(t,n){if(t&1&&(Fe(0),Te(1),Pe()),t&2){let e=I(2);C(),yt(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Iq(t,n){if(t&1&&Re(0,25),t&2){let e=I(2);b("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",Xe(2,wx,e.selectedOption))}}function Dq(t,n){if(t&1&&(P(0,"span"),Te(1),O()),t&2){let e=I(3);C(),yt(e.label()==="p-emptylabel"?"\xA0":e.label())}}function kq(t,n){if(t&1&&N(0,Dq,2,1,"span",18),t&2){let e=I(2);b("ngIf",e.isSelectedOptionEmpty())}}function Mq(t,n){if(t&1){let e=He();P(0,"span",23,3),ye("focus",function(r){J(e);let s=I();return ee(s.onInputFocus(r))})("blur",function(r){J(e);let s=I();return ee(s.onInputBlur(r))})("keydown",function(r){J(e);let s=I();return ee(s.onKeyDown(r))}),N(2,Tq,2,1,"ng-container",20)(3,Iq,1,4,"ng-container",24)(4,kq,1,1,"ng-template",null,4,ei),O()}if(t&2){let e,i=mn(5),r=I();b("ngClass",r.inputClass)("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("autofocus",r.autofocus),ne("aria-disabled",r.disabled)("id",r.inputId)("aria-label",r.ariaLabel||(r.label()==="p-emptylabel"?void 0:r.label()))("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(e=r.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.disabled?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0)("aria-required",r.required)("required",r.required),C(2),b("ngIf",!r.selectedItemTemplate)("ngIfElse",i),C(),b("ngIf",r.selectedItemTemplate&&!r.isSelectedOptionEmpty())}}function Aq(t,n){if(t&1){let e=He();P(0,"input",26,5),ye("input",function(r){J(e);let s=I();return ee(s.onEditableInput(r))})("keydown",function(r){J(e);let s=I();return ee(s.onKeyDown(r))})("focus",function(r){J(e);let s=I();return ee(s.onInputFocus(r))})("blur",function(r){J(e);let s=I();return ee(s.onInputBlur(r))}),O()}if(t&2){let e=I();b("ngClass",e.inputClass)("disabled",e.disabled)("autofocus",e.autofocus),ne("id",e.inputId)("maxlength",e.maxlength)("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Fq(t,n){if(t&1){let e=He();P(0,"TimesIcon",29),ye("click",function(r){J(e);let s=I(2);return ee(s.clear(r))}),O()}t&2&&(b("styleClass","p-dropdown-clear-icon"),ne("data-pc-section","clearicon"))}function Pq(t,n){}function Oq(t,n){t&1&&N(0,Pq,0,0,"ng-template")}function Rq(t,n){if(t&1){let e=He();P(0,"span",30),ye("click",function(r){J(e);let s=I(2);return ee(s.clear(r))}),N(1,Oq,1,0,null,31),O()}if(t&2){let e=I(2);ne("data-pc-section","clearicon"),C(),b("ngTemplateOutlet",e.clearIconTemplate)}}function Lq(t,n){if(t&1&&(Fe(0),N(1,Fq,1,2,"TimesIcon",27)(2,Rq,2,2,"span",28),Pe()),t&2){let e=I();C(),b("ngIf",!e.clearIconTemplate),C(),b("ngIf",e.clearIconTemplate)}}function Nq(t,n){t&1&&Re(0)}function Vq(t,n){if(t&1&&(Fe(0),N(1,Nq,1,0,"ng-container",31),Pe()),t&2){let e=I(2);C(),b("ngTemplateOutlet",e.loadingIconTemplate)}}function Bq(t,n){if(t&1&&re(0,"span",34),t&2){let e=I(3);b("ngClass","p-dropdown-trigger-icon pi-spin "+e.loadingIcon)}}function Hq(t,n){t&1&&re(0,"span",35),t&2&&be("p-dropdown-trigger-icon pi pi-spinner pi-spin")}function zq(t,n){if(t&1&&(Fe(0),N(1,Bq,1,1,"span",32)(2,Hq,1,2,"span",33),Pe()),t&2){let e=I(2);C(),b("ngIf",e.loadingIcon),C(),b("ngIf",!e.loadingIcon)}}function jq(t,n){if(t&1&&(Fe(0),N(1,Vq,2,1,"ng-container",18)(2,zq,3,2,"ng-container",18),Pe()),t&2){let e=I();C(),b("ngIf",e.loadingIconTemplate),C(),b("ngIf",!e.loadingIconTemplate)}}function Uq(t,n){if(t&1&&re(0,"span",39),t&2){let e=I(3);b("ngClass",e.dropdownIcon)}}function Wq(t,n){t&1&&re(0,"ChevronDownIcon",40),t&2&&b("styleClass","p-dropdown-trigger-icon")}function $q(t,n){if(t&1&&(Fe(0),N(1,Uq,1,1,"span",37)(2,Wq,1,1,"ChevronDownIcon",38),Pe()),t&2){let e=I(2);C(),b("ngIf",e.dropdownIcon),C(),b("ngIf",!e.dropdownIcon)}}function Gq(t,n){}function qq(t,n){t&1&&N(0,Gq,0,0,"ng-template")}function Kq(t,n){if(t&1&&(P(0,"span",41),N(1,qq,1,0,null,31),O()),t&2){let e=I(2);C(),b("ngTemplateOutlet",e.dropdownIconTemplate)}}function Yq(t,n){if(t&1&&N(0,$q,3,2,"ng-container",18)(1,Kq,2,1,"span",36),t&2){let e=I();b("ngIf",!e.dropdownIconTemplate),C(),b("ngIf",e.dropdownIconTemplate)}}function Xq(t,n){t&1&&Re(0)}function Zq(t,n){t&1&&Re(0)}function Qq(t,n){if(t&1&&(Fe(0),N(1,Zq,1,0,"ng-container",48),Pe()),t&2){let e=I(3);C(),b("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Xe(2,fM,e.filterOptions))}}function Jq(t,n){t&1&&re(0,"SearchIcon",40),t&2&&b("styleClass","p-dropdown-filter-icon")}function eK(t,n){}function tK(t,n){t&1&&N(0,eK,0,0,"ng-template")}function nK(t,n){if(t&1&&(P(0,"span",52),N(1,tK,1,0,null,31),O()),t&2){let e=I(4);C(),b("ngTemplateOutlet",e.filterIconTemplate)}}function iK(t,n){if(t&1){let e=He();P(0,"div",49)(1,"input",50,10),ye("input",function(r){J(e);let s=I(3);return ee(s.onFilterInputChange(r))})("keydown",function(r){J(e);let s=I(3);return ee(s.onFilterKeyDown(r))})("blur",function(r){J(e);let s=I(3);return ee(s.onFilterBlur(r))}),O(),N(3,Jq,1,1,"SearchIcon",38)(4,nK,2,1,"span",51),O()}if(t&2){let e=I(3);C(),b("value",e._filterValue()||"")("ngClass",Xe(8,Sq,e.variant==="filled"||e.config.inputStyle()==="filled")),ne("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),C(2),b("ngIf",!e.filterIconTemplate),C(),b("ngIf",e.filterIconTemplate)}}function rK(t,n){if(t&1){let e=He();P(0,"div",47),ye("click",function(r){return J(e),ee(r.stopPropagation())}),N(1,Qq,2,4,"ng-container",20)(2,iK,5,10,"ng-template",null,9,ei),O()}if(t&2){let e=mn(3),i=I(2);C(),b("ngIf",i.filterTemplate)("ngIfElse",e)}}function sK(t,n){t&1&&Re(0)}function oK(t,n){if(t&1&&N(0,sK,1,0,"ng-container",48),t&2){let e=n.$implicit,i=n.options;I(2);let r=mn(9);b("ngTemplateOutlet",r)("ngTemplateOutletContext",Zt(2,hM,e,i))}}function aK(t,n){t&1&&Re(0)}function lK(t,n){if(t&1&&N(0,aK,1,0,"ng-container",48),t&2){let e=n.options,i=I(4);b("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Xe(2,fM,e))}}function cK(t,n){t&1&&(Fe(0),N(1,lK,1,4,"ng-template",54),Pe())}function uK(t,n){if(t&1){let e=He();P(0,"p-scroller",53,11),ye("onLazyLoad",function(r){J(e);let s=I(2);return ee(s.onLazyLoad.emit(r))}),N(2,oK,1,5,"ng-template",22)(3,cK,2,0,"ng-container",18),O()}if(t&2){let e=I(2);fa(Xe(8,_d,e.scrollHeight)),b("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),C(3),b("ngIf",e.loaderTemplate)}}function dK(t,n){t&1&&Re(0)}function fK(t,n){if(t&1&&(Fe(0),N(1,dK,1,0,"ng-container",48),Pe()),t&2){I();let e=mn(9),i=I();C(),b("ngTemplateOutlet",e)("ngTemplateOutletContext",Zt(3,hM,i.visibleOptions(),Bn(2,Eq)))}}function hK(t,n){if(t&1&&(P(0,"span"),Te(1),O()),t&2){let e=I(2).$implicit,i=I(3);C(),yt(i.getOptionGroupLabel(e.optionGroup))}}function pK(t,n){t&1&&Re(0)}function mK(t,n){if(t&1&&(Fe(0),P(1,"li",58),N(2,hK,2,1,"span",18)(3,pK,1,0,"ng-container",48),O(),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I().options,o=I(2);C(),b("ngStyle",Xe(5,_d,s.itemSize+"px")),ne("id",o.id+"_"+o.getOptionIndex(r,s)),C(),b("ngIf",!o.groupTemplate),C(),b("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",Xe(7,wx,i.optionGroup))}}function gK(t,n){if(t&1){let e=He();Fe(0),P(1,"p-dropdownItem",59),ye("onClick",function(r){J(e);let s=I().$implicit,o=I(3);return ee(o.onOptionSelect(r,s))})("onMouseEnter",function(r){J(e);let s=I().index,o=I().options,a=I(2);return ee(a.onOptionMouseEnter(r,a.getOptionIndex(s,o)))}),O(),Pe()}if(t&2){let e=I(),i=e.$implicit,r=e.index,s=I().options,o=I(2);C(),b("id",o.id+"_"+o.getOptionIndex(r,s))("option",i)("checkmark",o.checkmark)("selected",o.isSelected(i))("label",o.getOptionLabel(i))("disabled",o.isOptionDisabled(i))("template",o.itemTemplate)("focused",o.focusedOptionIndex()===o.getOptionIndex(r,s))("ariaPosInset",o.getAriaPosInset(o.getOptionIndex(r,s)))("ariaSetSize",o.ariaSetSize)}}function vK(t,n){if(t&1&&N(0,mK,4,9,"ng-container",18)(1,gK,2,10,"ng-container",18),t&2){let e=n.$implicit,i=I(3);b("ngIf",i.isOptionGroup(e)),C(),b("ngIf",!i.isOptionGroup(e))}}function _K(t,n){if(t&1&&(Fe(0),Te(1),Pe()),t&2){let e=I(4);C(),Vt(" ",e.emptyFilterMessageLabel," ")}}function yK(t,n){t&1&&Re(0,null,13)}function xK(t,n){if(t&1&&(P(0,"li",60),N(1,_K,2,1,"ng-container",20)(2,yK,2,0,"ng-container",31),O()),t&2){let e=I().options,i=I(2);b("ngStyle",Xe(4,_d,e.itemSize+"px")),C(),b("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),C(),b("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function bK(t,n){if(t&1&&(Fe(0),Te(1),Pe()),t&2){let e=I(4);C(),Vt(" ",e.emptyMessageLabel," ")}}function wK(t,n){t&1&&Re(0,null,14)}function CK(t,n){if(t&1&&(P(0,"li",60),N(1,bK,2,1,"ng-container",20)(2,wK,2,0,"ng-container",31),O()),t&2){let e=I().options,i=I(2);b("ngStyle",Xe(4,_d,e.itemSize+"px")),C(),b("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),C(),b("ngTemplateOutlet",i.emptyTemplate)}}function SK(t,n){if(t&1&&(P(0,"ul",55,12),N(2,vK,2,2,"ng-template",56)(3,xK,3,6,"li",57)(4,CK,3,6,"li",57),O()),t&2){let e=n.$implicit,i=n.options,r=I(2);b("ngClass",i.contentStyleClass)("ngStyle",i.contentStyle),ne("id",r.id+"_list")("aria-label",r.listLabel),C(2),b("ngForOf",e),C(),b("ngIf",r.filterValue&&r.isEmpty()),C(),b("ngIf",!r.filterValue&&r.isEmpty())}}function EK(t,n){t&1&&Re(0)}function TK(t,n){if(t&1){let e=He();P(0,"div",42)(1,"span",43,6),ye("focus",function(r){J(e);let s=I();return ee(s.onFirstHiddenFocus(r))}),O(),N(3,Xq,1,0,"ng-container",31)(4,rK,4,2,"div",44),P(5,"div",45),N(6,uK,4,10,"p-scroller",46)(7,fK,2,6,"ng-container",18)(8,SK,5,7,"ng-template",null,7,ei),O(),N(10,EK,1,0,"ng-container",31),P(11,"span",43,8),ye("focus",function(r){J(e);let s=I();return ee(s.onLastHiddenFocus(r))}),O()()}if(t&2){let e=I();be(e.panelStyleClass),b("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),C(),ne("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),C(2),b("ngTemplateOutlet",e.headerTemplate),C(),b("ngIf",e.filter),C(),b("ngStyle",Xe(16,Cq,e.virtualScroll?"auto":e.scrollHeight||"auto")),C(),b("ngIf",e.virtualScroll),C(),b("ngIf",!e.virtualScroll),C(3),b("ngTemplateOutlet",e.footerTemplate),C(),ne("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var IK={provide:hi,useExisting:Dn(()=>Cx),multi:!0},DK=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new ve;onMouseEnter=new ve;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=me({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[Z.HasDecoratorInputTransform,"selected","selected",oe],focused:[Z.HasDecoratorInputTransform,"focused","focused",oe],label:"label",disabled:[Z.HasDecoratorInputTransform,"disabled","disabled",oe],visible:[Z.HasDecoratorInputTransform,"visible","visible",oe],itemSize:[Z.HasDecoratorInputTransform,"itemSize","itemSize",Je],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[Z.HasDecoratorInputTransform,"checkmark","checkmark",oe]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Et],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(i,r){i&1&&(P(0,"li",0),ye("click",function(o){return r.onOptionClick(o)})("mouseenter",function(o){return r.onOptionMouseEnter(o)}),N(1,dq,3,2,"ng-container",1)(2,fq,2,1,"span",1)(3,hq,1,0,"ng-container",2),O()),i&2&&(b("id",r.id)("ngStyle",Xe(14,_d,r.itemSize+"px"))("ngClass",fi(16,lq,r.selected,r.disabled,r.focused)),ne("aria-label",r.label)("aria-setsize",r.ariaSetSize)("aria-posinset",r.ariaPosInset)("aria-selected",r.selected)("data-p-focused",r.focused)("data-p-highlight",r.selected)("data-p-disabled",r.disabled),C(),b("ngIf",r.checkmark),C(),b("ngIf",!r.template),C(),b("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Xe(20,wx,r.option)))},dependencies:()=>[zt,Ut,qt,Bt,Gi,xx,$r],encapsulation:2})}return t})(),Cx=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;autoShowPanelOnPrintableCharacterKeyDown=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Se.deepEquals(e,this._options())||this._options.set(e)}onChange=new ve;onFilter=new ve;onFocus=new ve;onBlur=new ve;onClick=new ve;onShow=new ve;onHide=new ve;onClear=new ve;onLazyLoad=new ve;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=ar(null);_placeholder=ar(void 0);modelValue=ar(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=ar(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=ar(-1);labelId;listId;clicked=ar(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(ri.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(ri.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(ri.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue()!==void 0&&this.modelValue()!==null&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled","p-dropdown-open":this.overlayVisible}}get inputClass(){let e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-dropdown-label-empty":!this.editable&&!this.selectedItemTemplate&&(e==null||e==="p-emptylabel"||e.length===0)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":this.config.inputStyle()==="filled","p-ripple-disabled":this.config.ripple===!1}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=kl(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let r=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options.filter(s=>s.label?s.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:s.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let s=this.options||[],o=[];return s.forEach(a=>{let c=this.getOptionGroupChildren(a).filter(u=>r.includes(u));c.length>0&&o.push(ft(xe({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(o)}return r}return e});label=kl(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(r=>this.isOptionValueEqualsModelValue(r));return i!==-1?this.getOptionLabel(e[i]):this.placeholder()||"p-emptylabel"});filled=kl(()=>{if(typeof this.modelValue()=="string")return!!this.modelValue();let i=this.getAllVisibleAndNonVisibleOptions().findIndex(r=>this.isOptionValueEqualsModelValue(r))!==-1;return this.label()!=="p-emptylabel"&&i});selectedOption;editableInputValue=kl(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.filterService=o,this.config=a,kh(()=>{let l=this.modelValue(),c=this.visibleOptions();if(c&&Se.isNotEmpty(c)){let u=this.findSelectedOptionIndex();(u!==-1||l===void 0||typeof l=="string"&&l.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=c[u])}Se.isEmpty(c)&&(l===void 0||this.isModelValueNotSet())&&Se.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),l!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||ht(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=q.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&q.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}flatOptions(e){return(e||[]).reduce((i,r,s)=>{i.push({optionGroup:r,group:!0,index:s});let o=this.getOptionGroupChildren(r);return o&&o.forEach(a=>i.push(a)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(this.modelValue()===null||this.modelValue()===void 0)&&!this.placeholder()){let e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,i,r=!0,s=!1){if(!this.isSelected(i)){let o=this.getOptionValue(i);this.updateModel(o,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),s===!1&&this.onChange.emit({originalEvent:e,value:o})}r&&this.hide(!0)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e,i=!0){this.filter&&this.resetFilter(),this.value=e,i&&this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelectedOptionEmpty(){return Se.isEmpty(this.selectedOption)}isSelected(e){return this.isValidOption(e)&&this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return Se.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){if(this._placeholder()!==null&&this._placeholder()!==void 0)return;let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let r=e.querySelector("label");r&&this._placeholder.set(r.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?Se.resolveFieldData(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?Se.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}isOptionDisabled(e){return this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&e.disabled===!1?!1:this.optionDisabled?Se.resolveFieldData(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Se.resolveFieldData(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Se.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),!(e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]'))&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&Se.isNotEmpty(i)&&this.show()}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&q.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=q.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=q.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&q.unblockBodyScroll(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&setTimeout(()=>{q.focus(this.focusInputViewChild?.nativeElement)}),this.editable&&this.editableInputViewChild&&setTimeout(()=>{q.focus(this.editableInputViewChild?.nativeElement)})),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onMouseDown(e){e.preventDefault()}onKeyDown(e,i){if(!(this.disabled||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&Se.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.autoShowPanelOnPrintableCharacterKeyDown&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let r=this.visibleOptions()[i];this.onOptionSelect(e,r,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let r=q.findSingle(this.itemsViewChild.nativeElement,`li[id="${i}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(r=>this.isValidOption(r)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?Se.findLastIndex(this.visibleOptions().slice(0,e),r=>this.isValidOption(r)):-1;return i>-1?i:e}findLastOptionIndex(){return Se.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}this.overlayVisible&&this.hide()}else{let r=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i){let r=e.currentTarget;e.shiftKey?r.setSelectionRange(0,r.value.length):(r.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i){let r=e.currentTarget;if(e.shiftKey)r.setSelectionRange(0,r.value.length);else{let s=r.value.length;r.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())q.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?q.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;q.focus(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?q.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;q.focus(i)}hasFocusableElements(){return q.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"]):not([class="p-dropdown-items-wrapper"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let r=-1,s=!1;return this.focusedOptionIndex()!==-1?(r=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)),r=r===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)):r+this.focusedOptionIndex()):r=this.visibleOptions().findIndex(o=>this.isOptionMatched(o)),r!==-1&&(s=!0),r===-1&&this.focusedOptionIndex()===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?q.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():q.focus(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(i){return new(i||t)(se(gt),se(ln),se(Lt),se(rt),se(_p),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-dropdown"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&(vt(pq,5),vt(mq,5),vt(gq,5),vt(vq,5),vt(_q,5),vt(yq,5),vt(xq,5),vt(bq,5),vt(wq,5)),i&2){let s;qe(s=Ke())&&(r.containerViewChild=s.first),qe(s=Ke())&&(r.filterViewChild=s.first),qe(s=Ke())&&(r.focusInputViewChild=s.first),qe(s=Ke())&&(r.editableInputViewChild=s.first),qe(s=Ke())&&(r.itemsViewChild=s.first),qe(s=Ke())&&(r.scroller=s.first),qe(s=Ke())&&(r.overlayViewChild=s.first),qe(s=Ke())&&(r.firstHiddenFocusableElementOnOverlay=s.first),qe(s=Ke())&&(r.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(i,r){i&2&&Xn("p-inputwrapper-filled",r.filled())("p-inputwrapper-focus",r.focused||r.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[Z.HasDecoratorInputTransform,"filter","filter",oe],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[Z.HasDecoratorInputTransform,"readonly","readonly",oe],required:[Z.HasDecoratorInputTransform,"required","required",oe],editable:[Z.HasDecoratorInputTransform,"editable","editable",oe],appendTo:"appendTo",tabindex:[Z.HasDecoratorInputTransform,"tabindex","tabindex",Je],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe],resetFilterOnHide:[Z.HasDecoratorInputTransform,"resetFilterOnHide","resetFilterOnHide",oe],checkmark:[Z.HasDecoratorInputTransform,"checkmark","checkmark",oe],dropdownIcon:"dropdownIcon",loading:[Z.HasDecoratorInputTransform,"loading","loading",oe],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[Z.HasDecoratorInputTransform,"autoDisplayFirst","autoDisplayFirst",oe],group:[Z.HasDecoratorInputTransform,"group","group",oe],showClear:[Z.HasDecoratorInputTransform,"showClear","showClear",oe],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[Z.HasDecoratorInputTransform,"lazy","lazy",oe],virtualScroll:[Z.HasDecoratorInputTransform,"virtualScroll","virtualScroll",oe],virtualScrollItemSize:[Z.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",Je],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[Z.HasDecoratorInputTransform,"maxlength","maxlength",Je],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[Z.HasDecoratorInputTransform,"focusOnHover","focusOnHover",oe],selectOnFocus:[Z.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",oe],autoOptionFocus:[Z.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",oe],autofocusFilter:[Z.HasDecoratorInputTransform,"autofocusFilter","autofocusFilter",oe],autoShowPanelOnPrintableCharacterKeyDown:[Z.HasDecoratorInputTransform,"autoShowPanelOnPrintableCharacterKeyDown","autoShowPanelOnPrintableCharacterKeyDown",oe],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[kn([IK]),Et],decls:12,vars:20,consts:[["container",""],["elseBlock",""],["overlay",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["items",""],["emptyFilter",""],["empty",""],[3,"click","ngClass","ngStyle"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger",3,"mousedown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"input","keydown","focus","blur","ngClass","disabled","autofocus"],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-dropdown-trigger-icon",4,"ngIf"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-dropdown-header",3,"click",4,"ngIf"],["tabindex","0",1,"p-dropdown-items-wrapper",3,"ngStyle"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-dropdown-header",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","role","searchbox","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"input","keydown","blur","value","ngClass"],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass","ngStyle"],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-dropdown-empty-message",3,"ngStyle"]],template:function(i,r){if(i&1){let s=He();P(0,"div",15,0),ye("click",function(a){return J(s),ee(r.onContainerClick(a))}),N(2,Mq,6,20,"span",16)(3,Aq,2,8,"input",17)(4,Lq,3,2,"ng-container",18),P(5,"div",19),ye("mousedown",function(a){return J(s),ee(r.onMouseDown(a))}),N(6,jq,3,2,"ng-container",20)(7,Yq,2,2,"ng-template",null,1,ei),O(),P(9,"p-overlay",21,2),Rs("visibleChange",function(a){return J(s),yo(r.overlayVisible,a)||(r.overlayVisible=a),ee(a)}),ye("onAnimationStart",function(a){return J(s),ee(r.onOverlayAnimationStart(a))})("onHide",function(){return J(s),ee(r.hide())}),N(11,TK,13,18,"ng-template",22),O()()}if(i&2){let s,o=mn(8);be(r.styleClass),b("ngClass",r.containerClass)("ngStyle",r.style),ne("id",r.id),C(2),b("ngIf",!r.editable),C(),b("ngIf",r.editable),C(),b("ngIf",r.isVisibleClearIcon),C(),ne("aria-expanded",(s=r.overlayVisible)!==null&&s!==void 0?s:!1)("data-pc-section","trigger"),C(),b("ngIf",r.loading)("ngIfElse",o),C(3),Os("visible",r.overlayVisible),b("options",r.overlayOptions)("target","@parent")("appendTo",r.appendTo)("autoZIndex",r.autoZIndex)("baseZIndex",r.baseZIndex)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}},dependencies:()=>[zt,wi,Ut,qt,Bt,vx,Mt,uM,F0,Er,si,cc,bx,DK],styles:[`@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}.p-float-label .p-dropdown .p-placeholder{opacity:0}}
`],encapsulation:2,changeDetection:0})}return t})(),yd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,_x,Nt,dM,Sr,uc,ds,si,cc,bx,xx,$r,_x,Nt,uc]})}return t})();var Sx=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var Ex=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var pM=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var mM=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var gM=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var Tx=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[We,Me],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),O(),P(6,"defs")(7,"clipPath",5),re(8,"rect",6),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(6),b("id",r.pathId))},encapsulation:2})}return t})();var Ix=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var Dx=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var vM=(()=>{class t extends Qe{pathId;ngOnInit(){this.pathId="url(#"+ht()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["TrashIcon"]],standalone:!0,features:[We,Me],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0)(1,"g"),re(2,"path",1),O(),P(3,"defs")(4,"clipPath",2),re(5,"rect",3),O()()()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),C(),ne("clip-path",r.pathId),C(3),b("id",r.pathId))},encapsulation:2})}return t})();var kx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Mx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var _M=(()=>{class t{el;ngModel;cd;config;variant="outlined";filled;constructor(e,i,r,s){this.el=e,this.ngModel=i,this.cd=r,this.config=s}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(i){return new(i||t)(se(gt),se(Gu,8),se(Lt),se(vn))};static \u0275dir=kt({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(i,r){i&1&&ye("input",function(o){return r.onInput(o)}),i&2&&Xn("p-filled",r.filled)("p-variant-filled",r.variant==="filled"||r.config.inputStyle()==="filled")},inputs:{variant:"variant"}})}return t})(),P0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It]})}return t})();var AK=["input"],FK=(t,n,e)=>({"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}),yM=()=>({"p-inputnumber-button p-inputnumber-button-up":!0}),xM=()=>({"p-inputnumber-button p-inputnumber-button-down":!0});function PK(t,n){if(t&1){let e=He();P(0,"TimesIcon",8),ye("click",function(){J(e);let r=I(2);return ee(r.clear())}),O()}t&2&&(b("ngClass","p-inputnumber-clear-icon"),ne("data-pc-section","clearIcon"))}function OK(t,n){}function RK(t,n){t&1&&N(0,OK,0,0,"ng-template")}function LK(t,n){if(t&1){let e=He();P(0,"span",9),ye("click",function(){J(e);let r=I(2);return ee(r.clear())}),N(1,RK,1,0,null,10),O()}if(t&2){let e=I(2);ne("data-pc-section","clearIcon"),C(),b("ngTemplateOutlet",e.clearIconTemplate)}}function NK(t,n){if(t&1&&(Fe(0),N(1,PK,1,2,"TimesIcon",6)(2,LK,2,2,"span",7),Pe()),t&2){let e=I();C(),b("ngIf",!e.clearIconTemplate),C(),b("ngIf",e.clearIconTemplate)}}function VK(t,n){if(t&1&&re(0,"span",14),t&2){let e=I(2);b("ngClass",e.incrementButtonIcon),ne("data-pc-section","incrementbuttonicon")}}function BK(t,n){t&1&&re(0,"AngleUpIcon"),t&2&&ne("data-pc-section","incrementbuttonicon")}function HK(t,n){}function zK(t,n){t&1&&N(0,HK,0,0,"ng-template")}function jK(t,n){if(t&1&&(Fe(0),N(1,BK,1,1,"AngleUpIcon",3)(2,zK,1,0,null,10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.incrementButtonIconTemplate),C(),b("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function UK(t,n){if(t&1&&re(0,"span",14),t&2){let e=I(2);b("ngClass",e.decrementButtonIcon),ne("data-pc-section","decrementbuttonicon")}}function WK(t,n){t&1&&re(0,"AngleDownIcon"),t&2&&ne("data-pc-section","decrementbuttonicon")}function $K(t,n){}function GK(t,n){t&1&&N(0,$K,0,0,"ng-template")}function qK(t,n){if(t&1&&(Fe(0),N(1,WK,1,1,"AngleDownIcon",3)(2,GK,1,0,null,10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.decrementButtonIconTemplate),C(),b("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function KK(t,n){if(t&1){let e=He();P(0,"span",11)(1,"button",12),ye("mousedown",function(r){J(e);let s=I();return ee(s.onUpButtonMouseDown(r))})("mouseup",function(){J(e);let r=I();return ee(r.onUpButtonMouseUp())})("mouseleave",function(){J(e);let r=I();return ee(r.onUpButtonMouseLeave())})("keydown",function(r){J(e);let s=I();return ee(s.onUpButtonKeyDown(r))})("keyup",function(){J(e);let r=I();return ee(r.onUpButtonKeyUp())}),N(2,VK,1,2,"span",13)(3,jK,3,2,"ng-container",3),O(),P(4,"button",12),ye("mousedown",function(r){J(e);let s=I();return ee(s.onDownButtonMouseDown(r))})("mouseup",function(){J(e);let r=I();return ee(r.onDownButtonMouseUp())})("mouseleave",function(){J(e);let r=I();return ee(r.onDownButtonMouseLeave())})("keydown",function(r){J(e);let s=I();return ee(s.onDownButtonKeyDown(r))})("keyup",function(){J(e);let r=I();return ee(r.onDownButtonKeyUp())}),N(5,UK,1,2,"span",13)(6,qK,3,2,"ng-container",3),O()()}if(t&2){let e=I();ne("data-pc-section","buttonGroup"),C(),be(e.incrementButtonClass),b("ngClass",Bn(17,yM))("disabled",e.disabled),ne("aria-hidden",!0)("data-pc-section","incrementbutton"),C(),b("ngIf",e.incrementButtonIcon),C(),b("ngIf",!e.incrementButtonIcon),C(),be(e.decrementButtonClass),b("ngClass",Bn(18,xM))("disabled",e.disabled),ne("aria-hidden",!0)("data-pc-section",e.decrementbutton),C(),b("ngIf",e.decrementButtonIcon),C(),b("ngIf",!e.decrementButtonIcon)}}function YK(t,n){if(t&1&&re(0,"span",14),t&2){let e=I(2);b("ngClass",e.incrementButtonIcon),ne("data-pc-section","incrementbuttonicon")}}function XK(t,n){t&1&&re(0,"AngleUpIcon"),t&2&&ne("data-pc-section","incrementbuttonicon")}function ZK(t,n){}function QK(t,n){t&1&&N(0,ZK,0,0,"ng-template")}function JK(t,n){if(t&1&&(Fe(0),N(1,XK,1,1,"AngleUpIcon",3)(2,QK,1,0,null,10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.incrementButtonIconTemplate),C(),b("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function eY(t,n){if(t&1){let e=He();P(0,"button",12),ye("mousedown",function(r){J(e);let s=I();return ee(s.onUpButtonMouseDown(r))})("mouseup",function(){J(e);let r=I();return ee(r.onUpButtonMouseUp())})("mouseleave",function(){J(e);let r=I();return ee(r.onUpButtonMouseLeave())})("keydown",function(r){J(e);let s=I();return ee(s.onUpButtonKeyDown(r))})("keyup",function(){J(e);let r=I();return ee(r.onUpButtonKeyUp())}),N(1,YK,1,2,"span",13)(2,JK,3,2,"ng-container",3),O()}if(t&2){let e=I();be(e.incrementButtonClass),b("ngClass",Bn(8,yM))("disabled",e.disabled),ne("aria-hidden",!0)("data-pc-section","incrementbutton"),C(),b("ngIf",e.incrementButtonIcon),C(),b("ngIf",!e.incrementButtonIcon)}}function tY(t,n){if(t&1&&re(0,"span",14),t&2){let e=I(2);b("ngClass",e.decrementButtonIcon),ne("data-pc-section","decrementbuttonicon")}}function nY(t,n){t&1&&re(0,"AngleDownIcon"),t&2&&ne("data-pc-section","decrementbuttonicon")}function iY(t,n){}function rY(t,n){t&1&&N(0,iY,0,0,"ng-template")}function sY(t,n){if(t&1&&(Fe(0),N(1,nY,1,1,"AngleDownIcon",3)(2,rY,1,0,null,10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.decrementButtonIconTemplate),C(),b("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function oY(t,n){if(t&1){let e=He();P(0,"button",12),ye("mousedown",function(r){J(e);let s=I();return ee(s.onDownButtonMouseDown(r))})("mouseup",function(){J(e);let r=I();return ee(r.onDownButtonMouseUp())})("mouseleave",function(){J(e);let r=I();return ee(r.onDownButtonMouseLeave())})("keydown",function(r){J(e);let s=I();return ee(s.onDownButtonKeyDown(r))})("keyup",function(){J(e);let r=I();return ee(r.onDownButtonKeyUp())}),N(1,tY,1,2,"span",13)(2,sY,3,2,"ng-container",3),O()}if(t&2){let e=I();be(e.decrementButtonClass),b("ngClass",Bn(8,xM))("disabled",e.disabled),ne("aria-hidden",!0)("data-pc-section","decrementbutton"),C(),b("ngIf",e.decrementButtonIcon),C(),b("ngIf",!e.decrementButtonIcon)}}var aY={provide:hi,useExisting:Dn(()=>Ax),multi:!0},Ax=(()=>{class t{document;el;cd;injector;config;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;variant="outlined";minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ve;onFocus=new ve;onBlur=new ve;onKeyDown=new ve;onClear=new ve;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,i,r,s,o){this.document=e,this.el=i,this.cd=r,this.injector=s,this.config=o}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template;break}})}ngOnInit(){this.ngControl=this.injector.get(Us,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits??void 0,maximumFractionDigits:this.maxFractionDigits??void 0}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());let e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,s)=>[r,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,ft(xe({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}get isBlurUpdateOnMode(){return this.ngControl?.control?.updateOn==="blur"}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(r=this.prefix+r),this.suffix&&e!=this.suffix&&(r=r+this.suffix),r}return e.toString()}return""}parseValue(e){let i=new RegExp(this._suffix,""),r=new RegExp(this._prefix,""),s=new RegExp(this._currency,""),o=e.replace(i,"").replace(r,"").trim().replace(/\s/g,"").replace(s,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(o){if(o==="-")return o;let a=+o;return isNaN(a)?null:a}return null}repeat(e,i,r){if(this.readonly)return;let s=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},s),this.spin(e,r)}spin(e,i){let r=this.step*i,s=this.parseValue(this.input?.nativeElement.value)||0,o=this.validateValue(s+r);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,s,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault())}onUpButtonMouseUp(){this.disabled||this.clearTimer()}onUpButtonMouseLeave(){this.disabled||this.clearTimer()}onUpButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault())}onDownButtonMouseUp(){this.disabled||this.clearTimer()}onDownButtonMouseLeave(){this.disabled||this.clearTimer()}onDownButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey||e.key==="Dead"){this.isSpecialChar=!0;return}let i=e.target.selectionStart,r=e.target.selectionEnd,s=e.target.value,o=null;switch(e.altKey&&e.preventDefault(),e.key){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":for(let a=i;a<=s.length;a++){let l=a===0?0:a-1;if(this.isNumeralChar(s.charAt(l))){this.input.nativeElement.setSelectionRange(a,a);break}}break;case"ArrowRight":for(let a=r;a>=0;a--)if(this.isNumeralChar(s.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":o=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(o),this.input.nativeElement.setAttribute("aria-valuenow",o),this.updateModel(e,o);break;case"Backspace":{if(e.preventDefault(),i===r){if(i==1&&this.prefix||i==s.length&&this.suffix)break;let a=s.charAt(i-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){let u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,o=s.slice(0,i-2)+s.slice(i-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(i-1,i-1):o=s.slice(0,i-1)+s.slice(i);else if(l>0&&i>l){let d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i-1)+d+s.slice(i)}else c===1?(o=s.slice(0,i-1)+"0"+s.slice(i),o=this.parseValue(o)>0?o:""):o=s.slice(0,i-1)+s.slice(i)}else this.mode==="currency"&&a.search(this._currency)!=-1&&(o=s.slice(1));this.updateValue(e,o,null,"delete-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range");break}case"Delete":if(e.preventDefault(),i===r){if(i==0&&this.prefix||i==s.length-1&&this.suffix)break;let a=s.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){let u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,o=s.slice(0,i)+s.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(i+1,i+1):o=s.slice(0,i)+s.slice(i+1);else if(l>0&&i>l){let d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i)+d+s.slice(i+1)}else c===1?(o=s.slice(0,i)+"0"+s.slice(i+1),o=this.parseValue(o)>0?o:""):o=s.slice(0,i)+s.slice(i+1)}this.updateValue(e,o,null,"delete-back-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,r=String.fromCharCode(i),s=this.isDecimalSign(r),o=this.isMinusSign(r);i!=13&&e.preventDefault(),!s&&e.code==="NumpadDecimal"&&(s=!0,r=this._decimalChar,i=r.charCodeAt(0));let{value:a,selectionStart:l,selectionEnd:c}=this.input.nativeElement,u=this.parseValue(a+r),d=u!=null?u.toString():"",f=a.substring(l,c),h=this.parseValue(f),m=h!=null?h.toString():"";if(l!==c&&m.length>0){this.insert(e,r,{isDecimalSign:s,isMinusSign:o});return}this.maxlength&&d.length>this.maxlength||(48<=i&&i<=57||o||s)&&this.insert(e,r,{isDecimalSign:s,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(i){this.maxlength&&(i=i.toString().substring(0,this.maxlength));let r=this.parseValue(i);r!=null&&this.insert(e,r.toString())}}}allowMinusSign(){return this.min==null||this.min<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;let s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;let r=e.search(this._minusSign);this._minusSign.lastIndex=0;let s=e.search(this._suffix);this._suffix.lastIndex=0;let o=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:s,currencyCharIndex:o}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){let s=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&s!==-1)return;let o=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:d,currencyCharIndex:f}=this.getCharIndexes(l),h;if(r.isMinusSign)o===0&&(h=l,(u===-1||a!==0)&&(h=this.insertText(l,i,0,a)),this.updateValue(e,h,i,"insert"));else if(r.isDecimalSign)c>0&&o===c?this.updateValue(e,l,i,"insert"):c>o&&c<a?(h=this.insertText(l,i,o,a),this.updateValue(e,h,i,"insert")):c===-1&&this.maxFractionDigits&&(h=this.insertText(l,i,o,a),this.updateValue(e,h,i,"insert"));else{let m=this.numberFormat.resolvedOptions().maximumFractionDigits,p=o!==a?"range-insert":"insert";if(c>0&&o>c){if(o+i.length-(c+1)<=m){let g=f>=o?f-1:d>=o?d:l.length;h=l.slice(0,o)+i+l.slice(o+i.length,g)+l.slice(g),this.updateValue(e,h,i,p)}}else h=this.insertText(l,i,o,a),this.updateValue(e,h,i,p)}}insertText(e,i,r,s){if((i==="."?i:i.split(".")).length===2){let a=e.slice(r,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+e.slice(s):e||this.formatValue(i)}else return s-r===e.length?this.formatValue(i):r===0?i+e.slice(s):s===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(s)}deleteRange(e,i,r){let s;return r-i===e.length?s="":i===0?s=e.slice(r):r===e.length?s=e.slice(0,i):s=e.slice(0,i)+e.slice(r),s}initCursor(){let e=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.selectionEnd,r=this.input?.nativeElement.value,s=r.length,o=null,a=(this.prefixChar||"").length;r=r.replace(this._prefix,""),(e===i||e!==0||i<a)&&(e-=a);let l=r.charAt(e);if(this.isNumeralChar(l))return e+a;let c=e-1;for(;c>=0;)if(l=r.charAt(c),this.isNumeralChar(l)){o=c+a;break}else c--;if(o!==null)this.input?.nativeElement.setSelectionRange(o+1,o+1);else{for(c=e;c<s;)if(l=r.charAt(c),this.isNumeralChar(l)){o=c+a;break}else c++;o!==null&&this.input?.nativeElement.setSelectionRange(o,o)}return o||0}onInputClick(){let e=this.input?.nativeElement.value;!this.readonly&&e!==q.getSelection()&&this.initCursor()}isNumeralChar(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,i,r,s){let o=this.input?.nativeElement.value,a=null;i!=null&&(a=this.parseValue(i),a=!a&&!this.allowEmpty?0:a,this.updateInput(a,r,s,i),this.handleOnInput(e,o,a))}handleOnInput(e,i,r){this.isValueChanged(i,r)&&(this.input.nativeElement.value=this.formatValue(r),this.input?.nativeElement.setAttribute("aria-valuenow",r),!this.isBlurUpdateOnMode&&this.updateModel(e,r),this.onInput.emit({originalEvent:e,value:r,formattedValue:i}))}isValueChanged(e,i){if(i===null&&e!==null)return!0;if(i!=null){let r=typeof e=="string"?this.parseValue(e):e;return i!==r}return!1}validateValue(e){return e==="-"||e==null?null:this.min!=null&&e<this.min?this.min:this.max!=null&&e>this.max?this.max:e}updateInput(e,i,r,s){i=i||"";let o=this.input?.nativeElement.value,a=this.formatValue(e),l=o.length;if(a!==s&&(a=this.concatValues(a,s)),l===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let u=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength<a.length)return;this.input.nativeElement.value=a;let d=a.length;if(r==="range-insert"){let f=this.parseValue((o||"").slice(0,c)),m=(f!==null?f.toString():"").split("").join(`(${this.groupChar})?`),p=new RegExp(m,"g");p.test(a);let g=i.split("").join(`(${this.groupChar})?`),v=new RegExp(g,"g");v.test(a.slice(p.lastIndex)),u=p.lastIndex+v.lastIndex,this.input.nativeElement.setSelectionRange(u,u)}else if(d===l)r==="insert"||r==="delete-back-single"?this.input.nativeElement.setSelectionRange(u+1,u+1):r==="delete-single"?this.input.nativeElement.setSelectionRange(u-1,u-1):(r==="delete-range"||r==="spin")&&this.input.nativeElement.setSelectionRange(u,u);else if(r==="delete-back-single"){let f=o.charAt(u-1),h=o.charAt(u),m=l-d,p=this._group.test(h);p&&m===1?u+=1:!p&&this.isNumeralChar(f)&&(u+=-1*m+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(u,u)}else if(o==="-"&&r==="insert"){this.input.nativeElement.setSelectionRange(0,0);let h=this.initCursor()+i.length+1;this.input.nativeElement.setSelectionRange(h,h)}else u=u+(d-l),this.input.nativeElement.setSelectionRange(u,u)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,i){if(e&&i){let r=i.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?r!==-1?e:e.replace(this.suffixChar,"").split(this._decimal)[0]+i.replace(this.suffixChar,"").slice(r)+this.suffixChar:r!==-1?e.split(this._decimal)[0]+i.slice(r):e}return e}getDecimalLength(e){if(e){let i=e.split(this._decimal);if(i.length===2)return i[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let i=this.validateValue(this.parseValue(this.input.nativeElement.value)),r=i?.toString();this.input.nativeElement.value=this.formatValue(r),this.input.nativeElement.setAttribute("aria-valuenow",r),this.updateModel(e,i),this.onBlur.emit(e)}formattedValue(){let e=!this.value&&!this.allowEmpty?0:this.value;return this.formatValue(e)}updateModel(e,i){this.value!==i&&(this.value=i,this.isBlurUpdateOnMode&&this.focused?this.isBlurUpdateOnMode&&this.onModelChange(i):this.onModelChange(i)),this.onModelTouched()}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return this.value!=null&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(i){return new(i||t)(se(Tt),se(gt),se(Lt),se(or),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-inputNumber"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&vt(AK,5),i&2){let s;qe(s=Ke())&&(r.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){i&2&&Xn("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focused)("p-inputnumber-clearable",r.showClear&&r.buttonLayout!="vertical")},inputs:{showButtons:[Z.HasDecoratorInputTransform,"showButtons","showButtons",oe],format:[Z.HasDecoratorInputTransform,"format","format",oe],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:[Z.HasDecoratorInputTransform,"size","size",Je],maxlength:[Z.HasDecoratorInputTransform,"maxlength","maxlength",Je],tabindex:[Z.HasDecoratorInputTransform,"tabindex","tabindex",Je],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:[Z.HasDecoratorInputTransform,"ariaRequired","ariaRequired",oe],name:"name",required:[Z.HasDecoratorInputTransform,"required","required",oe],autocomplete:"autocomplete",min:[Z.HasDecoratorInputTransform,"min","min",Je],max:[Z.HasDecoratorInputTransform,"max","max",Je],incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[Z.HasDecoratorInputTransform,"readonly","readonly",oe],step:[Z.HasDecoratorInputTransform,"step","step",Je],allowEmpty:[Z.HasDecoratorInputTransform,"allowEmpty","allowEmpty",oe],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[Z.HasDecoratorInputTransform,"useGrouping","useGrouping",oe],variant:"variant",minFractionDigits:[Z.HasDecoratorInputTransform,"minFractionDigits","minFractionDigits",e=>Je(e,null)],maxFractionDigits:[Z.HasDecoratorInputTransform,"maxFractionDigits","maxFractionDigits",e=>Je(e,null)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[Z.HasDecoratorInputTransform,"showClear","showClear",oe],autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe],disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[kn([aY]),Et,xn],decls:7,vars:43,consts:[["input",""],[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal","pAutoFocus","",3,"input","keydown","keypress","paste","click","focus","blur","ngClass","ngStyle","value","disabled","readonly","autofocus"],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","0",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"click","ngClass"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","0",1,"p-button-icon-only",3,"mousedown","mouseup","mouseleave","keydown","keyup","ngClass","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,r){if(i&1){let s=He();P(0,"span",1)(1,"input",2,0),ye("input",function(a){return J(s),ee(r.onUserInput(a))})("keydown",function(a){return J(s),ee(r.onInputKeyDown(a))})("keypress",function(a){return J(s),ee(r.onInputKeyPress(a))})("paste",function(a){return J(s),ee(r.onPaste(a))})("click",function(){return J(s),ee(r.onInputClick())})("focus",function(a){return J(s),ee(r.onInputFocus(a))})("blur",function(a){return J(s),ee(r.onInputBlur(a))}),O(),N(3,NK,3,2,"ng-container",3)(4,KK,7,19,"span",4)(5,eY,3,9,"button",5)(6,oY,3,9,"button",5),O()}i&2&&(be(r.styleClass),b("ngClass",fi(39,FK,r.showButtons&&r.buttonLayout==="stacked",r.showButtons&&r.buttonLayout==="horizontal",r.showButtons&&r.buttonLayout==="vertical"))("ngStyle",r.style),ne("data-pc-name","inputnumber")("data-pc-section","root"),C(),be(r.inputStyleClass),Xn("p-variant-filled",r.variant==="filled"||r.config.inputStyle()==="filled"),b("ngClass","p-inputnumber-input")("ngStyle",r.inputStyle)("value",r.formattedValue())("disabled",r.disabled)("readonly",r.readonly)("autofocus",r.autofocus),ne("id",r.inputId)("variant",r.variant)("aria-valuemin",r.min)("aria-valuemax",r.max)("aria-valuenow",r.value)("placeholder",r.placeholder)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy)("title",r.title)("size",r.size)("name",r.name)("autocomplete",r.autocomplete)("maxlength",r.maxlength)("tabindex",r.tabindex)("aria-required",r.ariaRequired)("required",r.required)("min",r.min)("max",r.max)("data-pc-section","input"),C(2),b("ngIf",r.buttonLayout!="vertical"&&r.showClear&&r.value),C(),b("ngIf",r.showButtons&&r.buttonLayout==="stacked"),C(),b("ngIf",r.showButtons&&r.buttonLayout!=="stacked"),C(),b("ngIf",r.showButtons&&r.buttonLayout!=="stacked"))},dependencies:()=>[zt,Ut,qt,Bt,_M,fs,Er,si,Mx,kx],styles:[`@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}
`],encapsulation:2,changeDetection:0})}return t})(),xd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,P0,Oi,ds,si,Mx,kx,Nt]})}return t})();var Fx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Px=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Ox=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Rx=(()=>{class t extends Qe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})();static \u0275cmp=me({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[We,Me],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(i,r){i&1&&(Ze(),P(0,"svg",0),re(1,"path",1),O()),i&2&&(be(r.getClassNames()),ne("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var O0=t=>({"p-disabled":t}),R0=t=>({$implicit:t}),cY=t=>({"p-highlight":t});function uY(t,n){t&1&&Re(0)}function dY(t,n){if(t&1&&(P(0,"div",15),N(1,uY,1,0,"ng-container",16),O()),t&2){let e=I(2);ne("data-pc-section","start"),C(),b("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",Xe(3,R0,e.paginatorState))}}function fY(t,n){if(t&1&&(P(0,"span",17),Te(1),O()),t&2){let e=I(2);C(),yt(e.currentPageReport)}}function hY(t,n){t&1&&re(0,"AngleDoubleLeftIcon",19),t&2&&b("styleClass","p-paginator-icon")}function pY(t,n){}function mY(t,n){t&1&&N(0,pY,0,0,"ng-template")}function gY(t,n){if(t&1&&(P(0,"span",20),N(1,mY,1,0,null,21),O()),t&2){let e=I(3);C(),b("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}function vY(t,n){if(t&1){let e=He();P(0,"button",18),ye("click",function(r){J(e);let s=I(2);return ee(s.changePageToFirst(r))}),N(1,hY,1,1,"AngleDoubleLeftIcon",6)(2,gY,2,1,"span",7),O()}if(t&2){let e=I(2);b("disabled",e.isFirstPage()||e.empty())("ngClass",Xe(5,O0,e.isFirstPage()||e.empty())),ne("aria-label",e.getAriaLabel("firstPageLabel")),C(),b("ngIf",!e.firstPageLinkIconTemplate),C(),b("ngIf",e.firstPageLinkIconTemplate)}}function _Y(t,n){t&1&&re(0,"AngleLeftIcon",19),t&2&&b("styleClass","p-paginator-icon")}function yY(t,n){}function xY(t,n){t&1&&N(0,yY,0,0,"ng-template")}function bY(t,n){if(t&1&&(P(0,"span",20),N(1,xY,1,0,null,21),O()),t&2){let e=I(2);C(),b("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}function wY(t,n){if(t&1){let e=He();P(0,"button",24),ye("click",function(r){let s=J(e).$implicit,o=I(3);return ee(o.onPageLinkClick(r,s-1))}),Te(1),O()}if(t&2){let e=n.$implicit,i=I(3);b("ngClass",Xe(4,cY,e-1==i.getPage())),ne("aria-label",i.getPageAriaLabel(e))("aria-current",e-1==i.getPage()?"page":void 0),C(),Vt(" ",i.getLocalization(e)," ")}}function CY(t,n){if(t&1&&(P(0,"span",22),N(1,wY,2,6,"button",23),O()),t&2){let e=I(2);C(),b("ngForOf",e.pageLinks)}}function SY(t,n){if(t&1&&Te(0),t&2){let e=I(3);yt(e.currentPageReport)}}function EY(t,n){t&1&&Re(0)}function TY(t,n){if(t&1&&N(0,EY,1,0,"ng-container",16),t&2){let e=n.$implicit,i=I(4);b("ngTemplateOutlet",i.jumpToPageItemTemplate)("ngTemplateOutletContext",Xe(2,R0,e))}}function IY(t,n){t&1&&(Fe(0),N(1,TY,1,4,"ng-template",28),Pe())}function DY(t,n){t&1&&Re(0)}function kY(t,n){if(t&1&&N(0,DY,1,0,"ng-container",21),t&2){let e=I(4);b("ngTemplateOutlet",e.dropdownIconTemplate)}}function MY(t,n){t&1&&N(0,kY,1,1,"ng-template",29)}function AY(t,n){if(t&1){let e=He();P(0,"p-dropdown",25),ye("onChange",function(r){J(e);let s=I(2);return ee(s.onPageDropdownChange(r))}),N(1,SY,1,1,"ng-template",26)(2,IY,2,0,"ng-container",27)(3,MY,1,0,null,27),O()}if(t&2){let e=I(2);b("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),ne("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),C(2),b("ngIf",e.jumpToPageItemTemplate),C(),b("ngIf",e.dropdownIconTemplate)}}function FY(t,n){t&1&&re(0,"AngleRightIcon",19),t&2&&b("styleClass","p-paginator-icon")}function PY(t,n){}function OY(t,n){t&1&&N(0,PY,0,0,"ng-template")}function RY(t,n){if(t&1&&(P(0,"span",20),N(1,OY,1,0,null,21),O()),t&2){let e=I(2);C(),b("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function LY(t,n){t&1&&re(0,"AngleDoubleRightIcon",19),t&2&&b("styleClass","p-paginator-icon")}function NY(t,n){}function VY(t,n){t&1&&N(0,NY,0,0,"ng-template")}function BY(t,n){if(t&1&&(P(0,"span",20),N(1,VY,1,0,null,21),O()),t&2){let e=I(3);C(),b("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function HY(t,n){if(t&1){let e=He();P(0,"button",30),ye("click",function(r){J(e);let s=I(2);return ee(s.changePageToLast(r))}),N(1,LY,1,1,"AngleDoubleRightIcon",6)(2,BY,2,1,"span",7),O()}if(t&2){let e=I(2);b("disabled",e.isLastPage()||e.empty())("ngClass",Xe(5,O0,e.isLastPage()||e.empty())),ne("aria-label",e.getAriaLabel("lastPageLabel")),C(),b("ngIf",!e.lastPageLinkIconTemplate),C(),b("ngIf",e.lastPageLinkIconTemplate)}}function zY(t,n){if(t&1){let e=He();P(0,"p-inputNumber",31),ye("ngModelChange",function(r){J(e);let s=I(2);return ee(s.changePage(r-1))}),O()}if(t&2){let e=I(2);b("ngModel",e.currentPage())("disabled",e.empty())}}function jY(t,n){t&1&&Re(0)}function UY(t,n){if(t&1&&N(0,jY,1,0,"ng-container",16),t&2){let e=n.$implicit,i=I(4);b("ngTemplateOutlet",i.dropdownItemTemplate)("ngTemplateOutletContext",Xe(2,R0,e))}}function WY(t,n){t&1&&(Fe(0),N(1,UY,1,4,"ng-template",28),Pe())}function $Y(t,n){t&1&&Re(0)}function GY(t,n){if(t&1&&N(0,$Y,1,0,"ng-container",21),t&2){let e=I(4);b("ngTemplateOutlet",e.dropdownIconTemplate)}}function qY(t,n){t&1&&N(0,GY,1,1,"ng-template",29)}function KY(t,n){if(t&1){let e=He();P(0,"p-dropdown",32),Rs("ngModelChange",function(r){J(e);let s=I(2);return yo(s.rows,r)||(s.rows=r),ee(r)}),ye("onChange",function(r){J(e);let s=I(2);return ee(s.onRppChange(r))}),N(1,WY,2,0,"ng-container",27)(2,qY,1,0,null,27),O()}if(t&2){let e=I(2);b("options",e.rowsPerPageItems),Os("ngModel",e.rows),b("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel")),C(),b("ngIf",e.dropdownItemTemplate),C(),b("ngIf",e.dropdownIconTemplate)}}function YY(t,n){t&1&&Re(0)}function XY(t,n){if(t&1&&(P(0,"div",33),N(1,YY,1,0,"ng-container",16),O()),t&2){let e=I(2);ne("data-pc-section","end"),C(),b("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",Xe(3,R0,e.paginatorState))}}function ZY(t,n){if(t&1){let e=He();P(0,"div",1),N(1,dY,2,5,"div",2)(2,fY,2,1,"span",3)(3,vY,3,7,"button",4),P(4,"button",5),ye("click",function(r){J(e);let s=I();return ee(s.changePageToPrev(r))}),N(5,_Y,1,1,"AngleLeftIcon",6)(6,bY,2,1,"span",7),O(),N(7,CY,2,1,"span",8)(8,AY,4,8,"p-dropdown",9),P(9,"button",10),ye("click",function(r){J(e);let s=I();return ee(s.changePageToNext(r))}),N(10,FY,1,1,"AngleRightIcon",6)(11,RY,2,1,"span",7),O(),N(12,HY,3,7,"button",11)(13,zY,1,2,"p-inputNumber",12)(14,KY,3,8,"p-dropdown",13)(15,XY,2,5,"div",14),O()}if(t&2){let e=I();be(e.styleClass),b("ngStyle",e.style)("ngClass","p-paginator p-component"),ne("data-pc-section","paginator")("data-pc-section","root"),C(),b("ngIf",e.templateLeft),C(),b("ngIf",e.showCurrentPageReport),C(),b("ngIf",e.showFirstLastIcon),C(),b("disabled",e.isFirstPage()||e.empty())("ngClass",Xe(25,O0,e.isFirstPage()||e.empty())),ne("aria-label",e.getAriaLabel("prevPageLabel")),C(),b("ngIf",!e.previousPageLinkIconTemplate),C(),b("ngIf",e.previousPageLinkIconTemplate),C(),b("ngIf",e.showPageLinks),C(),b("ngIf",e.showJumpToPageDropdown),C(),b("disabled",e.isLastPage()||e.empty())("ngClass",Xe(27,O0,e.isLastPage()||e.empty())),ne("aria-label",e.getAriaLabel("nextPageLabel")),C(),b("ngIf",!e.nextPageLinkIconTemplate),C(),b("ngIf",e.nextPageLinkIconTemplate),C(),b("ngIf",e.showFirstLastIcon),C(),b("ngIf",e.showJumpToPageInput),C(),b("ngIf",e.rowsPerPageOptions),C(),b("ngIf",e.templateRight)}}var bM=(()=>{class t{cd;config;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ve;templates;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e,i){this.cd=e,this.config=i}ngOnInit(){this.updatePaginatorState()}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(i.map((s,o)=>[o,s]));return e>9?String(e).split("").map(o=>r.get(Number(o))).join(""):r.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template;break}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)typeof e=="object"&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),s=Math.min(e-1,r+i-1);var o=this.pageLinkSize-(s-r+1);return r=Math.max(0,r-o),[r,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),i=e[0],r=e[1];for(let s=i;s<=r;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s<this.getPageCount();s++)this.pageItems.push({label:String(s+1),value:s})}}changePage(e){var i=this.getPageCount();if(e>=0&&e<i){this._first=this.rows*e;var r={page:e,first:this.first,rows:this.rows,pageCount:i};this.updatePageLinks(),this.onPageChange.emit(r),this.updatePaginatorState()}}updateFirst(){let e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||t)(se(Lt),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-paginator"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:[Z.HasDecoratorInputTransform,"pageLinkSize","pageLinkSize",Je],style:"style",styleClass:"styleClass",alwaysShow:[Z.HasDecoratorInputTransform,"alwaysShow","alwaysShow",oe],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[Z.HasDecoratorInputTransform,"showCurrentPageReport","showCurrentPageReport",oe],showFirstLastIcon:[Z.HasDecoratorInputTransform,"showFirstLastIcon","showFirstLastIcon",oe],totalRecords:[Z.HasDecoratorInputTransform,"totalRecords","totalRecords",Je],rows:[Z.HasDecoratorInputTransform,"rows","rows",Je],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[Z.HasDecoratorInputTransform,"showJumpToPageDropdown","showJumpToPageDropdown",oe],showJumpToPageInput:[Z.HasDecoratorInputTransform,"showJumpToPageInput","showJumpToPageInput",oe],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[Z.HasDecoratorInputTransform,"showPageLinks","showPageLinks",oe],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Et,xn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"click","disabled","ngClass"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"click","ngClass"],["styleClass","p-paginator-page-options",3,"onChange","options","ngModel","disabled","appendTo","scrollHeight"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"click","disabled","ngClass"],[1,"p-paginator-page-input",3,"ngModelChange","ngModel","disabled"],["styleClass","p-paginator-rpp-options",3,"ngModelChange","onChange","options","ngModel","disabled","appendTo","scrollHeight","ariaLabel"],[1,"p-paginator-right-content"]],template:function(i,r){i&1&&N(0,ZY,16,29,"div",0),i&2&&b("ngIf",r.alwaysShow?!0:r.pageLinks&&r.pageLinks.length>1)},dependencies:()=>[zt,wi,Ut,qt,Bt,Cx,Mt,Ax,ql,Gu,Gi,Fx,Px,Ox,Rx],styles:[`@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}
`],encapsulation:2,changeDetection:0})}return t})(),wM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,yd,xd,Ta,Nt,Sr,Fx,Px,Ox,Rx,yd,xd,Ta,Nt]})}return t})();var JY=["container"],eX=(t,n,e)=>({"p-highlight":t,"p-disabled":n,"p-button-icon-only":e}),tX=(t,n)=>({$implicit:t,index:n});function nX(t,n){if(t&1&&re(0,"span",8),t&2){let e=I(2).$implicit;be(e.icon),b("ngClass","p-button-icon p-button-icon-left"),ne("data-pc-section","icon")}}function iX(t,n){if(t&1&&(Fe(0),N(1,nX,1,4,"span",6),P(2,"span",7),Te(3),O(),Pe()),t&2){let e=I().$implicit,i=I();C(),b("ngIf",e.icon),C(),ne("data-pc-section","label"),C(),yt(i.getOptionLabel(e))}}function rX(t,n){t&1&&Re(0)}function sX(t,n){if(t&1&&N(0,rX,1,0,"ng-container",9),t&2){let e=I(),i=e.$implicit,r=e.index,s=I();b("ngTemplateOutlet",s.selectButtonTemplate)("ngTemplateOutletContext",Zt(2,tX,i,r))}}function oX(t,n){if(t&1){let e=He();P(0,"div",4),ye("click",function(r){let s=J(e),o=s.$implicit,a=s.index,l=I();return ee(l.onOptionSelect(r,o,a))})("keydown",function(r){let s=J(e),o=s.$implicit,a=s.index,l=I();return ee(l.onKeyDown(r,o,a))})("focus",function(r){let s=J(e).index,o=I();return ee(o.onFocus(r,s))})("blur",function(){J(e);let r=I();return ee(r.onBlur())}),N(1,iX,4,3,"ng-container",5)(2,sX,1,5,"ng-template",null,1,ei),O()}if(t&2){let e=n.$implicit,i=n.index,r=mn(3),s=I();be(e.styleClass),b("role",s.multiple?"checkbox":"radio")("ngClass",fi(14,eX,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e)))("autofocus",s.autofocus),ne("tabindex",i===s.focusedIndex&&!s.disabled?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),C(),b("ngIf",!s.itemTemplate)("ngIfElse",r)}}var aX={provide:hi,useExisting:Dn(()=>lX),multi:!0},lX=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;autofocus;onOptionClick=new ve;onChange=new ve;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?Se.resolveFieldData(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Se.resolveFieldData(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?Se.resolveFieldData(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,i,r){if(this.disabled||this.isOptionDisabled(i))return;let s=this.isSelected(i);if(s&&this.unselectable)return;let o=this.getOptionValue(i),a;if(this.multiple)s?a=this.value.filter(l=>!Se.equals(l,o,this.equalityKey)):a=this.value?[...this.value,o]:[o];else{if(s&&!this.allowEmpty)return;a=s?null:o}this.focusedIndex=r,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:i,index:r})}onKeyDown(e,i,r){switch(e.code){case"Space":{this.onOptionSelect(e,i,r),e.preventDefault();break}case"ArrowDown":case"ArrowRight":{this.changeTabIndexes(e,"next"),e.preventDefault();break}case"ArrowUp":case"ArrowLeft":{this.changeTabIndexes(e,"prev"),e.preventDefault();break}default:break}}changeTabIndexes(e,i){let r,s;for(let o=0;o<=this.container.nativeElement.children.length-1;o++)this.container.nativeElement.children[o].getAttribute("tabindex")==="0"&&(r={elem:this.container.nativeElement.children[o],index:o});i==="prev"?r.index===0?s=this.container.nativeElement.children.length-1:s=r.index-1:r.index===this.container.nativeElement.children.length-1?s=0:s=r.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,i){this.focusedIndex=i}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!Se.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let s of this.value)if(Se.equals(s,r,this.dataKey)){i=!0;break}}}else i=Se.equals(this.getOptionValue(e),this.value,this.equalityKey);return i}static \u0275fac=function(i){return new(i||t)(se(Lt))};static \u0275cmp=me({type:t,selectors:[["p-selectButton"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,5),i&2){let o;qe(o=Ke())&&(r.itemTemplate=o.first)}},viewQuery:function(i,r){if(i&1&&vt(JY,5),i&2){let s;qe(s=Ke())&&(r.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[Z.HasDecoratorInputTransform,"unselectable","unselectable",oe],tabindex:[Z.HasDecoratorInputTransform,"tabindex","tabindex",Je],multiple:[Z.HasDecoratorInputTransform,"multiple","multiple",oe],allowEmpty:[Z.HasDecoratorInputTransform,"allowEmpty","allowEmpty",oe],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:[Z.HasDecoratorInputTransform,"disabled","disabled",oe],dataKey:"dataKey",autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[kn([aX]),Et],decls:3,vars:8,consts:[["container",""],["customcontent",""],["role","group",3,"ngClass","ngStyle"],["pRipple","","class","p-button p-component","pAutoFocus","",3,"role","class","ngClass","autofocus","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","","pAutoFocus","",1,"p-button","p-component",3,"click","keydown","focus","blur","role","ngClass","autofocus"],[4,"ngIf","ngIfElse"],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(P(0,"div",2,0),N(2,oX,4,18,"div",3),O()),i&2&&(be(r.styleClass),b("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",r.style),ne("aria-labelledby",r.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),C(2),b("ngForOf",r.options))},dependencies:[zt,wi,Ut,qt,Bt,Gi,Er],styles:[`@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}
`],encapsulation:2,changeDetection:0})}return t})(),CM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Sr,Nt,ds,Nt]})}return t})();var cX=(t,n,e)=>({"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":n,"p-variant-filled":e}),uX=(t,n,e)=>({"p-highlight":t,"p-disabled":n,"p-focus":e}),dX=(t,n,e)=>({"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e});function fX(t,n){if(t&1&&re(0,"span",8),t&2){let e=I(2);b("ngClass",e.checkboxTrueIcon),ne("data-pc-section","checkIcon")}}function hX(t,n){t&1&&re(0,"CheckIcon",11),t&2&&(b("styleClass","p-checkbox-icon"),ne("data-pc-section","checkIcon"))}function pX(t,n){}function mX(t,n){t&1&&N(0,pX,0,0,"ng-template")}function gX(t,n){if(t&1&&(P(0,"span",12),N(1,mX,1,0,null,13),O()),t&2){let e=I(3);ne("data-pc-section","checkIcon"),C(),b("ngTemplateOutlet",e.checkIconTemplate)}}function vX(t,n){if(t&1&&(Fe(0),N(1,hX,1,2,"CheckIcon",9)(2,gX,2,2,"span",10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.checkIconTemplate),C(),b("ngIf",e.checkIconTemplate)}}function _X(t,n){if(t&1&&(Fe(0),N(1,fX,1,2,"span",7)(2,vX,3,2,"ng-container",5),Pe()),t&2){let e=I();C(),b("ngIf",e.checkboxTrueIcon),C(),b("ngIf",!e.checkboxTrueIcon)}}function yX(t,n){if(t&1&&re(0,"span",8),t&2){let e=I(2);b("ngClass",e.checkboxFalseIcon),ne("data-pc-section","uncheckIcon")}}function xX(t,n){t&1&&re(0,"TimesIcon",11),t&2&&(b("styleClass","p-checkbox-icon"),ne("data-pc-section","uncheckIcon"))}function bX(t,n){}function wX(t,n){t&1&&N(0,bX,0,0,"ng-template")}function CX(t,n){if(t&1&&(P(0,"span",12),N(1,wX,1,0,null,13),O()),t&2){let e=I(3);ne("data-pc-section","uncheckIcon"),C(),b("ngTemplateOutlet",e.uncheckIconTemplate)}}function SX(t,n){if(t&1&&(Fe(0),N(1,xX,1,2,"TimesIcon",9)(2,CX,2,2,"span",10),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.uncheckIconTemplate),C(),b("ngIf",e.uncheckIconTemplate)}}function EX(t,n){if(t&1&&(Fe(0),N(1,yX,1,2,"span",7)(2,SX,3,2,"ng-container",5),Pe()),t&2){let e=I();C(),b("ngIf",e.checkboxFalseIcon),C(),b("ngIf",!e.checkboxFalseIcon)}}function TX(t,n){if(t&1){let e=He();P(0,"label",14),ye("click",function(r){J(e);let s=I(),o=mn(3);return ee(s.onClick(r,o))}),Te(1),O()}if(t&2){let e=I();b("ngClass",fi(3,dX,e.value!=null,e.disabled,e.focused)),ne("for",e.inputId),C(),yt(e.label)}}var IX={provide:hi,useExisting:Dn(()=>DX),multi:!0},DX=(()=>{class t{cd;config;constructor(e,i){this.cd=e,this.config=i}disabled;name;ariaLabel;ariaLabelledBy;variant="outlined";tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;autofocus;onChange=new ve;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,i){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,i.focus())}onKeyDown(e){e.key==="Enter"&&(this.toggle(e),e.preventDefault())}toggle(e){this.value==null||this.value==null?this.value=!0:this.value==!0?this.value=!1:this.value==!1&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template;break}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(se(Lt),se(vn))};static \u0275cmp=me({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},hostAttrs:[1,"p-element"],inputs:{disabled:[Z.HasDecoratorInputTransform,"disabled","disabled",oe],name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",variant:"variant",tabindex:[Z.HasDecoratorInputTransform,"tabindex","tabindex",Je],inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:[Z.HasDecoratorInputTransform,"readonly","readonly",oe],checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon",autofocus:[Z.HasDecoratorInputTransform,"autofocus","autofocus",oe]},outputs:{onChange:"onChange"},features:[kn([IX]),Et],decls:8,vars:28,consts:[["input",""],[3,"click","ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none","pAutoFocus","",3,"keydown","focus","blur","name","readonly","disabled","autofocus"],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"click","ngClass"]],template:function(i,r){if(i&1){let s=He();P(0,"div",1),ye("click",function(a){J(s);let l=mn(3);return ee(r.onClick(a,l))}),P(1,"div",2)(2,"input",3,0),ye("keydown",function(a){return J(s),ee(r.onKeyDown(a))})("focus",function(){return J(s),ee(r.onFocus())})("blur",function(){return J(s),ee(r.onBlur())}),O()(),P(4,"div",4),N(5,_X,3,2,"ng-container",5)(6,EX,3,2,"ng-container",5),O()(),N(7,TX,2,7,"label",6)}i&2&&(be(r.styleClass),b("ngStyle",r.style)("ngClass",fi(20,cX,r.disabled,r.focused,r.variant==="filled"||r.config.inputStyle()==="filled")),ne("data-pc-name","tristatecheckbox")("data-pc-section","root"),C(2),b("name",r.name)("readonly",r.readonly)("disabled",r.disabled)("autofocus",r.autofocus),ne("id",r.inputId)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("data-pc-section","hiddenInput"),C(2),b("ngClass",fi(24,uX,r.value!=null,r.disabled,r.focused)),ne("aria-checked",r.value===!0),C(),b("ngIf",r.value===!0),C(),b("ngIf",r.value===!1),C(),b("ngIf",r.label))},dependencies:()=>[zt,Ut,qt,Bt,Er,$r,si],encapsulation:2,changeDetection:0})}return t})(),SM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Nt,ds,$r,si,Nt]})}return t})();var kX=["container"],MX=["resizeHelper"],AX=["reorderIndicatorUp"],FX=["reorderIndicatorDown"],PX=["wrapper"],OX=["table"],RX=["thead"],LX=["tfoot"],NX=["scroller"],VX=(t,n,e)=>({"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":n,"p-datatable-flex-scrollable":e}),BX=t=>({maxHeight:t}),EM=t=>({height:t}),TM=(t,n)=>({$implicit:t,options:n}),HX=t=>({columns:t}),zX=(t,n,e)=>({"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":n,"p-datatable-resizable-table-fit":e}),L0=t=>({$implicit:t}),Nx=()=>({display:"none"});function jX(t,n){if(t&1&&re(0,"i"),t&2){let e=I(2);be("p-datatable-loading-icon "+e.loadingIcon)}}function UX(t,n){t&1&&re(0,"SpinnerIcon",25),t&2&&b("spin",!0)("styleClass","p-datatable-loading-icon")}function WX(t,n){}function $X(t,n){t&1&&N(0,WX,0,0,"ng-template")}function GX(t,n){if(t&1&&(P(0,"span",26),N(1,$X,1,0,null,27),O()),t&2){let e=I(3);C(),b("ngTemplateOutlet",e.loadingIconTemplate)}}function qX(t,n){if(t&1&&(Fe(0),N(1,UX,1,2,"SpinnerIcon",23)(2,GX,2,1,"span",24),Pe()),t&2){let e=I(2);C(),b("ngIf",!e.loadingIconTemplate),C(),b("ngIf",e.loadingIconTemplate)}}function KX(t,n){if(t&1&&(P(0,"div",21),N(1,jX,1,2,"i",22)(2,qX,3,2,"ng-container",16),O()),t&2){let e=I();C(),b("ngIf",e.loadingIcon),C(),b("ngIf",!e.loadingIcon)}}function YX(t,n){t&1&&Re(0)}function XX(t,n){if(t&1&&(P(0,"div",28),N(1,YX,1,0,"ng-container",27),O()),t&2){let e=I();C(),b("ngTemplateOutlet",e.captionTemplate)}}function ZX(t,n){t&1&&Re(0)}function QX(t,n){if(t&1&&N(0,ZX,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorDropdownIconTemplate)}}function JX(t,n){t&1&&N(0,QX,1,1,"ng-template",30)}function eZ(t,n){t&1&&Re(0)}function tZ(t,n){if(t&1&&N(0,eZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate)}}function nZ(t,n){t&1&&N(0,tZ,1,1,"ng-template",31)}function iZ(t,n){t&1&&Re(0)}function rZ(t,n){if(t&1&&N(0,iZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate)}}function sZ(t,n){t&1&&N(0,rZ,1,1,"ng-template",32)}function oZ(t,n){t&1&&Re(0)}function aZ(t,n){if(t&1&&N(0,oZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate)}}function lZ(t,n){t&1&&N(0,aZ,1,1,"ng-template",33)}function cZ(t,n){t&1&&Re(0)}function uZ(t,n){if(t&1&&N(0,cZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate)}}function dZ(t,n){t&1&&N(0,uZ,1,1,"ng-template",34)}function fZ(t,n){if(t&1){let e=He();P(0,"p-paginator",29),ye("onPageChange",function(r){J(e);let s=I();return ee(s.onPageChange(r))}),N(1,JX,1,0,null,16)(2,nZ,1,0,null,16)(3,sZ,1,0,null,16)(4,lZ,1,0,null,16)(5,dZ,1,0,null,16),O()}if(t&2){let e=I();b("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.getPaginatorStyleClasses("p-paginator-top"))("locale",e.paginatorLocale),C(),b("ngIf",e.paginatorDropdownIconTemplate),C(),b("ngIf",e.paginatorFirstPageLinkIconTemplate),C(),b("ngIf",e.paginatorPreviousPageLinkIconTemplate),C(),b("ngIf",e.paginatorLastPageLinkIconTemplate),C(),b("ngIf",e.paginatorNextPageLinkIconTemplate)}}function hZ(t,n){t&1&&Re(0)}function pZ(t,n){if(t&1&&N(0,hZ,1,0,"ng-container",37),t&2){let e=n.$implicit,i=n.options;I(2);let r=mn(10);b("ngTemplateOutlet",r)("ngTemplateOutletContext",Zt(2,TM,e,i))}}function mZ(t,n){if(t&1){let e=He();P(0,"p-scroller",35,3),ye("onLazyLoad",function(r){J(e);let s=I();return ee(s.onLazyItemLoad(r))}),N(2,pZ,1,5,"ng-template",36),O()}if(t&2){let e=I();fa(Xe(15,EM,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),b("items",e.processedData)("columns",e.columns)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("autoSize",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)}}function gZ(t,n){t&1&&Re(0)}function vZ(t,n){if(t&1&&(Fe(0),N(1,gZ,1,0,"ng-container",37),Pe()),t&2){let e=I(),i=mn(10);C(),b("ngTemplateOutlet",i)("ngTemplateOutletContext",Zt(4,TM,e.processedData,Xe(2,HX,e.columns)))}}function _Z(t,n){t&1&&Re(0)}function yZ(t,n){t&1&&Re(0)}function xZ(t,n){if(t&1&&re(0,"tbody",44),t&2){let e=I().options,i=I();b("value",i.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",i.frozenBodyTemplate)("frozen",!0)}}function bZ(t,n){if(t&1&&re(0,"tbody",45),t&2){let e=I().options;b("ngStyle",Xe(1,EM,"calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px)"))}}function wZ(t,n){t&1&&Re(0)}function CZ(t,n){if(t&1&&(P(0,"tfoot",46,6),N(2,wZ,1,0,"ng-container",37),O()),t&2){let e=I().options,i=I();C(2),b("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate)("ngTemplateOutletContext",Xe(2,L0,e.columns))}}function SZ(t,n){if(t&1&&(P(0,"table",38,4),N(2,_Z,1,0,"ng-container",37),P(3,"thead",39,5),N(5,yZ,1,0,"ng-container",37),O(),N(6,xZ,1,5,"tbody",40),re(7,"tbody",41),N(8,bZ,1,3,"tbody",42)(9,CZ,3,4,"tfoot",43),O()),t&2){let e=n.options,i=I();be(i.tableStyleClass),b("ngClass",fi(18,zX,i.scrollable,i.resizableColumns,i.resizableColumns&&i.columnResizeMode==="fit"))("ngStyle",i.tableStyle),ne("id",i.id+"-table"),C(2),b("ngTemplateOutlet",i.colGroupTemplate)("ngTemplateOutletContext",Xe(22,L0,e.columns)),C(3),b("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate)("ngTemplateOutletContext",Xe(24,L0,e.columns)),C(),b("ngIf",i.frozenValue||i.frozenBodyTemplate),C(),b("ngClass",e.contentStyleClass)("ngStyle",e.contentStyle)("value",i.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",i.bodyTemplate)("scrollerOptions",e),C(),b("ngIf",e.spacerStyle),C(),b("ngIf",i.footerGroupedTemplate||i.footerTemplate)}}function EZ(t,n){t&1&&Re(0)}function TZ(t,n){if(t&1&&N(0,EZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorDropdownIconTemplate)}}function IZ(t,n){t&1&&N(0,TZ,1,1,"ng-template",30)}function DZ(t,n){t&1&&Re(0)}function kZ(t,n){if(t&1&&N(0,DZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate)}}function MZ(t,n){t&1&&N(0,kZ,1,1,"ng-template",31)}function AZ(t,n){t&1&&Re(0)}function FZ(t,n){if(t&1&&N(0,AZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate)}}function PZ(t,n){t&1&&N(0,FZ,1,1,"ng-template",32)}function OZ(t,n){t&1&&Re(0)}function RZ(t,n){if(t&1&&N(0,OZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate)}}function LZ(t,n){t&1&&N(0,RZ,1,1,"ng-template",33)}function NZ(t,n){t&1&&Re(0)}function VZ(t,n){if(t&1&&N(0,NZ,1,0,"ng-container",27),t&2){let e=I(3);b("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate)}}function BZ(t,n){t&1&&N(0,VZ,1,1,"ng-template",34)}function HZ(t,n){if(t&1){let e=He();P(0,"p-paginator",29),ye("onPageChange",function(r){J(e);let s=I();return ee(s.onPageChange(r))}),N(1,IZ,1,0,null,16)(2,MZ,1,0,null,16)(3,PZ,1,0,null,16)(4,LZ,1,0,null,16)(5,BZ,1,0,null,16),O()}if(t&2){let e=I();b("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.getPaginatorStyleClasses("p-paginator-bottom"))("locale",e.paginatorLocale),C(),b("ngIf",e.paginatorDropdownIconTemplate),C(),b("ngIf",e.paginatorFirstPageLinkIconTemplate),C(),b("ngIf",e.paginatorPreviousPageLinkIconTemplate),C(),b("ngIf",e.paginatorLastPageLinkIconTemplate),C(),b("ngIf",e.paginatorNextPageLinkIconTemplate)}}function zZ(t,n){t&1&&Re(0)}function jZ(t,n){if(t&1&&(P(0,"div",47),N(1,zZ,1,0,"ng-container",27),O()),t&2){let e=I();C(),b("ngTemplateOutlet",e.summaryTemplate)}}function UZ(t,n){t&1&&re(0,"div",48,7),t&2&&b("ngStyle",Bn(1,Nx))}function WZ(t,n){t&1&&re(0,"ArrowDownIcon")}function $Z(t,n){}function GZ(t,n){t&1&&N(0,$Z,0,0,"ng-template")}function qZ(t,n){if(t&1&&(P(0,"span",49,8),N(2,WZ,1,0,"ArrowDownIcon",16)(3,GZ,1,0,null,27),O()),t&2){let e=I();b("ngStyle",Bn(3,Nx)),C(2),b("ngIf",!e.reorderIndicatorUpIconTemplate),C(),b("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function KZ(t,n){t&1&&re(0,"ArrowUpIcon")}function YZ(t,n){}function XZ(t,n){t&1&&N(0,YZ,0,0,"ng-template")}function ZZ(t,n){if(t&1&&(P(0,"span",50,9),N(2,KZ,1,0,"ArrowUpIcon",16)(3,XZ,1,0,null,27),O()),t&2){let e=I();b("ngStyle",Bn(3,Nx)),C(2),b("ngIf",!e.reorderIndicatorDownIconTemplate),C(),b("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}var QZ=["pTableBody",""],Vx=(t,n,e,i,r)=>({$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r}),JZ=(t,n,e,i,r,s,o)=>({$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r,rowgroup:s,rowspan:o}),N0=(t,n,e,i,r,s)=>({$implicit:t,rowIndex:n,columns:e,expanded:i,editing:r,frozen:s}),IM=(t,n,e,i)=>({$implicit:t,rowIndex:n,columns:e,frozen:i}),DM=(t,n)=>({$implicit:t,frozen:n});function eQ(t,n){t&1&&Re(0)}function tQ(t,n){if(t&1&&(Fe(0,3),N(1,eQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Dl(2,Vx,i,s.getRowIndex(r),s.columns,s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen))}}function nQ(t,n){t&1&&Re(0)}function iQ(t,n){if(t&1&&(Fe(0),N(1,nQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",i?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Dl(2,Vx,i,s.getRowIndex(r),s.columns,s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen))}}function rQ(t,n){t&1&&Re(0)}function sQ(t,n){if(t&1&&(Fe(0),N(1,rQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",i?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",NS(2,JZ,i,s.getRowIndex(r),s.columns,s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen,s.shouldRenderRowspan(s.value,i,r),s.calculateRowGroupSize(s.value,i,r)))}}function oQ(t,n){t&1&&Re(0)}function aQ(t,n){if(t&1&&(Fe(0,3),N(1,oQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Dl(2,Vx,i,s.getRowIndex(r),s.columns,s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen))}}function lQ(t,n){if(t&1&&N(0,tQ,2,8,"ng-container",2)(1,iQ,2,8,"ng-container",0)(2,sQ,2,10,"ng-container",0)(3,aQ,2,8,"ng-container",2),t&2){let e=n.$implicit,i=n.index,r=I(2);b("ngIf",r.dt.groupHeaderTemplate&&!r.dt.virtualScroll&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupHeader(r.value,e,r.getRowIndex(i))),C(),b("ngIf",r.dt.rowGroupMode!=="rowspan"),C(),b("ngIf",r.dt.rowGroupMode==="rowspan"),C(),b("ngIf",r.dt.groupFooterTemplate&&!r.dt.virtualScroll&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupFooter(r.value,e,i))}}function cQ(t,n){if(t&1&&(Fe(0),N(1,lQ,4,4,"ng-template",1),Pe()),t&2){let e=I();C(),b("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function uQ(t,n){t&1&&Re(0)}function dQ(t,n){if(t&1&&(Fe(0),N(1,uQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ma(2,N0,i,s.getRowIndex(r),s.columns,s.dt.isRowExpanded(i),s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen))}}function fQ(t,n){t&1&&Re(0)}function hQ(t,n){if(t&1&&(Fe(0,3),N(1,fQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ma(2,N0,i,s.getRowIndex(r),s.columns,s.dt.isRowExpanded(i),s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen))}}function pQ(t,n){t&1&&Re(0)}function mQ(t,n){t&1&&Re(0)}function gQ(t,n){if(t&1&&(Fe(0,3),N(1,mQ,1,0,"ng-container",4),Pe()),t&2){let e=I(2),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ma(2,N0,i,s.getRowIndex(r),s.columns,s.dt.isRowExpanded(i),s.dt.editMode==="row"&&s.dt.isRowEditing(i),s.frozen))}}function vQ(t,n){if(t&1&&(Fe(0),N(1,pQ,1,0,"ng-container",4)(2,gQ,2,9,"ng-container",2),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",pa(3,IM,i,s.getRowIndex(r),s.columns,s.frozen)),C(),b("ngIf",s.dt.groupFooterTemplate&&s.dt.rowGroupMode==="subheader"&&s.shouldRenderRowGroupFooter(s.value,i,s.getRowIndex(r)))}}function _Q(t,n){if(t&1&&N(0,dQ,2,9,"ng-container",0)(1,hQ,2,9,"ng-container",2)(2,vQ,3,8,"ng-container",0),t&2){let e=n.$implicit,i=n.index,r=I(2);b("ngIf",!r.dt.groupHeaderTemplate),C(),b("ngIf",r.dt.groupHeaderTemplate&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupHeader(r.value,e,r.getRowIndex(i))),C(),b("ngIf",r.dt.isRowExpanded(e))}}function yQ(t,n){if(t&1&&(Fe(0),N(1,_Q,3,3,"ng-template",1),Pe()),t&2){let e=I();C(),b("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function xQ(t,n){t&1&&Re(0)}function bQ(t,n){t&1&&Re(0)}function wQ(t,n){if(t&1&&(Fe(0),N(1,bQ,1,0,"ng-container",4),Pe()),t&2){let e=I(),i=e.$implicit,r=e.index,s=I(2);C(),b("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",pa(2,IM,i,s.getRowIndex(r),s.columns,s.frozen))}}function CQ(t,n){if(t&1&&N(0,xQ,1,0,"ng-container",4)(1,wQ,2,7,"ng-container",0),t&2){let e=n.$implicit,i=n.index,r=I(2);b("ngTemplateOutlet",r.template)("ngTemplateOutletContext",ma(3,N0,e,r.getRowIndex(i),r.columns,r.dt.isRowExpanded(e),r.dt.editMode==="row"&&r.dt.isRowEditing(e),r.frozen)),C(),b("ngIf",r.dt.isRowExpanded(e))}}function SQ(t,n){if(t&1&&(Fe(0),N(1,CQ,2,10,"ng-template",1),Pe()),t&2){let e=I();C(),b("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function EQ(t,n){t&1&&Re(0)}function TQ(t,n){if(t&1&&(Fe(0),N(1,EQ,1,0,"ng-container",4),Pe()),t&2){let e=I();C(),b("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Zt(2,DM,e.columns,e.frozen))}}function IQ(t,n){t&1&&Re(0)}function DQ(t,n){if(t&1&&(Fe(0),N(1,IQ,1,0,"ng-container",4),Pe()),t&2){let e=I();C(),b("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",Zt(2,DM,e.columns,e.frozen))}}function kQ(t,n){t&1&&re(0,"SortAltIcon",4),t&2&&b("styleClass","p-sortable-column-icon")}function MQ(t,n){t&1&&re(0,"SortAmountUpAltIcon",4),t&2&&b("styleClass","p-sortable-column-icon")}function AQ(t,n){t&1&&re(0,"SortAmountDownIcon",4),t&2&&b("styleClass","p-sortable-column-icon")}function FQ(t,n){if(t&1&&(Fe(0),N(1,kQ,1,1,"SortAltIcon",3)(2,MQ,1,1,"SortAmountUpAltIcon",3)(3,AQ,1,1,"SortAmountDownIcon",3),Pe()),t&2){let e=I();C(),b("ngIf",e.sortOrder===0),C(),b("ngIf",e.sortOrder===1),C(),b("ngIf",e.sortOrder===-1)}}function PQ(t,n){}function OQ(t,n){t&1&&N(0,PQ,0,0,"ng-template")}function RQ(t,n){if(t&1&&(P(0,"span",5),N(1,OQ,1,0,null,6),O()),t&2){let e=I();C(),b("ngTemplateOutlet",e.dt.sortIconTemplate)("ngTemplateOutletContext",Xe(2,L0,e.sortOrder))}}function LQ(t,n){if(t&1&&(P(0,"span",7),Te(1),O()),t&2){let e=I();C(),yt(e.getBadgeValue())}}var Lx=(()=>{class t{sortSource=new Ht;selectionSource=new Ht;contextMenuSource=new Ht;valueSource=new Ht;totalRecordsSource=new Ht;columnsSource=new Ht;isHeaderCheckboxSelection=new Ht;sortSource$=this.sortSource.asObservable();isHeaderCheckboxSelection$=this.isHeaderCheckboxSelection.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}onHeaderCheckboxSelection(e){this.isHeaderCheckboxSelection.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac})}return t})(),bd=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;domSanitizer;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ve;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,i)=>i;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ve;selectionChange=new ve;onRowSelect=new ve;onRowUnselect=new ve;onPage=new ve;onSort=new ve;onFilter=new ve;onLazyLoad=new ve;onRowExpand=new ve;onRowCollapse=new ve;onContextMenuSelect=new ve;onColResize=new ve;onColReorder=new ve;onRowReorder=new ve;onEditInit=new ve;onEditComplete=new ve;onEditCancel=new ve;onHeaderCheckboxToggle=new ve;sortFunction=new ve;firstChange=new ve;rowsChange=new ve;onStateSave=new ve;onStateRestore=new ve;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorDropdownIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=ht();styleElement;responsiveStyleElement;window;constructor(e,i,r,s,o,a,l,c,u,d,f){this.document=e,this.platformId=i,this.renderer=r,this.el=s,this.zone=o,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=d,this.domSanitizer=f,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break}})}ngAfterViewInit(){gn(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&gn(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){let i=e||this.processedData;if(i&&this.paginator){let r=this.lazy?0:this.first;return i.slice(r,r+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(Se.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(Se.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let r=i.metaKey||i.ctrlKey,s=this.getSortMeta(e.field);s?r?s.order=s.order*-1:(this._multiSortMeta=[{field:e.field,order:s.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((s,o)=>{let a=Se.resolveFieldData(s,e),l=Se.resolveFieldData(o,e),c=null;return a==null&&l!=null?c=-1:a!=null&&l==null?c=1:a==null&&l==null?c=0:typeof a=="string"&&typeof l=="string"?c=a.localeCompare(l):c=a<l?-1:a>l?1:0,i*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let r={field:e,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,r,s){let o=Se.resolveFieldData(e,r[s].field),a=Se.resolveFieldData(i,r[s].field);return Se.compare(o,a,this.filterLocale)===0?r.length-1>s?this.multisortField(e,i,r,s+1):0:this.compareValuesOnSort(o,a,r[s].order)}compareValuesOnSort(e,i,r){return Se.sort(e,i,r,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field===e)return this.multiSortMeta[i]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let i=!1;if(this.multiSortMeta){for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field==e){i=!0;break}}return i}}handleRowClick(e){let i=e.originalEvent.target,r=i.nodeName,s=i.parentElement&&i.parentElement.nodeName;if(!(r=="INPUT"||r=="BUTTON"||r=="A"||s=="INPUT"||s=="BUTTON"||s=="A"||q.hasClass(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){let o=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&this.anchorRowIndex!=null)q.clearSelection(),this.rangeRowIndex!=null&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let l=this.isSelected(o);if(!l&&!this.isRowSelectable(o,a))return;let c=this.rowTouched?!1:this.metaKeySelection,u=this.dataKey?String(Se.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=a,this.rangeRowIndex=a,c){let d=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(l&&d){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let f=this.findIndexInSelection(o);this._selection=this.selection.filter((h,m)=>m!=f),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(d?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if(this.selectionMode==="multiple")if(l){let d=this.findIndexInSelection(o);this._selection=this.selection.filter((f,h)=>h!=d),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,o]:[o],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let i=e.rowData,r=e.rowIndex;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(i),o=this.dataKey?String(Se.resolveFieldData(i,this.dataKey)):null;if(!s){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i,r){let s,o;this.anchorRowIndex>i?(s=i,o=this.anchorRowIndex):this.anchorRowIndex<i?(s=this.anchorRowIndex,o=i):(s=i,o=i),this.lazy&&this.paginator&&(s-=this.first,o-=this.first);let a=[];for(let l=s;l<=o;l++){let c=this.filteredValue?this.filteredValue[l]:this.value[l];if(!this.isSelected(c)&&!r){if(!this.isRowSelectable(c,i))continue;a.push(c),this._selection=[...this.selection,c];let u=this.dataKey?String(Se.resolveFieldData(c,this.dataKey)):null;u&&(this.selectionKeys[u]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:a,type:"row"})}clearSelectionRange(e){let i,r,s=this.rangeRowIndex,o=this.anchorRowIndex;s>o?(i=this.anchorRowIndex,r=this.rangeRowIndex):s<o?(i=this.rangeRowIndex,r=this.anchorRowIndex):(i=this.rangeRowIndex,r=this.rangeRowIndex);for(let a=i;a<=r;a++){let l=this.value[a],c=this.findIndexInSelection(l);this._selection=this.selection.filter((d,f)=>f!=c);let u=this.dataKey?String(Se.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return e&&this.selection?this.dataKey?this.selectionKeys[Se.resolveFieldData(e,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length){for(let r=0;r<this.selection.length;r++)if(this.equals(e,this.selection[r])){i=r;break}}return i}isRowSelectable(e,i){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:i}))}toggleRowWithRadio(e,i){if(this.preventSelectionSetterPropagation=!0,this.selection!=i){if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=i,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Se.resolveFieldData(i,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,i){this.selection=this.selection||[];let r=this.isSelected(i),s=this.dataKey?String(Se.resolveFieldData(i,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,r){let o=this.findIndexInSelection(i);this._selection=this.selection.filter((a,l)=>l!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,i){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:e,checked:i});else{let r=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,s=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!r.some(a=>this.equals(o,a))):[];i&&(s=this.frozenValue?[...s,...this.frozenValue,...r]:[...s,...r],s=this.rowSelectable?s.filter((o,a)=>this.rowSelectable({data:o,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return this.compareSelectionBy==="equals"?e===i:Se.equals(e,i,this.dataKey)}filter(e,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;i<this.value.length;i++){let r=!0,s=!1,o=!1;for(let l in this.filters)if(this.filters.hasOwnProperty(l)&&l!=="global"){o=!0;let c=l,u=this.filters[c];if(Array.isArray(u)){for(let d of u)if(r=this.executeLocalFilter(c,this.value[i],d),d.operator===N_.OR&&r||d.operator===N_.AND&&!r)break}else r=this.executeLocalFilter(c,this.value[i],u);if(!r)break}if(this.filters.global&&!s&&e)for(let l=0;l<e.length;l++){let c=e[l].field||e[l];if(s=this.filterService.filters[this.filters.global.matchMode](Se.resolveFieldData(this.value[i],c),this.filters.global.value,this.filterLocale),s)break}let a;this.filters.global?a=o?o&&r&&s:s:a=o&&r,a&&this.filteredValue.push(this.value[i])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,i,r){let s=r.value,o=r.matchMode||ii.STARTS_WITH,a=Se.resolveFieldData(i,e),l=this.filterService.filters[o];return l(a,s,this.filterLocale)}hasFilter(){let e=!0;for(let i in this.filters)if(this.filters.hasOwnProperty(i)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(let[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let i of e)i.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let i,r="",s=this.columns;e&&e.selectionOnly?i=this.selection||[]:e&&e.allValues?i=this.value||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));let o=s.filter(u=>u.exportable!==!1&&u.field);r+=o.map(u=>'"'+this.getExportHeader(u)+'"').join(this.csvSeparator);let a=i.map(u=>o.map(d=>{let f=Se.resolveFieldData(u,d.field);return f!=null?this.exportFunction?f=this.exportFunction({data:f,field:d.field}):f=String(f).replace(/"/g,'""'):f="",'"'+f+'"'}).join(this.csvSeparator)).join(`
`);a.length&&(r+=`
`+a);let l=new Blob([new Uint8Array([239,187,191]),r],{type:"text/csv;charset=utf-8;"}),c=this.renderer.createElement("a");c.style.display="none",this.renderer.appendChild(this.document.body,c),c.download!==void 0?(c.setAttribute("href",URL.createObjectURL(l)),c.setAttribute("download",this.exportFilename+".csv"),c.click()):(r="data:text/csv;charset=utf-8,"+r,this.window.open(encodeURI(r))),this.renderer.removeChild(this.document.body,c)}onLazyItemLoad(e){this.onLazyLoad.emit(ft(xe(xe({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,i,r,s){this.editingCell=e,this.editingCellData=i,this.editingCellField=r,this.editingCellRowIndex=s,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&q.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(q.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let i=String(Se.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(q.find(i,".ng-invalid.ng-dirty").length===0){let r=String(Se.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let i=String(Se.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let r=this.groupRowsBy?String(Se.resolveFieldData(e,this.groupRowsBy)):String(Se.resolveFieldData(e,this.dataKey));this.expandedRowKeys[r]!=null?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:e})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?this.expandedRowKeys[String(Se.resolveFieldData(e,this.groupRowsBy))]===!0:this.expandedRowKeys[String(Se.resolveFieldData(e,this.dataKey))]===!0}isRowEditing(e){return this.editingRowKeys[String(Se.resolveFieldData(e,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(e){let i=q.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.closest("th"),this.columnResizing=!0,e.type=="touchstart"?this.lastResizerHelperX=e.changedTouches[0].clientX-i+this.containerViewChild?.nativeElement.scrollLeft:this.lastResizerHelperX=e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=q.getOffset(this.containerViewChild?.nativeElement).left;q.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",e.type=="touchmove"?this.resizeHelperViewChild.nativeElement.style.left=e.changedTouches[0].clientX-i+this.containerViewChild?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e,s=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,""),o=s?parseFloat(s):15;if(r>=o){if(this.columnResizeMode==="fit"){let l=this.resizeColumnElement.nextElementSibling.offsetWidth-e;r>15&&l>15&&this.resizeTableCells(r,l)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let a=this.tableViewChild?.nativeElement.offsetWidth+e;this.setResizeTableWidth(a+"px"),this.resizeTableCells(r,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",q.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[],i=q.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return q.find(i,"tr > th").forEach(s=>e.push(q.getOuterWidth(s))),e}onColumnDragStart(e,i){this.reorderIconWidth=q.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=q.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let r=q.getOffset(this.containerViewChild?.nativeElement),s=q.getOffset(i);if(this.draggedColumn!=i){let o=q.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=q.indexWithinGroup(i,"preorderablecolumn"),l=s.left-r.left,c=r.top-s.top,u=s.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-r.top+i.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let r=q.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=q.indexWithinGroup(i,"preorderablecolumn"),o=r!=s;if(o&&(s-r==1&&this.dropPosition===-1||r-s==1&&this.dropPosition===1)&&(o=!1),o&&s<r&&this.dropPosition===1&&(s=s+1),o&&s>r&&this.dropPosition===-1&&(s=s-1),o&&(Se.reorderArray(this.columns,r,s),this.onColReorder.emit({dragIndex:r,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let a=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();Se.reorderArray(a,r+1,s+1),this.updateStyleElement(a,r,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,i){let r=q.index(this.resizeColumnElement),s=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,r,e,i)}updateStyleElement(e,i,r,s){this.destroyStyleElement(),this.createStyleElement();let o="";e.forEach((a,l)=>{let c=l===i?r:s&&l===i+1?s:a,u=`width: ${c}px !important; max-width: ${c}px !important;`;o+=`
                #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),
                #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),
                #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {
                    ${u}
                }
            `}),this.renderer.setProperty(this.styleElement,"innerHTML",this.domSanitizer.bypassSecurityTrustStyle(o))}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let s=q.getOffset(r).top,o=e.pageY,a=s+q.getOuterHeight(r)/2,l=r.previousElementSibling;o<a?(q.removeClass(r,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=i,l?q.addClass(l,"p-datatable-dragpoint-bottom"):q.addClass(r,"p-datatable-dragpoint-top")):(l?q.removeClass(l,"p-datatable-dragpoint-bottom"):q.addClass(r,"p-datatable-dragpoint-top"),this.droppedRowIndex=i+1,q.addClass(r,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,i){let r=i.previousElementSibling;r&&q.removeClass(r,"p-datatable-dragpoint-bottom"),q.removeClass(i,"p-datatable-dragpoint-bottom"),q.removeClass(i,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,i){if(this.droppedRowIndex!=null){let r=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;Se.reorderArray(this.value,this.draggedRowIndex,r),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(gn(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let e=this.getStorage(),i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){let e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){let i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,s=function(o,a){return typeof a=="string"&&r.test(a)?new Date(a):a};if(i){let o=JSON.parse(i,s);this.paginator&&(this.first!==void 0&&(this.first=o.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=o.rows,this.rowsChange.emit(this.rows))),o.sortField&&(this.restoringSort=!0,this._sortField=o.sortField,this._sortOrder=o.sortOrder),o.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=o.multiSortMeta),o.filters&&(this.restoringFilter=!0,this.filters=o.filters),this.resizableColumns&&(this.columnWidthsState=o.columnWidths,this.tableWidthState=o.tableWidth),o.expandedRowKeys&&(this.expandedRowKeys=o.expandedRowKeys),o.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(o.selection)),this.stateRestored=!0,this.onStateRestore.emit(o)}}saveColumnWidths(e){let i=[],r=[],s=this.containerViewChild?.nativeElement;s&&(r=q.find(s,".p-datatable-thead > tr > th")),r.forEach(o=>i.push(q.getOuterWidth(o))),e.columnWidths=i.join(","),this.columnResizeMode==="expand"&&(e.tableWidth=q.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),Se.isNotEmpty(e)){this.createStyleElement();let i="";e.forEach((r,s)=>{let o=`width: ${r}px !important; max-width: ${r}px !important`;i+=`
                        #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),
                        #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),
                        #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {
                            ${o}
                        }
                    `}),this.styleElement.textContent=i}}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),e.columnOrder=i}}restoreColumnOrder(){let i=this.getStorage().getItem(this.stateKey);if(i){let s=JSON.parse(i).columnOrder;if(s){let o=[];s.map(a=>{let l=this.findColumnByKey(a);l&&o.push(l)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(this.columns){for(let i of this.columns)if(i.key===e||i.field===e)return i}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",q.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(gn(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",q.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let e=`
    @media screen and (max-width: ${this.breakpoint}) {
        #${this.id}-table > .p-datatable-thead > tr > th,
        #${this.id}-table > .p-datatable-tfoot > tr > td {
            display: none !important;
        }

        #${this.id}-table > .p-datatable-tbody > tr > td {
            display: flex;
            width: 100% !important;
            align-items: center;
            justify-content: space-between;
        }

        #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {
            border: 0 none;
        }

        #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {
            border-top: 0;
            border-right: 0;
            border-left: 0;
        }

        #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {
            display: block;
        }
    }
    `;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",this.domSanitizer.bypassSecurityTrustStyle(e))}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}getPaginatorStyleClasses(e){return[this.paginatorStyleClass,e].filter(i=>!!i).join(" ").trim()}static \u0275fac=function(i){return new(i||t)(se(Tt),se(nn),se(ln),se(gt),se(rt),se(Lx),se(Lt),se(_p),se(Wl),se(vn),se(Cv))};static \u0275cmp=me({type:t,selectors:[["p-table"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},viewQuery:function(i,r){if(i&1&&(vt(kX,5),vt(MX,5),vt(AX,5),vt(FX,5),vt(PX,5),vt(OX,5),vt(RX,5),vt(LX,5),vt(NX,5)),i&2){let s;qe(s=Ke())&&(r.containerViewChild=s.first),qe(s=Ke())&&(r.resizeHelperViewChild=s.first),qe(s=Ke())&&(r.reorderIndicatorUpViewChild=s.first),qe(s=Ke())&&(r.reorderIndicatorDownViewChild=s.first),qe(s=Ke())&&(r.wrapperViewChild=s.first),qe(s=Ke())&&(r.tableViewChild=s.first),qe(s=Ke())&&(r.tableHeaderViewChild=s.first),qe(s=Ke())&&(r.tableFooterViewChild=s.first),qe(s=Ke())&&(r.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[Z.HasDecoratorInputTransform,"paginator","paginator",oe],pageLinks:[Z.HasDecoratorInputTransform,"pageLinks","pageLinks",Je],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[Z.HasDecoratorInputTransform,"alwaysShowPaginator","alwaysShowPaginator",oe],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[Z.HasDecoratorInputTransform,"showCurrentPageReport","showCurrentPageReport",oe],showJumpToPageDropdown:[Z.HasDecoratorInputTransform,"showJumpToPageDropdown","showJumpToPageDropdown",oe],showJumpToPageInput:[Z.HasDecoratorInputTransform,"showJumpToPageInput","showJumpToPageInput",oe],showFirstLastIcon:[Z.HasDecoratorInputTransform,"showFirstLastIcon","showFirstLastIcon",oe],showPageLinks:[Z.HasDecoratorInputTransform,"showPageLinks","showPageLinks",oe],defaultSortOrder:[Z.HasDecoratorInputTransform,"defaultSortOrder","defaultSortOrder",Je],sortMode:"sortMode",resetPageOnSort:[Z.HasDecoratorInputTransform,"resetPageOnSort","resetPageOnSort",oe],selectionMode:"selectionMode",selectionPageOnly:[Z.HasDecoratorInputTransform,"selectionPageOnly","selectionPageOnly",oe],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[Z.HasDecoratorInputTransform,"metaKeySelection","metaKeySelection",oe],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[Z.HasDecoratorInputTransform,"lazy","lazy",oe],lazyLoadOnInit:[Z.HasDecoratorInputTransform,"lazyLoadOnInit","lazyLoadOnInit",oe],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[Z.HasDecoratorInputTransform,"filterDelay","filterDelay",Je],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[Z.HasDecoratorInputTransform,"scrollable","scrollable",oe],scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[Z.HasDecoratorInputTransform,"virtualScroll","virtualScroll",oe],virtualScrollItemSize:[Z.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",Je],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[Z.HasDecoratorInputTransform,"virtualScrollDelay","virtualScrollDelay",Je],frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:[Z.HasDecoratorInputTransform,"resizableColumns","resizableColumns",oe],columnResizeMode:"columnResizeMode",reorderableColumns:[Z.HasDecoratorInputTransform,"reorderableColumns","reorderableColumns",oe],loading:[Z.HasDecoratorInputTransform,"loading","loading",oe],loadingIcon:"loadingIcon",showLoader:[Z.HasDecoratorInputTransform,"showLoader","showLoader",oe],rowHover:[Z.HasDecoratorInputTransform,"rowHover","rowHover",oe],customSort:[Z.HasDecoratorInputTransform,"customSort","customSort",oe],showInitialSortBadge:[Z.HasDecoratorInputTransform,"showInitialSortBadge","showInitialSortBadge",oe],autoLayout:[Z.HasDecoratorInputTransform,"autoLayout","autoLayout",oe],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:[Z.HasDecoratorInputTransform,"groupRowsByOrder","groupRowsByOrder",Je],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[kn([Lx]),Et,xn],decls:16,vars:22,consts:[["container",""],["wrapper",""],["buildInTable",""],["scroller",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"ngStyle","ngClass"],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper",3,"ngStyle",4,"ngIf"],["class","p-datatable-reorder-indicator-up",3,"ngStyle",4,"ngIf"],["class","p-datatable-reorder-indicator-down",3,"ngStyle",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options"],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-datatable-thead"],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","ngStyle","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"ngStyle",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer",3,"ngStyle"],["role","rowgroup",1,"p-datatable-tfoot"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",3,"ngStyle"],[1,"p-datatable-reorder-indicator-up",3,"ngStyle"],[1,"p-datatable-reorder-indicator-down",3,"ngStyle"]],template:function(i,r){i&1&&(P(0,"div",10,0),N(2,KX,3,2,"div",11)(3,XX,2,1,"div",12)(4,fZ,6,24,"p-paginator",13),P(5,"div",14,1),N(7,mZ,3,17,"p-scroller",15)(8,vZ,2,7,"ng-container",16)(9,SZ,10,26,"ng-template",null,2,ei),O(),N(11,HZ,6,24,"p-paginator",13)(12,jZ,2,1,"div",17)(13,UZ,2,2,"div",18)(14,qZ,4,4,"span",19)(15,ZZ,4,4,"span",20),O()),i&2&&(be(r.styleClass),b("ngStyle",r.style)("ngClass",fi(16,VX,r.rowHover||r.selectionMode,r.scrollable,r.scrollable&&r.scrollHeight==="flex")),ne("id",r.id),C(2),b("ngIf",r.loading&&r.showLoader),C(),b("ngIf",r.captionTemplate),C(),b("ngIf",r.paginator&&(r.paginatorPosition==="top"||r.paginatorPosition=="both")),C(),b("ngStyle",Xe(20,BX,r.virtualScroll?"":r.scrollHeight)),C(2),b("ngIf",r.virtualScroll),C(),b("ngIf",!r.virtualScroll),C(3),b("ngIf",r.paginator&&(r.paginatorPosition==="bottom"||r.paginatorPosition=="both")),C(),b("ngIf",r.summaryTemplate),C(),b("ngIf",r.resizableColumns),C(),b("ngIf",r.reorderableColumns),C(),b("ngIf",r.reorderableColumns))},dependencies:()=>[zt,Ut,qt,Bt,bM,Mt,F0,Sx,Ex,Io,NQ],styles:[`@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}
`],encapsulation:2})}return t})(),NQ=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,i,r,s){this.dt=e,this.tableService=i,this.cd=r,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,i,r){let s=Se.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-(1+this.dt._first)];if(o){let a=Se.resolveFieldData(o,this.dt.groupRowsBy);return s!==a}else return!0}shouldRenderRowGroupFooter(e,i,r){let s=Se.resolveFieldData(i,this.dt.groupRowsBy),o=e[r+(1+this.dt._first)];if(o){let a=Se.resolveFieldData(o,this.dt.groupRowsBy);return s!==a}else return!0}shouldRenderRowspan(e,i,r){let s=Se.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];if(o){let a=Se.resolveFieldData(o,this.dt.groupRowsBy);return s!==a}else return!0}calculateRowGroupSize(e,i,r){let s=Se.resolveFieldData(i,this.dt.groupRowsBy),o=s,a=0;for(;s===o;){a++;let l=e[++r];if(l)o=Se.resolveFieldData(l,this.dt.groupRowsBy);else break}return a===1?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=q.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=q.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,i){return this.dt.virtualScroll?(i=i||this.scrollerOptions,i?i[e]:null):null}getRowIndex(e){let i=this.dt.paginator?this.dt.first+e:e,r=this.getScrollerOption("getItemOptions");return r?r(i).index:i}static \u0275fac=function(i){return new(i||t)(se(bd),se(Lx),se(Lt),se(gt))};static \u0275cmp=me({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[Z.None,"pTableBody","columns"],template:[Z.None,"pTableBodyTemplate","template"],value:"value",frozen:[Z.HasDecoratorInputTransform,"frozen","frozen",oe],frozenRows:[Z.HasDecoratorInputTransform,"frozenRows","frozenRows",oe],scrollerOptions:"scrollerOptions"},features:[Et],attrs:QZ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&N(0,cQ,2,2,"ng-container",0)(1,yQ,2,2,"ng-container",0)(2,SQ,2,2,"ng-container",0)(3,TQ,2,5,"ng-container",0)(4,DQ,2,5,"ng-container",0),i&2&&(b("ngIf",!r.dt.expandedRowTemplate),C(),b("ngIf",r.dt.expandedRowTemplate&&!(r.frozen&&r.dt.frozenExpandedRowTemplate)),C(),b("ngIf",r.dt.frozenExpandedRowTemplate&&r.frozen),C(),b("ngIf",r.dt.loading),C(),b("ngIf",r.dt.isEmpty()&&!r.dt.loading))},dependencies:[wi,Ut,qt],encapsulation:2})}return t})();var kM=(()=>{class t{dt;field;pSortableColumnDisabled;sorted;sortOrder;subscription;constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(i=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?this.dt.sortOrder===1?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),q.clearSelection())}onEnterKey(e){this.onClick(e),e.preventDefault()}isEnabled(){return this.pSortableColumnDisabled!==!0}isFilterElement(e){return this.isFilterElementIconOrButton(e)||this.isFilterElementIconOrButton(e?.parentElement?.parentElement)}isFilterElementIconOrButton(e){return q.hasClass(e,"pi-filter-icon")||q.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(se(bd))};static \u0275dir=kt({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(i,r){i&1&&ye("click",function(o){return r.onClick(o)})("keydown.space",function(o){return r.onEnterKey(o)})("keydown.enter",function(o){return r.onEnterKey(o)}),i&2&&(ne("tabindex",r.isEnabled()?"0":null)("role","columnheader")("aria-sort",r.sortOrder),Xn("p-sortable-column",r.isEnabled())("p-highlight",r.sorted))},inputs:{field:[Z.None,"pSortableColumn","field"],pSortableColumnDisabled:[Z.HasDecoratorInputTransform,"pSortableColumnDisabled","pSortableColumnDisabled",oe]},features:[Et]})}return t})(),MM=(()=>{class t{dt;cd;field;subscription;sortOrder;constructor(e,i){this.dt=e,this.cd=i,this.subscription=this.dt.tableService.sortSource$.subscribe(r=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if(this.dt.sortMode==="single")this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if(this.dt.sortMode==="multiple"){let e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let e=this.dt._multiSortMeta,i=-1;if(e&&this.dt.sortMode==="multiple"&&this.dt.showInitialSortBadge&&e.length>1)for(let r=0;r<e.length;r++){let s=e[r];if(s.field===this.field||s.field===this.field){i=r;break}}return i}getBadgeValue(){let e=this.getMultiSortMetaIndex();return this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return this.dt.sortMode==="multiple"&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(se(bd),se(Lt))};static \u0275cmp=me({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:3,vars:3,consts:[[4,"ngIf"],["class","p-sortable-column-icon",4,"ngIf"],["class","p-sortable-column-badge",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-sortable-column-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-sortable-column-badge"]],template:function(i,r){i&1&&N(0,FQ,4,3,"ng-container",0)(1,RQ,2,4,"span",1)(2,LQ,2,1,"span",2),i&2&&(b("ngIf",!r.dt.sortIconTemplate),C(),b("ngIf",r.dt.sortIconTemplate),C(),b("ngIf",r.isMultiSorted()))},dependencies:()=>[Ut,qt,Tx,Dx,Ix],encapsulation:2,changeDetection:0})}return t})();var AM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,wM,P0,yd,Ta,Oi,CM,aM,xd,SM,uc,Sx,Ex,Io,Tx,Dx,Ix,$r,pM,mM,gM,vM,Nt,uc]})}return t})();var BQ=["*"];function HQ(t,n){if(t&1&&re(0,"span",5),t&2){let e=I(2);b("ngClass",e.icon)}}function zQ(t,n){if(t&1&&(Fe(0),N(1,HQ,1,1,"span",4),Pe()),t&2){let e=I();C(),b("ngIf",e.icon)}}function jQ(t,n){}function UQ(t,n){t&1&&N(0,jQ,0,0,"ng-template")}function WQ(t,n){if(t&1&&(P(0,"span",6),N(1,UQ,1,0,null,7),O()),t&2){let e=I();C(),b("ngTemplateOutlet",e.iconTemplate)}}var FM=(()=>{class t{cd;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;severity;value;icon;rounded;templates;iconTemplate;_style;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this.iconTemplate=e.template;break}})}constructor(e){this.cd=e}containerClass(){return{"p-tag p-component":!0,[`p-tag-${this.severity}`]:this.severity,"p-tag-rounded":this.rounded}}static \u0275fac=function(i){return new(i||t)(se(Lt))};static \u0275cmp=me({type:t,selectors:[["p-tag"]],contentQueries:function(i,r,s){if(i&1&&jt(s,Mt,4),i&2){let o;qe(o=Ke())&&(r.templates=o)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[Z.HasDecoratorInputTransform,"rounded","rounded",oe]},features:[Et],ngContentSelectors:BQ,decls:6,vars:7,consts:[[3,"ngClass","ngStyle"],[4,"ngIf"],["class","p-tag-icon",4,"ngIf"],[1,"p-tag-value"],["class","p-tag-icon",3,"ngClass",4,"ngIf"],[1,"p-tag-icon",3,"ngClass"],[1,"p-tag-icon"],[4,"ngTemplateOutlet"]],template:function(i,r){i&1&&(Ln(),P(0,"span",0),cn(1),N(2,zQ,2,1,"ng-container",1)(3,WQ,2,1,"span",2),P(4,"span",3),Te(5),O()()),i&2&&(be(r.styleClass),b("ngClass",r.containerClass())("ngStyle",r.style),C(2),b("ngIf",!r.iconTemplate),C(),b("ngIf",r.iconTemplate),C(2),yt(r.value))},dependencies:[zt,Ut,qt,Bt],styles:[`@layer primeng{.p-tag{display:inline-flex;align-items:center;justify-content:center}.p-tag-icon,.p-tag-value,.p-tag-icon.pi{line-height:1.5}.p-tag.p-tag-rounded{border-radius:10rem}}
`],encapsulation:2,changeDetection:0})}return t})(),PM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=tt({type:t});static \u0275inj=et({imports:[It,Nt,Nt]})}return t})();var Md={};Md.version="0.18.5";var La=1200,bc=1252,GQ=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qQ={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},xA=function(t){GQ.indexOf(t)!=-1&&(bc=qQ[0]=t)};function KQ(){xA(1252)}var Ad=function(t){La=t,xA(t)};function YQ(){Ad(1200),KQ()}function XQ(t){for(var n=[],e=0;e<t.length>>1;++e)n[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return n.join("")}var V0=function(n){return String.fromCharCode(n)},OM=function(n){return String.fromCharCode(n)},an;var bs=null,wd=!0,Ho="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Fd(t){for(var n="",e=0,i=0,r=0,s=0,o=0,a=0,l=0,c=0;c<t.length;)e=t.charCodeAt(c++),s=e>>2,i=t.charCodeAt(c++),o=(e&3)<<4|i>>4,r=t.charCodeAt(c++),a=(i&15)<<2|r>>6,l=r&63,isNaN(i)?a=l=64:isNaN(r)&&(l=64),n+=Ho.charAt(s)+Ho.charAt(o)+Ho.charAt(a)+Ho.charAt(l);return n}function no(t){var n="",e=0,i=0,r=0,s=0,o=0,a=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<t.length;)s=Ho.indexOf(t.charAt(c++)),o=Ho.indexOf(t.charAt(c++)),e=s<<2|o>>4,n+=String.fromCharCode(e),a=Ho.indexOf(t.charAt(c++)),i=(o&15)<<4|a>>2,a!==64&&(n+=String.fromCharCode(i)),l=Ho.indexOf(t.charAt(c++)),r=(a&3)<<6|l,l!==64&&(n+=String.fromCharCode(r));return n}var Kt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ro=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(n,e){return e?new Buffer(n,e):new Buffer(n)}:Buffer.from.bind(Buffer)}return function(){}}();function Va(t){return Kt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function RM(t){return Kt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Xr=function(n){return Kt?ro(n,"binary"):n.split("").map(function(e){return e.charCodeAt(0)&255})};function om(t){if(typeof ArrayBuffer>"u")return Xr(t);for(var n=new ArrayBuffer(t.length),e=new Uint8Array(n),i=0;i!=t.length;++i)e[i]=t.charCodeAt(i)&255;return n}function Nd(t){if(Array.isArray(t))return t.map(function(i){return String.fromCharCode(i)}).join("");for(var n=[],e=0;e<t.length;++e)n[e]=String.fromCharCode(t[e]);return n.join("")}function ZQ(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}var _i=Kt?function(t){return Buffer.concat(t.map(function(n){return Buffer.isBuffer(n)?n:ro(n)}))}:function(t){if(typeof Uint8Array<"u"){var n=0,e=0;for(n=0;n<t.length;++n)e+=t[n].length;var i=new Uint8Array(e),r=0;for(n=0,e=0;n<t.length;e+=r,++n)if(r=t[n].length,t[n]instanceof Uint8Array)i.set(t[n],e);else{if(typeof t[n]=="string")throw"wtf";i.set(new Uint8Array(t[n]),e)}return i}return[].concat.apply([],t.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function QQ(t){for(var n=[],e=0,i=t.length+250,r=Va(t.length+255),s=0;s<t.length;++s){var o=t.charCodeAt(s);if(o<128)r[e++]=o;else if(o<2048)r[e++]=192|o>>6&31,r[e++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var a=t.charCodeAt(++s)&1023;r[e++]=240|o>>8&7,r[e++]=128|o>>2&63,r[e++]=128|a>>6&15|(o&3)<<4,r[e++]=128|a&63}else r[e++]=224|o>>12&15,r[e++]=128|o>>6&63,r[e++]=128|o&63;e>i&&(n.push(r.slice(0,e)),e=0,r=Va(65535),i=65530)}return n.push(r.slice(0,e)),_i(n)}var gc=/\u0000/g,B0=/[\u0001-\u0006]/g;function vc(t){for(var n="",e=t.length-1;e>=0;)n+=t.charAt(e--);return n}function Zr(t,n){var e=""+t;return e.length>=n?e:An("0",n-e.length)+e}function Zx(t,n){var e=""+t;return e.length>=n?e:An(" ",n-e.length)+e}function q0(t,n){var e=""+t;return e.length>=n?e:e+An(" ",n-e.length)}function JQ(t,n){var e=""+Math.round(t);return e.length>=n?e:An("0",n-e.length)+e}function eJ(t,n){var e=""+t;return e.length>=n?e:An("0",n-e.length)+e}var LM=Math.pow(2,32);function dc(t,n){if(t>LM||t<-LM)return JQ(t,n);var e=Math.round(t);return eJ(e,n)}function K0(t,n){return n=n||0,t.length>=7+n&&(t.charCodeAt(n)|32)===103&&(t.charCodeAt(n+1)|32)===101&&(t.charCodeAt(n+2)|32)===110&&(t.charCodeAt(n+3)|32)===101&&(t.charCodeAt(n+4)|32)===114&&(t.charCodeAt(n+5)|32)===97&&(t.charCodeAt(n+6)|32)===108}var NM=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Bx=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function tJ(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',t}var Fn={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},VM={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},nJ={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Y0(t,n,e){for(var i=t<0?-1:1,r=t*i,s=0,o=1,a=0,l=1,c=0,u=0,d=Math.floor(r);c<n&&(d=Math.floor(r),a=d*o+s,u=d*c+l,!(r-d<5e-8));)r=1/(r-d),s=o,o=a,l=c,c=u;if(u>n&&(c>n?(u=l,a=s):(u=c,a=o)),!e)return[0,i*a,u];var f=Math.floor(i*a/u);return[f,i*a-f*u,u]}function H0(t,n,e){if(t>2958465||t<0)return null;var i=t|0,r=Math.floor(86400*(t-i)),s=0,o=[],a={D:i,T:r,u:86400*(t-i)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),n&&n.date1904&&(i+=1462),a.u>.9999&&(a.u=0,++r==86400&&(a.T=r=0,++i,++a.D)),i===60)o=e?[1317,10,29]:[1900,2,29],s=3;else if(i===0)o=e?[1317,8,29]:[1900,1,0],s=6;else{i>60&&--i;var l=new Date(1900,0,1);l.setDate(l.getDate()+i-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],s=l.getDay(),i<60&&(s=(s+6)%7),e&&(s=cJ(l,o))}return a.y=o[0],a.m=o[1],a.d=o[2],a.S=r%60,r=Math.floor(r/60),a.M=r%60,r=Math.floor(r/60),a.H=r,a.q=s,a}var bA=new Date(1899,11,31,0,0,0),iJ=bA.getTime(),rJ=new Date(1900,2,1,0,0,0);function wA(t,n){var e=t.getTime();return n?e-=1461*24*60*60*1e3:t>=rJ&&(e+=24*60*60*1e3),(e-(iJ+(t.getTimezoneOffset()-bA.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Qx(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function sJ(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function oJ(t){var n=t<0?12:11,e=Qx(t.toFixed(12));return e.length<=n||(e=t.toPrecision(10),e.length<=n)?e:t.toExponential(5)}function aJ(t){var n=Qx(t.toFixed(11));return n.length>(t<0?12:11)||n==="0"||n==="-0"?t.toPrecision(6):n}function lJ(t){var n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),e;return n>=-4&&n<=-1?e=t.toPrecision(10+n):Math.abs(n)<=9?e=oJ(t):n===10?e=t.toFixed(10).substr(0,12):e=aJ(t),Qx(sJ(e.toUpperCase()))}function qx(t,n){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):lJ(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return jo(14,wA(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function cJ(t,n){n[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}function uJ(t,n,e,i){var r="",s=0,o=0,a=e.y,l,c=0;switch(t){case 98:a=e.y+543;case 121:switch(n.length){case 1:case 2:l=a%100,c=2;break;default:l=a%1e4,c=4;break}break;case 109:switch(n.length){case 1:case 2:l=e.m,c=n.length;break;case 3:return Bx[e.m-1][1];case 5:return Bx[e.m-1][0];default:return Bx[e.m-1][2]}break;case 100:switch(n.length){case 1:case 2:l=e.d,c=n.length;break;case 3:return NM[e.q][0];default:return NM[e.q][1]}break;case 104:switch(n.length){case 1:case 2:l=1+(e.H+11)%12,c=n.length;break;default:throw"bad hour format: "+n}break;case 72:switch(n.length){case 1:case 2:l=e.H,c=n.length;break;default:throw"bad hour format: "+n}break;case 77:switch(n.length){case 1:case 2:l=e.M,c=n.length;break;default:throw"bad minute format: "+n}break;case 115:if(n!="s"&&n!="ss"&&n!=".0"&&n!=".00"&&n!=".000")throw"bad second format: "+n;return e.u===0&&(n=="s"||n=="ss")?Zr(e.S,n.length):(i>=2?o=i===3?1e3:100:o=i===1?10:1,s=Math.round(o*(e.S+e.u)),s>=60*o&&(s=0),n==="s"?s===0?"0":""+s/o:(r=Zr(s,2+i),n==="ss"?r.substr(0,2):"."+r.substr(2,n.length-1)));case 90:switch(n){case"[h]":case"[hh]":l=e.D*24+e.H;break;case"[m]":case"[mm]":l=(e.D*24+e.H)*60+e.M;break;case"[s]":case"[ss]":l=((e.D*24+e.H)*60+e.M)*60+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+n}c=n.length===3?1:2;break;case 101:l=a,c=1;break}var u=c>0?Zr(l,c):"";return u}function zo(t){var n=3;if(t.length<=n)return t;for(var e=t.length%n,i=t.substr(0,e);e!=t.length;e+=n)i+=(i.length>0?",":"")+t.substr(e,n);return i}var CA=/%/g;function dJ(t,n,e){var i=n.replace(CA,""),r=n.length-i.length;return Js(t,i,e*Math.pow(10,2*r))+An("%",r)}function fJ(t,n,e){for(var i=n.length-1;n.charCodeAt(i-1)===44;)--i;return Js(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}function SA(t,n){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(n==0)return"0.0E+0";if(n<0)return"-"+SA(t,-n);var r=t.indexOf(".");r===-1&&(r=t.indexOf("E"));var s=Math.floor(Math.log(n)*Math.LOG10E)%r;if(s<0&&(s+=r),e=(n/Math.pow(10,s)).toPrecision(i+1+(r+s)%r),e.indexOf("e")===-1){var o=Math.floor(Math.log(n)*Math.LOG10E);for(e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(o-e.length+s):e+="E+"+(o-s);e.substr(0,2)==="0.";)e=e.charAt(0)+e.substr(2,r)+"."+e.substr(2+r),e=e.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,l,c,u){return l+c+u.substr(0,(r+s)%r)+"."+u.substr(s)+"E"})}else e=n.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var EA=/# (\?+)( ?)\/( ?)(\d+)/;function hJ(t,n,e){var i=parseInt(t[4],10),r=Math.round(n*i),s=Math.floor(r/i),o=r-s*i,a=i;return e+(s===0?"":""+s)+" "+(o===0?An(" ",t[1].length+1+t[4].length):Zx(o,t[1].length)+t[2]+"/"+t[3]+Zr(a,t[4].length))}function pJ(t,n,e){return e+(n===0?"":""+n)+An(" ",t[1].length+2+t[4].length)}var TA=/^#*0*\.([0#]+)/,IA=/\).*[0#]/,DA=/\(###\) ###\\?-####/;function Ri(t){for(var n="",e,i=0;i!=t.length;++i)switch(e=t.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function BM(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function HM(t,n){var e=t-Math.floor(t),i=Math.pow(10,n);return n<(""+Math.round(e*i)).length?0:Math.round(e*i)}function mJ(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}function gJ(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function Dr(t,n,e){if(t.charCodeAt(0)===40&&!n.match(IA)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Dr("n",i,e):"("+Dr("n",i,-e)+")"}if(n.charCodeAt(n.length-1)===44)return fJ(t,n,e);if(n.indexOf("%")!==-1)return dJ(t,n,e);if(n.indexOf("E")!==-1)return SA(n,e);if(n.charCodeAt(0)===36)return"$"+Dr(t,n.substr(n.charAt(1)==" "?2:1),e);var r,s,o,a,l=Math.abs(e),c=e<0?"-":"";if(n.match(/^00+$/))return c+dc(l,n.length);if(n.match(/^[#?]+$/))return r=dc(e,0),r==="0"&&(r=""),r.length>n.length?r:Ri(n.substr(0,n.length-r.length))+r;if(s=n.match(EA))return hJ(s,l,c);if(n.match(/^#+0+$/))return c+dc(l,n.length-n.indexOf("0"));if(s=n.match(TA))return r=BM(e,s[1].length).replace(/^([^\.]+)$/,"$1."+Ri(s[1])).replace(/\.$/,"."+Ri(s[1])).replace(/\.(\d*)$/,function(m,p){return"."+p+An("0",Ri(s[1]).length-p.length)}),n.indexOf("0.")!==-1?r:r.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),s=n.match(/^(0*)\.(#*)$/))return c+BM(l,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=n.match(/^#{1,3},##0(\.?)$/))return c+zo(dc(l,0));if(s=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Dr(t,n,-e):zo(""+(Math.floor(e)+mJ(e,s[1].length)))+"."+Zr(HM(e,s[1].length),s[1].length);if(s=n.match(/^#,#*,#0/))return Dr(t,n.replace(/^#,#*,/,""),e);if(s=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=vc(Dr(t,n.replace(/[\\-]/g,""),e)),o=0,vc(vc(n.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<r.length?r.charAt(o++):m==="0"?"0":""}));if(n.match(DA))return r=Dr(t,"##########",e),"("+r.substr(0,3)+") "+r.substr(3,3)+"-"+r.substr(6);var u="";if(s=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),a=Y0(l,Math.pow(10,o)-1,!1),r=""+c,u=Js("n",s[1],a[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),r+=u+s[2]+"/"+s[3],u=q0(a[2],o),u.length<s[4].length&&(u=Ri(s[4].substr(s[4].length-u.length))+u),r+=u,r;if(s=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),a=Y0(l,Math.pow(10,o)-1,!0),c+(a[0]||(a[1]?"":"0"))+" "+(a[1]?Zx(a[1],o)+s[2]+"/"+s[3]+q0(a[2],o):An(" ",2*o+1+s[2].length+s[3].length));if(s=n.match(/^[#0?]+$/))return r=dc(e,0),n.length<=r.length?r:Ri(n.substr(0,n.length-r.length))+r;if(s=n.match(/^([#0?]+)\.([#0]+)$/)){r=""+e.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=r.indexOf(".");var d=n.indexOf(".")-o,f=n.length-r.length-d;return Ri(n.substr(0,d)+r+n.substr(n.length-f))}if(s=n.match(/^00,000\.([#0]*0)$/))return o=HM(e,s[1].length),e<0?"-"+Dr(t,n,-e):zo(gJ(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Zr(0,3-m.length):"")+m})+"."+Zr(o,s[1].length);switch(n){case"###,##0.00":return Dr(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var h=zo(dc(l,0));return h!=="0"?c+h:"";case"###,###.00":return Dr(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Dr(t,"#,##0.00",e).replace(/^0\./,".");default:}throw new Error("unsupported format |"+n+"|")}function vJ(t,n,e){for(var i=n.length-1;n.charCodeAt(i-1)===44;)--i;return Js(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}function _J(t,n,e){var i=n.replace(CA,""),r=n.length-i.length;return Js(t,i,e*Math.pow(10,2*r))+An("%",r)}function kA(t,n){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(n==0)return"0.0E+0";if(n<0)return"-"+kA(t,-n);var r=t.indexOf(".");r===-1&&(r=t.indexOf("E"));var s=Math.floor(Math.log(n)*Math.LOG10E)%r;if(s<0&&(s+=r),e=(n/Math.pow(10,s)).toPrecision(i+1+(r+s)%r),!e.match(/[Ee]/)){var o=Math.floor(Math.log(n)*Math.LOG10E);e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(o-e.length+s):e+="E+"+(o-s),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,l,c,u){return l+c+u.substr(0,(r+s)%r)+"."+u.substr(s)+"E"})}else e=n.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function ys(t,n,e){if(t.charCodeAt(0)===40&&!n.match(IA)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?ys("n",i,e):"("+ys("n",i,-e)+")"}if(n.charCodeAt(n.length-1)===44)return vJ(t,n,e);if(n.indexOf("%")!==-1)return _J(t,n,e);if(n.indexOf("E")!==-1)return kA(n,e);if(n.charCodeAt(0)===36)return"$"+ys(t,n.substr(n.charAt(1)==" "?2:1),e);var r,s,o,a,l=Math.abs(e),c=e<0?"-":"";if(n.match(/^00+$/))return c+Zr(l,n.length);if(n.match(/^[#?]+$/))return r=""+e,e===0&&(r=""),r.length>n.length?r:Ri(n.substr(0,n.length-r.length))+r;if(s=n.match(EA))return pJ(s,l,c);if(n.match(/^#+0+$/))return c+Zr(l,n.length-n.indexOf("0"));if(s=n.match(TA))return r=(""+e).replace(/^([^\.]+)$/,"$1."+Ri(s[1])).replace(/\.$/,"."+Ri(s[1])),r=r.replace(/\.(\d*)$/,function(m,p){return"."+p+An("0",Ri(s[1]).length-p.length)}),n.indexOf("0.")!==-1?r:r.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),s=n.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=n.match(/^#{1,3},##0(\.?)$/))return c+zo(""+l);if(s=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+ys(t,n,-e):zo(""+e)+"."+An("0",s[1].length);if(s=n.match(/^#,#*,#0/))return ys(t,n.replace(/^#,#*,/,""),e);if(s=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=vc(ys(t,n.replace(/[\\-]/g,""),e)),o=0,vc(vc(n.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<r.length?r.charAt(o++):m==="0"?"0":""}));if(n.match(DA))return r=ys(t,"##########",e),"("+r.substr(0,3)+") "+r.substr(3,3)+"-"+r.substr(6);var u="";if(s=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),a=Y0(l,Math.pow(10,o)-1,!1),r=""+c,u=Js("n",s[1],a[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),r+=u+s[2]+"/"+s[3],u=q0(a[2],o),u.length<s[4].length&&(u=Ri(s[4].substr(s[4].length-u.length))+u),r+=u,r;if(s=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),a=Y0(l,Math.pow(10,o)-1,!0),c+(a[0]||(a[1]?"":"0"))+" "+(a[1]?Zx(a[1],o)+s[2]+"/"+s[3]+q0(a[2],o):An(" ",2*o+1+s[2].length+s[3].length));if(s=n.match(/^[#0?]+$/))return r=""+e,n.length<=r.length?r:Ri(n.substr(0,n.length-r.length))+r;if(s=n.match(/^([#0]+)\.([#0]+)$/)){r=""+e.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=r.indexOf(".");var d=n.indexOf(".")-o,f=n.length-r.length-d;return Ri(n.substr(0,d)+r+n.substr(n.length-f))}if(s=n.match(/^00,000\.([#0]*0)$/))return e<0?"-"+ys(t,n,-e):zo(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Zr(0,3-m.length):"")+m})+"."+Zr(0,s[1].length);switch(n){case"###,###":case"##,###":case"#,###":var h=zo(""+l);return h!=="0"?c+h:"";default:if(n.match(/\.[0#?]*$/))return ys(t,n.slice(0,n.lastIndexOf(".")),e)+Ri(n.slice(n.lastIndexOf(".")))}throw new Error("unsupported format |"+n+"|")}function Js(t,n,e){return(e|0)===e?ys(t,n,e):Dr(t,n,e)}function yJ(t){for(var n=[],e=!1,i=0,r=0;i<t.length;++i)switch(t.charCodeAt(i)){case 34:e=!e;break;case 95:case 42:case 92:++i;break;case 59:n[n.length]=t.substr(r,i-r),r=i+1}if(n[n.length]=t.substr(r),e===!0)throw new Error("Format |"+t+"| unterminated string ");return n}var MA=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function AA(t){for(var n=0,e="",i="";n<t.length;)switch(e=t.charAt(n)){case"G":K0(t,n)&&(n+=6),n++;break;case'"':for(;t.charCodeAt(++n)!==34&&n<t.length;);++n;break;case"\\":n+=2;break;case"_":n+=2;break;case"@":++n;break;case"B":case"b":if(t.charAt(n+1)==="1"||t.charAt(n+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4E0A":if(t.substr(n,3).toUpperCase()==="A/P"||t.substr(n,5).toUpperCase()==="AM/PM"||t.substr(n,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348")return!0;++n;break;case"[":for(i=e;t.charAt(n++)!=="]"&&n<t.length;)i+=t.charAt(n);if(i.match(MA))return!0;break;case".":case"0":case"#":for(;n<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++n))>-1||e=="\\"&&t.charAt(n+1)=="-"&&"0#".indexOf(t.charAt(n+2))>-1););break;case"?":for(;t.charAt(++n)===e;);break;case"*":++n,(t.charAt(n)==" "||t.charAt(n)=="*")&&++n;break;case"(":case")":++n;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;n<t.length&&"0123456789".indexOf(t.charAt(++n))>-1;);break;case" ":++n;break;default:++n;break}return!1}function xJ(t,n,e,i){for(var r=[],s="",o=0,a="",l="t",c,u,d,f="H";o<t.length;)switch(a=t.charAt(o)){case"G":if(!K0(t,o))throw new Error("unrecognized character "+a+" in "+t);r[r.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(d=t.charCodeAt(++o))!==34&&o<t.length;)s+=String.fromCharCode(d);r[r.length]={t:"t",v:s},++o;break;case"\\":var h=t.charAt(++o),m=h==="("||h===")"?h:"t";r[r.length]={t:m,v:h},++o;break;case"_":r[r.length]={t:"t",v:" "},o+=2;break;case"@":r[r.length]={t:"T",v:n},++o;break;case"B":case"b":if(t.charAt(o+1)==="1"||t.charAt(o+1)==="2"){if(c==null&&(c=H0(n,e,t.charAt(o+1)==="2"),c==null))return"";r[r.length]={t:"X",v:t.substr(o,2)},l=a,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":a=a.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(n<0||c==null&&(c=H0(n,e),c==null))return"";for(s=a;++o<t.length&&t.charAt(o).toLowerCase()===a;)s+=a;a==="m"&&l.toLowerCase()==="h"&&(a="M"),a==="h"&&(a=f),r[r.length]={t:a,v:s},l=a;break;case"A":case"a":case"\u4E0A":var p={t:a,v:a};if(c==null&&(c=H0(n,e)),t.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(p.v=c.H>=12?"P":"A"),p.t="T",f="h",o+=3):t.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(p.v=c.H>=12?"PM":"AM"),p.t="T",o+=5,f="h"):t.substr(o,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(c!=null&&(p.v=c.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),p.t="T",o+=5,f="h"):(p.t="t",++o),c==null&&p.t==="T")return"";r[r.length]=p,l=a;break;case"[":for(s=a;t.charAt(o++)!=="]"&&o<t.length;)s+=t.charAt(o);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(MA)){if(c==null&&(c=H0(n,e),c==null))return"";r[r.length]={t:"Z",v:s.toLowerCase()},l=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",AA(t)||(r[r.length]={t:"t",v:s}));break;case".":if(c!=null){for(s=a;++o<t.length&&(a=t.charAt(o))==="0";)s+=a;r[r.length]={t:"s",v:s};break}case"0":case"#":for(s=a;++o<t.length&&"0#?.,E+-%".indexOf(a=t.charAt(o))>-1;)s+=a;r[r.length]={t:"n",v:s};break;case"?":for(s=a;t.charAt(++o)===a;)s+=a;r[r.length]={t:a,v:s},l=a;break;case"*":++o,(t.charAt(o)==" "||t.charAt(o)=="*")&&++o;break;case"(":case")":r[r.length]={t:i===1?"t":a,v:a},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=a;o<t.length&&"0123456789".indexOf(t.charAt(++o))>-1;)s+=t.charAt(o);r[r.length]={t:"D",v:s};break;case" ":r[r.length]={t:a,v:a},++o;break;case"$":r[r.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(a)===-1)throw new Error("unrecognized character "+a+" in "+t);r[r.length]={t:"t",v:a},++o;break}var g=0,v=0,_;for(o=r.length-1,l="t";o>=0;--o)switch(r[o].t){case"h":case"H":r[o].t=f,l="h",g<1&&(g=1);break;case"s":(_=r[o].v.match(/\.0+$/))&&(v=Math.max(v,_[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=r[o].t;break;case"m":l==="s"&&(r[o].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&r[o].v.match(/[Hh]/)&&(g=1),g<2&&r[o].v.match(/[Mm]/)&&(g=2),g<3&&r[o].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var y="",x;for(o=0;o<r.length;++o)switch(r[o].t){case"t":case"T":case" ":case"D":break;case"X":r[o].v="",r[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":r[o].v=uJ(r[o].t.charCodeAt(0),r[o].v,c,v),r[o].t="t";break;case"n":case"?":for(x=o+1;r[x]!=null&&((a=r[x].t)==="?"||a==="D"||(a===" "||a==="t")&&r[x+1]!=null&&(r[x+1].t==="?"||r[x+1].t==="t"&&r[x+1].v==="/")||r[o].t==="("&&(a===" "||a==="n"||a===")")||a==="t"&&(r[x].v==="/"||r[x].v===" "&&r[x+1]!=null&&r[x+1].t=="?"));)r[o].v+=r[x].v,r[x]={v:"",t:";"},++x;y+=r[o].v,o=x-1;break;case"G":r[o].t="t",r[o].v=qx(n,e);break}var w="",T,E;if(y.length>0){y.charCodeAt(0)==40?(T=n<0&&y.charCodeAt(0)===45?-n:n,E=Js("n",y,T)):(T=n<0&&i>1?-n:n,E=Js("n",y,T),T<0&&r[0]&&r[0].t=="t"&&(E=E.substr(1),r[0].v="-"+r[0].v)),x=E.length-1;var k=r.length;for(o=0;o<r.length;++o)if(r[o]!=null&&r[o].t!="t"&&r[o].v.indexOf(".")>-1){k=o;break}var F=r.length;if(k===r.length&&E.indexOf("E")===-1){for(o=r.length-1;o>=0;--o)r[o]==null||"n?".indexOf(r[o].t)===-1||(x>=r[o].v.length-1?(x-=r[o].v.length,r[o].v=E.substr(x+1,r[o].v.length)):x<0?r[o].v="":(r[o].v=E.substr(0,x+1),x=-1),r[o].t="t",F=o);x>=0&&F<r.length&&(r[F].v=E.substr(0,x+1)+r[F].v)}else if(k!==r.length&&E.indexOf("E")===-1){for(x=E.indexOf(".")-1,o=k;o>=0;--o)if(!(r[o]==null||"n?".indexOf(r[o].t)===-1)){for(u=r[o].v.indexOf(".")>-1&&o===k?r[o].v.indexOf(".")-1:r[o].v.length-1,w=r[o].v.substr(u+1);u>=0;--u)x>=0&&(r[o].v.charAt(u)==="0"||r[o].v.charAt(u)==="#")&&(w=E.charAt(x--)+w);r[o].v=w,r[o].t="t",F=o}for(x>=0&&F<r.length&&(r[F].v=E.substr(0,x+1)+r[F].v),x=E.indexOf(".")+1,o=k;o<r.length;++o)if(!(r[o]==null||"n?(".indexOf(r[o].t)===-1&&o!==k)){for(u=r[o].v.indexOf(".")>-1&&o===k?r[o].v.indexOf(".")+1:0,w=r[o].v.substr(0,u);u<r[o].v.length;++u)x<E.length&&(w+=E.charAt(x++));r[o].v=w,r[o].t="t",F=o}}}for(o=0;o<r.length;++o)r[o]!=null&&"n?".indexOf(r[o].t)>-1&&(T=i>1&&n<0&&o>0&&r[o-1].v==="-"?-n:n,r[o].v=Js(r[o].t,r[o].v,T),r[o].t="t");var G="";for(o=0;o!==r.length;++o)r[o]!=null&&(G+=r[o].v);return G}var zM=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function jM(t,n){if(n==null)return!1;var e=parseFloat(n[2]);switch(n[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0;break}return!1}function bJ(t,n){var e=yJ(t),i=e.length,r=e[i-1].indexOf("@");if(i<4&&r>-1&&--i,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if(typeof n!="number")return[4,e.length===4||r>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=r>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=r>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=r>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"];break;case 4:break}var s=n>0?e[0]:n<0?e[1]:e[2];if(e[0].indexOf("[")===-1&&e[1].indexOf("[")===-1)return[i,s];if(e[0].match(/\[[=<>]/)!=null||e[1].match(/\[[=<>]/)!=null){var o=e[0].match(zM),a=e[1].match(zM);return jM(n,o)?[i,e[0]]:jM(n,a)?[i,e[1]]:[i,e[o!=null&&a!=null?2:1]]}return[i,s]}function jo(t,n,e){e==null&&(e={});var i="";switch(typeof t){case"string":t=="m/d/yy"&&e.dateNF?i=e.dateNF:i=t;break;case"number":t==14&&e.dateNF?i=e.dateNF:i=(e.table!=null?e.table:Fn)[t],i==null&&(i=e.table&&e.table[VM[t]]||Fn[VM[t]]),i==null&&(i=nJ[t]||"General");break}if(K0(i,0))return qx(n,e);n instanceof Date&&(n=wA(n,e.date1904));var r=bJ(i,n);if(K0(r[1]))return qx(n,e);if(n===!0)n="TRUE";else if(n===!1)n="FALSE";else if(n===""||n==null)return"";return xJ(r[1],n,e,r[0])}function FA(t,n){if(typeof n!="number"){n=+n||-1;for(var e=0;e<392;++e){if(Fn[e]==null){n<0&&(n=e);continue}if(Fn[e]==t){n=e;break}}n<0&&(n=391)}return Fn[n]=t,n}function am(t){for(var n=0;n!=392;++n)t[n]!==void 0&&FA(t[n],n)}function lm(){Fn=tJ()}var PA=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function wJ(t){var n=typeof t=="number"?Fn[t]:t;return n=n.replace(PA,"(\\d+)"),new RegExp("^"+n+"$")}function CJ(t,n,e){var i=-1,r=-1,s=-1,o=-1,a=-1,l=-1;(n.match(PA)||[]).forEach(function(d,f){var h=parseInt(e[f+1],10);switch(d.toLowerCase().charAt(0)){case"y":i=h;break;case"d":s=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?a=h:r=h;break}}),l>=0&&a==-1&&r>=0&&(a=r,r=-1);var c=(""+(i>=0?i:new Date().getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&a==-1&&l==-1?c:i==-1&&r==-1&&s==-1?u:c+"T"+u}var SJ=function(){var t={};t.version="1.2.0";function n(){for(var E=0,k=new Array(256),F=0;F!=256;++F)E=F,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,E=E&1?-306674912^E>>>1:E>>>1,k[F]=E;return typeof Int32Array<"u"?new Int32Array(k):k}var e=n();function i(E){var k=0,F=0,G=0,Y=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)Y[G]=E[G];for(G=0;G!=256;++G)for(F=E[G],k=256+G;k<4096;k+=256)F=Y[k]=F>>>8^E[F&255];var W=[];for(G=1;G!=16;++G)W[G-1]=typeof Int32Array<"u"?Y.subarray(G*256,G*256+256):Y.slice(G*256,G*256+256);return W}var r=i(e),s=r[0],o=r[1],a=r[2],l=r[3],c=r[4],u=r[5],d=r[6],f=r[7],h=r[8],m=r[9],p=r[10],g=r[11],v=r[12],_=r[13],y=r[14];function x(E,k){for(var F=k^-1,G=0,Y=E.length;G<Y;)F=F>>>8^e[(F^E.charCodeAt(G++))&255];return~F}function w(E,k){for(var F=k^-1,G=E.length-15,Y=0;Y<G;)F=y[E[Y++]^F&255]^_[E[Y++]^F>>8&255]^v[E[Y++]^F>>16&255]^g[E[Y++]^F>>>24]^p[E[Y++]]^m[E[Y++]]^h[E[Y++]]^f[E[Y++]]^d[E[Y++]]^u[E[Y++]]^c[E[Y++]]^l[E[Y++]]^a[E[Y++]]^o[E[Y++]]^s[E[Y++]]^e[E[Y++]];for(G+=15;Y<G;)F=F>>>8^e[(F^E[Y++])&255];return~F}function T(E,k){for(var F=k^-1,G=0,Y=E.length,W=0,le=0;G<Y;)W=E.charCodeAt(G++),W<128?F=F>>>8^e[(F^W)&255]:W<2048?(F=F>>>8^e[(F^(192|W>>6&31))&255],F=F>>>8^e[(F^(128|W&63))&255]):W>=55296&&W<57344?(W=(W&1023)+64,le=E.charCodeAt(G++)&1023,F=F>>>8^e[(F^(240|W>>8&7))&255],F=F>>>8^e[(F^(128|W>>2&63))&255],F=F>>>8^e[(F^(128|le>>6&15|(W&3)<<4))&255],F=F>>>8^e[(F^(128|le&63))&255]):(F=F>>>8^e[(F^(224|W>>12&15))&255],F=F>>>8^e[(F^(128|W>>6&63))&255],F=F>>>8^e[(F^(128|W&63))&255]);return~F}return t.table=e,t.bstr=x,t.buf=w,t.str=T,t}(),rn=function(){var n={};n.version="1.2.1";function e(A,z){for(var L=A.split("/"),B=z.split("/"),j=0,U=0,ae=Math.min(L.length,B.length);j<ae;++j){if(U=L[j].length-B[j].length)return U;if(L[j]!=B[j])return L[j]<B[j]?-1:1}return L.length-B.length}function i(A){if(A.charAt(A.length-1)=="/")return A.slice(0,-1).indexOf("/")===-1?A:i(A.slice(0,-1));var z=A.lastIndexOf("/");return z===-1?A:A.slice(0,z+1)}function r(A){if(A.charAt(A.length-1)=="/")return r(A.slice(0,-1));var z=A.lastIndexOf("/");return z===-1?A:A.slice(z+1)}function s(A,z){typeof z=="string"&&(z=new Date(z));var L=z.getHours();L=L<<6|z.getMinutes(),L=L<<5|z.getSeconds()>>>1,A.write_shift(2,L);var B=z.getFullYear()-1980;B=B<<4|z.getMonth()+1,B=B<<5|z.getDate(),A.write_shift(2,B)}function o(A){var z=A.read_shift(2)&65535,L=A.read_shift(2)&65535,B=new Date,j=L&31;L>>>=5;var U=L&15;L>>>=4,B.setMilliseconds(0),B.setFullYear(L+1980),B.setMonth(U-1),B.setDate(j);var ae=z&31;z>>>=5;var pe=z&63;return z>>>=6,B.setHours(z),B.setMinutes(pe),B.setSeconds(ae<<1),B}function a(A){pr(A,0);for(var z={},L=0;A.l<=A.length-4;){var B=A.read_shift(2),j=A.read_shift(2),U=A.l+j,ae={};switch(B){case 21589:L=A.read_shift(1),L&1&&(ae.mtime=A.read_shift(4)),j>5&&(L&2&&(ae.atime=A.read_shift(4)),L&4&&(ae.ctime=A.read_shift(4))),ae.mtime&&(ae.mt=new Date(ae.mtime*1e3));break}A.l=U,z[B]=ae}return z}var l;function c(){return l||(l={})}function u(A,z){if(A[0]==80&&A[1]==75)return Ab(A,z);if((A[0]|32)==109&&(A[1]|32)==105)return v3(A,z);if(A.length<512)throw new Error("CFB file size "+A.length+" < 512");var L=3,B=512,j=0,U=0,ae=0,pe=0,ue=0,ce=[],fe=A.slice(0,512);pr(fe,0);var ke=d(fe);switch(L=ke[0],L){case 3:B=512;break;case 4:B=4096;break;case 0:if(ke[1]==0)return Ab(A,z);default:throw new Error("Major Version: Expected 3 or 4 saw "+L)}B!==512&&(fe=A.slice(0,B),pr(fe,28));var Ne=A.slice(0,B);f(fe,L);var Ye=fe.read_shift(4,"i");if(L===3&&Ye!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ye);fe.l+=4,ae=fe.read_shift(4,"i"),fe.l+=4,fe.chk("00100000","Mini Stream Cutoff Size: "),pe=fe.read_shift(4,"i"),j=fe.read_shift(4,"i"),ue=fe.read_shift(4,"i"),U=fe.read_shift(4,"i");for(var Ve=-1,Be=0;Be<109&&(Ve=fe.read_shift(4,"i"),!(Ve<0));++Be)ce[Be]=Ve;var pt=h(A,B);g(ue,U,pt,B,ce);var hn=_(pt,ae,ce,B);hn[ae].name="!Directory",j>0&&pe!==le&&(hn[pe].name="!MiniFAT"),hn[ce[0]].name="!FAT",hn.fat_addrs=ce,hn.ssz=B;var Vi={},Vn=[],tr=[],kc=[];y(ae,hn,pt,Vn,j,Vi,tr,pe),m(tr,kc,Vn),Vn.shift();var Mc={FileIndex:tr,FullPaths:kc};return z&&z.raw&&(Mc.raw={header:Ne,sectors:pt}),Mc}function d(A){if(A[A.l]==80&&A[A.l+1]==75)return[0,0];A.chk(ge,"Header Signature: "),A.l+=16;var z=A.read_shift(2,"u");return[A.read_shift(2,"u"),z]}function f(A,z){var L=9;switch(A.l+=2,L=A.read_shift(2)){case 9:if(z!=3)throw new Error("Sector Shift: Expected 9 saw "+L);break;case 12:if(z!=4)throw new Error("Sector Shift: Expected 12 saw "+L);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+L)}A.chk("0600","Mini Sector Shift: "),A.chk("000000000000","Reserved: ")}function h(A,z){for(var L=Math.ceil(A.length/z)-1,B=[],j=1;j<L;++j)B[j-1]=A.slice(j*z,(j+1)*z);return B[L-1]=A.slice(L*z),B}function m(A,z,L){for(var B=0,j=0,U=0,ae=0,pe=0,ue=L.length,ce=[],fe=[];B<ue;++B)ce[B]=fe[B]=B,z[B]=L[B];for(;pe<fe.length;++pe)B=fe[pe],j=A[B].L,U=A[B].R,ae=A[B].C,ce[B]===B&&(j!==-1&&ce[j]!==j&&(ce[B]=ce[j]),U!==-1&&ce[U]!==U&&(ce[B]=ce[U])),ae!==-1&&(ce[ae]=B),j!==-1&&B!=ce[B]&&(ce[j]=ce[B],fe.lastIndexOf(j)<pe&&fe.push(j)),U!==-1&&B!=ce[B]&&(ce[U]=ce[B],fe.lastIndexOf(U)<pe&&fe.push(U));for(B=1;B<ue;++B)ce[B]===B&&(U!==-1&&ce[U]!==U?ce[B]=ce[U]:j!==-1&&ce[j]!==j&&(ce[B]=ce[j]));for(B=1;B<ue;++B)if(A[B].type!==0){if(pe=B,pe!=ce[pe])do pe=ce[pe],z[B]=z[pe]+"/"+z[B];while(pe!==0&&ce[pe]!==-1&&pe!=ce[pe]);ce[B]=-1}for(z[0]+="/",B=1;B<ue;++B)A[B].type!==2&&(z[B]+="/")}function p(A,z,L){for(var B=A.start,j=A.size,U=[],ae=B;L&&j>0&&ae>=0;)U.push(z.slice(ae*W,ae*W+W)),j-=W,ae=Ra(L,ae*4);return U.length===0?he(0):_i(U).slice(0,A.size)}function g(A,z,L,B,j){var U=le;if(A===le){if(z!==0)throw new Error("DIFAT chain shorter than expected")}else if(A!==-1){var ae=L[A],pe=(B>>>2)-1;if(!ae)return;for(var ue=0;ue<pe&&(U=Ra(ae,ue*4))!==le;++ue)j.push(U);g(Ra(ae,B-4),z-1,L,B,j)}}function v(A,z,L,B,j){var U=[],ae=[];j||(j=[]);var pe=B-1,ue=0,ce=0;for(ue=z;ue>=0;){j[ue]=!0,U[U.length]=ue,ae.push(A[ue]);var fe=L[Math.floor(ue*4/B)];if(ce=ue*4&pe,B<4+ce)throw new Error("FAT boundary crossed: "+ue+" 4 "+B);if(!A[fe])break;ue=Ra(A[fe],ce)}return{nodes:U,data:XM([ae])}}function _(A,z,L,B){var j=A.length,U=[],ae=[],pe=[],ue=[],ce=B-1,fe=0,ke=0,Ne=0,Ye=0;for(fe=0;fe<j;++fe)if(pe=[],Ne=fe+z,Ne>=j&&(Ne-=j),!ae[Ne]){ue=[];var Ve=[];for(ke=Ne;ke>=0;){Ve[ke]=!0,ae[ke]=!0,pe[pe.length]=ke,ue.push(A[ke]);var Be=L[Math.floor(ke*4/B)];if(Ye=ke*4&ce,B<4+Ye)throw new Error("FAT boundary crossed: "+ke+" 4 "+B);if(!A[Be]||(ke=Ra(A[Be],Ye),Ve[ke]))break}U[Ne]={nodes:pe,data:XM([ue])}}return U}function y(A,z,L,B,j,U,ae,pe){for(var ue=0,ce=B.length?2:0,fe=z[A].data,ke=0,Ne=0,Ye;ke<fe.length;ke+=128){var Ve=fe.slice(ke,ke+128);pr(Ve,64),Ne=Ve.read_shift(2),Ye=dm(Ve,0,Ne-ce),B.push(Ye);var Be={name:Ye,type:Ve.read_shift(1),color:Ve.read_shift(1),L:Ve.read_shift(4,"i"),R:Ve.read_shift(4,"i"),C:Ve.read_shift(4,"i"),clsid:Ve.read_shift(16),state:Ve.read_shift(4,"i"),start:0,size:0},pt=Ve.read_shift(2)+Ve.read_shift(2)+Ve.read_shift(2)+Ve.read_shift(2);pt!==0&&(Be.ct=x(Ve,Ve.l-8));var hn=Ve.read_shift(2)+Ve.read_shift(2)+Ve.read_shift(2)+Ve.read_shift(2);hn!==0&&(Be.mt=x(Ve,Ve.l-8)),Be.start=Ve.read_shift(4,"i"),Be.size=Ve.read_shift(4,"i"),Be.size<0&&Be.start<0&&(Be.size=Be.type=0,Be.start=le,Be.name=""),Be.type===5?(ue=Be.start,j>0&&ue!==le&&(z[ue].name="!StreamData")):Be.size>=4096?(Be.storage="fat",z[Be.start]===void 0&&(z[Be.start]=v(L,Be.start,z.fat_addrs,z.ssz)),z[Be.start].name=Be.name,Be.content=z[Be.start].data.slice(0,Be.size)):(Be.storage="minifat",Be.size<0?Be.size=0:ue!==le&&Be.start!==le&&z[ue]&&(Be.content=p(Be,z[ue].data,(z[pe]||{}).data))),Be.content&&pr(Be.content,0),U[Ye]=Be,ae.push(Be)}}function x(A,z){return new Date((oi(A,z+4)/1e7*Math.pow(2,32)+oi(A,z)/1e7-11644473600)*1e3)}function w(A,z){return c(),u(l.readFileSync(A),z)}function T(A,z){var L=z&&z.type;switch(L||Kt&&Buffer.isBuffer(A)&&(L="buffer"),L||"base64"){case"file":return w(A,z);case"base64":return u(Xr(no(A)),z);case"binary":return u(Xr(A),z)}return u(A,z)}function E(A,z){var L=z||{},B=L.root||"Root Entry";if(A.FullPaths||(A.FullPaths=[]),A.FileIndex||(A.FileIndex=[]),A.FullPaths.length!==A.FileIndex.length)throw new Error("inconsistent CFB structure");A.FullPaths.length===0&&(A.FullPaths[0]=B+"/",A.FileIndex[0]={name:B,type:5}),L.CLSID&&(A.FileIndex[0].clsid=L.CLSID),k(A)}function k(A){var z="Sh33tJ5";if(!rn.find(A,"/"+z)){var L=he(4);L[0]=55,L[1]=L[3]=50,L[2]=54,A.FileIndex.push({name:z,type:2,content:L,size:4,L:69,R:69,C:69}),A.FullPaths.push(A.FullPaths[0]+z),F(A)}}function F(A,z){E(A);for(var L=!1,B=!1,j=A.FullPaths.length-1;j>=0;--j){var U=A.FileIndex[j];switch(U.type){case 0:B?L=!0:(A.FileIndex.pop(),A.FullPaths.pop());break;case 1:case 2:case 5:B=!0,isNaN(U.R*U.L*U.C)&&(L=!0),U.R>-1&&U.L>-1&&U.R==U.L&&(L=!0);break;default:L=!0;break}}if(!(!L&&!z)){var ae=new Date(1987,1,19),pe=0,ue=Object.create?Object.create(null):{},ce=[];for(j=0;j<A.FullPaths.length;++j)ue[A.FullPaths[j]]=!0,A.FileIndex[j].type!==0&&ce.push([A.FullPaths[j],A.FileIndex[j]]);for(j=0;j<ce.length;++j){var fe=i(ce[j][0]);B=ue[fe],B||(ce.push([fe,{name:r(fe).replace("/",""),type:1,clsid:M,ct:ae,mt:ae,content:null}]),ue[fe]=!0)}for(ce.sort(function(Ye,Ve){return e(Ye[0],Ve[0])}),A.FullPaths=[],A.FileIndex=[],j=0;j<ce.length;++j)A.FullPaths[j]=ce[j][0],A.FileIndex[j]=ce[j][1];for(j=0;j<ce.length;++j){var ke=A.FileIndex[j],Ne=A.FullPaths[j];if(ke.name=r(Ne).replace("/",""),ke.L=ke.R=ke.C=-(ke.color=1),ke.size=ke.content?ke.content.length:0,ke.start=0,ke.clsid=ke.clsid||M,j===0)ke.C=ce.length>1?1:-1,ke.size=0,ke.type=5;else if(Ne.slice(-1)=="/"){for(pe=j+1;pe<ce.length&&i(A.FullPaths[pe])!=Ne;++pe);for(ke.C=pe>=ce.length?-1:pe,pe=j+1;pe<ce.length&&i(A.FullPaths[pe])!=i(Ne);++pe);ke.R=pe>=ce.length?-1:pe,ke.type=1}else i(A.FullPaths[j+1]||"")==i(Ne)&&(ke.R=j+1),ke.type=2}}}function G(A,z){var L=z||{};if(L.fileType=="mad")return _3(A,L);switch(F(A),L.fileType){case"zip":return d3(A,L)}var B=function(Ye){for(var Ve=0,Be=0,pt=0;pt<Ye.FileIndex.length;++pt){var hn=Ye.FileIndex[pt];if(hn.content){var Vi=hn.content.length;Vi>0&&(Vi<4096?Ve+=Vi+63>>6:Be+=Vi+511>>9)}}for(var Vn=Ye.FullPaths.length+3>>2,tr=Ve+7>>3,kc=Ve+127>>7,Mc=tr+Be+Vn+kc,qo=Mc+127>>7,vm=qo<=109?0:Math.ceil((qo-109)/127);Mc+qo+vm+127>>7>qo;)vm=++qo<=109?0:Math.ceil((qo-109)/127);var Cs=[1,vm,qo,kc,Vn,Be,Ve,0];return Ye.FileIndex[0].size=Ve<<6,Cs[7]=(Ye.FileIndex[0].start=Cs[0]+Cs[1]+Cs[2]+Cs[3]+Cs[4]+Cs[5])+(Cs[6]+7>>3),Cs}(A),j=he(B[7]<<9),U=0,ae=0;{for(U=0;U<8;++U)j.write_shift(1,te[U]);for(U=0;U<8;++U)j.write_shift(2,0);for(j.write_shift(2,62),j.write_shift(2,3),j.write_shift(2,65534),j.write_shift(2,9),j.write_shift(2,6),U=0;U<3;++U)j.write_shift(2,0);for(j.write_shift(4,0),j.write_shift(4,B[2]),j.write_shift(4,B[0]+B[1]+B[2]+B[3]-1),j.write_shift(4,0),j.write_shift(4,4096),j.write_shift(4,B[3]?B[0]+B[1]+B[2]-1:le),j.write_shift(4,B[3]),j.write_shift(-4,B[1]?B[0]-1:le),j.write_shift(4,B[1]),U=0;U<109;++U)j.write_shift(-4,U<B[2]?B[1]+U:-1)}if(B[1])for(ae=0;ae<B[1];++ae){for(;U<236+ae*127;++U)j.write_shift(-4,U<B[2]?B[1]+U:-1);j.write_shift(-4,ae===B[1]-1?le:ae+1)}var pe=function(Ye){for(ae+=Ye;U<ae-1;++U)j.write_shift(-4,U+1);Ye&&(++U,j.write_shift(-4,le))};for(ae=U=0,ae+=B[1];U<ae;++U)j.write_shift(-4,R.DIFSECT);for(ae+=B[2];U<ae;++U)j.write_shift(-4,R.FATSECT);pe(B[3]),pe(B[4]);for(var ue=0,ce=0,fe=A.FileIndex[0];ue<A.FileIndex.length;++ue)fe=A.FileIndex[ue],fe.content&&(ce=fe.content.length,!(ce<4096)&&(fe.start=ae,pe(ce+511>>9)));for(pe(B[6]+7>>3);j.l&511;)j.write_shift(-4,R.ENDOFCHAIN);for(ae=U=0,ue=0;ue<A.FileIndex.length;++ue)fe=A.FileIndex[ue],fe.content&&(ce=fe.content.length,!(!ce||ce>=4096)&&(fe.start=ae,pe(ce+63>>6)));for(;j.l&511;)j.write_shift(-4,R.ENDOFCHAIN);for(U=0;U<B[4]<<2;++U){var ke=A.FullPaths[U];if(!ke||ke.length===0){for(ue=0;ue<17;++ue)j.write_shift(4,0);for(ue=0;ue<3;++ue)j.write_shift(4,-1);for(ue=0;ue<12;++ue)j.write_shift(4,0);continue}fe=A.FileIndex[U],U===0&&(fe.start=fe.size?fe.start-1:le);var Ne=U===0&&L.root||fe.name;if(ce=2*(Ne.length+1),j.write_shift(64,Ne,"utf16le"),j.write_shift(2,ce),j.write_shift(1,fe.type),j.write_shift(1,fe.color),j.write_shift(-4,fe.L),j.write_shift(-4,fe.R),j.write_shift(-4,fe.C),fe.clsid)j.write_shift(16,fe.clsid,"hex");else for(ue=0;ue<4;++ue)j.write_shift(4,0);j.write_shift(4,fe.state||0),j.write_shift(4,0),j.write_shift(4,0),j.write_shift(4,0),j.write_shift(4,0),j.write_shift(4,fe.start),j.write_shift(4,fe.size),j.write_shift(4,0)}for(U=1;U<A.FileIndex.length;++U)if(fe=A.FileIndex[U],fe.size>=4096)if(j.l=fe.start+1<<9,Kt&&Buffer.isBuffer(fe.content))fe.content.copy(j,j.l,0,fe.size),j.l+=fe.size+511&-512;else{for(ue=0;ue<fe.size;++ue)j.write_shift(1,fe.content[ue]);for(;ue&511;++ue)j.write_shift(1,0)}for(U=1;U<A.FileIndex.length;++U)if(fe=A.FileIndex[U],fe.size>0&&fe.size<4096)if(Kt&&Buffer.isBuffer(fe.content))fe.content.copy(j,j.l,0,fe.size),j.l+=fe.size+63&-64;else{for(ue=0;ue<fe.size;++ue)j.write_shift(1,fe.content[ue]);for(;ue&63;++ue)j.write_shift(1,0)}if(Kt)j.l=j.length;else for(;j.l<j.length;)j.write_shift(1,0);return j}function Y(A,z){var L=A.FullPaths.map(function(ue){return ue.toUpperCase()}),B=L.map(function(ue){var ce=ue.split("/");return ce[ce.length-(ue.slice(-1)=="/"?2:1)]}),j=!1;z.charCodeAt(0)===47?(j=!0,z=L[0].slice(0,-1)+z):j=z.indexOf("/")!==-1;var U=z.toUpperCase(),ae=j===!0?L.indexOf(U):B.indexOf(U);if(ae!==-1)return A.FileIndex[ae];var pe=!U.match(B0);for(U=U.replace(gc,""),pe&&(U=U.replace(B0,"!")),ae=0;ae<L.length;++ae)if((pe?L[ae].replace(B0,"!"):L[ae]).replace(gc,"")==U||(pe?B[ae].replace(B0,"!"):B[ae]).replace(gc,"")==U)return A.FileIndex[ae];return null}var W=64,le=-2,ge="d0cf11e0a1b11ae1",te=[208,207,17,224,161,177,26,225],M="00000000000000000000000000000000",R={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:le,FREESECT:-1,HEADER_SIGNATURE:ge,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:M,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function S(A,z,L){c();var B=G(A,L);l.writeFileSync(z,B)}function D(A){for(var z=new Array(A.length),L=0;L<A.length;++L)z[L]=String.fromCharCode(A[L]);return z.join("")}function Q(A,z){var L=G(A,z);switch(z&&z.type||"buffer"){case"file":return c(),l.writeFileSync(z.filename,L),L;case"binary":return typeof L=="string"?L:D(L);case"base64":return Fd(typeof L=="string"?L:D(L));case"buffer":if(Kt)return Buffer.isBuffer(L)?L:ro(L);case"array":return typeof L=="string"?Xr(L):L}return L}var X;function V(A){try{var z=A.InflateRaw,L=new z;if(L._processChunk(new Uint8Array([3,0]),L._finishFlushFlag),L.bytesRead)X=A;else throw new Error("zlib does not expose bytesRead")}catch(B){console.error("cannot use native zlib: "+(B.message||B))}}function ie(A,z){if(!X)return kb(A,z);var L=X.InflateRaw,B=new L,j=B._processChunk(A.slice(A.l),B._finishFlushFlag);return A.l+=B.bytesRead,j}function H(A){return X?X.deflateRawSync(A):Go(A)}var K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],de=[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],Ee=[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];function Ue(A){var z=(A<<1|A<<11)&139536|(A<<5|A<<15)&558144;return(z>>16|z>>8|z)&255}for(var Ae=typeof Uint8Array<"u",Ce=Ae?new Uint8Array(256):[],nt=0;nt<256;++nt)Ce[nt]=Ue(nt);function ot(A,z){var L=Ce[A&255];return z<=8?L>>>8-z:(L=L<<8|Ce[A>>8&255],z<=16?L>>>16-z:(L=L<<8|Ce[A>>16&255],L>>>24-z))}function ct(A,z){var L=z&7,B=z>>>3;return(A[B]|(L<=6?0:A[B+1]<<8))>>>L&3}function Ie(A,z){var L=z&7,B=z>>>3;return(A[B]|(L<=5?0:A[B+1]<<8))>>>L&7}function Pn(A,z){var L=z&7,B=z>>>3;return(A[B]|(L<=4?0:A[B+1]<<8))>>>L&15}function $t(A,z){var L=z&7,B=z>>>3;return(A[B]|(L<=3?0:A[B+1]<<8))>>>L&31}function ze(A,z){var L=z&7,B=z>>>3;return(A[B]|(L<=1?0:A[B+1]<<8))>>>L&127}function wn(A,z,L){var B=z&7,j=z>>>3,U=(1<<L)-1,ae=A[j]>>>B;return L<8-B||(ae|=A[j+1]<<8-B,L<16-B)||(ae|=A[j+2]<<16-B,L<24-B)||(ae|=A[j+3]<<24-B),ae&U}function $n(A,z,L){var B=z&7,j=z>>>3;return B<=5?A[j]|=(L&7)<<B:(A[j]|=L<<B&255,A[j+1]=(L&7)>>8-B),z+3}function ui(A,z,L){var B=z&7,j=z>>>3;return L=(L&1)<<B,A[j]|=L,z+1}function On(A,z,L){var B=z&7,j=z>>>3;return L<<=B,A[j]|=L&255,L>>>=8,A[j+1]=L,z+8}function Ar(A,z,L){var B=z&7,j=z>>>3;return L<<=B,A[j]|=L&255,L>>>=8,A[j+1]=L&255,A[j+2]=L>>>8,z+16}function vr(A,z){var L=A.length,B=2*L>z?2*L:z+5,j=0;if(L>=z)return A;if(Kt){var U=RM(B);if(A.copy)A.copy(U);else for(;j<A.length;++j)U[j]=A[j];return U}else if(Ae){var ae=new Uint8Array(B);if(ae.set)ae.set(A);else for(;j<L;++j)ae[j]=A[j];return ae}return A.length=B,A}function En(A){for(var z=new Array(A),L=0;L<A;++L)z[L]=0;return z}function er(A,z,L){var B=1,j=0,U=0,ae=0,pe=0,ue=A.length,ce=Ae?new Uint16Array(32):En(32);for(U=0;U<32;++U)ce[U]=0;for(U=ue;U<L;++U)A[U]=0;ue=A.length;var fe=Ae?new Uint16Array(ue):En(ue);for(U=0;U<ue;++U)ce[j=A[U]]++,B<j&&(B=j),fe[U]=0;for(ce[0]=0,U=1;U<=B;++U)ce[U+16]=pe=pe+ce[U-1]<<1;for(U=0;U<ue;++U)pe=A[U],pe!=0&&(fe[U]=ce[pe+16]++);var ke=0;for(U=0;U<ue;++U)if(ke=A[U],ke!=0)for(pe=ot(fe[U],B)>>B-ke,ae=(1<<B+4-ke)-1;ae>=0;--ae)z[pe|ae<<ke]=ke&15|U<<4;return B}var Ti=Ae?new Uint16Array(512):En(512),Fr=Ae?new Uint16Array(32):En(32);if(!Ae){for(var _r=0;_r<512;++_r)Ti[_r]=0;for(_r=0;_r<32;++_r)Fr[_r]=0}(function(){for(var A=[],z=0;z<32;z++)A.push(5);er(A,Fr,32);var L=[];for(z=0;z<=143;z++)L.push(8);for(;z<=255;z++)L.push(9);for(;z<=279;z++)L.push(7);for(;z<=287;z++)L.push(8);er(L,Ti,288)})();var Ga=function(){for(var z=Ae?new Uint8Array(32768):[],L=0,B=0;L<Ee.length-1;++L)for(;B<Ee[L+1];++B)z[B]=L;for(;B<32768;++B)z[B]=29;var j=Ae?new Uint8Array(259):[];for(L=0,B=0;L<de.length-1;++L)for(;B<de[L+1];++B)j[B]=L;function U(pe,ue){for(var ce=0;ce<pe.length;){var fe=Math.min(65535,pe.length-ce),ke=ce+fe==pe.length;for(ue.write_shift(1,+ke),ue.write_shift(2,fe),ue.write_shift(2,~fe&65535);fe-- >0;)ue[ue.l++]=pe[ce++]}return ue.l}function ae(pe,ue){for(var ce=0,fe=0,ke=Ae?new Uint16Array(32768):[];fe<pe.length;){var Ne=Math.min(65535,pe.length-fe);if(Ne<10){for(ce=$n(ue,ce,+(fe+Ne==pe.length)),ce&7&&(ce+=8-(ce&7)),ue.l=ce/8|0,ue.write_shift(2,Ne),ue.write_shift(2,~Ne&65535);Ne-- >0;)ue[ue.l++]=pe[fe++];ce=ue.l*8;continue}ce=$n(ue,ce,+(fe+Ne==pe.length)+2);for(var Ye=0;Ne-- >0;){var Ve=pe[fe];Ye=(Ye<<5^Ve)&32767;var Be=-1,pt=0;if((Be=ke[Ye])&&(Be|=fe&-32768,Be>fe&&(Be-=32768),Be<fe))for(;pe[Be+pt]==pe[fe+pt]&&pt<250;)++pt;if(pt>2){Ve=j[pt],Ve<=22?ce=On(ue,ce,Ce[Ve+1]>>1)-1:(On(ue,ce,3),ce+=5,On(ue,ce,Ce[Ve-23]>>5),ce+=3);var hn=Ve<8?0:Ve-4>>2;hn>0&&(Ar(ue,ce,pt-de[Ve]),ce+=hn),Ve=z[fe-Be],ce=On(ue,ce,Ce[Ve]>>3),ce-=3;var Vi=Ve<4?0:Ve-2>>1;Vi>0&&(Ar(ue,ce,fe-Be-Ee[Ve]),ce+=Vi);for(var Vn=0;Vn<pt;++Vn)ke[Ye]=fe&32767,Ye=(Ye<<5^pe[fe])&32767,++fe;Ne-=pt-1}else Ve<=143?Ve=Ve+48:ce=ui(ue,ce,1),ce=On(ue,ce,Ce[Ve]),ke[Ye]=fe&32767,++fe}ce=On(ue,ce,0)-1}return ue.l=(ce+7)/8|0,ue.l}return function(ue,ce){return ue.length<8?U(ue,ce):ae(ue,ce)}}();function Go(A){var z=he(50+Math.floor(A.length*1.1)),L=Ga(A,z);return z.slice(0,L)}var Sb=Ae?new Uint16Array(32768):En(32768),Eb=Ae?new Uint16Array(32768):En(32768),Tb=Ae?new Uint16Array(128):En(128),Ib=1,Db=1;function l3(A,z){var L=$t(A,z)+257;z+=5;var B=$t(A,z)+1;z+=5;var j=Pn(A,z)+4;z+=4;for(var U=0,ae=Ae?new Uint8Array(19):En(19),pe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ue=1,ce=Ae?new Uint8Array(8):En(8),fe=Ae?new Uint8Array(8):En(8),ke=ae.length,Ne=0;Ne<j;++Ne)ae[K[Ne]]=U=Ie(A,z),ue<U&&(ue=U),ce[U]++,z+=3;var Ye=0;for(ce[0]=0,Ne=1;Ne<=ue;++Ne)fe[Ne]=Ye=Ye+ce[Ne-1]<<1;for(Ne=0;Ne<ke;++Ne)(Ye=ae[Ne])!=0&&(pe[Ne]=fe[Ye]++);var Ve=0;for(Ne=0;Ne<ke;++Ne)if(Ve=ae[Ne],Ve!=0){Ye=Ce[pe[Ne]]>>8-Ve;for(var Be=(1<<7-Ve)-1;Be>=0;--Be)Tb[Ye|Be<<Ve]=Ve&7|Ne<<3}var pt=[];for(ue=1;pt.length<L+B;)switch(Ye=Tb[ze(A,z)],z+=Ye&7,Ye>>>=3){case 16:for(U=3+ct(A,z),z+=2,Ye=pt[pt.length-1];U-- >0;)pt.push(Ye);break;case 17:for(U=3+Ie(A,z),z+=3;U-- >0;)pt.push(0);break;case 18:for(U=11+ze(A,z),z+=7;U-- >0;)pt.push(0);break;default:pt.push(Ye),ue<Ye&&(ue=Ye);break}var hn=pt.slice(0,L),Vi=pt.slice(L);for(Ne=L;Ne<286;++Ne)hn[Ne]=0;for(Ne=B;Ne<30;++Ne)Vi[Ne]=0;return Ib=er(hn,Sb,286),Db=er(Vi,Eb,30),z}function c3(A,z){if(A[0]==3&&!(A[1]&3))return[Va(z),2];for(var L=0,B=0,j=RM(z||1<<18),U=0,ae=j.length>>>0,pe=0,ue=0;!(B&1);){if(B=Ie(A,L),L+=3,B>>>1)B>>1==1?(pe=9,ue=5):(L=l3(A,L),pe=Ib,ue=Db);else{L&7&&(L+=8-(L&7));var ce=A[L>>>3]|A[(L>>>3)+1]<<8;if(L+=32,ce>0)for(!z&&ae<U+ce&&(j=vr(j,U+ce),ae=j.length);ce-- >0;)j[U++]=A[L>>>3],L+=8;continue}for(;;){!z&&ae<U+32767&&(j=vr(j,U+32767),ae=j.length);var fe=wn(A,L,pe),ke=B>>>1==1?Ti[fe]:Sb[fe];if(L+=ke&15,ke>>>=4,!(ke>>>8&255))j[U++]=ke;else{if(ke==256)break;ke-=257;var Ne=ke<8?0:ke-4>>2;Ne>5&&(Ne=0);var Ye=U+de[ke];Ne>0&&(Ye+=wn(A,L,Ne),L+=Ne),fe=wn(A,L,ue),ke=B>>>1==1?Fr[fe]:Eb[fe],L+=ke&15,ke>>>=4;var Ve=ke<4?0:ke-2>>1,Be=Ee[ke];for(Ve>0&&(Be+=wn(A,L,Ve),L+=Ve),!z&&ae<Ye&&(j=vr(j,Ye+100),ae=j.length);U<Ye;)j[U]=j[U-Be],++U}}}return z?[j,L+7>>>3]:[j.slice(0,U),L+7>>>3]}function kb(A,z){var L=A.slice(A.l||0),B=c3(L,z);return A.l+=B[1],B[0]}function Mb(A,z){if(A)typeof console<"u"&&console.error(z);else throw new Error(z)}function Ab(A,z){var L=A;pr(L,0);var B=[],j=[],U={FileIndex:B,FullPaths:j};E(U,{root:z.root});for(var ae=L.length-4;(L[ae]!=80||L[ae+1]!=75||L[ae+2]!=5||L[ae+3]!=6)&&ae>=0;)--ae;L.l=ae+4,L.l+=4;var pe=L.read_shift(2);L.l+=6;var ue=L.read_shift(4);for(L.l=ue,ae=0;ae<pe;++ae){L.l+=20;var ce=L.read_shift(4),fe=L.read_shift(4),ke=L.read_shift(2),Ne=L.read_shift(2),Ye=L.read_shift(2);L.l+=8;var Ve=L.read_shift(4),Be=a(L.slice(L.l+ke,L.l+ke+Ne));L.l+=ke+Ne+Ye;var pt=L.l;L.l=Ve+4,u3(L,ce,fe,U,Be),L.l=pt}return U}function u3(A,z,L,B,j){A.l+=2;var U=A.read_shift(2),ae=A.read_shift(2),pe=o(A);if(U&8257)throw new Error("Unsupported ZIP encryption");for(var ue=A.read_shift(4),ce=A.read_shift(4),fe=A.read_shift(4),ke=A.read_shift(2),Ne=A.read_shift(2),Ye="",Ve=0;Ve<ke;++Ve)Ye+=String.fromCharCode(A[A.l++]);if(Ne){var Be=a(A.slice(A.l,A.l+Ne));(Be[21589]||{}).mt&&(pe=Be[21589].mt),((j||{})[21589]||{}).mt&&(pe=j[21589].mt)}A.l+=Ne;var pt=A.slice(A.l,A.l+ce);switch(ae){case 8:pt=ie(A,fe);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ae)}var hn=!1;U&8&&(ue=A.read_shift(4),ue==134695760&&(ue=A.read_shift(4),hn=!0),ce=A.read_shift(4),fe=A.read_shift(4)),ce!=z&&Mb(hn,"Bad compressed size: "+z+" != "+ce),fe!=L&&Mb(hn,"Bad uncompressed size: "+L+" != "+fe),gm(B,Ye,pt,{unsafe:!0,mt:pe})}function d3(A,z){var L=z||{},B=[],j=[],U=he(1),ae=L.compression?8:0,pe=0,ue=!1;ue&&(pe|=8);var ce=0,fe=0,ke=0,Ne=0,Ye=A.FullPaths[0],Ve=Ye,Be=A.FileIndex[0],pt=[],hn=0;for(ce=1;ce<A.FullPaths.length;++ce)if(Ve=A.FullPaths[ce].slice(Ye.length),Be=A.FileIndex[ce],!(!Be.size||!Be.content||Ve=="Sh33tJ5")){var Vi=ke,Vn=he(Ve.length);for(fe=0;fe<Ve.length;++fe)Vn.write_shift(1,Ve.charCodeAt(fe)&127);Vn=Vn.slice(0,Vn.l),pt[Ne]=SJ.buf(Be.content,0);var tr=Be.content;ae==8&&(tr=H(tr)),U=he(30),U.write_shift(4,67324752),U.write_shift(2,20),U.write_shift(2,pe),U.write_shift(2,ae),Be.mt?s(U,Be.mt):U.write_shift(4,0),U.write_shift(-4,pe&8?0:pt[Ne]),U.write_shift(4,pe&8?0:tr.length),U.write_shift(4,pe&8?0:Be.content.length),U.write_shift(2,Vn.length),U.write_shift(2,0),ke+=U.length,B.push(U),ke+=Vn.length,B.push(Vn),ke+=tr.length,B.push(tr),pe&8&&(U=he(12),U.write_shift(-4,pt[Ne]),U.write_shift(4,tr.length),U.write_shift(4,Be.content.length),ke+=U.l,B.push(U)),U=he(46),U.write_shift(4,33639248),U.write_shift(2,0),U.write_shift(2,20),U.write_shift(2,pe),U.write_shift(2,ae),U.write_shift(4,0),U.write_shift(-4,pt[Ne]),U.write_shift(4,tr.length),U.write_shift(4,Be.content.length),U.write_shift(2,Vn.length),U.write_shift(2,0),U.write_shift(2,0),U.write_shift(2,0),U.write_shift(2,0),U.write_shift(4,0),U.write_shift(4,Vi),hn+=U.l,j.push(U),hn+=Vn.length,j.push(Vn),++Ne}return U=he(22),U.write_shift(4,101010256),U.write_shift(2,0),U.write_shift(2,0),U.write_shift(2,Ne),U.write_shift(2,Ne),U.write_shift(4,hn),U.write_shift(4,ke),U.write_shift(2,0),_i([_i(B),_i(j),U])}var jd={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function f3(A,z){if(A.ctype)return A.ctype;var L=A.name||"",B=L.match(/\.([^\.]+)$/);return B&&jd[B[1]]||z&&(B=(L=z).match(/[\.\\]([^\.\\])+$/),B&&jd[B[1]])?jd[B[1]]:"application/octet-stream"}function h3(A){for(var z=Fd(A),L=[],B=0;B<z.length;B+=76)L.push(z.slice(B,B+76));return L.join(`\r
`)+`\r
`}function p3(A){var z=A.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ce){var fe=ce.charCodeAt(0).toString(16).toUpperCase();return"="+(fe.length==1?"0"+fe:fe)});z=z.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),z.charAt(0)==`
`&&(z="=0D"+z.slice(1)),z=z.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var L=[],B=z.split(`\r
`),j=0;j<B.length;++j){var U=B[j];if(U.length==0){L.push("");continue}for(var ae=0;ae<U.length;){var pe=76,ue=U.slice(ae,ae+pe);ue.charAt(pe-1)=="="?pe--:ue.charAt(pe-2)=="="?pe-=2:ue.charAt(pe-3)=="="&&(pe-=3),ue=U.slice(ae,ae+pe),ae+=pe,ae<U.length&&(ue+="="),L.push(ue)}}return L.join(`\r
`)}function m3(A){for(var z=[],L=0;L<A.length;++L){for(var B=A[L];L<=A.length&&B.charAt(B.length-1)=="=";)B=B.slice(0,B.length-1)+A[++L];z.push(B)}for(var j=0;j<z.length;++j)z[j]=z[j].replace(/[=][0-9A-Fa-f]{2}/g,function(U){return String.fromCharCode(parseInt(U.slice(1),16))});return Xr(z.join(`\r
`))}function g3(A,z,L){for(var B="",j="",U="",ae,pe=0;pe<10;++pe){var ue=z[pe];if(!ue||ue.match(/^\s*$/))break;var ce=ue.match(/^(.*?):\s*([^\s].*)$/);if(ce)switch(ce[1].toLowerCase()){case"content-location":B=ce[2].trim();break;case"content-type":U=ce[2].trim();break;case"content-transfer-encoding":j=ce[2].trim();break}}switch(++pe,j.toLowerCase()){case"base64":ae=Xr(no(z.slice(pe).join("")));break;case"quoted-printable":ae=m3(z.slice(pe));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+j)}var fe=gm(A,B.slice(L.length),ae,{unsafe:!0});U&&(fe.ctype=U)}function v3(A,z){if(D(A.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var L=z&&z.root||"",B=(Kt&&Buffer.isBuffer(A)?A.toString("binary"):D(A)).split(`\r
`),j=0,U="";for(j=0;j<B.length;++j)if(U=B[j],!!/^Content-Location:/i.test(U)&&(U=U.slice(U.indexOf("file")),L||(L=U.slice(0,U.lastIndexOf("/")+1)),U.slice(0,L.length)!=L))for(;L.length>0&&(L=L.slice(0,L.length-1),L=L.slice(0,L.lastIndexOf("/")+1),U.slice(0,L.length)!=L););var ae=(B[1]||"").match(/boundary="(.*?)"/);if(!ae)throw new Error("MAD cannot find boundary");var pe="--"+(ae[1]||""),ue=[],ce=[],fe={FileIndex:ue,FullPaths:ce};E(fe);var ke,Ne=0;for(j=0;j<B.length;++j){var Ye=B[j];Ye!==pe&&Ye!==pe+"--"||(Ne++&&g3(fe,B.slice(ke,j),L),ke=j)}return fe}function _3(A,z){var L=z||{},B=L.boundary||"SheetJS";B="------="+B;for(var j=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+B.slice(2)+'"',"","",""],U=A.FullPaths[0],ae=U,pe=A.FileIndex[0],ue=1;ue<A.FullPaths.length;++ue)if(ae=A.FullPaths[ue].slice(U.length),pe=A.FileIndex[ue],!(!pe.size||!pe.content||ae=="Sh33tJ5")){ae=ae.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(pt){return"_x"+pt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(pt){return"_u"+pt.charCodeAt(0).toString(16)+"_"});for(var ce=pe.content,fe=Kt&&Buffer.isBuffer(ce)?ce.toString("binary"):D(ce),ke=0,Ne=Math.min(1024,fe.length),Ye=0,Ve=0;Ve<=Ne;++Ve)(Ye=fe.charCodeAt(Ve))>=32&&Ye<128&&++ke;var Be=ke>=Ne*4/5;j.push(B),j.push("Content-Location: "+(L.root||"file:///C:/SheetJS/")+ae),j.push("Content-Transfer-Encoding: "+(Be?"quoted-printable":"base64")),j.push("Content-Type: "+f3(pe,ae)),j.push(""),j.push(Be?p3(fe):h3(fe))}return j.push(B+`--\r
`),j.join(`\r
`)}function y3(A){var z={};return E(z,A),z}function gm(A,z,L,B){var j=B&&B.unsafe;j||E(A);var U=!j&&rn.find(A,z);if(!U){var ae=A.FullPaths[0];z.slice(0,ae.length)==ae?ae=z:(ae.slice(-1)!="/"&&(ae+="/"),ae=(ae+z).replace("//","/")),U={name:r(z),type:2},A.FileIndex.push(U),A.FullPaths.push(ae),j||rn.utils.cfb_gc(A)}return U.content=L,U.size=L?L.length:0,B&&(B.CLSID&&(U.clsid=B.CLSID),B.mt&&(U.mt=B.mt),B.ct&&(U.ct=B.ct)),U}function x3(A,z){E(A);var L=rn.find(A,z);if(L){for(var B=0;B<A.FileIndex.length;++B)if(A.FileIndex[B]==L)return A.FileIndex.splice(B,1),A.FullPaths.splice(B,1),!0}return!1}function b3(A,z,L){E(A);var B=rn.find(A,z);if(B){for(var j=0;j<A.FileIndex.length;++j)if(A.FileIndex[j]==B)return A.FileIndex[j].name=r(L),A.FullPaths[j]=L,!0}return!1}function w3(A){F(A,!0)}return n.find=Y,n.read=T,n.parse=u,n.write=Q,n.writeFile=S,n.utils={cfb_new:y3,cfb_add:gm,cfb_del:x3,cfb_mov:b3,cfb_gc:w3,ReadShift:Td,CheckField:GA,prep_blob:pr,bconcat:_i,use_zlib:V,_deflateRaw:Go,_inflateRaw:kb,consts:R},n}(),z0;function EJ(t){return typeof t=="string"?om(t):Array.isArray(t)?ZQ(t):t}function Vd(t,n,e){if(typeof z0<"u"&&z0.writeFileSync)return e?z0.writeFileSync(t,n,e):z0.writeFileSync(t,n);if(typeof Deno<"u"){if(e&&typeof n=="string")switch(e){case"utf8":n=new TextEncoder(e).encode(n);break;case"binary":n=om(n);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,n)}var i=e=="utf8"?Qs(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,t);if(typeof Blob<"u"){var r=new Blob([EJ(i)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if(typeof saveAs<"u")return saveAs(r,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(r);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),chrome.downloads.download({url:s,filename:t,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=t,o.href=s,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var a=File(t);return a.open("w"),a.encoding="binary",Array.isArray(n)&&(n=Nd(n)),a.write(n),a.close(),n}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+t)}function bi(t){for(var n=Object.keys(t),e=[],i=0;i<n.length;++i)Object.prototype.hasOwnProperty.call(t,n[i])&&e.push(n[i]);return e}function UM(t,n){for(var e=[],i=bi(t),r=0;r!==i.length;++r)e[t[i[r]][n]]==null&&(e[t[i[r]][n]]=i[r]);return e}function Jx(t){for(var n=[],e=bi(t),i=0;i!==e.length;++i)n[t[e[i]]]=e[i];return n}function cm(t){for(var n=[],e=bi(t),i=0;i!==e.length;++i)n[t[e[i]]]=parseInt(e[i],10);return n}function TJ(t){for(var n=[],e=bi(t),i=0;i!==e.length;++i)n[t[e[i]]]==null&&(n[t[e[i]]]=[]),n[t[e[i]]].push(e[i]);return n}var X0=new Date(1899,11,30,0,0,0);function Qi(t,n){var e=t.getTime();n&&(e-=1462*24*60*60*1e3);var i=X0.getTime()+(t.getTimezoneOffset()-X0.getTimezoneOffset())*6e4;return(e-i)/(24*60*60*1e3)}var OA=new Date,IJ=X0.getTime()+(OA.getTimezoneOffset()-X0.getTimezoneOffset())*6e4,WM=OA.getTimezoneOffset();function RA(t){var n=new Date;return n.setTime(t*24*60*60*1e3+IJ),n.getTimezoneOffset()!==WM&&n.setTime(n.getTime()+(n.getTimezoneOffset()-WM)*6e4),n}var $M=new Date("2017-02-19T19:06:09.000Z"),LA=isNaN($M.getFullYear())?new Date("2/19/17"):$M,DJ=LA.getFullYear()==2017;function Ni(t,n){var e=new Date(t);if(DJ)return n>0?e.setTime(e.getTime()+e.getTimezoneOffset()*60*1e3):n<0&&e.setTime(e.getTime()-e.getTimezoneOffset()*60*1e3),e;if(t instanceof Date)return t;if(LA.getFullYear()==1917&&!isNaN(e.getFullYear())){var i=e.getFullYear();return t.indexOf(""+i)>-1||e.setFullYear(e.getFullYear()+100),e}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function um(t,n){if(Kt&&Buffer.isBuffer(t)){if(n){if(t[0]==255&&t[1]==254)return Qs(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return Qs(XQ(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(n){if(t[0]==255&&t[1]==254)return Qs(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return Qs(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return e[s]||s})}catch{}for(var i=[],r=0;r!=t.length;++r)i.push(String.fromCharCode(t[r]));return i.join("")}function Ji(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=Ji(t[e]));return n}function An(t,n){for(var e="";e.length<n;)e+=t;return e}function eo(t){var n=Number(t);if(!isNaN(n))return isFinite(n)?n:NaN;if(!/\d/.test(t))return n;var e=1,i=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return e*=100,""});return!isNaN(n=Number(i))||(i=i.replace(/[(](.*)[)]/,function(r,s){return e=-e,s}),!isNaN(n=Number(i)))?n/e:n}var kJ=["january","february","march","april","may","june","july","august","september","october","november","december"];function Pd(t){var n=new Date(t),e=new Date(NaN),i=n.getYear(),r=n.getMonth(),s=n.getDate();if(isNaN(s))return e;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&kJ.indexOf(o)==-1)return e}else if(o.match(/[a-z]/))return e;return i<0||i>8099?e:(r>0||s>1)&&i!=101?n:t.match(/[^-0-9:,\/\\]/)?e:n}function St(t,n,e){if(t.FullPaths){if(typeof e=="string"){var i;return Kt?i=ro(e):i=QQ(e),rn.utils.cfb_add(t,n,i)}rn.utils.cfb_add(t,n,e)}else t.file(n,e)}function eb(){return rn.utils.cfb_new()}var Wn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`;var MJ={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},tb=Jx(MJ);var nb=/[&<>'"]/g,AJ=/[\u0000-\u0008\u000b-\u001f]/g;function en(t){var n=t+"";return n.replace(nb,function(e){return tb[e]}).replace(AJ,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function GM(t){return en(t).replace(/ /g,"_x0020_")}var NA=/[\u0000-\u001f]/g;function FJ(t){var n=t+"";return n.replace(nb,function(e){return tb[e]}).replace(/\n/g,"<br/>").replace(NA,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function PJ(t){var n=t+"";return n.replace(nb,function(e){return tb[e]}).replace(NA,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}function OJ(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}function RJ(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Hx(t){for(var n="",e=0,i=0,r=0,s=0,o=0,a=0;e<t.length;){if(i=t.charCodeAt(e++),i<128){n+=String.fromCharCode(i);continue}if(r=t.charCodeAt(e++),i>191&&i<224){o=(i&31)<<6,o|=r&63,n+=String.fromCharCode(o);continue}if(s=t.charCodeAt(e++),i<240){n+=String.fromCharCode((i&15)<<12|(r&63)<<6|s&63);continue}o=t.charCodeAt(e++),a=((i&7)<<18|(r&63)<<12|(s&63)<<6|o&63)-65536,n+=String.fromCharCode(55296+(a>>>10&1023)),n+=String.fromCharCode(56320+(a&1023))}return n}function qM(t){var n=Va(2*t.length),e,i,r=1,s=0,o=0,a;for(i=0;i<t.length;i+=r)r=1,(a=t.charCodeAt(i))<128?e=a:a<224?(e=(a&31)*64+(t.charCodeAt(i+1)&63),r=2):a<240?(e=(a&15)*4096+(t.charCodeAt(i+1)&63)*64+(t.charCodeAt(i+2)&63),r=3):(r=4,e=(a&7)*262144+(t.charCodeAt(i+1)&63)*4096+(t.charCodeAt(i+2)&63)*64+(t.charCodeAt(i+3)&63),e-=65536,o=55296+(e>>>10&1023),e=56320+(e&1023)),o!==0&&(n[s++]=o&255,n[s++]=o>>>8,o=0),n[s++]=e%256,n[s++]=e>>>8;return n.slice(0,s).toString("ucs2")}function KM(t){return ro(t,"binary").toString("utf8")}var j0="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",Ed=Kt&&(KM(j0)==Hx(j0)&&KM||qM(j0)==Hx(j0)&&qM)||Hx,Qs=Kt?function(t){return ro(t,"utf8").toString("binary")}:function(t){for(var n=[],e=0,i=0,r=0;e<t.length;)switch(i=t.charCodeAt(e++),!0){case i<128:n.push(String.fromCharCode(i));break;case i<2048:n.push(String.fromCharCode(192+(i>>6))),n.push(String.fromCharCode(128+(i&63)));break;case(i>=55296&&i<57344):i-=55296,r=t.charCodeAt(e++)-56320+(i<<10),n.push(String.fromCharCode(240+(r>>18&7))),n.push(String.fromCharCode(144+(r>>12&63))),n.push(String.fromCharCode(128+(r>>6&63))),n.push(String.fromCharCode(128+(r&63)));break;default:n.push(String.fromCharCode(224+(i>>12))),n.push(String.fromCharCode(128+(i>>6&63))),n.push(String.fromCharCode(128+(i&63)))}return n.join("")};var LJ=function(){var t=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(n){return[new RegExp("&"+n[0]+";","ig"),n[1]]});return function(e){for(var i=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),r=0;r<t.length;++r)i=i.replace(t[r][0],t[r][1]);return i}}();var VA=/(^\s|\s$|\n)/;function yi(t,n){return"<"+t+(n.match(VA)?' xml:space="preserve"':"")+">"+n+"</"+t+">"}function Od(t){return bi(t).map(function(n){return" "+n+'="'+t[n]+'"'}).join("")}function Oe(t,n,e){return"<"+t+(e!=null?Od(e):"")+(n!=null?(n.match(VA)?' xml:space="preserve"':"")+">"+n+"</"+t:"/")+">"}function Kx(t,n){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(n)throw e}return""}function NJ(t,n){switch(typeof t){case"string":var e=Oe("vt:lpwstr",en(t));return n&&(e=e.replace(/&quot;/g,"_x0022_")),e;case"number":return Oe((t|0)==t?"vt:i4":"vt:r8",en(String(t)));case"boolean":return Oe("vt:bool",t?"true":"false")}if(t instanceof Date)return Oe("vt:filetime",Kx(t));throw new Error("Unable to serialize "+t)}var ai={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Cc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],mr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function VJ(t,n){for(var e=1-2*(t[n+7]>>>7),i=((t[n+7]&127)<<4)+(t[n+6]>>>4&15),r=t[n+6]&15,s=5;s>=0;--s)r=r*256+t[n+s];return i==2047?r==0?e*(1/0):NaN:(i==0?i=-1022:(i-=1023,r+=Math.pow(2,52)),e*Math.pow(2,i-52)*r)}function BJ(t,n,e){var i=(n<0||1/n==-1/0?1:0)<<7,r=0,s=0,o=i?-n:n;isFinite(o)?o==0?r=s=0:(r=Math.floor(Math.log(o)/Math.LN2),s=o*Math.pow(2,52-r),r<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?r=-1022:(s-=Math.pow(2,52),r+=1023)):(r=2047,s=isNaN(n)?26985:0);for(var a=0;a<=5;++a,s/=256)t[e+a]=s&255;t[e+6]=(r&15)<<4|s&15,t[e+7]=r>>4|i}var YM=function(t){for(var n=[],e=10240,i=0;i<t[0].length;++i)if(t[0][i])for(var r=0,s=t[0][i].length;r<s;r+=e)n.push.apply(n,t[0][i].slice(r,r+e));return n},XM=Kt?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(n){return Buffer.isBuffer(n)?n:ro(n)})):YM(t)}:YM,ZM=function(t,n,e){for(var i=[],r=n;r<e;r+=2)i.push(String.fromCharCode(Sd(t,r)));return i.join("").replace(gc,"")},dm=Kt?function(t,n,e){return Buffer.isBuffer(t)?t.toString("utf16le",n,e).replace(gc,""):ZM(t,n,e)}:ZM,QM=function(t,n,e){for(var i=[],r=n;r<n+e;++r)i.push(("0"+t[r].toString(16)).slice(-2));return i.join("")},BA=Kt?function(t,n,e){return Buffer.isBuffer(t)?t.toString("hex",n,n+e):QM(t,n,e)}:QM,JM=function(t,n,e){for(var i=[],r=n;r<e;r++)i.push(String.fromCharCode(pc(t,r)));return i.join("")},Sc=Kt?function(n,e,i){return Buffer.isBuffer(n)?n.toString("utf8",e,i):JM(n,e,i)}:JM,HA=function(t,n){var e=oi(t,n);return e>0?Sc(t,n+4,n+4+e-1):""},ib=HA,zA=function(t,n){var e=oi(t,n);return e>0?Sc(t,n+4,n+4+e-1):""},rb=zA,jA=function(t,n){var e=2*oi(t,n);return e>0?Sc(t,n+4,n+4+e-1):""},sb=jA,UA=function(n,e){var i=oi(n,e);return i>0?dm(n,e+4,e+4+i):""},ab=UA,WA=function(t,n){var e=oi(t,n);return e>0?Sc(t,n+4,n+4+e):""},lb=WA,$A=function(t,n){return VJ(t,n)},Z0=$A,cb=function(n){return Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array};Kt&&(ib=function(n,e){if(!Buffer.isBuffer(n))return HA(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},rb=function(n,e){if(!Buffer.isBuffer(n))return zA(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},sb=function(n,e){if(!Buffer.isBuffer(n))return jA(n,e);var i=2*n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i-1)},ab=function(n,e){if(!Buffer.isBuffer(n))return UA(n,e);var i=n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i)},lb=function(n,e){if(!Buffer.isBuffer(n))return WA(n,e);var i=n.readUInt32LE(e);return n.toString("utf8",e+4,e+4+i)},Z0=function(n,e){return Buffer.isBuffer(n)?n.readDoubleLE(e):$A(n,e)},cb=function(n){return Buffer.isBuffer(n)||Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array});function HJ(){dm=function(t,n,e){return an.utils.decode(1200,t.slice(n,e)).replace(gc,"")},Sc=function(t,n,e){return an.utils.decode(65001,t.slice(n,e))},ib=function(t,n){var e=oi(t,n);return e>0?an.utils.decode(bc,t.slice(n+4,n+4+e-1)):""},rb=function(t,n){var e=oi(t,n);return e>0?an.utils.decode(La,t.slice(n+4,n+4+e-1)):""},sb=function(t,n){var e=2*oi(t,n);return e>0?an.utils.decode(1200,t.slice(n+4,n+4+e-1)):""},ab=function(t,n){var e=oi(t,n);return e>0?an.utils.decode(1200,t.slice(n+4,n+4+e)):""},lb=function(t,n){var e=oi(t,n);return e>0?an.utils.decode(65001,t.slice(n+4,n+4+e)):""}}typeof an<"u"&&HJ();var pc=function(t,n){return t[n]},Sd=function(t,n){return t[n+1]*256+t[n]},zJ=function(t,n){var e=t[n+1]*256+t[n];return e<32768?e:(65535-e+1)*-1},oi=function(t,n){return t[n+3]*(1<<24)+(t[n+2]<<16)+(t[n+1]<<8)+t[n]},Ra=function(t,n){return t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]},jJ=function(t,n){return t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]};function Td(t,n){var e="",i,r,s=[],o,a,l,c;switch(n){case"dbcs":if(c=this.l,Kt&&Buffer.isBuffer(this))e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l<t;++l)e+=String.fromCharCode(Sd(this,c)),c+=2;t*=2;break;case"utf8":e=Sc(this,this.l,this.l+t);break;case"utf16le":t*=2,e=dm(this,this.l,this.l+t);break;case"wstr":if(typeof an<"u")e=an.utils.decode(La,this.slice(this.l,this.l+2*t));else return Td.call(this,t,"dbcs");t=2*t;break;case"lpstr-ansi":e=ib(this,this.l),t=4+oi(this,this.l);break;case"lpstr-cp":e=rb(this,this.l),t=4+oi(this,this.l);break;case"lpwstr":e=sb(this,this.l),t=4+2*oi(this,this.l);break;case"lpp4":t=4+oi(this,this.l),e=ab(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+oi(this,this.l),e=lb(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,e="";(o=pc(this,this.l+t++))!==0;)s.push(V0(o));e=s.join("");break;case"_wstr":for(t=0,e="";(o=Sd(this,this.l+t))!==0;)s.push(V0(o)),t+=2;t+=2,e=s.join("");break;case"dbcs-cont":for(e="",c=this.l,l=0;l<t;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=pc(this,c),this.l=c+1,a=Td.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),s.join("")+a;s.push(V0(Sd(this,c))),c+=2}e=s.join(""),t*=2;break;case"cpstr":if(typeof an<"u"){e=an.utils.decode(La,this.slice(this.l,this.l+t));break}case"sbcs-cont":for(e="",c=this.l,l=0;l!=t;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=pc(this,c),this.l=c+1,a=Td.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),s.join("")+a;s.push(V0(pc(this,c))),c+=1}e=s.join("");break;default:switch(t){case 1:return i=pc(this,this.l),this.l++,i;case 2:return i=(n==="i"?zJ:Sd)(this,this.l),this.l+=2,i;case 4:case-4:return n==="i"||!(this[this.l+3]&128)?(i=(t>0?Ra:jJ)(this,this.l),this.l+=4,i):(r=oi(this,this.l),this.l+=4,r);case 8:case-8:if(n==="f")return t==8?r=Z0(this,this.l):r=Z0([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;t=8;case 16:e=BA(this,this.l,t);break}}return this.l+=t,e}var UJ=function(t,n,e){t[e]=n&255,t[e+1]=n>>>8&255,t[e+2]=n>>>16&255,t[e+3]=n>>>24&255},WJ=function(t,n,e){t[e]=n&255,t[e+1]=n>>8&255,t[e+2]=n>>16&255,t[e+3]=n>>24&255},$J=function(t,n,e){t[e]=n&255,t[e+1]=n>>>8&255};function GJ(t,n,e){var i=0,r=0;if(e==="dbcs"){for(r=0;r!=n.length;++r)$J(this,n.charCodeAt(r),this.l+2*r);i=2*n.length}else if(e==="sbcs"){if(typeof an<"u"&&bc==874)for(r=0;r!=n.length;++r){var s=an.utils.encode(bc,n.charAt(r));this[this.l+r]=s[0]}else for(n=n.replace(/[^\x00-\x7F]/g,"_"),r=0;r!=n.length;++r)this[this.l+r]=n.charCodeAt(r)&255;i=n.length}else if(e==="hex"){for(;r<t;++r)this[this.l++]=parseInt(n.slice(2*r,2*r+2),16)||0;return this}else if(e==="utf16le"){var o=Math.min(this.l+t,this.length);for(r=0;r<Math.min(n.length,t);++r){var a=n.charCodeAt(r);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<o;)this[this.l++]=0;return this}else switch(t){case 1:i=1,this[this.l]=n&255;break;case 2:i=2,this[this.l]=n&255,n>>>=8,this[this.l+1]=n&255;break;case 3:i=3,this[this.l]=n&255,n>>>=8,this[this.l+1]=n&255,n>>>=8,this[this.l+2]=n&255;break;case 4:i=4,UJ(this,n,this.l);break;case 8:if(i=8,e==="f"){BJ(this,n,this.l);break}case 16:break;case-4:i=4,WJ(this,n,this.l);break}return this.l+=i,this}function GA(t,n){var e=BA(this,this.l,t.length>>1);if(e!==t)throw new Error(n+"Expected "+t+" saw "+e);this.l+=t.length>>1}function pr(t,n){t.l=n,t.read_shift=Td,t.chk=GA,t.write_shift=GJ}function ws(t,n){t.l+=n}function he(t){var n=Va(t);return pr(n,0),n}function Zi(){var t=[],n=Kt?256:2048,e=function(c){var u=he(c);return pr(u,0),u},i=e(n),r=function(){i&&(i.length>i.l&&(i=i.slice(0,i.l),i.l=i.length),i.length>0&&t.push(i),i=null)},s=function(c){return i&&c<i.length-i.l?i:(r(),i=e(Math.max(c+1,n)))},o=function(){return r(),_i(t)},a=function(c){r(),i=c,i.l==null&&(i.l=i.length),s(n)};return{next:s,push:a,end:o,_bufs:t}}function we(t,n,e,i){var r=+n,s;if(!isNaN(r)){i||(i=Bse[r].p||(e||[]).length||0),s=1+(r>=128?1:0)+1,i>=128&&++s,i>=16384&&++s,i>=2097152&&++s;var o=t.next(s);r<=127?o.write_shift(1,r):(o.write_shift(1,(r&127)+128),o.write_shift(1,r>>7));for(var a=0;a!=4;++a)if(i>=128)o.write_shift(1,(i&127)+128),i>>=7;else{o.write_shift(1,i);break}i>0&&cb(e)&&t.push(e)}}function Id(t,n,e){var i=Ji(t);if(n.s?(i.cRel&&(i.c+=n.s.c),i.rRel&&(i.r+=n.s.r)):(i.cRel&&(i.c+=n.c),i.rRel&&(i.r+=n.r)),!e||e.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function eA(t,n,e){var i=Ji(t);return i.s=Id(i.s,n.s,e),i.e=Id(i.e,n.s,e),i}function Dd(t,n){if(t.cRel&&t.c<0)for(t=Ji(t);t.c<0;)t.c+=n>8?16384:256;if(t.rRel&&t.r<0)for(t=Ji(t);t.r<0;)t.r+=n>8?1048576:n>5?65536:16384;var e=tn(t);return!t.cRel&&t.cRel!=null&&(e=YJ(e)),!t.rRel&&t.rRel!=null&&(e=qJ(e)),e}function zx(t,n){return t.s.r==0&&!t.s.rRel&&t.e.r==(n.biff>=12?1048575:n.biff>=8?65536:16384)&&!t.e.rRel?(t.s.cRel?"":"$")+Si(t.s.c)+":"+(t.e.cRel?"":"$")+Si(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(n.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+xi(t.s.r)+":"+(t.e.rRel?"":"$")+xi(t.e.r):Dd(t.s,n.biff)+":"+Dd(t.e,n.biff)}function ub(t){return parseInt(KJ(t),10)-1}function xi(t){return""+(t+1)}function qJ(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function KJ(t){return t.replace(/\$(\d+)$/,"$1")}function db(t){for(var n=XJ(t),e=0,i=0;i!==n.length;++i)e=26*e+n.charCodeAt(i)-64;return e-1}function Si(t){if(t<0)throw new Error("invalid column "+t);var n="";for(++t;t;t=Math.floor((t-1)/26))n=String.fromCharCode((t-1)%26+65)+n;return n}function YJ(t){return t.replace(/^([A-Z])/,"$$$1")}function XJ(t){return t.replace(/^\$([A-Z])/,"$1")}function ZJ(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function li(t){for(var n=0,e=0,i=0;i<t.length;++i){var r=t.charCodeAt(i);r>=48&&r<=57?n=10*n+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:n-1}}function tn(t){for(var n=t.c+1,e="";n;n=(n-1)/26|0)e=String.fromCharCode((n-1)%26+65)+e;return e+(t.r+1)}function gr(t){var n=t.indexOf(":");return n==-1?{s:li(t),e:li(t)}:{s:li(t.slice(0,n)),e:li(t.slice(n+1))}}function Un(t,n){return typeof n>"u"||typeof n=="number"?Un(t.s,t.e):(typeof t!="string"&&(t=tn(t)),typeof n!="string"&&(n=tn(n)),t==n?t:t+":"+n)}function yn(t){var n={s:{c:0,r:0},e:{c:0,r:0}},e=0,i=0,r=0,s=t.length;for(e=0;i<s&&!((r=t.charCodeAt(i)-64)<1||r>26);++i)e=26*e+r;for(n.s.c=--e,e=0;i<s&&!((r=t.charCodeAt(i)-48)<0||r>9);++i)e=10*e+r;if(n.s.r=--e,i===s||r!=10)return n.e.c=n.s.c,n.e.r=n.s.r,n;for(++i,e=0;i!=s&&!((r=t.charCodeAt(i)-64)<1||r>26);++i)e=26*e+r;for(n.e.c=--e,e=0;i!=s&&!((r=t.charCodeAt(i)-48)<0||r>9);++i)e=10*e+r;return n.e.r=--e,n}function tA(t,n){var e=t.t=="d"&&n instanceof Date;if(t.z!=null)try{return t.w=jo(t.z,e?Qi(n):n)}catch{}try{return t.w=jo((t.XF||{}).numFmtId||(e?14:0),e?Qi(n):n)}catch{return""+n}}function io(t,n,e){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),t.t=="e"?Bd[t.v]||t.v:n==null?tA(t,t.v):tA(t,n))}function za(t,n){var e=n&&n.sheet?n.sheet:"Sheet1",i={};return i[e]=t,{SheetNames:[e],Sheets:i}}function qA(t,n,e){var i=e||{},r=t?Array.isArray(t):i.dense;bs!=null&&r==null&&(r=bs);var s=t||(r?[]:{}),o=0,a=0;if(s&&i.origin!=null){if(typeof i.origin=="number")o=i.origin;else{var l=typeof i.origin=="string"?li(i.origin):i.origin;o=l.r,a=l.c}s["!ref"]||(s["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var u=yn(s["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var d=0;d!=n.length;++d)if(n[d]){if(!Array.isArray(n[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=n[d].length;++f)if(!(typeof n[d][f]>"u")){var h={v:n[d][f]},m=o+d,p=a+f;if(c.s.r>m&&(c.s.r=m),c.s.c>p&&(c.s.c=p),c.e.r<m&&(c.e.r=m),c.e.c<p&&(c.e.c=p),n[d][f]&&typeof n[d][f]=="object"&&!Array.isArray(n[d][f])&&!(n[d][f]instanceof Date))h=n[d][f];else if(Array.isArray(h.v)&&(h.f=n[d][f][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(i.nullError)h.t="e",h.v=0;else if(i.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=i.dateNF||Fn[14],i.cellDates?(h.t="d",h.w=jo(h.z,Qi(h.v))):(h.t="n",h.v=Qi(h.v),h.w=jo(h.z,h.v))):h.t="s";if(r)s[m]||(s[m]=[]),s[m][p]&&s[m][p].z&&(h.z=s[m][p].z),s[m][p]=h;else{var g=tn({c:p,r:m});s[g]&&s[g].z&&(h.z=s[g].z),s[g]=h}}}return c.s.c<1e7&&(s["!ref"]=Un(c)),s}function Ec(t,n){return qA(null,t,n)}function QJ(t){return t.read_shift(4,"i")}function Qr(t,n){return n||(n=he(4)),n.write_shift(4,t),n}function Ei(t){var n=t.read_shift(4);return n===0?"":t.read_shift(n,"dbcs")}function ci(t,n){var e=!1;return n==null&&(e=!0,n=he(4+2*t.length)),n.write_shift(4,t.length),t.length>0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}function JJ(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function eee(t,n){return n||(n=he(4)),n.write_shift(2,t.ich||0),n.write_shift(2,t.ifnt||0),n}function fb(t,n){var e=t.l,i=t.read_shift(1),r=Ei(t),s=[],o={t:r,h:r};if(i&1){for(var a=t.read_shift(4),l=0;l!=a;++l)s.push(JJ(t));o.r=s}else o.r=[{ich:0,ifnt:0}];return t.l=e+n,o}function tee(t,n){var e=!1;return n==null&&(e=!0,n=he(15+4*t.t.length)),n.write_shift(1,0),ci(t.t,n),e?n.slice(0,n.l):n}var nee=fb;function iee(t,n){var e=!1;return n==null&&(e=!0,n=he(23+4*t.t.length)),n.write_shift(1,1),ci(t.t,n),n.write_shift(4,1),eee({ich:0,ifnt:0},n),e?n.slice(0,n.l):n}function Mr(t){var n=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:n,iStyleRef:e}}function ja(t,n){return n==null&&(n=he(8)),n.write_shift(-4,t.c),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}function Ua(t){var n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:n}}function Wa(t,n){return n==null&&(n=he(4)),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}var ree=Ei,KA=ci;function hb(t){var n=t.read_shift(4);return n===0||n===4294967295?"":t.read_shift(n,"dbcs")}function Q0(t,n){var e=!1;return n==null&&(e=!0,n=he(127)),n.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}var see=Ei,Yx=hb,pb=Q0;function YA(t){var n=t.slice(t.l,t.l+4),e=n[0]&1,i=n[0]&2;t.l+=4;var r=i===0?Z0([0,0,0,0,n[0]&252,n[1],n[2],n[3]],0):Ra(n,0)>>2;return e?r/100:r}function XA(t,n){n==null&&(n=he(4));var e=0,i=0,r=t*100;if(t==(t|0)&&t>=-(1<<29)&&t<1<<29?i=1:r==(r|0)&&r>=-(1<<29)&&r<1<<29&&(i=1,e=1),i)n.write_shift(-4,((e?r:t)<<2)+(e+2));else throw new Error("unsupported RkNumber "+t)}function ZA(t){var n={s:{},e:{}};return n.s.r=t.read_shift(4),n.e.r=t.read_shift(4),n.s.c=t.read_shift(4),n.e.c=t.read_shift(4),n}function oee(t,n){return n||(n=he(16)),n.write_shift(4,t.s.r),n.write_shift(4,t.e.r),n.write_shift(4,t.s.c),n.write_shift(4,t.e.c),n}var $a=ZA,Tc=oee;function Ic(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Ba(t,n){return(n||he(8)).write_shift(8,t,"f")}function aee(t){var n={},e=t.read_shift(1),i=e>>>1,r=t.read_shift(1),s=t.read_shift(2,"i"),o=t.read_shift(1),a=t.read_shift(1),l=t.read_shift(1);switch(t.l++,i){case 0:n.auto=1;break;case 1:n.index=r;var c=gee[r];c&&(n.rgb=fA(c));break;case 2:n.rgb=fA([o,a,l]);break;case 3:n.theme=r;break}return s!=0&&(n.tint=s>0?s/32767:s/32768),n}function J0(t,n){if(n||(n=he(8)),!t||t.auto)return n.write_shift(4,0),n.write_shift(4,0),n;t.index!=null?(n.write_shift(1,2),n.write_shift(1,t.index)):t.theme!=null?(n.write_shift(1,6),n.write_shift(1,t.theme)):(n.write_shift(1,5),n.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),n.write_shift(2,e),!t.rgb||t.theme!=null)n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);else{var i=t.rgb||"FFFFFF";typeof i=="number"&&(i=("000000"+i.toString(16)).slice(-6)),n.write_shift(1,parseInt(i.slice(0,2),16)),n.write_shift(1,parseInt(i.slice(2,4),16)),n.write_shift(1,parseInt(i.slice(4,6),16)),n.write_shift(1,255)}return n}function lee(t){var n=t.read_shift(1);t.l++;var e={fBold:n&1,fItalic:n&2,fUnderline:n&4,fStrikeout:n&8,fOutline:n&16,fShadow:n&32,fCondense:n&64,fExtend:n&128};return e}function cee(t,n){n||(n=he(2));var e=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return n.write_shift(1,e),n.write_shift(1,0),n}var QA=2,hr=3,U0=11;var em=19;var W0=64,uee=65,dee=71;var fee=4108,hee=4126,vi=80;var nA={1:{n:"CodePage",t:QA},2:{n:"Category",t:vi},3:{n:"PresentationFormat",t:vi},4:{n:"ByteCount",t:hr},5:{n:"LineCount",t:hr},6:{n:"ParagraphCount",t:hr},7:{n:"SlideCount",t:hr},8:{n:"NoteCount",t:hr},9:{n:"HiddenCount",t:hr},10:{n:"MultimediaClipCount",t:hr},11:{n:"ScaleCrop",t:U0},12:{n:"HeadingPairs",t:fee},13:{n:"TitlesOfParts",t:hee},14:{n:"Manager",t:vi},15:{n:"Company",t:vi},16:{n:"LinksUpToDate",t:U0},17:{n:"CharacterCount",t:hr},19:{n:"SharedDoc",t:U0},22:{n:"HyperlinksChanged",t:U0},23:{n:"AppVersion",t:hr,p:"version"},24:{n:"DigSig",t:uee},26:{n:"ContentType",t:vi},27:{n:"ContentStatus",t:vi},28:{n:"Language",t:vi},29:{n:"Version",t:vi},255:{},2147483648:{n:"Locale",t:em},2147483651:{n:"Behavior",t:em},1919054434:{}},iA={1:{n:"CodePage",t:QA},2:{n:"Title",t:vi},3:{n:"Subject",t:vi},4:{n:"Author",t:vi},5:{n:"Keywords",t:vi},6:{n:"Comments",t:vi},7:{n:"Template",t:vi},8:{n:"LastAuthor",t:vi},9:{n:"RevNumber",t:vi},10:{n:"EditTime",t:W0},11:{n:"LastPrinted",t:W0},12:{n:"CreatedDate",t:W0},13:{n:"ModifiedDate",t:W0},14:{n:"PageCount",t:hr},15:{n:"WordCount",t:hr},16:{n:"CharCount",t:hr},17:{n:"Thumbnail",t:dee},18:{n:"Application",t:vi},19:{n:"DocSecurity",t:hr},255:{},2147483648:{n:"Locale",t:em},2147483651:{n:"Behavior",t:em},1919054434:{}};function pee(t){return t.map(function(n){return[n>>16&255,n>>8&255,n&255]})}var mee=pee([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),gee=Ji(mee),Bd={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var vee={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},$0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function JA(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function eF(t,n){var e=TJ(vee),i=[],r;i[i.length]=Wn,i[i.length]=Oe("Types",null,{xmlns:ai.CT,"xmlns:xsd":ai.xsd,"xmlns:xsi":ai.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Oe("Default",null,{Extension:l[0],ContentType:l[1]})}));var s=function(l){t[l]&&t[l].length>0&&(r=t[l][0],i[i.length]=Oe("Override",null,{PartName:(r[0]=="/"?"":"/")+r,ContentType:$0[l][n.bookType]||$0[l].xlsx}))},o=function(l){(t[l]||[]).forEach(function(c){i[i.length]=Oe("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:$0[l][n.bookType]||$0[l].xlsx})})},a=function(l){(t[l]||[]).forEach(function(c){i[i.length]=Oe("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:e[l][0]})})};return s("workbooks"),o("sheets"),o("charts"),a("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("threadedcomments"),a("drawings"),o("metadata"),a("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var Wt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function tF(t){var n=t.lastIndexOf("/");return t.slice(0,n+1)+"_rels/"+t.slice(n+1)+".rels"}function _c(t){var n=[Wn,Oe("Relationships",null,{xmlns:ai.RELS})];return bi(t["!id"]).forEach(function(e){n[n.length]=Oe("Relationship",null,t["!id"][e])}),n.length>2&&(n[n.length]="</Relationships>",n[1]=n[1].replace("/>",">")),n.join("")}function Jt(t,n,e,i,r,s){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),n<0)for(n=t["!idx"];t["!id"]["rId"+n];++n);if(t["!idx"]=n+1,r.Id="rId"+n,r.Type=i,r.Target=e,s?r.TargetMode=s:[Wt.HLINK,Wt.XPATH,Wt.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+n);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,n}function _ee(t){var n=[Wn];n.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),n.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var e=0;e<t.length;++e)n.push('  <manifest:file-entry manifest:full-path="'+t[e][0]+'" manifest:media-type="'+t[e][1]+`"/>
`);return n.push("</manifest:manifest>"),n.join("")}function rA(t,n,e){return['  <rdf:Description rdf:about="'+t+`">
`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(e||"odf")+"#"+n+`"/>
`,`  </rdf:Description>
`].join("")}function yee(t,n){return['  <rdf:Description rdf:about="'+t+`">
`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+n+`"/>
`,`  </rdf:Description>
`].join("")}function xee(t){var n=[Wn];n.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var e=0;e!=t.length;++e)n.push(rA(t[e][0],t[e][1])),n.push(yee("",t[e][0]));return n.push(rA("","Document","pkg")),n.push("</rdf:RDF>"),n.join("")}function nF(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Md.version+"</meta:generator></office:meta></office:document-meta>"}var Na=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function jx(t,n,e,i,r){r[t]!=null||n==null||n===""||(r[t]=n,n=en(n),i[i.length]=e?Oe(t,n,e):yi(t,n))}function iF(t,n){var e=n||{},i=[Wn,Oe("cp:coreProperties",null,{"xmlns:cp":ai.CORE_PROPS,"xmlns:dc":ai.dc,"xmlns:dcterms":ai.dcterms,"xmlns:dcmitype":ai.dcmitype,"xmlns:xsi":ai.xsi})],r={};if(!t&&!e.Props)return i.join("");t&&(t.CreatedDate!=null&&jx("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:Kx(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r),t.ModifiedDate!=null&&jx("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:Kx(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r));for(var s=0;s!=Na.length;++s){var o=Na[s],a=e.Props&&e.Props[o[1]]!=null?e.Props[o[1]]:t?t[o[1]]:null;a===!0?a="1":a===!1?a="0":typeof a=="number"&&(a=String(a)),a!=null&&jx(o[0],a,null,i,r)}return i.length>2&&(i[i.length]="</cp:coreProperties>",i[1]=i[1].replace("/>",">")),i.join("")}var yc=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],rF=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function sF(t){var n=[],e=Oe;return t||(t={}),t.Application="SheetJS",n[n.length]=Wn,n[n.length]=Oe("Properties",null,{xmlns:ai.EXT_PROPS,"xmlns:vt":ai.vt}),yc.forEach(function(i){if(t[i[1]]!==void 0){var r;switch(i[2]){case"string":r=en(String(t[i[1]]));break;case"bool":r=t[i[1]]?"true":"false";break}r!==void 0&&(n[n.length]=e(i[0],r))}}),n[n.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),n[n.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(i){return"<vt:lpstr>"+en(i)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),n.length>2&&(n[n.length]="</Properties>",n[1]=n[1].replace("/>",">")),n.join("")}function oF(t){var n=[Wn,Oe("Properties",null,{xmlns:ai.CUST_PROPS,"xmlns:vt":ai.vt})];if(!t)return n.join("");var e=1;return bi(t).forEach(function(r){++e,n[n.length]=Oe("property",NJ(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:en(r)})}),n.length>2&&(n[n.length]="</Properties>",n[1]=n[1].replace("/>",">")),n.join("")}var sA={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function bee(t,n){var e=[];return bi(sA).map(function(i){for(var r=0;r<Na.length;++r)if(Na[r][1]==i)return Na[r];for(r=0;r<yc.length;++r)if(yc[r][1]==i)return yc[r];throw i}).forEach(function(i){if(t[i[1]]!=null){var r=n&&n.Props&&n.Props[i[1]]!=null?n.Props[i[1]]:t[i[1]];switch(i[2]){case"date":r=new Date(r).toISOString().replace(/\.\d*Z/,"Z");break}typeof r=="number"?r=String(r):r===!0||r===!1?r=r?"1":"0":r instanceof Date&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"")),e.push(yi(sA[i[1]]||i[1],r))}}),Oe("DocumentProperties",e.join(""),{xmlns:mr.o})}function wee(t,n){var e=["Worksheets","SheetNames"],i="CustomDocumentProperties",r=[];return t&&bi(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)){for(var o=0;o<Na.length;++o)if(s==Na[o][1])return;for(o=0;o<yc.length;++o)if(s==yc[o][1])return;for(o=0;o<e.length;++o)if(s==e[o])return;var a=t[s],l="string";typeof a=="number"?(l="float",a=String(a)):a===!0||a===!1?(l="boolean",a=a?"1":"0"):a=String(a),r.push(Oe(GM(s),a,{"dt:dt":l}))}}),n&&bi(n).forEach(function(s){if(Object.prototype.hasOwnProperty.call(n,s)&&!(t&&Object.prototype.hasOwnProperty.call(t,s))){var o=n[s],a="string";typeof o=="number"?(a="float",o=String(o)):o===!0||o===!1?(a="boolean",o=o?"1":"0"):o instanceof Date?(a="dateTime.tz",o=o.toISOString()):o=String(o),r.push(Oe(GM(s),o,{"dt:dt":a}))}}),"<"+i+' xmlns="'+mr.o+'">'+r.join("")+"</"+i+">"}function Cee(t){var n=typeof t=="string"?new Date(Date.parse(t)):t,e=n.getTime()/1e3+11644473600,i=e%Math.pow(2,32),r=(e-i)/Math.pow(2,32);i*=1e7,r*=1e7;var s=i/Math.pow(2,32)|0;s>0&&(i=i%Math.pow(2,32),r+=s);var o=he(8);return o.write_shift(4,i),o.write_shift(4,r),o}function oA(t,n){var e=he(4),i=he(4);switch(e.write_shift(4,t==80?31:t),t){case 3:i.write_shift(-4,n);break;case 5:i=he(8),i.write_shift(8,n,"f");break;case 11:i.write_shift(4,n?1:0);break;case 64:i=Cee(n);break;case 31:case 80:for(i=he(4+2*(n.length+1)+(n.length%2?0:2)),i.write_shift(4,n.length+1),i.write_shift(0,n,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}return _i([e,i])}var aF=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function See(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function aA(t,n,e){var i=he(8),r=[],s=[],o=8,a=0,l=he(8),c=he(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),s.push(l),r.push(c),o+=8+l.length,!n){c=he(8),c.write_shift(4,0),r.unshift(c);var u=[he(4)];for(u[0].write_shift(4,t.length),a=0;a<t.length;++a){var d=t[a][0];for(l=he(8+2*(d.length+1)+(d.length%2?0:2)),l.write_shift(4,a+2),l.write_shift(4,d.length+1),l.write_shift(0,d,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=_i(u),s.unshift(l),o+=8+l.length}for(a=0;a<t.length;++a)if(!(n&&!n[t[a][0]])&&!(aF.indexOf(t[a][0])>-1||rF.indexOf(t[a][0])>-1)&&t[a][1]!=null){var f=t[a][1],h=0;if(n){h=+n[t[a][0]];var m=e[h];if(m.p=="version"&&typeof f=="string"){var p=f.split(".");f=(+p[0]<<16)+(+p[1]||0)}l=oA(m.t,f)}else{var g=See(f);g==-1&&(g=31,f=String(f)),l=oA(g,f)}s.push(l),c=he(8),c.write_shift(4,n?h:2+a),r.push(c),o+=8+l.length}var v=8*(s.length+1);for(a=0;a<s.length;++a)r[a].write_shift(4,v),v+=s[a].length;return i.write_shift(4,o),i.write_shift(4,s.length),_i([i].concat(r).concat(s))}function lA(t,n,e,i,r,s){var o=he(r?68:48),a=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,rn.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,r?2:1),o.write_shift(16,n,"hex"),o.write_shift(4,r?68:48);var l=aA(t,e,i);if(a.push(l),r){var c=aA(r,null,null);o.write_shift(16,s,"hex"),o.write_shift(4,68+l.length),a.push(c)}return _i(a)}function Eee(t,n){n||(n=he(t));for(var e=0;e<t;++e)n.write_shift(1,0);return n}function Tee(t,n){return t.read_shift(n)===1}function Li(t,n){return n||(n=he(2)),n.write_shift(2,+!!t),n}function lF(t){return t.read_shift(2,"u")}function kr(t,n){return n||(n=he(2)),n.write_shift(2,t),n}function cF(t,n,e){return e||(e=he(2)),e.write_shift(1,n=="e"?+t:+!!t),e.write_shift(1,n=="e"?1:0),e}function uF(t,n,e){var i=t.read_shift(e&&e.biff>=12?2:1),r="sbcs-cont",s=La;if(e&&e.biff>=8&&(La=1200),!e||e.biff==8){var o=t.read_shift(1);o&&(r="dbcs-cont")}else e.biff==12&&(r="wstr");e.biff>=2&&e.biff<=5&&(r="cpstr");var a=i?t.read_shift(i,r):"";return La=s,a}function Iee(t){var n=t.t||"",e=1,i=he(3+(e>1?2:0));i.write_shift(2,n.length),i.write_shift(1,(e>1?8:0)|1),e>1&&i.write_shift(2,e);var r=he(2*n.length);r.write_shift(2*n.length,n,"utf16le");var s=[i,r];return _i(s)}function Dee(t,n,e){var i;if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(n,"cpstr");if(e.biff>=12)return t.read_shift(n,"dbcs-cont")}var r=t.read_shift(1);return r===0?i=t.read_shift(n,"sbcs-cont"):i=t.read_shift(n,"dbcs-cont"),i}function kee(t,n,e){var i=t.read_shift(e&&e.biff==2?1:2);return i===0?(t.l++,""):Dee(t,i,e)}function Mee(t,n,e){if(e.biff>5)return kee(t,n,e);var i=t.read_shift(1);return i===0?(t.l++,""):t.read_shift(i,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function dF(t,n,e){return e||(e=he(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function cA(t,n){n||(n=he(6+t.length*2)),n.write_shift(4,1+t.length);for(var e=0;e<t.length;++e)n.write_shift(2,t.charCodeAt(e));return n.write_shift(2,0),n}function Aee(t){var n=he(512),e=0,i=t.Target;i.slice(0,7)=="file://"&&(i=i.slice(7));var r=i.indexOf("#"),s=r>-1?31:23;switch(i.charAt(0)){case"#":s=28;break;case".":s&=-3;break}n.write_shift(4,2),n.write_shift(4,s);var o=[8,6815827,6619237,4849780,83];for(e=0;e<o.length;++e)n.write_shift(4,o[e]);if(s==28)i=i.slice(1),cA(i,n);else if(s&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<o.length;++e)n.write_shift(1,parseInt(o[e],16));var a=r>-1?i.slice(0,r):i;for(n.write_shift(4,2*(a.length+1)),e=0;e<a.length;++e)n.write_shift(2,a.charCodeAt(e));n.write_shift(2,0),s&8&&cA(r>-1?i.slice(r+1):"",n)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<o.length;++e)n.write_shift(1,parseInt(o[e],16));for(var l=0;i.slice(l*3,l*3+3)=="../"||i.slice(l*3,l*3+3)=="..\\";)++l;for(n.write_shift(2,l),n.write_shift(4,i.length-3*l+1),e=0;e<i.length-3*l;++e)n.write_shift(1,i.charCodeAt(e+3*l)&255);for(n.write_shift(1,0),n.write_shift(2,65535),n.write_shift(2,57005),e=0;e<6;++e)n.write_shift(4,0)}return n.slice(0,n.l)}function Ha(t,n,e,i){return i||(i=he(6)),i.write_shift(2,t),i.write_shift(2,n),i.write_shift(2,e||0),i}function Fee(t,n,e){var i=e.biff>8?4:2,r=t.read_shift(i),s=t.read_shift(i,"i"),o=t.read_shift(i,"i");return[r,s,o]}function Pee(t){var n=t.read_shift(2),e=t.read_shift(2),i=t.read_shift(2),r=t.read_shift(2);return{s:{c:i,r:n},e:{c:r,r:e}}}function fF(t,n){return n||(n=he(8)),n.write_shift(2,t.s.r),n.write_shift(2,t.e.r),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c),n}function mb(t,n,e){var i=1536,r=16;switch(e.bookType){case"biff8":break;case"biff5":i=1280,r=8;break;case"biff4":i=4,r=6;break;case"biff3":i=3,r=6;break;case"biff2":i=2,r=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=he(r);return s.write_shift(2,i),s.write_shift(2,n),r>4&&s.write_shift(2,29282),r>6&&s.write_shift(2,1997),r>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function Oee(t,n){var e=!n||n.biff==8,i=he(e?112:54);for(i.write_shift(n.biff==8?2:1,7),e&&i.write_shift(1,0),i.write_shift(4,859007059),i.write_shift(4,5458548|(e?0:536870912));i.l<i.length;)i.write_shift(1,e?0:32);return i}function Ree(t,n){var e=!n||n.biff>=8?2:1,i=he(8+e*t.name.length);i.write_shift(4,t.pos),i.write_shift(1,t.hs||0),i.write_shift(1,t.dt),i.write_shift(1,t.name.length),n.biff>=8&&i.write_shift(1,1),i.write_shift(e*t.name.length,t.name,n.biff<8?"sbcs":"utf16le");var r=i.slice(0,i.l);return r.l=i.l,r}function Lee(t,n){var e=he(8);e.write_shift(4,t.Count),e.write_shift(4,t.Unique);for(var i=[],r=0;r<t.length;++r)i[r]=Iee(t[r],n);var s=_i([e].concat(i));return s.parts=[e.length].concat(i.map(function(o){return o.length})),s}function Nee(){var t=he(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function Vee(t){var n=he(18),e=1718;return t&&t.RTL&&(e|=64),n.write_shift(2,e),n.write_shift(4,0),n.write_shift(4,64),n.write_shift(4,0),n.write_shift(4,0),n}function Bee(t,n){var e=t.name||"Arial",i=n&&n.biff==5,r=i?15+e.length:16+2*e.length,s=he(r);return s.write_shift(2,(t.sz||12)*20),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,e.length),i||s.write_shift(1,1),s.write_shift((i?1:2)*e.length,e,i?"sbcs":"utf16le"),s}function Hee(t,n,e,i){var r=he(10);return Ha(t,n,i,r),r.write_shift(4,e),r}function zee(t,n,e,i,r){var s=!r||r.biff==8,o=he(8+ +s+(1+s)*e.length);return Ha(t,n,i,o),o.write_shift(2,e.length),s&&o.write_shift(1,1),o.write_shift((1+s)*e.length,e,s?"utf16le":"sbcs"),o}function jee(t,n,e,i){var r=e&&e.biff==5;i||(i=he(r?3+n.length:5+2*n.length)),i.write_shift(2,t),i.write_shift(r?1:2,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le");var s=i.length>i.l?i.slice(0,i.l):i;return s.l==null&&(s.l=s.length),s}function Uee(t,n){var e=n.biff==8||!n.biff?4:2,i=he(2*e+6);return i.write_shift(e,t.s.r),i.write_shift(e,t.e.r+1),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c+1),i.write_shift(2,0),i}function uA(t,n,e,i){var r=e&&e.biff==5;i||(i=he(r?16:20)),i.write_shift(2,0),t.style?(i.write_shift(2,t.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,t.numFmtId||0),i.write_shift(2,n<<4));var s=0;return t.numFmtId>0&&r&&(s|=1024),i.write_shift(4,s),i.write_shift(4,0),r||i.write_shift(4,0),i.write_shift(2,0),i}function Wee(t){var n=he(8);return n.write_shift(4,0),n.write_shift(2,t[0]?t[0]+1:0),n.write_shift(2,t[1]?t[1]+1:0),n}function $ee(t,n,e,i,r,s){var o=he(8);return Ha(t,n,i,o),cF(e,s,o),o}function Gee(t,n,e,i){var r=he(14);return Ha(t,n,i,r),Ba(e,r),r}function qee(t,n,e){if(e.biff<8)return Kee(t,n,e);for(var i=[],r=t.l+n,s=t.read_shift(e.biff>8?4:2);s--!==0;)i.push(Fee(t,e.biff>8?12:6,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return i}function Kee(t,n,e){t[t.l+1]==3&&t[t.l]++;var i=uF(t,n,e);return i.charCodeAt(0)==3?i.slice(1):i}function Yee(t){var n=he(2+t.length*8);n.write_shift(2,t.length);for(var e=0;e<t.length;++e)fF(t[e],n);return n}function Xee(t){var n=he(24),e=li(t[0]);n.write_shift(2,e.r),n.write_shift(2,e.r),n.write_shift(2,e.c),n.write_shift(2,e.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)n.write_shift(1,parseInt(i[r],16));return _i([n,Aee(t[1])])}function Zee(t){var n=t[1].Tooltip,e=he(10+2*(n.length+1));e.write_shift(2,2048);var i=li(t[0]);e.write_shift(2,i.r),e.write_shift(2,i.r),e.write_shift(2,i.c),e.write_shift(2,i.c);for(var r=0;r<n.length;++r)e.write_shift(2,n.charCodeAt(r));return e.write_shift(2,0),e}function Qee(t){return t||(t=he(4)),t.write_shift(2,1),t.write_shift(2,1),t}function Jee(t,n,e){if(!e.cellStyles)return ws(t,n);var i=e&&e.biff>=12?4:2,r=t.read_shift(i),s=t.read_shift(i),o=t.read_shift(i),a=t.read_shift(i),l=t.read_shift(2);i==2&&(t.l+=2);var c={s:r,e:s,w:o,ixfe:a,flags:l};return(e.biff>=5||!e.biff)&&(c.level=l>>8&7),c}function ete(t,n){var e=he(12);e.write_shift(2,n),e.write_shift(2,n),e.write_shift(2,t.width*256),e.write_shift(2,0);var i=0;return t.hidden&&(i|=1),e.write_shift(1,i),i=t.level||0,e.write_shift(1,i),e.write_shift(2,0),e}function tte(t){for(var n=he(2*t),e=0;e<t;++e)n.write_shift(2,e+1);return n}function nte(t,n,e){var i=he(15);return zd(i,t,n),i.write_shift(8,e,"f"),i}function ite(t,n,e){var i=he(9);return zd(i,t,n),i.write_shift(2,e),i}var rte=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},n=Jx({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function e(a,l){var c=[],u=Va(1);switch(l.type){case"base64":u=Xr(no(a));break;case"binary":u=Xr(a);break;case"buffer":case"array":u=a;break}pr(u,0);var d=u.read_shift(1),f=!!(d&136),h=!1,m=!1;switch(d){case 2:break;case 3:break;case 48:h=!0,f=!0;break;case 49:h=!0,f=!0;break;case 131:break;case 139:break;case 140:m=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var p=0,g=521;d==2&&(p=u.read_shift(2)),u.l+=3,d!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),d!=2&&(g=u.read_shift(2));var v=u.read_shift(2),_=l.codepage||1252;d!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(_=t[u[u.l]]),u.l+=1,u.l+=2),m&&(u.l+=36);for(var y=[],x={},w=Math.min(u.length,d==2?521:g-10-(h?264:0)),T=m?32:11;u.l<w&&u[u.l]!=13;)switch(x={},x.name=an.utils.decode(_,u.slice(u.l,u.l+T)).replace(/[\u0000\r\n].*$/g,""),u.l+=T,x.type=String.fromCharCode(u.read_shift(1)),d!=2&&!m&&(x.offset=u.read_shift(4)),x.len=u.read_shift(1),d==2&&(x.offset=u.read_shift(2)),x.dec=u.read_shift(1),x.name.length&&y.push(x),d!=2&&(u.l+=m?13:14),x.type){case"B":(!h||x.len!=8)&&l.WTF&&console.log("Skipping "+x.name+":"+x.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+x.name+":"+x.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+x.type)}if(u[u.l]!==13&&(u.l=g-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=g;var E=0,k=0;for(c[0]=[],k=0;k!=y.length;++k)c[0][k]=y[k].name;for(;p-- >0;){if(u[u.l]===42){u.l+=v;continue}for(++u.l,c[++E]=[],k=0,k=0;k!=y.length;++k){var F=u.slice(u.l,u.l+y[k].len);u.l+=y[k].len,pr(F,0);var G=an.utils.decode(_,F);switch(y[k].type){case"C":G.trim().length&&(c[E][k]=G.replace(/\s+$/,""));break;case"D":G.length===8?c[E][k]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):c[E][k]=G;break;case"F":c[E][k]=parseFloat(G.trim());break;case"+":case"I":c[E][k]=m?F.read_shift(-4,"i")^2147483648:F.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":c[E][k]=!0;break;case"N":case"F":c[E][k]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!f)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));c[E][k]="##MEMO##"+(m?parseInt(G.trim(),10):F.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(c[E][k]=+G||0);break;case"@":c[E][k]=new Date(F.read_shift(-8,"f")-621356832e5);break;case"T":c[E][k]=new Date((F.read_shift(4)-2440588)*864e5+F.read_shift(4));break;case"Y":c[E][k]=F.read_shift(4,"i")/1e4+F.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[E][k]=-F.read_shift(-8,"f");break;case"B":if(h&&y[k].len==8){c[E][k]=F.read_shift(8,"f");break}case"G":case"P":F.l+=y[k].len;break;case"0":if(y[k].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[k].type)}}}if(d!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=y,c}function i(a,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=Ec(e(a,c),c);return u["!cols"]=c.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete c.DBF,u}function r(a,l){try{return za(i(a,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var s={B:8,C:250,L:1,D:8,"?":0,"":0};function o(a,l){var c=l||{};if(+c.codepage>=0&&Ad(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=Zi(),d=sm(a,{header:1,raw:!0,cellDates:!0}),f=d[0],h=d.slice(1),m=a["!cols"]||[],p=0,g=0,v=0,_=1;for(p=0;p<f.length;++p){if(((m[p]||{}).DBF||{}).name){f[p]=m[p].DBF.name,++v;continue}if(f[p]!=null){if(++v,typeof f[p]=="number"&&(f[p]=f[p].toString(10)),typeof f[p]!="string")throw new Error("DBF Invalid column name "+f[p]+" |"+typeof f[p]+"|");if(f.indexOf(f[p])!==p){for(g=0;g<1024;++g)if(f.indexOf(f[p]+"_"+g)==-1){f[p]+="_"+g;break}}}}var y=yn(a["!ref"]),x=[],w=[],T=[];for(p=0;p<=y.e.c-y.s.c;++p){var E="",k="",F=0,G=[];for(g=0;g<h.length;++g)h[g][p]!=null&&G.push(h[g][p]);if(G.length==0||f[p]==null){x[p]="?";continue}for(g=0;g<G.length;++g){switch(typeof G[g]){case"number":k="B";break;case"string":k="C";break;case"boolean":k="L";break;case"object":k=G[g]instanceof Date?"D":"C";break;default:k="C"}F=Math.max(F,String(G[g]).length),E=E&&E!=k?"C":k}F>250&&(F=250),k=((m[p]||{}).DBF||{}).type,k=="C"&&m[p].DBF.len>F&&(F=m[p].DBF.len),E=="B"&&k=="N"&&(E="N",T[p]=m[p].DBF.dec,F=m[p].DBF.len),w[p]=E=="C"||k=="N"?F:s[E]||0,_+=w[p],x[p]=E}var Y=u.next(32);for(Y.write_shift(4,318902576),Y.write_shift(4,h.length),Y.write_shift(2,296+32*v),Y.write_shift(2,_),p=0;p<4;++p)Y.write_shift(4,0);for(Y.write_shift(4,0|(+n[bc]||3)<<8),p=0,g=0;p<f.length;++p)if(f[p]!=null){var W=u.next(32),le=(f[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);W.write_shift(1,le,"sbcs"),W.write_shift(1,x[p]=="?"?"C":x[p],"sbcs"),W.write_shift(4,g),W.write_shift(1,w[p]||s[x[p]]||0),W.write_shift(1,T[p]||0),W.write_shift(1,2),W.write_shift(4,0),W.write_shift(1,0),W.write_shift(4,0),W.write_shift(4,0),g+=w[p]||s[x[p]]||0}var ge=u.next(264);for(ge.write_shift(4,13),p=0;p<65;++p)ge.write_shift(4,0);for(p=0;p<h.length;++p){var te=u.next(_);for(te.write_shift(1,0),g=0;g<f.length;++g)if(f[g]!=null)switch(x[g]){case"L":te.write_shift(1,h[p][g]==null?63:h[p][g]?84:70);break;case"B":te.write_shift(8,h[p][g]||0,"f");break;case"N":var M="0";for(typeof h[p][g]=="number"&&(M=h[p][g].toFixed(T[g]||0)),v=0;v<w[g]-M.length;++v)te.write_shift(1,32);te.write_shift(1,M,"sbcs");break;case"D":h[p][g]?(te.write_shift(4,("0000"+h[p][g].getFullYear()).slice(-4),"sbcs"),te.write_shift(2,("00"+(h[p][g].getMonth()+1)).slice(-2),"sbcs"),te.write_shift(2,("00"+h[p][g].getDate()).slice(-2),"sbcs")):te.write_shift(8,"00000000","sbcs");break;case"C":var R=String(h[p][g]!=null?h[p][g]:"").slice(0,w[g]);for(te.write_shift(1,R,"sbcs"),v=0;v<w[g]-R.length;++v)te.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:r,to_sheet:i,from_sheet:o}}(),ste=function(){var t={AA:"\xC0",BA:"\xC1",CA:"\xC2",DA:195,HA:"\xC4",JA:197,AE:"\xC8",BE:"\xC9",CE:"\xCA",HE:"\xCB",AI:"\xCC",BI:"\xCD",CI:"\xCE",HI:"\xCF",AO:"\xD2",BO:"\xD3",CO:"\xD4",DO:213,HO:"\xD6",AU:"\xD9",BU:"\xDA",CU:"\xDB",HU:"\xDC",Aa:"\xE0",Ba:"\xE1",Ca:"\xE2",Da:227,Ha:"\xE4",Ja:229,Ae:"\xE8",Be:"\xE9",Ce:"\xEA",He:"\xEB",Ai:"\xEC",Bi:"\xED",Ci:"\xEE",Hi:"\xEF",Ao:"\xF2",Bo:"\xF3",Co:"\xF4",Do:245,Ho:"\xF6",Au:"\xF9",Bu:"\xFA",Cu:"\xFB",Hu:"\xFC",KC:"\xC7",Kc:"\xE7",q:"\xE6",z:"\u0153",a:"\xC6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},n=new RegExp("\x1BN("+bi(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(f,h){var m=t[h];return typeof m=="number"?OM(m):m},i=function(f,h,m){var p=h.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return p==59?f:OM(p)};t["|"]=254;function r(f,h){switch(h.type){case"base64":return s(no(f),h);case"binary":return s(f,h);case"buffer":return s(Kt&&Buffer.isBuffer(f)?f.toString("binary"):Nd(f),h);case"array":return s(um(f),h)}throw new Error("Unrecognized type "+h.type)}function s(f,h){var m=f.split(/[\n\r]+/),p=-1,g=-1,v=0,_=0,y=[],x=[],w=null,T={},E=[],k=[],F=[],G=0,Y;for(+h.codepage>=0&&Ad(+h.codepage);v!==m.length;++v){G=0;var W=m[v].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,e),le=W.replace(/;;/g,"\0").split(";").map(function(K){return K.replace(/\u0000/g,";")}),ge=le[0],te;if(W.length>0)switch(ge){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":le[1].charAt(0)=="P"&&x.push(W.slice(3).replace(/;;/g,";"));break;case"C":var M=!1,R=!1,S=!1,D=!1,Q=-1,X=-1;for(_=1;_<le.length;++_)switch(le[_].charAt(0)){case"A":break;case"X":g=parseInt(le[_].slice(1))-1,R=!0;break;case"Y":for(p=parseInt(le[_].slice(1))-1,R||(g=0),Y=y.length;Y<=p;++Y)y[Y]=[];break;case"K":te=le[_].slice(1),te.charAt(0)==='"'?te=te.slice(1,te.length-1):te==="TRUE"?te=!0:te==="FALSE"?te=!1:isNaN(eo(te))?isNaN(Pd(te).getDate())||(te=Ni(te)):(te=eo(te),w!==null&&AA(w)&&(te=RA(te))),typeof an<"u"&&typeof te=="string"&&(h||{}).type!="string"&&(h||{}).codepage&&(te=an.utils.decode(h.codepage,te)),M=!0;break;case"E":D=!0;var V=ine(le[_].slice(1),{r:p,c:g});y[p][g]=[y[p][g],V];break;case"S":S=!0,y[p][g]=[y[p][g],"S5S"];break;case"G":break;case"R":Q=parseInt(le[_].slice(1))-1;break;case"C":X=parseInt(le[_].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+W)}if(M&&(y[p][g]&&y[p][g].length==2?y[p][g][0]=te:y[p][g]=te,w=null),S){if(D)throw new Error("SYLK shared formula cannot have own formula");var ie=Q>-1&&y[Q][X];if(!ie||!ie[1])throw new Error("SYLK shared formula cannot find base");y[p][g][1]=rne(ie[1],{r:p-Q,c:g-X})}break;case"F":var H=0;for(_=1;_<le.length;++_)switch(le[_].charAt(0)){case"X":g=parseInt(le[_].slice(1))-1,++H;break;case"Y":for(p=parseInt(le[_].slice(1))-1,Y=y.length;Y<=p;++Y)y[Y]=[];break;case"M":G=parseInt(le[_].slice(1))/20;break;case"F":break;case"G":break;case"P":w=x[parseInt(le[_].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(F=le[_].slice(1).split(" "),Y=parseInt(F[0],10);Y<=parseInt(F[1],10);++Y)G=parseInt(F[2],10),k[Y-1]=G===0?{hidden:!0}:{wch:G},gb(k[Y-1]);break;case"C":g=parseInt(le[_].slice(1))-1,k[g]||(k[g]={});break;case"R":p=parseInt(le[_].slice(1))-1,E[p]||(E[p]={}),G>0?(E[p].hpt=G,E[p].hpx=vF(G)):G===0&&(E[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+W)}H<1&&(w=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+W)}}return E.length>0&&(T["!rows"]=E),k.length>0&&(T["!cols"]=k),h&&h.sheetRows&&(y=y.slice(0,h.sheetRows)),[y,T]}function o(f,h){var m=r(f,h),p=m[0],g=m[1],v=Ec(p,h);return bi(g).forEach(function(_){v[_]=g[_]}),v}function a(f,h){return za(o(f,h),h)}function l(f,h,m,p){var g="C;Y"+(m+1)+";X"+(p+1)+";K";switch(f.t){case"n":g+=f.v||0,f.f&&!f.F&&(g+=";E"+_b(f.f,{r:m,c:p}));break;case"b":g+=f.v?"TRUE":"FALSE";break;case"e":g+=f.w||f.v;break;case"d":g+='"'+(f.w||f.v)+'"';break;case"s":g+='"'+f.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function c(f,h){h.forEach(function(m,p){var g="F;W"+(p+1)+" "+(p+1)+" ";m.hidden?g+="0":(typeof m.width=="number"&&!m.wpx&&(m.wpx=tm(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=nm(m.wpx)),typeof m.wch=="number"&&(g+=Math.round(m.wch))),g.charAt(g.length-1)!=" "&&f.push(g)})}function u(f,h){h.forEach(function(m,p){var g="F;";m.hidden?g+="M0;":m.hpt?g+="M"+20*m.hpt+";":m.hpx&&(g+="M"+20*im(m.hpx)+";"),g.length>2&&f.push(g+"R"+(p+1))})}function d(f,h){var m=["ID;PWXL;N;E"],p=[],g=yn(f["!ref"]),v,_=Array.isArray(f),y=`\r
`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),f["!cols"]&&c(m,f["!cols"]),f["!rows"]&&u(m,f["!rows"]),m.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var x=g.s.r;x<=g.e.r;++x)for(var w=g.s.c;w<=g.e.c;++w){var T=tn({r:x,c:w});v=_?(f[x]||[])[w]:f[T],!(!v||v.v==null&&(!v.f||v.F))&&p.push(l(v,f,x,w,h))}return m.join(y)+y+p.join(y)+y+"E"+y}return{to_workbook:a,to_sheet:o,from_sheet:d}}(),ote=function(){function t(s,o){switch(o.type){case"base64":return n(no(s),o);case"binary":return n(s,o);case"buffer":return n(Kt&&Buffer.isBuffer(s)?s.toString("binary"):Nd(s),o);case"array":return n(um(s),o)}throw new Error("Unrecognized type "+o.type)}function n(s,o){for(var a=s.split(`
`),l=-1,c=-1,u=0,d=[];u!==a.length;++u){if(a[u].trim()==="BOT"){d[++l]=[],c=0;continue}if(!(l<0)){var f=a[u].trim().split(","),h=f[0],m=f[1];++u;for(var p=a[u]||"";(p.match(/["]/g)||[]).length&1&&u<a.length-1;)p+=`
`+a[++u];switch(p=p.trim(),+h){case-1:if(p==="BOT"){d[++l]=[],c=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?d[l][c]=!0:p==="FALSE"?d[l][c]=!1:isNaN(eo(m))?isNaN(Pd(m).getDate())?d[l][c]=m:d[l][c]=Ni(m):d[l][c]=eo(m),++c;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),wd&&p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),d[l][c++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(d=d.slice(0,o.sheetRows)),d}function e(s,o){return Ec(t(s,o),o)}function i(s,o){return za(e(s,o),o)}var r=function(){var s=function(l,c,u,d,f){l.push(c),l.push(u+","+d),l.push('"'+f.replace(/"/g,'""')+'"')},o=function(l,c,u,d){l.push(c+","+u),l.push(c==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(l){var c=[],u=yn(l["!ref"]),d,f=Array.isArray(l);s(c,"TABLE",0,1,"sheetjs"),s(c,"VECTORS",0,u.e.r-u.s.r+1,""),s(c,"TUPLES",0,u.e.c-u.s.c+1,""),s(c,"DATA",0,0,"");for(var h=u.s.r;h<=u.e.r;++h){o(c,-1,0,"BOT");for(var m=u.s.c;m<=u.e.c;++m){var p=tn({r:h,c:m});if(d=f?(l[h]||[])[m]:l[p],!d){o(c,1,0,"");continue}switch(d.t){case"n":var g=wd?d.w:d.v;!g&&d.v!=null&&(g=d.v),g==null?wd&&d.f&&!d.F?o(c,1,0,"="+d.f):o(c,1,0,""):o(c,0,g,"V");break;case"b":o(c,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":o(c,1,0,!wd||isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=jo(d.z||Fn[14],Qi(Ni(d.v)))),wd?o(c,0,d.w,"V"):o(c,1,0,d.w);break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var v=`\r
`,_=c.join(v);return _}}();return{to_workbook:i,to_sheet:e,from_sheet:r}}(),hF=function(){function t(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function n(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function e(d,f){for(var h=d.split(`
`),m=-1,p=-1,g=0,v=[];g!==h.length;++g){var _=h[g].trim().split(":");if(_[0]==="cell"){var y=li(_[1]);if(v.length<=y.r)for(m=v.length;m<=y.r;++m)v[m]||(v[m]=[]);switch(m=y.r,p=y.c,_[2]){case"t":v[m][p]=t(_[3]);break;case"v":v[m][p]=+_[3];break;case"vtf":var x=_[_.length-1];case"vtc":switch(_[3]){case"nl":v[m][p]=!!+_[4];break;default:v[m][p]=+_[4];break}_[2]=="vtf"&&(v[m][p]=[v[m][p],x])}}}return f&&f.sheetRows&&(v=v.slice(0,f.sheetRows)),v}function i(d,f){return Ec(e(d,f),f)}function r(d,f){return za(i(d,f),f)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),l="--SocialCalcSpreadsheetControlSave--";function c(d){if(!d||!d["!ref"])return"";for(var f=[],h=[],m,p="",g=gr(d["!ref"]),v=Array.isArray(d),_=g.s.r;_<=g.e.r;++_)for(var y=g.s.c;y<=g.e.c;++y)if(p=tn({r:_,c:y}),m=v?(d[_]||[])[y]:d[p],!(!m||m.v==null||m.t==="z")){switch(h=["cell",p,"t"],m.t){case"s":case"str":h.push(n(m.v));break;case"n":m.f?(h[2]="vtf",h[3]="n",h[4]=m.v,h[5]=n(m.f)):(h[2]="v",h[3]=m.v);break;case"b":h[2]="vt"+(m.f?"f":"c"),h[3]="nl",h[4]=m.v?"1":"0",h[5]=n(m.f||(m.v?"TRUE":"FALSE"));break;case"d":var x=Qi(Ni(m.v));h[2]="vtc",h[3]="nd",h[4]=""+x,h[5]=m.w||jo(m.z||Fn[14],x);break;case"e":continue}f.push(h.join(":"))}return f.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),f.push("valueformat:1:text-wiki"),f.join(`
`)}function u(d){return[s,o,a,o,c(d),l].join(`
`)}return{to_workbook:r,to_sheet:i,from_sheet:u}}(),ate=function(){function t(u,d,f,h,m){m.raw?d[f][h]=u:u===""||(u==="TRUE"?d[f][h]=!0:u==="FALSE"?d[f][h]=!1:isNaN(eo(u))?isNaN(Pd(u).getDate())?d[f][h]=u:d[f][h]=Ni(u):d[f][h]=eo(u))}function n(u,d){var f=d||{},h=[];if(!u||u.length===0)return h;for(var m=u.split(/[\r\n]/),p=m.length-1;p>=0&&m[p].length===0;)--p;for(var g=10,v=0,_=0;_<=p;++_)v=m[_].indexOf(" "),v==-1?v=m[_].length:v++,g=Math.max(g,v);for(_=0;_<=p;++_){h[_]=[];var y=0;for(t(m[_].slice(0,g).trim(),h,_,y,f),y=1;y<=(m[_].length-g)/10+1;++y)t(m[_].slice(g+(y-1)*10,g+y*10).trim(),h,_,y,f)}return f.sheetRows&&(h=h.slice(0,f.sheetRows)),h}var e={44:",",9:"	",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function r(u){for(var d={},f=!1,h=0,m=0;h<u.length;++h)(m=u.charCodeAt(h))==34?f=!f:!f&&m in e&&(d[m]=(d[m]||0)+1);m=[];for(h in d)Object.prototype.hasOwnProperty.call(d,h)&&m.push([d[h],h]);if(!m.length){d=i;for(h in d)Object.prototype.hasOwnProperty.call(d,h)&&m.push([d[h],h])}return m.sort(function(p,g){return p[0]-g[0]||i[p[1]]-i[g[1]]}),e[m.pop()[1]]||44}function s(u,d){var f=d||{},h="";bs!=null&&f.dense==null&&(f.dense=bs);var m=f.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(h=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(h=u.charAt(4),u=u.slice(6)):h=r(u.slice(0,1024)):f&&f.FS?h=f.FS:h=r(u.slice(0,1024));var g=0,v=0,_=0,y=0,x=0,w=h.charCodeAt(0),T=!1,E=0,k=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
`);var F=f.dateNF!=null?wJ(f.dateNF):null;function G(){var Y=u.slice(y,x),W={};if(Y.charAt(0)=='"'&&Y.charAt(Y.length-1)=='"'&&(Y=Y.slice(1,-1).replace(/""/g,'"')),Y.length===0)W.t="z";else if(f.raw)W.t="s",W.v=Y;else if(Y.trim().length===0)W.t="s",W.v=Y;else if(Y.charCodeAt(0)==61)Y.charCodeAt(1)==34&&Y.charCodeAt(Y.length-1)==34?(W.t="s",W.v=Y.slice(2,-1).replace(/""/g,'"')):sne(Y)?(W.t="n",W.f=Y.slice(1)):(W.t="s",W.v=Y);else if(Y=="TRUE")W.t="b",W.v=!0;else if(Y=="FALSE")W.t="b",W.v=!1;else if(!isNaN(_=eo(Y)))W.t="n",f.cellText!==!1&&(W.w=Y),W.v=_;else if(!isNaN(Pd(Y).getDate())||F&&Y.match(F)){W.z=f.dateNF||Fn[14];var le=0;F&&Y.match(F)&&(Y=CJ(Y,f.dateNF,Y.match(F)||[]),le=1),f.cellDates?(W.t="d",W.v=Ni(Y,le)):(W.t="n",W.v=Qi(Ni(Y,le))),f.cellText!==!1&&(W.w=jo(W.z,W.v instanceof Date?Qi(W.v):W.v)),f.cellNF||delete W.z}else W.t="s",W.v=Y;if(W.t=="z"||(f.dense?(m[g]||(m[g]=[]),m[g][v]=W):m[tn({c:v,r:g})]=W),y=x+1,k=u.charCodeAt(y),p.e.c<v&&(p.e.c=v),p.e.r<g&&(p.e.r=g),E==w)++v;else if(v=0,++g,f.sheetRows&&f.sheetRows<=g)return!0}e:for(;x<u.length;++x)switch(E=u.charCodeAt(x)){case 34:k===34&&(T=!T);break;case w:case 10:case 13:if(!T&&G())break e;break;default:break}return x-y>0&&G(),m["!ref"]=Un(p),m}function o(u,d){return!(d&&d.PRN)||d.FS||u.slice(0,4)=="sep="||u.indexOf("	")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?s(u,d):Ec(n(u,d),d)}function a(u,d){var f="",h=d.type=="string"?[0,0,0,0]:yoe(u,d);switch(d.type){case"base64":f=no(u);break;case"binary":f=u;break;case"buffer":d.codepage==65001?f=u.toString("utf8"):d.codepage&&typeof an<"u"?f=an.utils.decode(d.codepage,u):f=Kt&&Buffer.isBuffer(u)?u.toString("binary"):Nd(u);break;case"array":f=um(u);break;case"string":f=u;break;default:throw new Error("Unrecognized type "+d.type)}return h[0]==239&&h[1]==187&&h[2]==191?f=Ed(f.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?f=Ed(f):d.type=="binary"&&typeof an<"u"&&d.codepage&&(f=an.utils.decode(d.codepage,an.utils.encode(28591,f))),f.slice(0,19)=="socialcalc:version:"?hF.to_sheet(d.type=="string"?f:Ed(f),d):o(f,d)}function l(u,d){return za(a(u,d),d)}function c(u){for(var d=[],f=yn(u["!ref"]),h,m=Array.isArray(u),p=f.s.r;p<=f.e.r;++p){for(var g=[],v=f.s.c;v<=f.e.c;++v){var _=tn({r:p,c:v});if(h=m?(u[p]||[])[v]:u[_],!h||h.v==null){g.push("          ");continue}for(var y=(h.w||(io(h),h.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(v===0?" ":""))}d.push(g.join(""))}return d.join(`
`)}return{to_workbook:l,to_sheet:a,from_sheet:c}}();var dA=function(){function t(V,ie,H){if(V){pr(V,V.l||0);for(var K=H.Enum||Q;V.l<V.length;){var de=V.read_shift(2),Ee=K[de]||K[65535],Ue=V.read_shift(2),Ae=V.l+Ue,Ce=Ee.f&&Ee.f(V,Ue,H);if(V.l=Ae,ie(Ce,Ee,de))return}}}function n(V,ie){switch(ie.type){case"base64":return e(Xr(no(V)),ie);case"binary":return e(Xr(V),ie);case"buffer":case"array":return e(V,ie)}throw"Unsupported type "+ie.type}function e(V,ie){if(!V)return V;var H=ie||{};bs!=null&&H.dense==null&&(H.dense=bs);var K=H.dense?[]:{},de="Sheet1",Ee="",Ue=0,Ae={},Ce=[],nt=[],ot={s:{r:0,c:0},e:{r:0,c:0}},ct=H.sheetRows||0;if(V[2]==0&&(V[3]==8||V[3]==9)&&V.length>=16&&V[14]==5&&V[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(V[2]==2)H.Enum=Q,t(V,function(ze,wn,$n){switch($n){case 0:H.vers=ze,ze>=4096&&(H.qpro=!0);break;case 6:ot=ze;break;case 204:ze&&(Ee=ze);break;case 222:Ee=ze;break;case 15:case 51:H.qpro||(ze[1].v=ze[1].v.slice(1));case 13:case 14:case 16:$n==14&&(ze[2]&112)==112&&(ze[2]&15)>1&&(ze[2]&15)<15&&(ze[1].z=H.dateNF||Fn[14],H.cellDates&&(ze[1].t="d",ze[1].v=RA(ze[1].v))),H.qpro&&ze[3]>Ue&&(K["!ref"]=Un(ot),Ae[de]=K,Ce.push(de),K=H.dense?[]:{},ot={s:{r:0,c:0},e:{r:0,c:0}},Ue=ze[3],de=Ee||"Sheet"+(Ue+1),Ee="");var ui=H.dense?(K[ze[0].r]||[])[ze[0].c]:K[tn(ze[0])];if(ui){ui.t=ze[1].t,ui.v=ze[1].v,ze[1].z!=null&&(ui.z=ze[1].z),ze[1].f!=null&&(ui.f=ze[1].f);break}H.dense?(K[ze[0].r]||(K[ze[0].r]=[]),K[ze[0].r][ze[0].c]=ze[1]):K[tn(ze[0])]=ze[1];break;default:}},H);else if(V[2]==26||V[2]==14)H.Enum=X,V[2]==14&&(H.qpro=!0,V.l=0),t(V,function(ze,wn,$n){switch($n){case 204:de=ze;break;case 22:ze[1].v=ze[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ze[3]>Ue&&(K["!ref"]=Un(ot),Ae[de]=K,Ce.push(de),K=H.dense?[]:{},ot={s:{r:0,c:0},e:{r:0,c:0}},Ue=ze[3],de="Sheet"+(Ue+1)),ct>0&&ze[0].r>=ct)break;H.dense?(K[ze[0].r]||(K[ze[0].r]=[]),K[ze[0].r][ze[0].c]=ze[1]):K[tn(ze[0])]=ze[1],ot.e.c<ze[0].c&&(ot.e.c=ze[0].c),ot.e.r<ze[0].r&&(ot.e.r=ze[0].r);break;case 27:ze[14e3]&&(nt[ze[14e3][0]]=ze[14e3][1]);break;case 1537:nt[ze[0]]=ze[1],ze[0]==Ue&&(de=ze[1]);break;default:break}},H);else throw new Error("Unrecognized LOTUS BOF "+V[2]);if(K["!ref"]=Un(ot),Ae[Ee||de]=K,Ce.push(Ee||de),!nt.length)return{SheetNames:Ce,Sheets:Ae};for(var Ie={},Pn=[],$t=0;$t<nt.length;++$t)Ae[Ce[$t]]?(Pn.push(nt[$t]||Ce[$t]),Ie[nt[$t]]=Ae[nt[$t]]||Ae[Ce[$t]]):(Pn.push(nt[$t]),Ie[nt[$t]]={"!ref":"A1"});return{SheetNames:Pn,Sheets:Ie}}function i(V,ie){var H=ie||{};if(+H.codepage>=0&&Ad(+H.codepage),H.type=="string")throw new Error("Cannot write WK1 to JS string");var K=Zi(),de=yn(V["!ref"]),Ee=Array.isArray(V),Ue=[];Le(K,0,s(1030)),Le(K,6,l(de));for(var Ae=Math.min(de.e.r,8191),Ce=de.s.r;Ce<=Ae;++Ce)for(var nt=xi(Ce),ot=de.s.c;ot<=de.e.c;++ot){Ce===de.s.r&&(Ue[ot]=Si(ot));var ct=Ue[ot]+nt,Ie=Ee?(V[Ce]||[])[ot]:V[ct];if(!(!Ie||Ie.t=="z"))if(Ie.t=="n")(Ie.v|0)==Ie.v&&Ie.v>=-32768&&Ie.v<=32767?Le(K,13,h(Ce,ot,Ie.v)):Le(K,14,p(Ce,ot,Ie.v));else{var Pn=io(Ie);Le(K,15,d(Ce,ot,Pn.slice(0,239)))}}return Le(K,1),K.end()}function r(V,ie){var H=ie||{};if(+H.codepage>=0&&Ad(+H.codepage),H.type=="string")throw new Error("Cannot write WK3 to JS string");var K=Zi();Le(K,0,o(V));for(var de=0,Ee=0;de<V.SheetNames.length;++de)(V.Sheets[V.SheetNames[de]]||{})["!ref"]&&Le(K,27,D(V.SheetNames[de],Ee++));var Ue=0;for(de=0;de<V.SheetNames.length;++de){var Ae=V.Sheets[V.SheetNames[de]];if(!(!Ae||!Ae["!ref"])){for(var Ce=yn(Ae["!ref"]),nt=Array.isArray(Ae),ot=[],ct=Math.min(Ce.e.r,8191),Ie=Ce.s.r;Ie<=ct;++Ie)for(var Pn=xi(Ie),$t=Ce.s.c;$t<=Ce.e.c;++$t){Ie===Ce.s.r&&(ot[$t]=Si($t));var ze=ot[$t]+Pn,wn=nt?(Ae[Ie]||[])[$t]:Ae[ze];if(!(!wn||wn.t=="z"))if(wn.t=="n")Le(K,23,G(Ie,$t,Ue,wn.v));else{var $n=io(wn);Le(K,22,E(Ie,$t,Ue,$n.slice(0,239)))}}++Ue}}return Le(K,1),K.end()}function s(V){var ie=he(2);return ie.write_shift(2,V),ie}function o(V){var ie=he(26);ie.write_shift(2,4096),ie.write_shift(2,4),ie.write_shift(4,0);for(var H=0,K=0,de=0,Ee=0;Ee<V.SheetNames.length;++Ee){var Ue=V.SheetNames[Ee],Ae=V.Sheets[Ue];if(!(!Ae||!Ae["!ref"])){++de;var Ce=gr(Ae["!ref"]);H<Ce.e.r&&(H=Ce.e.r),K<Ce.e.c&&(K=Ce.e.c)}}return H>8191&&(H=8191),ie.write_shift(2,H),ie.write_shift(1,de),ie.write_shift(1,K),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(1,1),ie.write_shift(1,2),ie.write_shift(4,0),ie.write_shift(4,0),ie}function a(V,ie,H){var K={s:{c:0,r:0},e:{c:0,r:0}};return ie==8&&H.qpro?(K.s.c=V.read_shift(1),V.l++,K.s.r=V.read_shift(2),K.e.c=V.read_shift(1),V.l++,K.e.r=V.read_shift(2),K):(K.s.c=V.read_shift(2),K.s.r=V.read_shift(2),ie==12&&H.qpro&&(V.l+=2),K.e.c=V.read_shift(2),K.e.r=V.read_shift(2),ie==12&&H.qpro&&(V.l+=2),K.s.c==65535&&(K.s.c=K.e.c=K.s.r=K.e.r=0),K)}function l(V){var ie=he(8);return ie.write_shift(2,V.s.c),ie.write_shift(2,V.s.r),ie.write_shift(2,V.e.c),ie.write_shift(2,V.e.r),ie}function c(V,ie,H){var K=[{c:0,r:0},{t:"n",v:0},0,0];return H.qpro&&H.vers!=20768?(K[0].c=V.read_shift(1),K[3]=V.read_shift(1),K[0].r=V.read_shift(2),V.l+=2):(K[2]=V.read_shift(1),K[0].c=V.read_shift(2),K[0].r=V.read_shift(2)),K}function u(V,ie,H){var K=V.l+ie,de=c(V,ie,H);if(de[1].t="s",H.vers==20768){V.l++;var Ee=V.read_shift(1);return de[1].v=V.read_shift(Ee,"utf8"),de}return H.qpro&&V.l++,de[1].v=V.read_shift(K-V.l,"cstr"),de}function d(V,ie,H){var K=he(7+H.length);K.write_shift(1,255),K.write_shift(2,ie),K.write_shift(2,V),K.write_shift(1,39);for(var de=0;de<K.length;++de){var Ee=H.charCodeAt(de);K.write_shift(1,Ee>=128?95:Ee)}return K.write_shift(1,0),K}function f(V,ie,H){var K=c(V,ie,H);return K[1].v=V.read_shift(2,"i"),K}function h(V,ie,H){var K=he(7);return K.write_shift(1,255),K.write_shift(2,ie),K.write_shift(2,V),K.write_shift(2,H,"i"),K}function m(V,ie,H){var K=c(V,ie,H);return K[1].v=V.read_shift(8,"f"),K}function p(V,ie,H){var K=he(13);return K.write_shift(1,255),K.write_shift(2,ie),K.write_shift(2,V),K.write_shift(8,H,"f"),K}function g(V,ie,H){var K=V.l+ie,de=c(V,ie,H);if(de[1].v=V.read_shift(8,"f"),H.qpro)V.l=K;else{var Ee=V.read_shift(2);x(V.slice(V.l,V.l+Ee),de),V.l+=Ee}return de}function v(V,ie,H){var K=ie&32768;return ie&=-32769,ie=(K?V:0)+(ie>=8192?ie-16384:ie),(K?"":"$")+(H?Si(ie):xi(ie))}var _={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function x(V,ie){pr(V,0);for(var H=[],K=0,de="",Ee="",Ue="",Ae="";V.l<V.length;){var Ce=V[V.l++];switch(Ce){case 0:H.push(V.read_shift(8,"f"));break;case 1:Ee=v(ie[0].c,V.read_shift(2),!0),de=v(ie[0].r,V.read_shift(2),!1),H.push(Ee+de);break;case 2:{var nt=v(ie[0].c,V.read_shift(2),!0),ot=v(ie[0].r,V.read_shift(2),!1);Ee=v(ie[0].c,V.read_shift(2),!0),de=v(ie[0].r,V.read_shift(2),!1),H.push(nt+ot+":"+Ee+de)}break;case 3:if(V.l<V.length){console.error("WK1 premature formula end");return}break;case 4:H.push("("+H.pop()+")");break;case 5:H.push(V.read_shift(2));break;case 6:{for(var ct="";Ce=V[V.l++];)ct+=String.fromCharCode(Ce);H.push('"'+ct.replace(/"/g,'""')+'"')}break;case 8:H.push("-"+H.pop());break;case 23:H.push("+"+H.pop());break;case 22:H.push("NOT("+H.pop()+")");break;case 20:case 21:Ae=H.pop(),Ue=H.pop(),H.push(["AND","OR"][Ce-20]+"("+Ue+","+Ae+")");break;default:if(Ce<32&&y[Ce])Ae=H.pop(),Ue=H.pop(),H.push(Ue+y[Ce]+Ae);else if(_[Ce]){if(K=_[Ce][1],K==69&&(K=V[V.l++]),K>H.length){console.error("WK1 bad formula parse 0x"+Ce.toString(16)+":|"+H.join("|")+"|");return}var Ie=H.slice(-K);H.length-=K,H.push(_[Ce][0]+"("+Ie.join(",")+")")}else return Ce<=7?console.error("WK1 invalid opcode "+Ce.toString(16)):Ce<=24?console.error("WK1 unsupported op "+Ce.toString(16)):Ce<=30?console.error("WK1 invalid opcode "+Ce.toString(16)):Ce<=115?console.error("WK1 unsupported function opcode "+Ce.toString(16)):console.error("WK1 unrecognized opcode "+Ce.toString(16))}}H.length==1?ie[1].f=""+H[0]:console.error("WK1 bad formula parse |"+H.join("|")+"|")}function w(V){var ie=[{c:0,r:0},{t:"n",v:0},0];return ie[0].r=V.read_shift(2),ie[3]=V[V.l++],ie[0].c=V[V.l++],ie}function T(V,ie){var H=w(V,ie);return H[1].t="s",H[1].v=V.read_shift(ie-4,"cstr"),H}function E(V,ie,H,K){var de=he(6+K.length);de.write_shift(2,V),de.write_shift(1,H),de.write_shift(1,ie),de.write_shift(1,39);for(var Ee=0;Ee<K.length;++Ee){var Ue=K.charCodeAt(Ee);de.write_shift(1,Ue>=128?95:Ue)}return de.write_shift(1,0),de}function k(V,ie){var H=w(V,ie);H[1].v=V.read_shift(2);var K=H[1].v>>1;if(H[1].v&1)switch(K&7){case 0:K=(K>>3)*5e3;break;case 1:K=(K>>3)*500;break;case 2:K=(K>>3)/20;break;case 3:K=(K>>3)/200;break;case 4:K=(K>>3)/2e3;break;case 5:K=(K>>3)/2e4;break;case 6:K=(K>>3)/16;break;case 7:K=(K>>3)/64;break}return H[1].v=K,H}function F(V,ie){var H=w(V,ie),K=V.read_shift(4),de=V.read_shift(4),Ee=V.read_shift(2);if(Ee==65535)return K===0&&de===3221225472?(H[1].t="e",H[1].v=15):K===0&&de===3489660928?(H[1].t="e",H[1].v=42):H[1].v=0,H;var Ue=Ee&32768;return Ee=(Ee&32767)-16446,H[1].v=(1-Ue*2)*(de*Math.pow(2,Ee+32)+K*Math.pow(2,Ee)),H}function G(V,ie,H,K){var de=he(14);if(de.write_shift(2,V),de.write_shift(1,H),de.write_shift(1,ie),K==0)return de.write_shift(4,0),de.write_shift(4,0),de.write_shift(2,65535),de;var Ee=0,Ue=0,Ae=0,Ce=0;return K<0&&(Ee=1,K=-K),Ue=Math.log2(K)|0,K/=Math.pow(2,Ue-31),Ce=K>>>0,Ce&2147483648||(K/=2,++Ue,Ce=K>>>0),K-=Ce,Ce|=2147483648,Ce>>>=0,K*=Math.pow(2,32),Ae=K>>>0,de.write_shift(4,Ae),de.write_shift(4,Ce),Ue+=16383+(Ee?32768:0),de.write_shift(2,Ue),de}function Y(V,ie){var H=F(V,14);return V.l+=ie-14,H}function W(V,ie){var H=w(V,ie),K=V.read_shift(4);return H[1].v=K>>6,H}function le(V,ie){var H=w(V,ie),K=V.read_shift(8,"f");return H[1].v=K,H}function ge(V,ie){var H=le(V,14);return V.l+=ie-10,H}function te(V,ie){return V[V.l+ie-1]==0?V.read_shift(ie,"cstr"):""}function M(V,ie){var H=V[V.l++];H>ie-1&&(H=ie-1);for(var K="";K.length<H;)K+=String.fromCharCode(V[V.l++]);return K}function R(V,ie,H){if(!(!H.qpro||ie<21)){var K=V.read_shift(1);V.l+=17,V.l+=1,V.l+=2;var de=V.read_shift(ie-21,"cstr");return[K,de]}}function S(V,ie){for(var H={},K=V.l+ie;V.l<K;){var de=V.read_shift(2);if(de==14e3){for(H[de]=[0,""],H[de][0]=V.read_shift(2);V[V.l];)H[de][1]+=String.fromCharCode(V[V.l]),V.l++;V.l++}}return H}function D(V,ie){var H=he(5+V.length);H.write_shift(2,14e3),H.write_shift(2,ie);for(var K=0;K<V.length;++K){var de=V.charCodeAt(K);H[H.l++]=de>127?95:de}return H[H.l++]=0,H}var Q={0:{n:"BOF",f:lF},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:a},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:te},222:{n:"SHEETNAMELP",f:M},65535:{n:""}},X={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:T},23:{n:"NUMBER17",f:F},24:{n:"NUMBER18",f:k},25:{n:"FORMULA19",f:Y},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:S},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:W},38:{n:"??"},39:{n:"NUMBER27",f:le},40:{n:"FORMULA28",f:ge},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:te},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:R},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:i,book_to_wk3:r,to_workbook:n}}();var lte=/^\s|\s$|[\t\n\r]/;function pF(t,n){if(!n.bookSST)return"";var e=[Wn];e[e.length]=Oe("sst",null,{xmlns:Cc[0],count:t.Count,uniqueCount:t.Unique});for(var i=0;i!=t.length;++i)if(t[i]!=null){var r=t[i],s="<si>";r.r?s+=r.r:(s+="<t",r.t||(r.t=""),r.t.match(lte)&&(s+=' xml:space="preserve"'),s+=">"+en(r.t)+"</t>"),s+="</si>",e[e.length]=s}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}function cte(t){return[t.read_shift(4),t.read_shift(4)]}function ute(t,n){return n||(n=he(8)),n.write_shift(4,t.Count),n.write_shift(4,t.Unique),n}var dte=tee;function fte(t){var n=Zi();we(n,159,ute(t));for(var e=0;e<t.length;++e)we(n,19,dte(t[e]));return we(n,160),n.end()}function hte(t){if(typeof an<"u")return an.utils.encode(bc,t);for(var n=[],e=t.split(""),i=0;i<e.length;++i)n[i]=e[i].charCodeAt(0);return n}function mF(t){var n=0,e,i=hte(t),r=i.length+1,s,o,a,l,c;for(e=Va(r),e[0]=i.length,s=1;s!=r;++s)e[s]=i[s-1];for(s=r-1;s>=0;--s)o=e[s],a=n&16384?1:0,l=n<<1&32767,c=a|l,n=c^o;return n^52811}var pte=function(){function t(r,s){switch(s.type){case"base64":return n(no(r),s);case"binary":return n(r,s);case"buffer":return n(Kt&&Buffer.isBuffer(r)?r.toString("binary"):Nd(r),s);case"array":return n(um(r),s)}throw new Error("Unrecognized type "+s.type)}function n(r,s){var o=s||{},a=o.dense?[]:{},l=r.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,d){Array.isArray(a)&&(a[d]=[]);for(var f=/\\\w+\b/g,h=0,m,p=-1;m=f.exec(u);){switch(m[0]){case"\\cell":var g=u.slice(h,f.lastIndex-m[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var v={v:g,t:"s"};Array.isArray(a)?a[d][p]=v:a[tn({r:d,c:p})]=v}break}h=f.lastIndex}p>c.e.c&&(c.e.c=p)}),a["!ref"]=Un(c),a}function e(r,s){return za(t(r,s),s)}function i(r){for(var s=["{\\rtf1\\ansi"],o=yn(r["!ref"]),a,l=Array.isArray(r),c=o.s.r;c<=o.e.r;++c){s.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)s.push("\\cellx"+(u+1));for(s.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var d=tn({r:c,c:u});a=l?(r[c]||[])[u]:r[d],!(!a||a.v==null&&(!a.f||a.F))&&(s.push(" "+(a.w||(io(a),a.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:e,to_sheet:t,from_sheet:i}}();function fA(t){for(var n=0,e=1;n!=3;++n)e=e*256+(t[n]>255?255:t[n]<0?0:t[n]);return e.toString(16).toUpperCase().slice(1)}var mte=6;var to=mte;function tm(t){return Math.floor((t+Math.round(128/to)/256)*to)}function nm(t){return Math.floor((t-5)/to*100+.5)/100}function Xx(t){return Math.round((t*to+5)/to*256)/256}function gb(t){t.width?(t.wpx=tm(t.width),t.wch=nm(t.wpx),t.MDW=to):t.wpx?(t.wch=nm(t.wpx),t.width=Xx(t.wch),t.MDW=to):typeof t.wch=="number"&&(t.width=Xx(t.wch),t.wpx=tm(t.width),t.MDW=to),t.customWidth&&delete t.customWidth}var gte=96,gF=gte;function im(t){return t*96/gF}function vF(t){return t*gF/96}function vte(t){var n=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var i=e[0];i<=e[1];++i)t[i]!=null&&(n[n.length]=Oe("numFmt",null,{numFmtId:i,formatCode:en(t[i])}))}),n.length===1?"":(n[n.length]="</numFmts>",n[0]=Oe("numFmts",null,{count:n.length-2}).replace("/>",">"),n.join(""))}function _te(t){var n=[];return n[n.length]=Oe("cellXfs",null),t.forEach(function(e){n[n.length]=Oe("xf",null,e)}),n[n.length]="</cellXfs>",n.length===2?"":(n[0]=Oe("cellXfs",null,{count:n.length-2}).replace("/>",">"),n.join(""))}function _F(t,n){var e=[Wn,Oe("styleSheet",null,{xmlns:Cc[0],"xmlns:vt":ai.vt})],i;return t.SSF&&(i=vte(t.SSF))!=null&&(e[e.length]=i),e[e.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',e[e.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',e[e.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',e[e.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(i=_te(n.cellXfs))&&(e[e.length]=i),e[e.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',e[e.length]='<dxfs count="0"/>',e[e.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',e.length>2&&(e[e.length]="</styleSheet>",e[1]=e[1].replace("/>",">")),e.join("")}function yte(t,n){var e=t.read_shift(2),i=Ei(t,n-2);return[e,i]}function xte(t,n,e){e||(e=he(6+4*n.length)),e.write_shift(2,t),ci(n,e);var i=e.length>e.l?e.slice(0,e.l):e;return e.l==null&&(e.l=e.length),i}function bte(t,n,e){var i={};i.sz=t.read_shift(2)/20;var r=lee(t,2,e);r.fItalic&&(i.italic=1),r.fCondense&&(i.condense=1),r.fExtend&&(i.extend=1),r.fShadow&&(i.shadow=1),r.fOutline&&(i.outline=1),r.fStrikeout&&(i.strike=1);var s=t.read_shift(2);switch(s===700&&(i.bold=1),t.read_shift(2)){case 1:i.vertAlign="superscript";break;case 2:i.vertAlign="subscript";break}var o=t.read_shift(1);o!=0&&(i.underline=o);var a=t.read_shift(1);a>0&&(i.family=a);var l=t.read_shift(1);switch(l>0&&(i.charset=l),t.l++,i.color=aee(t,8),t.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor";break}return i.name=Ei(t,n-21),i}function wte(t,n){n||(n=he(25+4*32)),n.write_shift(2,t.sz*20),cee(t,n),n.write_shift(2,t.bold?700:400);var e=0;t.vertAlign=="superscript"?e=1:t.vertAlign=="subscript"&&(e=2),n.write_shift(2,e),n.write_shift(1,t.underline||0),n.write_shift(1,t.family||0),n.write_shift(1,t.charset||0),n.write_shift(1,0),J0(t.color,n);var i=0;return t.scheme=="major"&&(i=1),t.scheme=="minor"&&(i=2),n.write_shift(1,i),ci(t.name,n),n.length>n.l?n.slice(0,n.l):n}var Cte=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Ux,Ste=ws;function hA(t,n){n||(n=he(4*3+8*7+16*1)),Ux||(Ux=Jx(Cte));var e=Ux[t.patternType];e==null&&(e=40),n.write_shift(4,e);var i=0;if(e!=40)for(J0({auto:1},n),J0({auto:1},n);i<12;++i)n.write_shift(4,0);else{for(;i<4;++i)n.write_shift(4,0);for(;i<12;++i)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function Ete(t,n){var e=t.l+n,i=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:i,numFmtId:r}}function yF(t,n,e){e||(e=he(16)),e.write_shift(2,n||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);var i=0;return e.write_shift(1,i),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function Cd(t,n){return n||(n=he(10)),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}var Tte=ws;function Ite(t,n){return n||(n=he(51)),n.write_shift(1,0),Cd(null,n),Cd(null,n),Cd(null,n),Cd(null,n),Cd(null,n),n.length>n.l?n.slice(0,n.l):n}function Dte(t,n){return n||(n=he(12+4*10)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),Q0(t.name||"",n),n.length>n.l?n.slice(0,n.l):n}function kte(t,n,e){var i=he(2052);return i.write_shift(4,t),Q0(n,i),Q0(e,i),i.length>i.l?i.slice(0,i.l):i}function Mte(t,n){if(n){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)n[r]!=null&&++e}),e!=0&&(we(t,615,Qr(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)n[r]!=null&&we(t,44,xte(r,n[r]))}),we(t,616))}}function Ate(t){var n=1;n!=0&&(we(t,611,Qr(n)),we(t,43,wte({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),we(t,612))}function Fte(t){var n=2;n!=0&&(we(t,603,Qr(n)),we(t,45,hA({patternType:"none"})),we(t,45,hA({patternType:"gray125"})),we(t,604))}function Pte(t){var n=1;n!=0&&(we(t,613,Qr(n)),we(t,46,Ite({})),we(t,614))}function Ote(t){var n=1;we(t,626,Qr(n)),we(t,47,yF({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),we(t,627)}function Rte(t,n){we(t,617,Qr(n.length)),n.forEach(function(e){we(t,47,yF(e,0))}),we(t,618)}function Lte(t){var n=1;we(t,619,Qr(n)),we(t,48,Dte({xfId:0,builtinId:0,name:"Normal"})),we(t,620)}function Nte(t){var n=0;we(t,505,Qr(n)),we(t,506)}function Vte(t){var n=0;we(t,508,kte(n,"TableStyleMedium9","PivotStyleMedium4")),we(t,509)}function Bte(t,n){var e=Zi();return we(e,278),Mte(e,t.SSF),Ate(e,t),Fte(e,t),Pte(e,t),Ote(e,t),Rte(e,n.cellXfs),Lte(e,t),Nte(e,t),Vte(e,t),we(e,279),e.end()}function xF(t,n){if(n&&n.themeXLSX)return n.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var e=[Wn];return e[e.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',e[e.length]="<a:themeElements>",e[e.length]='<a:clrScheme name="Office">',e[e.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',e[e.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',e[e.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',e[e.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',e[e.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',e[e.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',e[e.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',e[e.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',e[e.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',e[e.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',e[e.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',e[e.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',e[e.length]="</a:clrScheme>",e[e.length]='<a:fontScheme name="Office">',e[e.length]="<a:majorFont>",e[e.length]='<a:latin typeface="Cambria"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/>',e[e.length]='<a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/>',e[e.length]='<a:font script="Hans" typeface="\u5B8B\u4F53"/>',e[e.length]='<a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/>',e[e.length]='<a:font script="Arab" typeface="Times New Roman"/>',e[e.length]='<a:font script="Hebr" typeface="Times New Roman"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="MoolBoran"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Times New Roman"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:majorFont>",e[e.length]="<a:minorFont>",e[e.length]='<a:latin typeface="Calibri"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/>',e[e.length]='<a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/>',e[e.length]='<a:font script="Hans" typeface="\u5B8B\u4F53"/>',e[e.length]='<a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/>',e[e.length]='<a:font script="Arab" typeface="Arial"/>',e[e.length]='<a:font script="Hebr" typeface="Arial"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="DaunPenh"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Arial"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:minorFont>",e[e.length]="</a:fontScheme>",e[e.length]='<a:fmtScheme name="Office">',e[e.length]="<a:fillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="1"/>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="0"/>',e[e.length]="</a:gradFill>",e[e.length]="</a:fillStyleLst>",e[e.length]="<a:lnStyleLst>",e[e.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]="</a:lnStyleLst>",e[e.length]="<a:effectStyleLst>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',e[e.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',e[e.length]="</a:effectStyle>",e[e.length]="</a:effectStyleLst>",e[e.length]="<a:bgFillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]="</a:bgFillStyleLst>",e[e.length]="</a:fmtScheme>",e[e.length]="</a:themeElements>",e[e.length]="<a:objectDefaults>",e[e.length]="<a:spDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',e[e.length]="</a:spDef>",e[e.length]="<a:lnDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',e[e.length]="</a:lnDef>",e[e.length]="</a:objectDefaults>",e[e.length]="<a:extraClrSchemeLst/>",e[e.length]="</a:theme>",e.join("")}function Hte(t,n){return{flags:t.read_shift(4),version:t.read_shift(4),name:Ei(t,n-8)}}function zte(t){var n=he(12+2*t.name.length);return n.write_shift(4,t.flags),n.write_shift(4,t.version),ci(t.name,n),n.slice(0,n.l)}function jte(t){for(var n=[],e=t.read_shift(4);e-- >0;)n.push([t.read_shift(4),t.read_shift(4)]);return n}function Ute(t){var n=he(4+8*t.length);n.write_shift(4,t.length);for(var e=0;e<t.length;++e)n.write_shift(4,t[e][0]),n.write_shift(4,t[e][1]);return n}function Wte(t,n){var e=he(8+2*n.length);return e.write_shift(4,t),ci(n,e),e.slice(0,e.l)}function $te(t){return t.l+=4,t.read_shift(4)!=0}function Gte(t,n){var e=he(8);return e.write_shift(4,t),e.write_shift(4,n?1:0),e}function qte(){var t=Zi();return we(t,332),we(t,334,Qr(1)),we(t,335,zte({name:"XLDAPR",version:12e4,flags:3496657072})),we(t,336),we(t,339,Wte(1,"XLDAPR")),we(t,52),we(t,35,Qr(514)),we(t,4096,Qr(0)),we(t,4097,kr(1)),we(t,36),we(t,53),we(t,340),we(t,337,Gte(1,!0)),we(t,51,Ute([[1,0]])),we(t,338),we(t,333),t.end()}function bF(){var t=[Wn];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
  <metadataTypes count="1">
    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
  </metadataTypes>
  <futureMetadata name="XLDAPR" count="1">
    <bk>
      <extLst>
        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
        </ext>
      </extLst>
    </bk>
  </futureMetadata>
  <cellMetadata count="1">
    <bk>
      <rc t="1" v="0"/>
    </bk>
  </cellMetadata>
</metadata>`),t.join("")}function Kte(t){var n={};n.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),n.r=tn(e);var i=t.read_shift(1);return i&2&&(n.l="1"),i&8&&(n.a="1"),n}var mc=1024;function wF(t,n){for(var e=[21600,21600],i=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Oe("xml",null,{"xmlns:v":mr.v,"xmlns:o":mr.o,"xmlns:x":mr.x,"xmlns:mv":mr.mv}).replace(/\/>/,">"),Oe("o:shapelayout",Oe("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Oe("v:shapetype",[Oe("v:stroke",null,{joinstyle:"miter"}),Oe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:i})];mc<t*1e3;)mc+=1e3;return n.forEach(function(s){var o=li(s[0]),a={color2:"#BEFF82",type:"gradient"};a.type=="gradient"&&(a.angle="-180");var l=a.type=="gradient"?Oe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Oe("v:fill",l,a),u={on:"t",obscured:"t"};++mc,r=r.concat(["<v:shape"+Od({id:"_x0000_s"+mc,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(s[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,Oe("v:shadow",null,u),Oe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",yi("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),yi("x:AutoFill","False"),yi("x:Row",String(o.r)),yi("x:Column",String(o.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),r.push("</xml>"),r.join("")}function CF(t){var n=[Wn,Oe("comments",null,{xmlns:Cc[0]})],e=[];return n.push("<authors>"),t.forEach(function(i){i[1].forEach(function(r){var s=en(r.a);e.indexOf(s)==-1&&(e.push(s),n.push("<author>"+s+"</author>")),r.T&&r.ID&&e.indexOf("tc="+r.ID)==-1&&(e.push("tc="+r.ID),n.push("<author>tc="+r.ID+"</author>"))})}),e.length==0&&(e.push("SheetJ5"),n.push("<author>SheetJ5</author>")),n.push("</authors>"),n.push("<commentList>"),t.forEach(function(i){var r=0,s=[];if(i[1][0]&&i[1][0].T&&i[1][0].ID?r=e.indexOf("tc="+i[1][0].ID):i[1].forEach(function(l){l.a&&(r=e.indexOf(en(l.a))),s.push(l.t||"")}),n.push('<comment ref="'+i[0]+'" authorId="'+r+'"><text>'),s.length<=1)n.push(yi("t",en(s[0]||"")));else{for(var o=`Comment:
    `+s[0]+`
`,a=1;a<s.length;++a)o+=`Reply:
    `+s[a]+`
`;n.push(yi("t",en(o)))}n.push("</text></comment>")}),n.push("</commentList>"),n.length>2&&(n[n.length]="</comments>",n[1]=n[1].replace("/>",">")),n.join("")}function Yte(t,n,e){var i=[Wn,Oe("ThreadedComments",null,{xmlns:ai.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var s="";(r[1]||[]).forEach(function(o,a){if(!o.T){delete o.ID;return}o.a&&n.indexOf(o.a)==-1&&n.push(o.a);var l={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};a==0?s=l.id:l.parentId=s,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+n.indexOf(o.a)).slice(-12)+"}"),i.push(Oe("threadedComment",yi("text",o.t||""),l))})}),i.push("</ThreadedComments>"),i.join("")}function Xte(t){var n=[Wn,Oe("personList",null,{xmlns:ai.TCMNT,"xmlns:x":Cc[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,i){n.push(Oe("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+i).slice(-12)+"}",userId:e,providerId:"None"}))}),n.push("</personList>"),n.join("")}function Zte(t){var n={};n.iauthor=t.read_shift(4);var e=$a(t,16);return n.rfx=e.s,n.ref=tn(e.s),t.l+=16,n}function Qte(t,n){return n==null&&(n=he(36)),n.write_shift(4,t[1].iauthor),Tc(t[0],n),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n}var Jte=Ei;function ene(t){return ci(t.slice(0,54))}function tne(t){var n=Zi(),e=[];return we(n,628),we(n,630),t.forEach(function(i){i[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),we(n,632,ene(r.a)))})}),we(n,631),we(n,633),t.forEach(function(i){i[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var s={s:li(i[0]),e:li(i[0])};we(n,635,Qte([s,r])),r.t&&r.t.length>0&&we(n,637,iee(r)),we(n,636),delete r.iauthor})}),we(n,634),we(n,629),n.end()}function nne(t,n){n.FullPaths.forEach(function(e,i){if(i!=0){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");r.slice(-1)!=="/"&&rn.utils.cfb_add(t,r,n.FileIndex[i].content)}})}var SF=["xlsb","xlsm","xlam","biff8","xla"];var ine=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,n={r:0,c:0};function e(i,r,s,o){var a=!1,l=!1;s.length==0?l=!0:s.charAt(0)=="["&&(l=!0,s=s.slice(1,-1)),o.length==0?a=!0:o.charAt(0)=="["&&(a=!0,o=o.slice(1,-1));var c=s.length>0?parseInt(s,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return a?u+=n.c:--u,l?c+=n.r:--c,r+(a?"":"$")+Si(u)+(l?"":"$")+xi(c)}return function(r,s){return n=s,r.replace(t,e)}}(),vb=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,_b=function(){return function(n,e){return n.replace(vb,function(i,r,s,o,a,l){var c=db(o)-(s?0:e.c),u=ub(l)-(a?0:e.r),d=u==0?"":a?u+1:"["+u+"]",f=c==0?"":s?c+1:"["+c+"]";return r+"R"+d+"C"+f})}}();function rne(t,n){return t.replace(vb,function(e,i,r,s,o,a){return i+(r=="$"?r+s:Si(db(s)+n.c))+(o=="$"?o+a:xi(ub(a)+n.r))})}function sne(t){return t.length!=1}function jn(t){t.l+=1}function Uo(t,n){var e=t.read_shift(n==1?1:2);return[e&16383,e>>14&1,e>>15&1]}function EF(t,n,e){var i=2;if(e){if(e.biff>=2&&e.biff<=5)return TF(t,n,e);e.biff==12&&(i=4)}var r=t.read_shift(i),s=t.read_shift(i),o=Uo(t,2),a=Uo(t,2);return{s:{r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:s,c:a[0],cRel:a[1],rRel:a[2]}}}function TF(t){var n=Uo(t,2),e=Uo(t,2),i=t.read_shift(1),r=t.read_shift(1);return{s:{r:n[0],c:i,cRel:n[1],rRel:n[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function one(t,n,e){if(e.biff<8)return TF(t,n,e);var i=t.read_shift(e.biff==12?4:2),r=t.read_shift(e.biff==12?4:2),s=Uo(t,2),o=Uo(t,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r,c:o[0],cRel:o[1],rRel:o[2]}}}function IF(t,n,e){if(e&&e.biff>=2&&e.biff<=5)return ane(t,n,e);var i=t.read_shift(e&&e.biff==12?4:2),r=Uo(t,2);return{r:i,c:r[0],cRel:r[1],rRel:r[2]}}function ane(t){var n=Uo(t,2),e=t.read_shift(1);return{r:n[0],c:e,cRel:n[1],rRel:n[2]}}function lne(t){var n=t.read_shift(2),e=t.read_shift(2);return{r:n,c:e&255,fQuoted:!!(e&16384),cRel:e>>15,rRel:e>>15}}function cne(t,n,e){var i=e&&e.biff?e.biff:8;if(i>=2&&i<=5)return une(t,n,e);var r=t.read_shift(i>=12?4:2),s=t.read_shift(2),o=(s&16384)>>14,a=(s&32768)>>15;if(s&=16383,a==1)for(;r>524287;)r-=1048576;if(o==1)for(;s>8191;)s=s-16384;return{r,c:s,cRel:o,rRel:a}}function une(t){var n=t.read_shift(2),e=t.read_shift(1),i=(n&32768)>>15,r=(n&16384)>>14;return n&=16383,i==1&&n>=8192&&(n=n-16384),r==1&&e>=128&&(e=e-256),{r:n,c:e,cRel:r,rRel:i}}function dne(t,n,e){var i=(t[t.l++]&96)>>5,r=EF(t,e.biff>=2&&e.biff<=5?6:8,e);return[i,r]}function fne(t,n,e){var i=(t[t.l++]&96)>>5,r=t.read_shift(2,"i"),s=8;if(e)switch(e.biff){case 5:t.l+=12,s=6;break;case 12:s=12;break}var o=EF(t,s,e);return[i,r,o]}function hne(t,n,e){var i=(t[t.l++]&96)>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[i]}function pne(t,n,e){var i=(t[t.l++]&96)>>5,r=t.read_shift(2),s=8;if(e)switch(e.biff){case 5:t.l+=12,s=6;break;case 12:s=12;break}return t.l+=s,[i,r]}function mne(t,n,e){var i=(t[t.l++]&96)>>5,r=one(t,n-1,e);return[i,r]}function gne(t,n,e){var i=(t[t.l++]&96)>>5;return t.l+=e.biff==2?6:e.biff==12?14:7,[i]}function pA(t){var n=t[t.l+1]&1,e=1;return t.l+=4,[n,e]}function vne(t,n,e){t.l+=2;for(var i=t.read_shift(e&&e.biff==2?1:2),r=[],s=0;s<=i;++s)r.push(t.read_shift(e&&e.biff==2?1:2));return r}function _ne(t,n,e){var i=t[t.l+1]&255?1:0;return t.l+=2,[i,t.read_shift(e&&e.biff==2?1:2)]}function yne(t,n,e){var i=t[t.l+1]&255?1:0;return t.l+=2,[i,t.read_shift(e&&e.biff==2?1:2)]}function xne(t){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(2)]}function bne(t,n,e){var i=t[t.l+1]&255?1:0;return t.l+=e&&e.biff==2?3:4,[i]}function DF(t){var n=t.read_shift(1),e=t.read_shift(1);return[n,e]}function wne(t){return t.read_shift(2),DF(t,2)}function Cne(t){return t.read_shift(2),DF(t,2)}function Sne(t,n,e){var i=(t[t.l]&96)>>5;t.l+=1;var r=IF(t,0,e);return[i,r]}function Ene(t,n,e){var i=(t[t.l]&96)>>5;t.l+=1;var r=cne(t,0,e);return[i,r]}function Tne(t,n,e){var i=(t[t.l]&96)>>5;t.l+=1;var r=t.read_shift(2);e&&e.biff==5&&(t.l+=12);var s=IF(t,0,e);return[i,r,s]}function Ine(t,n,e){var i=(t[t.l]&96)>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[Iie[r],AF[r],i]}function Dne(t,n,e){var i=t[t.l++],r=t.read_shift(1),s=e&&e.biff<=3?[i==88?-1:0,t.read_shift(1)]:kne(t);return[r,(s[0]===0?AF:Tie)[s[1]]]}function kne(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function Mne(t,n,e){t.l+=e&&e.biff==2?3:4}function Ane(t,n,e){if(t.l++,e&&e.biff==12)return[t.read_shift(4,"i"),0];var i=t.read_shift(2),r=t.read_shift(e&&e.biff==2?1:2);return[i,r]}function Fne(t){return t.l++,Bd[t.read_shift(1)]}function Pne(t){return t.l++,t.read_shift(2)}function One(t){return t.l++,t.read_shift(1)!==0}function Rne(t){return t.l++,Ic(t,8)}function Lne(t,n,e){return t.l++,uF(t,n-1,e)}function Nne(t,n){var e=[t.read_shift(1)];if(n==12)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2;break}switch(e[0]){case 4:e[1]=Tee(t,1)?"TRUE":"FALSE",n!=12&&(t.l+=7);break;case 37:case 16:e[1]=Bd[t[t.l]],t.l+=n==12?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Ic(t,8);break;case 2:e[1]=Mee(t,0,{biff:n>0&&n<8?2:n});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function Vne(t,n,e){for(var i=t.read_shift(e.biff==12?4:2),r=[],s=0;s!=i;++s)r.push((e.biff==12?$a:Pee)(t,8));return r}function Bne(t,n,e){var i=0,r=0;e.biff==12?(i=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),i=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--i,--r==0&&(r=256));for(var s=0,o=[];s!=i&&(o[s]=[]);++s)for(var a=0;a!=r;++a)o[s][a]=Nne(t,e.biff);return o}function Hne(t,n,e){var i=t.read_shift(1)>>>5&3,r=!e||e.biff>=8?4:2,s=t.read_shift(r);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[i,0,s]}function zne(t,n,e){if(e.biff==5)return jne(t,n,e);var i=t.read_shift(1)>>>5&3,r=t.read_shift(2),s=t.read_shift(4);return[i,r,s]}function jne(t){var n=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var i=t.read_shift(2);return t.l+=12,[n,e,i]}function Une(t,n,e){var i=t.read_shift(1)>>>5&3;t.l+=e&&e.biff==2?3:4;var r=t.read_shift(e&&e.biff==2?1:2);return[i,r]}function Wne(t,n,e){var i=t.read_shift(1)>>>5&3,r=t.read_shift(e&&e.biff==2?1:2);return[i,r]}function $ne(t,n,e){var i=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,e.biff==12&&(t.l+=2),[i]}function Gne(t,n,e){var i=(t[t.l++]&96)>>5,r=t.read_shift(2),s=4;if(e)switch(e.biff){case 5:s=15;break;case 12:s=6;break}return t.l+=s,[i,r]}var qne=ws,Kne=ws,Yne=ws;function Hd(t,n,e){return t.l+=2,[lne(t,4,e)]}function yb(t){return t.l+=6,[]}var Xne=Hd,Zne=yb,Qne=yb,Jne=Hd;function kF(t){return t.l+=2,[lF(t),t.read_shift(2)&1]}var eie=Hd,tie=kF,nie=yb,iie=Hd,rie=Hd,sie=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function oie(t){t.l+=2;var n=t.read_shift(2),e=t.read_shift(2),i=t.read_shift(4),r=t.read_shift(2),s=t.read_shift(2),o=sie[e>>2&31];return{ixti:n,coltype:e&3,rt:o,idx:i,c:r,C:s}}function aie(t){return t.l+=2,[t.read_shift(4)]}function lie(t,n,e){return t.l+=5,t.l+=2,t.l+=e.biff==2?1:4,["PTGSHEET"]}function cie(t,n,e){return t.l+=e.biff==2?4:5,["PTGENDSHEET"]}function uie(t){var n=t.read_shift(1)>>>5&3,e=t.read_shift(2);return[n,e]}function die(t){var n=t.read_shift(1)>>>5&3,e=t.read_shift(2);return[n,e]}function fie(t){return t.l+=4,[0,0]}var mA={1:{n:"PtgExp",f:Ane},2:{n:"PtgTbl",f:Yne},3:{n:"PtgAdd",f:jn},4:{n:"PtgSub",f:jn},5:{n:"PtgMul",f:jn},6:{n:"PtgDiv",f:jn},7:{n:"PtgPower",f:jn},8:{n:"PtgConcat",f:jn},9:{n:"PtgLt",f:jn},10:{n:"PtgLe",f:jn},11:{n:"PtgEq",f:jn},12:{n:"PtgGe",f:jn},13:{n:"PtgGt",f:jn},14:{n:"PtgNe",f:jn},15:{n:"PtgIsect",f:jn},16:{n:"PtgUnion",f:jn},17:{n:"PtgRange",f:jn},18:{n:"PtgUplus",f:jn},19:{n:"PtgUminus",f:jn},20:{n:"PtgPercent",f:jn},21:{n:"PtgParen",f:jn},22:{n:"PtgMissArg",f:jn},23:{n:"PtgStr",f:Lne},26:{n:"PtgSheet",f:lie},27:{n:"PtgEndSheet",f:cie},28:{n:"PtgErr",f:Fne},29:{n:"PtgBool",f:One},30:{n:"PtgInt",f:Pne},31:{n:"PtgNum",f:Rne},32:{n:"PtgArray",f:gne},33:{n:"PtgFunc",f:Ine},34:{n:"PtgFuncVar",f:Dne},35:{n:"PtgName",f:Hne},36:{n:"PtgRef",f:Sne},37:{n:"PtgArea",f:dne},38:{n:"PtgMemArea",f:Une},39:{n:"PtgMemErr",f:qne},40:{n:"PtgMemNoMem",f:Kne},41:{n:"PtgMemFunc",f:Wne},42:{n:"PtgRefErr",f:$ne},43:{n:"PtgAreaErr",f:hne},44:{n:"PtgRefN",f:Ene},45:{n:"PtgAreaN",f:mne},46:{n:"PtgMemAreaN",f:uie},47:{n:"PtgMemNoMemN",f:die},57:{n:"PtgNameX",f:zne},58:{n:"PtgRef3d",f:Tne},59:{n:"PtgArea3d",f:fne},60:{n:"PtgRefErr3d",f:Gne},61:{n:"PtgAreaErr3d",f:pne},255:{}},hie={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},pie={1:{n:"PtgElfLel",f:kF},2:{n:"PtgElfRw",f:iie},3:{n:"PtgElfCol",f:Xne},6:{n:"PtgElfRwV",f:rie},7:{n:"PtgElfColV",f:Jne},10:{n:"PtgElfRadical",f:eie},11:{n:"PtgElfRadicalS",f:nie},13:{n:"PtgElfColS",f:Zne},15:{n:"PtgElfColSV",f:Qne},16:{n:"PtgElfRadicalLel",f:tie},25:{n:"PtgList",f:oie},29:{n:"PtgSxName",f:aie},255:{}},mie={0:{n:"PtgAttrNoop",f:fie},1:{n:"PtgAttrSemi",f:bne},2:{n:"PtgAttrIf",f:yne},4:{n:"PtgAttrChoose",f:vne},8:{n:"PtgAttrGoto",f:_ne},16:{n:"PtgAttrSum",f:Mne},32:{n:"PtgAttrBaxcel",f:pA},33:{n:"PtgAttrBaxcel",f:pA},64:{n:"PtgAttrSpace",f:wne},65:{n:"PtgAttrSpaceSemi",f:Cne},128:{n:"PtgAttrIfError",f:xne},255:{}};function gie(t,n,e,i){if(i.biff<8)return ws(t,n);for(var r=t.l+n,s=[],o=0;o!==e.length;++o)switch(e[o][0]){case"PtgArray":e[o][1]=Bne(t,0,i),s.push(e[o][1]);break;case"PtgMemArea":e[o][2]=Vne(t,e[o][1],i),s.push(e[o][2]);break;case"PtgExp":i&&i.biff==12&&(e[o][1][1]=t.read_shift(4),s.push(e[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[o][0];default:break}return n=r-t.l,n!==0&&s.push(ws(t,n)),s}function vie(t,n,e){for(var i=t.l+n,r,s,o=[];i!=t.l;)n=i-t.l,s=t[t.l],r=mA[s]||mA[hie[s]],(s===24||s===25)&&(r=(s===24?pie:mie)[t[t.l+1]]),!r||!r.f?ws(t,n):o.push([r.n,r.f(t,n,e)]);return o}function _ie(t){for(var n=[],e=0;e<t.length;++e){for(var i=t[e],r=[],s=0;s<i.length;++s){var o=i[s];if(o)switch(o[0]){case 2:r.push('"'+o[1].replace(/"/g,'""')+'"');break;default:r.push(o[1])}else r.push("")}n.push(r.join(","))}return n.join(";")}var yie={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function xie(t,n){if(!t&&!(n&&n.biff<=5&&n.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function MF(t,n,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[n]))return t.SheetNames[n];if(!t.XTI)return"SH33TJSERR6";var i=t.XTI[n];if(e.biff<8)return n>1e4&&(n-=65536),n<0&&(n=-n),n==0?"":t.XTI[n-1];if(!i)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[i[0]][0]){case 357:return r=i[1]==-1?"#REF":t.SheetNames[i[1]],i[1]==i[2]?r:r+":"+t.SheetNames[i[2]];case 358:return e.SID!=null?t.SheetNames[e.SID]:"SH33TJSSAME"+t[i[0]][0];case 355:default:return"SH33TJSSRC"+t[i[0]][0]}switch(t[i[0]][0][0]){case 1025:return r=i[1]==-1?"#REF":t.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?r:r+":"+t.SheetNames[i[2]];case 14849:return t[i[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return t[i[0]][0][3]?(r=i[1]==-1?"#REF":t[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?r:r+":"+t[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function gA(t,n,e){var i=MF(t,n,e);return i=="#REF"?i:xie(i,e)}function wc(t,n,e,i,r){var s=r&&r.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},a=[],l,c,u,d=0,f=0,h,m="";if(!t[0]||!t[0][0])return"";for(var p=-1,g="",v=0,_=t[0].length;v<_;++v){var y=t[0][v];switch(y[0]){case"PtgUminus":a.push("-"+a.pop());break;case"PtgUplus":a.push("+"+a.pop());break;case"PtgPercent":a.push(a.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=a.pop(),c=a.pop(),p>=0){switch(t[0][p][1][0]){case 0:g=An(" ",t[0][p][1][1]);break;case 1:g=An("\r",t[0][p][1][1]);break;default:if(g="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][p][1][0])}c=c+g,p=-1}a.push(c+yie[y[0]]+l);break;case"PtgIsect":l=a.pop(),c=a.pop(),a.push(c+" "+l);break;case"PtgUnion":l=a.pop(),c=a.pop(),a.push(c+","+l);break;case"PtgRange":l=a.pop(),c=a.pop(),a.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Id(y[1][1],o,r),a.push(Dd(u,s));break;case"PtgRefN":u=e?Id(y[1][1],e,r):y[1][1],a.push(Dd(u,s));break;case"PtgRef3d":d=y[1][1],u=Id(y[1][2],o,r),m=gA(i,d,r);var x=m;a.push(m+"!"+Dd(u,s));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],T=y[1][1];w||(w=0),w&=127;var E=w==0?[]:a.slice(-w);a.length-=w,T==="User"&&(T=E.shift()),a.push(T+"("+E.join(",")+")");break;case"PtgBool":a.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":a.push(y[1]);break;case"PtgNum":a.push(String(y[1]));break;case"PtgStr":a.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":a.push(y[1]);break;case"PtgAreaN":h=eA(y[1][1],e?{s:e}:o,r),a.push(zx(h,r));break;case"PtgArea":h=eA(y[1][1],o,r),a.push(zx(h,r));break;case"PtgArea3d":d=y[1][1],h=y[1][2],m=gA(i,d,r),a.push(m+"!"+zx(h,r));break;case"PtgAttrSum":a.push("SUM("+a.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=y[1][2];var k=(i.names||[])[f-1]||(i[0]||[])[f],F=k?k.Name:"SH33TJSNAME"+String(f);F&&F.slice(0,6)=="_xlfn."&&!r.xlfn&&(F=F.slice(6)),a.push(F);break;case"PtgNameX":var G=y[1][1];f=y[1][2];var Y;if(r.biff<=5)G<0&&(G=-G),i[G]&&(Y=i[G][f]);else{var W="";if(((i[G]||[])[0]||[])[0]==14849||(((i[G]||[])[0]||[])[0]==1025?i[G][f]&&i[G][f].itab>0&&(W=i.SheetNames[i[G][f].itab-1]+"!"):W=i.SheetNames[f-1]+"!"),i[G]&&i[G][f])W+=i[G][f].Name;else if(i[0]&&i[0][f])W+=i[0][f].Name;else{var le=(MF(i,G,r)||"").split(";;");le[f-1]?W=le[f-1]:W+="SH33TJSERRX"}a.push(W);break}Y||(Y={Name:"SH33TJSERRY"}),a.push(Y.Name);break;case"PtgParen":var ge="(",te=")";if(p>=0){switch(g="",t[0][p][1][0]){case 2:ge=An(" ",t[0][p][1][1])+ge;break;case 3:ge=An("\r",t[0][p][1][1])+ge;break;case 4:te=An(" ",t[0][p][1][1])+te;break;case 5:te=An("\r",t[0][p][1][1])+te;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][p][1][0])}p=-1}a.push(ge+a.pop()+te);break;case"PtgRefErr":a.push("#REF!");break;case"PtgRefErr3d":a.push("#REF!");break;case"PtgExp":u={c:y[1][1],r:y[1][0]};var M={c:e.c,r:e.r};if(i.sharedf[tn(u)]){var R=i.sharedf[tn(u)];a.push(wc(R,o,M,i,r))}else{var S=!1;for(l=0;l!=i.arrayf.length;++l)if(c=i.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){a.push(wc(c[1],o,M,i,r)),S=!0;break}S||a.push(y[1])}break;case"PtgArray":a.push("{"+_ie(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":a.push("");break;case"PtgAreaErr":a.push("#REF!");break;case"PtgAreaErr3d":a.push("#REF!");break;case"PtgList":a.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var D=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(r.biff!=3&&p>=0&&D.indexOf(t[0][v][0])==-1){y=t[0][p];var Q=!0;switch(y[1][0]){case 4:Q=!1;case 0:g=An(" ",y[1][1]);break;case 5:Q=!1;case 1:g=An("\r",y[1][1]);break;default:if(g="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}a.push((Q?g:"")+a.pop()+(Q?"":g)),p=-1}}if(a.length>1&&r.WTF)throw new Error("bad formula stack");return a[0]}function bie(t){if(t==null){var n=he(8);return n.write_shift(1,3),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,65535),n}else if(typeof t=="number")return Ba(t);return Ba(0)}function wie(t,n,e,i,r){var s=Ha(n,e,r),o=bie(t.v),a=he(6),l=33;a.write_shift(2,l),a.write_shift(4,0);for(var c=he(t.bf.length),u=0;u<t.bf.length;++u)c[u]=t.bf[u];var d=_i([s,o,a,c]);return d}function fm(t,n,e){var i=t.read_shift(4),r=vie(t,i,e),s=t.read_shift(4),o=s>0?gie(t,s,r,e):null;return[r,o]}var Cie=fm,hm=fm,Sie=fm,Eie=fm,Tie={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},AF={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Iie={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Die(t){var n="of:="+t.replace(vb,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return n.replace(/;/g,"|").replace(/,/g,";")}function kie(t){return t.replace(/\./,"!")}var kd=typeof Map<"u";function xb(t,n,e){var i=0,r=t.length;if(e){if(kd?e.has(n):Object.prototype.hasOwnProperty.call(e,n)){for(var s=kd?e.get(n):e[n];i<s.length;++i)if(t[s[i]].t===n)return t.Count++,s[i]}}else for(;i<r;++i)if(t[i].t===n)return t.Count++,i;return t[r]={t:n},t.Count++,t.Unique++,e&&(kd?(e.has(n)||e.set(n,[]),e.get(n).push(r)):(Object.prototype.hasOwnProperty.call(e,n)||(e[n]=[]),e[n].push(r))),r}function pm(t,n){var e={min:t+1,max:t+1},i=-1;return n.MDW&&(to=n.MDW),n.width!=null?e.customWidth=1:n.wpx!=null?i=nm(n.wpx):n.wch!=null&&(i=n.wch),i>-1?(e.width=Xx(i),e.customWidth=1):n.width!=null&&(e.width=n.width),n.hidden&&(e.hidden=!0),n.level!=null&&(e.outlineLevel=e.level=n.level),e}function FF(t,n){if(t){var e=[.7,.7,.75,.75,.3,.3];n=="xlml"&&(e=[1,1,1,1,.5,.5]),t.left==null&&(t.left=e[0]),t.right==null&&(t.right=e[1]),t.top==null&&(t.top=e[2]),t.bottom==null&&(t.bottom=e[3]),t.header==null&&(t.header=e[4]),t.footer==null&&(t.footer=e[5])}}function $o(t,n,e){var i=e.revssf[n.z!=null?n.z:"General"],r=60,s=t.length;if(i==null&&e.ssf){for(;r<392;++r)if(e.ssf[r]==null){FA(n.z,r),e.ssf[r]=n.z,e.revssf[n.z]=i=r;break}}for(r=0;r!=s;++r)if(t[r].numFmtId===i)return r;return t[s]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function Mie(t,n,e){if(t&&t["!ref"]){var i=yn(t["!ref"]);if(i.e.c<i.s.c||i.e.r<i.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}function Aie(t){if(t.length===0)return"";for(var n='<mergeCells count="'+t.length+'">',e=0;e!=t.length;++e)n+='<mergeCell ref="'+Un(t[e])+'"/>';return n+"</mergeCells>"}function Fie(t,n,e,i,r){var s=!1,o={},a=null;if(i.bookType!=="xlsx"&&n.vbaraw){var l=n.SheetNames[e];try{n.Workbook&&(l=n.Workbook.Sheets[e].CodeName||l)}catch{}s=!0,o.codeName=Qs(en(l))}if(t&&t["!outline"]){var c={summaryBelow:1,summaryRight:1};t["!outline"].above&&(c.summaryBelow=0),t["!outline"].left&&(c.summaryRight=0),a=(a||"")+Oe("outlinePr",null,c)}!s&&!a||(r[r.length]=Oe("sheetPr",a,o))}var Pie=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Oie=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Rie(t){var n={sheet:1};return Pie.forEach(function(e){t[e]!=null&&t[e]&&(n[e]="1")}),Oie.forEach(function(e){t[e]!=null&&!t[e]&&(n[e]="0")}),t.password&&(n.password=mF(t.password).toString(16).toUpperCase()),Oe("sheetProtection",null,n)}function Lie(t){return FF(t),Oe("pageMargins",null,t)}function Nie(t,n){for(var e=["<cols>"],i,r=0;r!=n.length;++r)(i=n[r])&&(e[e.length]=Oe("col",null,pm(r,i)));return e[e.length]="</cols>",e.join("")}function Vie(t,n,e,i){var r=typeof t.ref=="string"?t.ref:Un(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var s=e.Workbook.Names,o=gr(r);o.s.r==o.e.r&&(o.e.r=gr(n["!ref"]).e.r,r=Un(o));for(var a=0;a<s.length;++a){var l=s[a];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==i){l.Ref="'"+e.SheetNames[i]+"'!"+r;break}}return a==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+e.SheetNames[i]+"'!"+r}),Oe("autoFilter",null,{ref:r})}function Bie(t,n,e,i){var r={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),Oe("sheetViews",Oe("sheetView",null,r),{})}function Hie(t,n,e,i){if(t.c&&e["!comments"].push([n,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var r="",s=t.t,o=t.v;if(t.t!=="z")switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=Bd[t.v];break;case"d":i&&i.cellDates?r=Ni(t.v,-1).toISOString():(t=Ji(t),t.t="n",r=""+(t.v=Qi(Ni(t.v)))),typeof t.z>"u"&&(t.z=Fn[14]);break;default:r=t.v;break}var a=yi("v",en(r)),l={r:n},c=$o(i.cellXfs,t,i);switch(c!==0&&(l.s=c),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){a=yi("v",""+xb(i.Strings,t.v,i.revStrings)),l.t="s";break}l.t="str";break}if(t.t!=s&&(t.t=s,t.v=o),typeof t.f=="string"&&t.f){var u=t.F&&t.F.slice(0,n.length)==n?{t:"array",ref:t.F}:null;a=Oe("f",en(t.f),u)+(t.v!=null?a:"")}return t.l&&e["!links"].push([n,t.l]),t.D&&(l.cm=1),Oe("c",a,l)}function zie(t,n,e,i){var r=[],s=[],o=yn(t["!ref"]),a="",l,c="",u=[],d=0,f=0,h=t["!rows"],m=Array.isArray(t),p={r:c},g,v=-1;for(f=o.s.c;f<=o.e.c;++f)u[f]=Si(f);for(d=o.s.r;d<=o.e.r;++d){for(s=[],c=xi(d),f=o.s.c;f<=o.e.c;++f){l=u[f]+c;var _=m?(t[d]||[])[f]:t[l];_!==void 0&&(a=Hie(_,l,t,n,e,i))!=null&&s.push(a)}(s.length>0||h&&h[d])&&(p={r:c},h&&h[d]&&(g=h[d],g.hidden&&(p.hidden=1),v=-1,g.hpx?v=im(g.hpx):g.hpt&&(v=g.hpt),v>-1&&(p.ht=v,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),r[r.length]=Oe("row",s.join(""),p))}if(h)for(;d<h.length;++d)h&&h[d]&&(p={r:d+1},g=h[d],g.hidden&&(p.hidden=1),v=-1,g.hpx?v=im(g.hpx):g.hpt&&(v=g.hpt),v>-1&&(p.ht=v,p.customHeight=1),g.level&&(p.outlineLevel=g.level),r[r.length]=Oe("row","",p));return r.join("")}function PF(t,n,e,i){var r=[Wn,Oe("worksheet",null,{xmlns:Cc[0],"xmlns:r":ai.r})],s=e.SheetNames[t],o=0,a="",l=e.Sheets[s];l==null&&(l={});var c=l["!ref"]||"A1",u=yn(c);if(u.e.c>16383||u.e.r>1048575){if(n.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=Un(u)}i||(i={}),l["!comments"]=[];var d=[];Fie(l,e,t,n,r),r[r.length]=Oe("dimension",null,{ref:c}),r[r.length]=Bie(l,n,t,e),n.sheetFormat&&(r[r.length]=Oe("sheetFormatPr",null,{defaultRowHeight:n.sheetFormat.defaultRowHeight||"16",baseColWidth:n.sheetFormat.baseColWidth||"10",outlineLevelRow:n.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(r[r.length]=Nie(l,l["!cols"])),r[o=r.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(a=zie(l,n,t,e,i),a.length>0&&(r[r.length]=a)),r.length>o+1&&(r[r.length]="</sheetData>",r[o]=r[o].replace("/>",">")),l["!protect"]&&(r[r.length]=Rie(l["!protect"])),l["!autofilter"]!=null&&(r[r.length]=Vie(l["!autofilter"],l,e,t)),l["!merges"]!=null&&l["!merges"].length>0&&(r[r.length]=Aie(l["!merges"]));var f=-1,h,m=-1;return l["!links"].length>0&&(r[r.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(m=Jt(i,-1,en(p[1].Target).replace(/#.*$/,""),Wt.HLINK),h["r:id"]="rId"+m),(f=p[1].Target.indexOf("#"))>-1&&(h.location=en(p[1].Target.slice(f+1))),p[1].Tooltip&&(h.tooltip=en(p[1].Tooltip)),r[r.length]=Oe("hyperlink",null,h))}),r[r.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(r[r.length]=Lie(l["!margins"])),(!n||n.ignoreEC||n.ignoreEC==null)&&(r[r.length]=yi("ignoredErrors",Oe("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(m=Jt(i,-1,"../drawings/drawing"+(t+1)+".xml",Wt.DRAW),r[r.length]=Oe("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=d),l["!comments"].length>0&&(m=Jt(i,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Wt.VML),r[r.length]=Oe("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),r.length>1&&(r[r.length]="</worksheet>",r[1]=r[1].replace("/>",">")),r.join("")}function jie(t,n){var e={},i=t.l+n;e.r=t.read_shift(4),t.l+=4;var r=t.read_shift(2);t.l+=1;var s=t.read_shift(1);return t.l=i,s&7&&(e.level=s&7),s&16&&(e.hidden=!0),s&32&&(e.hpt=r/20),e}function Uie(t,n,e){var i=he(145),r=(e["!rows"]||[])[t]||{};i.write_shift(4,t),i.write_shift(4,0);var s=320;r.hpx?s=im(r.hpx)*20:r.hpt&&(s=r.hpt*20),i.write_shift(2,s),i.write_shift(1,0);var o=0;r.level&&(o|=r.level),r.hidden&&(o|=16),(r.hpx||r.hpt)&&(o|=32),i.write_shift(1,o),i.write_shift(1,0);var a=0,l=i.l;i.l+=4;for(var c={r:t,c:0},u=0;u<16;++u)if(!(n.s.c>u+1<<10||n.e.c<u<<10)){for(var d=-1,f=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var m=Array.isArray(e)?(e[c.r]||[])[c.c]:e[tn(c)];m&&(d<0&&(d=h),f=h)}d<0||(++a,i.write_shift(4,d),i.write_shift(4,f))}var p=i.l;return i.l=l,i.write_shift(4,a),i.l=p,i.length>i.l?i.slice(0,i.l):i}function Wie(t,n,e,i){var r=Uie(i,e,n);(r.length>17||(n["!rows"]||[])[i])&&we(t,0,r)}var $ie=$a,Gie=Tc;function qie(){}function Kie(t,n){var e={},i=t[t.l];return++t.l,e.above=!(i&64),e.left=!(i&128),t.l+=18,e.name=ree(t,n-19),e}function Yie(t,n,e){e==null&&(e=he(84+4*t.length));var i=192;n&&(n.above&&(i&=-65),n.left&&(i&=-129)),e.write_shift(1,i);for(var r=1;r<3;++r)e.write_shift(1,0);return J0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),KA(t,e),e.slice(0,e.l)}function Xie(t){var n=Mr(t);return[n]}function Zie(t,n,e){return e==null&&(e=he(8)),ja(n,e)}function Qie(t){var n=Ua(t);return[n]}function Jie(t,n,e){return e==null&&(e=he(4)),Wa(n,e)}function ere(t){var n=Mr(t),e=t.read_shift(1);return[n,e,"b"]}function tre(t,n,e){return e==null&&(e=he(9)),ja(n,e),e.write_shift(1,t.v?1:0),e}function nre(t){var n=Ua(t),e=t.read_shift(1);return[n,e,"b"]}function ire(t,n,e){return e==null&&(e=he(5)),Wa(n,e),e.write_shift(1,t.v?1:0),e}function rre(t){var n=Mr(t),e=t.read_shift(1);return[n,e,"e"]}function sre(t,n,e){return e==null&&(e=he(9)),ja(n,e),e.write_shift(1,t.v),e}function ore(t){var n=Ua(t),e=t.read_shift(1);return[n,e,"e"]}function are(t,n,e){return e==null&&(e=he(8)),Wa(n,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}function lre(t){var n=Mr(t),e=t.read_shift(4);return[n,e,"s"]}function cre(t,n,e){return e==null&&(e=he(12)),ja(n,e),e.write_shift(4,n.v),e}function ure(t){var n=Ua(t),e=t.read_shift(4);return[n,e,"s"]}function dre(t,n,e){return e==null&&(e=he(8)),Wa(n,e),e.write_shift(4,n.v),e}function fre(t){var n=Mr(t),e=Ic(t);return[n,e,"n"]}function hre(t,n,e){return e==null&&(e=he(16)),ja(n,e),Ba(t.v,e),e}function pre(t){var n=Ua(t),e=Ic(t);return[n,e,"n"]}function mre(t,n,e){return e==null&&(e=he(12)),Wa(n,e),Ba(t.v,e),e}function gre(t){var n=Mr(t),e=YA(t);return[n,e,"n"]}function vre(t,n,e){return e==null&&(e=he(12)),ja(n,e),XA(t.v,e),e}function _re(t){var n=Ua(t),e=YA(t);return[n,e,"n"]}function yre(t,n,e){return e==null&&(e=he(8)),Wa(n,e),XA(t.v,e),e}function xre(t){var n=Mr(t),e=fb(t);return[n,e,"is"]}function bre(t){var n=Mr(t),e=Ei(t);return[n,e,"str"]}function wre(t,n,e){return e==null&&(e=he(12+4*t.v.length)),ja(n,e),ci(t.v,e),e.length>e.l?e.slice(0,e.l):e}function Cre(t){var n=Ua(t),e=Ei(t);return[n,e,"str"]}function Sre(t,n,e){return e==null&&(e=he(8+4*t.v.length)),Wa(n,e),ci(t.v,e),e.length>e.l?e.slice(0,e.l):e}function Ere(t,n,e){var i=t.l+n,r=Mr(t);r.r=e["!row"];var s=t.read_shift(1),o=[r,s,"b"];if(e.cellFormula){t.l+=2;var a=hm(t,i-t.l,e);o[3]=wc(a,null,r,e.supbooks,e)}else t.l=i;return o}function Tre(t,n,e){var i=t.l+n,r=Mr(t);r.r=e["!row"];var s=t.read_shift(1),o=[r,s,"e"];if(e.cellFormula){t.l+=2;var a=hm(t,i-t.l,e);o[3]=wc(a,null,r,e.supbooks,e)}else t.l=i;return o}function Ire(t,n,e){var i=t.l+n,r=Mr(t);r.r=e["!row"];var s=Ic(t),o=[r,s,"n"];if(e.cellFormula){t.l+=2;var a=hm(t,i-t.l,e);o[3]=wc(a,null,r,e.supbooks,e)}else t.l=i;return o}function Dre(t,n,e){var i=t.l+n,r=Mr(t);r.r=e["!row"];var s=Ei(t),o=[r,s,"str"];if(e.cellFormula){t.l+=2;var a=hm(t,i-t.l,e);o[3]=wc(a,null,r,e.supbooks,e)}else t.l=i;return o}var kre=$a,Mre=Tc;function Are(t,n){return n==null&&(n=he(4)),n.write_shift(4,t),n}function Fre(t,n){var e=t.l+n,i=$a(t,16),r=hb(t),s=Ei(t),o=Ei(t),a=Ei(t);t.l=e;var l={rfx:i,relId:r,loc:s,display:a};return o&&(l.Tooltip=o),l}function Pre(t,n){var e=he(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Tc({s:li(t[0]),e:li(t[0])},e),pb("rId"+n,e);var i=t[1].Target.indexOf("#"),r=i==-1?"":t[1].Target.slice(i+1);return ci(r||"",e),ci(t[1].Tooltip||"",e),ci("",e),e.slice(0,e.l)}function Ore(){}function Rre(t,n,e){var i=t.l+n,r=ZA(t,16),s=t.read_shift(1),o=[r];if(o[2]=s,e.cellFormula){var a=Cie(t,i-t.l,e);o[1]=a}else t.l=i;return o}function Lre(t,n,e){var i=t.l+n,r=$a(t,16),s=[r];if(e.cellFormula){var o=Eie(t,i-t.l,e);s[1]=o,t.l=i}else t.l=i;return s}function Nre(t,n,e){e==null&&(e=he(18));var i=pm(t,n);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,(i.width||10)*256),e.write_shift(4,0);var r=0;return n.hidden&&(r|=1),typeof i.width=="number"&&(r|=2),n.level&&(r|=n.level<<8),e.write_shift(2,r),e}var OF=["left","right","top","bottom","header","footer"];function Vre(t){var n={};return OF.forEach(function(e){n[e]=Ic(t,8)}),n}function Bre(t,n){return n==null&&(n=he(6*8)),FF(t),OF.forEach(function(e){Ba(t[e],n)}),n}function Hre(t){var n=t.read_shift(2);return t.l+=28,{RTL:n&32}}function zre(t,n,e){e==null&&(e=he(30));var i=924;return(((n||{}).Views||[])[0]||{}).RTL&&(i|=32),e.write_shift(2,i),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}function jre(t){var n=he(24);return n.write_shift(4,4),n.write_shift(4,1),Tc(t,n),n}function Ure(t,n){return n==null&&(n=he(16*4+2)),n.write_shift(2,t.password?mF(t.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){e[1]?n.write_shift(4,t[e[0]]!=null&&!t[e[0]]?1:0):n.write_shift(4,t[e[0]]!=null&&t[e[0]]?0:1)}),n}function Wre(){}function $re(){}function Gre(t,n,e,i,r,s,o){if(n.v===void 0)return!1;var a="";switch(n.t){case"b":a=n.v?"1":"0";break;case"d":n=Ji(n),n.z=n.z||Fn[14],n.v=Qi(Ni(n.v)),n.t="n";break;case"n":case"e":a=""+n.v;break;default:a=n.v;break}var l={r:e,c:i};switch(l.s=$o(r.cellXfs,n,r),n.l&&s["!links"].push([tn(l),n.l]),n.c&&s["!comments"].push([tn(l),n.c]),n.t){case"s":case"str":return r.bookSST?(a=xb(r.Strings,n.v,r.revStrings),l.t="s",l.v=a,o?we(t,18,dre(n,l)):we(t,7,cre(n,l))):(l.t="str",o?we(t,17,Sre(n,l)):we(t,6,wre(n,l))),!0;case"n":return n.v==(n.v|0)&&n.v>-1e3&&n.v<1e3?o?we(t,13,yre(n,l)):we(t,2,vre(n,l)):o?we(t,16,mre(n,l)):we(t,5,hre(n,l)),!0;case"b":return l.t="b",o?we(t,15,ire(n,l)):we(t,4,tre(n,l)),!0;case"e":return l.t="e",o?we(t,14,are(n,l)):we(t,3,sre(n,l)),!0}return o?we(t,12,Jie(n,l)):we(t,1,Zie(n,l)),!0}function qre(t,n,e,i){var r=yn(n["!ref"]||"A1"),s,o="",a=[];we(t,145);var l=Array.isArray(n),c=r.e.r;n["!rows"]&&(c=Math.max(r.e.r,n["!rows"].length-1));for(var u=r.s.r;u<=c;++u){o=xi(u),Wie(t,n,r,u);var d=!1;if(u<=r.e.r)for(var f=r.s.c;f<=r.e.c;++f){u===r.s.r&&(a[f]=Si(f)),s=a[f]+o;var h=l?(n[u]||[])[f]:n[s];if(!h){d=!1;continue}d=Gre(t,h,u,f,i,n,d)}}we(t,146)}function Kre(t,n){!n||!n["!merges"]||(we(t,177,Are(n["!merges"].length)),n["!merges"].forEach(function(e){we(t,176,Mre(e))}),we(t,178))}function Yre(t,n){!n||!n["!cols"]||(we(t,390),n["!cols"].forEach(function(e,i){e&&we(t,60,Nre(i,e))}),we(t,391))}function Xre(t,n){!n||!n["!ref"]||(we(t,648),we(t,649,jre(yn(n["!ref"]))),we(t,650))}function Zre(t,n,e){n["!links"].forEach(function(i){if(i[1].Target){var r=Jt(e,-1,i[1].Target.replace(/#.*$/,""),Wt.HLINK);we(t,494,Pre(i,r))}}),delete n["!links"]}function Qre(t,n,e,i){if(n["!comments"].length>0){var r=Jt(i,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Wt.VML);we(t,551,pb("rId"+r)),n["!legacy"]=r}}function Jre(t,n,e,i){if(n["!autofilter"]){var r=n["!autofilter"],s=typeof r.ref=="string"?r.ref:Un(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=gr(s);a.s.r==a.e.r&&(a.e.r=gr(n["!ref"]).e.r,s=Un(a));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==i){c.Ref="'"+e.SheetNames[i]+"'!"+s;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+e.SheetNames[i]+"'!"+s}),we(t,161,Tc(yn(s))),we(t,162)}}function ese(t,n,e){we(t,133),we(t,137,zre(n,e)),we(t,138),we(t,134)}function tse(t,n){n["!protect"]&&we(t,535,Ure(n["!protect"]))}function nse(t,n,e,i){var r=Zi(),s=e.SheetNames[t],o=e.Sheets[s]||{},a=s;try{e&&e.Workbook&&(a=e.Workbook.Sheets[t].CodeName||a)}catch{}var l=yn(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(n.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],we(r,129),(e.vbaraw||o["!outline"])&&we(r,147,Yie(a,o["!outline"])),we(r,148,Gie(l)),ese(r,o,e.Workbook),Yre(r,o,t,n,e),qre(r,o,t,n,e),tse(r,o),Jre(r,o,e,t),Kre(r,o),Zre(r,o,i),o["!margins"]&&we(r,476,Bre(o["!margins"])),(!n||n.ignoreEC||n.ignoreEC==null)&&Xre(r,o),Qre(r,o,t,i),we(r,130),r.end()}function ise(t,n){t.l+=10;var e=Ei(t,n-10);return{name:e}}var rse=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function sse(t){return!t.Workbook||!t.Workbook.WBProps?"false":RJ(t.Workbook.WBProps.date1904)?"true":"false"}var ose="][*?/\\".split("");function RF(t,n){if(t.length>31){if(n)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return ose.forEach(function(i){if(t.indexOf(i)!=-1){if(!n)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function ase(t,n,e){t.forEach(function(i,r){RF(i);for(var s=0;s<r;++s)if(i==t[s])throw new Error("Duplicate Sheet Name: "+i);if(e){var o=n&&n[r]&&n[r].CodeName||i;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function lse(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var n=t.Workbook&&t.Workbook.Sheets||[];ase(t.SheetNames,n,!!t.vbaraw);for(var e=0;e<t.SheetNames.length;++e)Mie(t.Sheets[t.SheetNames[e]],t.SheetNames[e],e)}function LF(t){var n=[Wn];n[n.length]=Oe("workbook",null,{xmlns:Cc[0],"xmlns:r":ai.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(rse.forEach(function(a){t.Workbook.WBProps[a[0]]!=null&&t.Workbook.WBProps[a[0]]!=a[1]&&(i[a[0]]=t.Workbook.WBProps[a[0]])}),t.Workbook.WBProps.CodeName&&(i.codeName=t.Workbook.WBProps.CodeName,delete i.CodeName)),n[n.length]=Oe("workbookPr",null,i);var r=t.Workbook&&t.Workbook.Sheets||[],s=0;if(r&&r[0]&&r[0].Hidden){for(n[n.length]="<bookViews>",s=0;s!=t.SheetNames.length&&!(!r[s]||!r[s].Hidden);++s);s==t.SheetNames.length&&(s=0),n[n.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',n[n.length]="</bookViews>"}for(n[n.length]="<sheets>",s=0;s!=t.SheetNames.length;++s){var o={name:en(t.SheetNames[s].slice(0,31))};if(o.sheetId=""+(s+1),o["r:id"]="rId"+(s+1),r[s])switch(r[s].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}n[n.length]=Oe("sheet",null,o)}return n[n.length]="</sheets>",e&&(n[n.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(a){var l={name:a.Name};a.Comment&&(l.comment=a.Comment),a.Sheet!=null&&(l.localSheetId=""+a.Sheet),a.Hidden&&(l.hidden="1"),a.Ref&&(n[n.length]=Oe("definedName",en(a.Ref),l))}),n[n.length]="</definedNames>"),n.length>2&&(n[n.length]="</workbook>",n[1]=n[1].replace("/>",">")),n.join("")}function cse(t,n){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Yx(t,n-8),e.name=Ei(t),e}function use(t,n){return n||(n=he(127)),n.write_shift(4,t.Hidden),n.write_shift(4,t.iTabID),pb(t.strRelID,n),ci(t.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n}function dse(t,n){var e={},i=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=n>8?Ei(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(i&65536),e.backupFile=!!(i&64),e.checkCompatibility=!!(i&4096),e.date1904=!!(i&1),e.filterPrivacy=!!(i&8),e.hidePivotFieldList=!!(i&1024),e.promptedSolutions=!!(i&16),e.publishItems=!!(i&2048),e.refreshAllConnections=!!(i&262144),e.saveExternalLinkValues=!!(i&128),e.showBorderUnselectedTables=!!(i&4),e.showInkAnnotation=!!(i&32),e.showObjects=["all","placeholders","none"][i>>13&3],e.showPivotChartFilter=!!(i&32768),e.updateLinks=["userSet","never","always"][i>>8&3],e}function fse(t,n){n||(n=he(72));var e=0;return t&&t.filterPrivacy&&(e|=8),n.write_shift(4,e),n.write_shift(4,0),KA(t&&t.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}function hse(t,n,e){var i=t.l+n;t.l+=4,t.l+=1;var r=t.read_shift(4),s=see(t),o=Sie(t,0,e),a=hb(t);t.l=i;var l={Name:s,Ptg:o};return r<268435455&&(l.Sheet=r),a&&(l.Comment=a),l}function pse(t,n){we(t,143);for(var e=0;e!=n.SheetNames.length;++e){var i=n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e]&&n.Workbook.Sheets[e].Hidden||0,r={Hidden:i,iTabID:e+1,strRelID:"rId"+(e+1),name:n.SheetNames[e]};we(t,156,use(r))}we(t,144)}function mse(t,n){n||(n=he(127));for(var e=0;e!=4;++e)n.write_shift(4,0);return ci("SheetJS",n),ci(Md.version,n),ci(Md.version,n),ci("7262",n),n.length>n.l?n.slice(0,n.l):n}function gse(t,n){n||(n=he(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,t),n.write_shift(4,t);var e=120;return n.write_shift(1,e),n.length>n.l?n.slice(0,n.l):n}function vse(t,n){if(!(!n.Workbook||!n.Workbook.Sheets)){for(var e=n.Workbook.Sheets,i=0,r=-1,s=-1;i<e.length;++i)!e[i]||!e[i].Hidden&&r==-1?r=i:e[i].Hidden==1&&s==-1&&(s=i);s>r||(we(t,135),we(t,158,gse(r)),we(t,136))}}function _se(t,n){var e=Zi();return we(e,131),we(e,128,mse()),we(e,153,fse(t.Workbook&&t.Workbook.WBProps||null)),vse(e,t,n),pse(e,t,n),we(e,132),e.end()}function yse(t,n,e){return(n.slice(-4)===".bin"?_se:LF)(t,e)}function xse(t,n,e,i,r){return(n.slice(-4)===".bin"?nse:PF)(t,e,i,r)}function bse(t,n,e){return(n.slice(-4)===".bin"?Bte:_F)(t,e)}function wse(t,n,e){return(n.slice(-4)===".bin"?fte:pF)(t,e)}function Cse(t,n,e){return(n.slice(-4)===".bin"?tne:CF)(t,e)}function Sse(t){return(t.slice(-4)===".bin"?qte:bF)()}function Ese(t,n){var e=[];return t.Props&&e.push(bee(t.Props,n)),t.Custprops&&e.push(wee(t.Props,t.Custprops,n)),e.join("")}function Tse(){return""}function Ise(t,n){var e=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return n.cellXfs.forEach(function(i,r){var s=[];s.push(Oe("NumberFormat",null,{"ss:Format":en(Fn[i.numFmtId])}));var o={"ss:ID":"s"+(21+r)};e.push(Oe("Style",s.join(""),o))}),Oe("Styles",e.join(""))}function NF(t){return Oe("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+_b(t.Ref,{r:0,c:0})})}function Dse(t){if(!((t||{}).Workbook||{}).Names)return"";for(var n=t.Workbook.Names,e=[],i=0;i<n.length;++i){var r=n[i];r.Sheet==null&&(r.Name.match(/^_xlfn\./)||e.push(NF(r)))}return Oe("Names",e.join(""))}function kse(t,n,e,i){if(!t||!((i||{}).Workbook||{}).Names)return"";for(var r=i.Workbook.Names,s=[],o=0;o<r.length;++o){var a=r[o];a.Sheet==e&&(a.Name.match(/^_xlfn\./)||s.push(NF(a)))}return s.join("")}function Mse(t,n,e,i){if(!t)return"";var r=[];if(t["!margins"]&&(r.push("<PageSetup>"),t["!margins"].header&&r.push(Oe("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Oe("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Oe("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("</PageSetup>")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e])if(i.Workbook.Sheets[e].Hidden)r.push(Oe("Visible",i.Workbook.Sheets[e].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<e&&!(i.Workbook.Sheets[s]&&!i.Workbook.Sheets[s].Hidden);++s);s==e&&r.push("<Selected/>")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push("<DisplayRightToLeft/>"),t["!protect"]&&(r.push(yi("ProtectContents","True")),t["!protect"].objects&&r.push(yi("ProtectObjects","True")),t["!protect"].scenarios&&r.push(yi("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?r.push(yi("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&r.push(yi("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){t["!protect"][o[0]]&&r.push("<"+o[1]+"/>")})),r.length==0?"":Oe("WorksheetOptions",r.join(""),{xmlns:mr.x})}function Ase(t){return t.map(function(n){var e=OJ(n.t||""),i=Oe("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Oe("Comment",i,{"ss:Author":n.a})}).join("")}function Fse(t,n,e,i,r,s,o){if(!t||t.v==null&&t.f==null)return"";var a={};if(t.f&&(a["ss:Formula"]="="+en(_b(t.f,o))),t.F&&t.F.slice(0,n.length)==n){var l=li(t.F.slice(n.length+1));a["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(t.l&&t.l.Target&&(a["ss:HRef"]=en(t.l.Target),t.l.Tooltip&&(a["x:HRefScreenTip"]=en(t.l.Tooltip))),e["!merges"])for(var c=e["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(a["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(a["ss:MergeDown"]=c[u].e.r-c[u].s.r));var d="",f="";switch(t.t){case"z":if(!i.sheetStubs)return"";break;case"n":d="Number",f=String(t.v);break;case"b":d="Boolean",f=t.v?"1":"0";break;case"e":d="Error",f=Bd[t.v];break;case"d":d="DateTime",f=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Fn[14]);break;case"s":d="String",f=PJ(t.v||"");break}var h=$o(i.cellXfs,t,i);a["ss:StyleID"]="s"+(21+h),a["ss:Index"]=o.c+1;var m=t.v!=null?f:"",p=t.t=="z"?"":'<Data ss:Type="'+d+'">'+m+"</Data>";return(t.c||[]).length>0&&(p+=Ase(t.c)),Oe("Cell",p,a)}function Pse(t,n){var e='<Row ss:Index="'+(t+1)+'"';return n&&(n.hpt&&!n.hpx&&(n.hpx=vF(n.hpt)),n.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+n.hpx+'"'),n.hidden&&(e+=' ss:Hidden="1"')),e+">"}function Ose(t,n,e,i){if(!t["!ref"])return"";var r=yn(t["!ref"]),s=t["!merges"]||[],o=0,a=[];t["!cols"]&&t["!cols"].forEach(function(g,v){gb(g);var _=!!g.width,y=pm(v,g),x={"ss:Index":v+1};_&&(x["ss:Width"]=tm(y.width)),g.hidden&&(x["ss:Hidden"]="1"),a.push(Oe("Column",null,x))});for(var l=Array.isArray(t),c=r.s.r;c<=r.e.r;++c){for(var u=[Pse(c,(t["!rows"]||[])[c])],d=r.s.c;d<=r.e.c;++d){var f=!1;for(o=0;o!=s.length;++o)if(!(s[o].s.c>d)&&!(s[o].s.r>c)&&!(s[o].e.c<d)&&!(s[o].e.r<c)){(s[o].s.c!=d||s[o].s.r!=c)&&(f=!0);break}if(!f){var h={r:c,c:d},m=tn(h),p=l?(t[c]||[])[d]:t[m];u.push(Fse(p,m,t,n,e,i,h))}}u.push("</Row>"),u.length>2&&a.push(u.join(""))}return a.join("")}function Rse(t,n,e){var i=[],r=e.SheetNames[t],s=e.Sheets[r],o=s?kse(s,n,t,e):"";return o.length>0&&i.push("<Names>"+o+"</Names>"),o=s?Ose(s,n,t,e):"",o.length>0&&i.push("<Table>"+o+"</Table>"),i.push(Mse(s,n,t,e)),i.join("")}function Lse(t,n){n||(n={}),t.SSF||(t.SSF=Ji(Fn)),t.SSF&&(lm(),am(t.SSF),n.revssf=cm(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF,n.cellXfs=[],$o(n.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(Ese(t,n)),e.push(Tse(t,n)),e.push(""),e.push("");for(var i=0;i<t.SheetNames.length;++i)e.push(Oe("Worksheet",Rse(i,n,t),{"ss:Name":en(t.SheetNames[i])}));return e[2]=Ise(t,n),e[3]=Dse(t,n),Wn+Oe("Workbook",e.join(""),{xmlns:mr.ss,"xmlns:o":mr.o,"xmlns:x":mr.x,"xmlns:ss":mr.ss,"xmlns:dt":mr.dt,"xmlns:html":mr.html})}var Wx={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Nse(t,n){var e=[],i=[],r=[],s=0,o,a=UM(nA,"n"),l=UM(iA,"n");if(t.Props)for(o=bi(t.Props),s=0;s<o.length;++s)(Object.prototype.hasOwnProperty.call(a,o[s])?e:Object.prototype.hasOwnProperty.call(l,o[s])?i:r).push([o[s],t.Props[o[s]]]);if(t.Custprops)for(o=bi(t.Custprops),s=0;s<o.length;++s)Object.prototype.hasOwnProperty.call(t.Props||{},o[s])||(Object.prototype.hasOwnProperty.call(a,o[s])?e:Object.prototype.hasOwnProperty.call(l,o[s])?i:r).push([o[s],t.Custprops[o[s]]]);var c=[];for(s=0;s<r.length;++s)aF.indexOf(r[s][0])>-1||rF.indexOf(r[s][0])>-1||r[s][1]!=null&&c.push(r[s]);i.length&&rn.utils.cfb_add(n,"/SummaryInformation",lA(i,Wx.SI,l,iA)),(e.length||c.length)&&rn.utils.cfb_add(n,"/DocumentSummaryInformation",lA(e,Wx.DSI,a,nA,c.length?c:null,Wx.UDI))}function Vse(t,n){var e=n||{},i=rn.utils.cfb_new({root:"R"}),r="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":r="/Workbook",e.biff=8;break;case"biff5":r="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return rn.utils.cfb_add(i,r,VF(t,e)),e.biff==8&&(t.Props||t.Custprops)&&Nse(t,i),e.biff==8&&t.vbaraw&&nne(i,rn.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),i}var Bse={0:{f:jie},1:{f:Xie},2:{f:gre},3:{f:rre},4:{f:ere},5:{f:fre},6:{f:bre},7:{f:lre},8:{f:Dre},9:{f:Ire},10:{f:Ere},11:{f:Tre},12:{f:Qie},13:{f:_re},14:{f:ore},15:{f:nre},16:{f:pre},17:{f:Cre},18:{f:ure},19:{f:fb},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:hse},40:{},42:{},43:{f:bte},44:{f:yte},45:{f:Ste},46:{f:Tte},47:{f:Ete},48:{},49:{f:QJ},50:{},51:{f:jte},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Jee},62:{f:xre},63:{f:Kte},64:{f:Wre},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ws,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Hre},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Kie},148:{f:$ie,p:16},151:{f:Ore},152:{},153:{f:dse},154:{},155:{},156:{f:cse},157:{},158:{},159:{T:1,f:cte},160:{T:-1},161:{T:1,f:$a},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:kre},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Hte},336:{T:-1},337:{f:$te,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Yx},357:{},358:{},359:{},360:{T:1},361:{},362:{f:qee},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Rre},427:{f:Lre},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Vre},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:qie},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Fre},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Yx},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Jte},633:{T:1},634:{T:-1},635:{T:1,f:Zte},636:{T:-1},637:{f:nee},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:ise},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:$re},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Le(t,n,e,i){var r=n;if(!isNaN(r)){var s=i||(e||[]).length||0,o=t.next(4);o.write_shift(2,r),o.write_shift(2,s),s>0&&cb(e)&&t.push(e)}}function Hse(t,n,e,i){var r=i||(e||[]).length||0;if(r<=8224)return Le(t,n,e,r);var s=n;if(!isNaN(s)){for(var o=e.parts||[],a=0,l=0,c=0;c+(o[a]||8224)<=8224;)c+=o[a]||8224,a++;var u=t.next(4);for(u.write_shift(2,s),u.write_shift(2,c),t.push(e.slice(l,l+c)),l+=c;l<r;){for(u=t.next(4),u.write_shift(2,60),c=0;c+(o[a]||8224)<=8224;)c+=o[a]||8224,a++;u.write_shift(2,c),t.push(e.slice(l,l+c)),l+=c}}}function zd(t,n,e){return t||(t=he(7)),t.write_shift(2,n),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function zse(t,n,e,i){var r=he(9);return zd(r,t,n),cF(e,i||"b",r),r}function jse(t,n,e){var i=he(8+2*e.length);return zd(i,t,n),i.write_shift(1,e.length),i.write_shift(e.length,e,"sbcs"),i.l<i.length?i.slice(0,i.l):i}function Use(t,n,e,i){if(n.v!=null)switch(n.t){case"d":case"n":var r=n.t=="d"?Qi(Ni(n.v)):n.v;r==(r|0)&&r>=0&&r<65536?Le(t,2,ite(e,i,r)):Le(t,3,nte(e,i,r));return;case"b":case"e":Le(t,5,zse(e,i,n.v,n.t));return;case"s":case"str":Le(t,4,jse(e,i,(n.v||"").slice(0,255)));return}Le(t,1,zd(null,e,i))}function Wse(t,n,e,i){var r=Array.isArray(n),s=yn(n["!ref"]||"A1"),o,a="",l=[];if(s.e.c>255||s.e.r>16383){if(i.WTF)throw new Error("Range "+(n["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=Un(s)}for(var c=s.s.r;c<=s.e.r;++c){a=xi(c);for(var u=s.s.c;u<=s.e.c;++u){c===s.s.r&&(l[u]=Si(u)),o=l[u]+a;var d=r?(n[c]||[])[u]:n[o];d&&Use(t,d,c,u,i)}}}function $se(t,n){var e=n||{};bs!=null&&e.dense==null&&(e.dense=bs);for(var i=Zi(),r=0,s=0;s<t.SheetNames.length;++s)t.SheetNames[s]==e.sheet&&(r=s);if(r==0&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return Le(i,e.biff==4?1033:e.biff==3?521:9,mb(t,16,e)),Wse(i,t.Sheets[t.SheetNames[r]],r,e,t),Le(i,10),i.end()}function Gse(t,n,e){Le(t,49,Bee({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}function qse(t,n,e){n&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)n[r]!=null&&Le(t,1054,jee(r,n[r],e))})}function Kse(t,n){var e=he(19);e.write_shift(4,2151),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,1),e.write_shift(4,0),Le(t,2151,e),e=he(39),e.write_shift(4,2152),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(2,1),e.write_shift(4,4),e.write_shift(2,0),fF(yn(n["!ref"]||"A1"),e),e.write_shift(4,4),Le(t,2152,e)}function Yse(t,n){for(var e=0;e<16;++e)Le(t,224,uA({numFmtId:0,style:!0},0,n));n.cellXfs.forEach(function(i){Le(t,224,uA(i,0,n))})}function Xse(t,n){for(var e=0;e<n["!links"].length;++e){var i=n["!links"][e];Le(t,440,Xee(i)),i[1].Tooltip&&Le(t,2048,Zee(i))}delete n["!links"]}function Zse(t,n){if(n){var e=0;n.forEach(function(i,r){++e<=256&&i&&Le(t,125,ete(pm(r,i),r))})}}function Qse(t,n,e,i,r){var s=16+$o(r.cellXfs,n,r);if(n.v==null&&!n.bf){Le(t,513,Ha(e,i,s));return}if(n.bf)Le(t,6,wie(n,e,i,r,s));else switch(n.t){case"d":case"n":var o=n.t=="d"?Qi(Ni(n.v)):n.v;Le(t,515,Gee(e,i,o,s,r));break;case"b":case"e":Le(t,517,$ee(e,i,n.v,s,r,n.t));break;case"s":case"str":if(r.bookSST){var a=xb(r.Strings,n.v,r.revStrings);Le(t,253,Hee(e,i,a,s,r))}else Le(t,516,zee(e,i,(n.v||"").slice(0,255),s,r));break;default:Le(t,513,Ha(e,i,s))}}function Jse(t,n,e){var i=Zi(),r=e.SheetNames[t],s=e.Sheets[r]||{},o=(e||{}).Workbook||{},a=(o.Sheets||[])[t]||{},l=Array.isArray(s),c=n.biff==8,u,d="",f=[],h=yn(s["!ref"]||"A1"),m=c?65536:16384;if(h.e.c>255||h.e.r>=m){if(n.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,m-1)}Le(i,2057,mb(e,16,n)),Le(i,13,kr(1)),Le(i,12,kr(100)),Le(i,15,Li(!0)),Le(i,17,Li(!1)),Le(i,16,Ba(.001)),Le(i,95,Li(!0)),Le(i,42,Li(!1)),Le(i,43,Li(!1)),Le(i,130,kr(1)),Le(i,128,Wee([0,0])),Le(i,131,Li(!1)),Le(i,132,Li(!1)),c&&Zse(i,s["!cols"]),Le(i,512,Uee(h,n)),c&&(s["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){d=xi(p);for(var g=h.s.c;g<=h.e.c;++g){p===h.s.r&&(f[g]=Si(g)),u=f[g]+d;var v=l?(s[p]||[])[g]:s[u];v&&(Qse(i,v,p,g,n),c&&v.l&&s["!links"].push([u,v.l]))}}var _=a.CodeName||a.name||r;return c&&Le(i,574,Vee((o.Views||[])[0])),c&&(s["!merges"]||[]).length&&Le(i,229,Yee(s["!merges"])),c&&Xse(i,s),Le(i,442,dF(_,n)),c&&Kse(i,s),Le(i,10),i.end()}function eoe(t,n,e){var i=Zi(),r=(t||{}).Workbook||{},s=r.Sheets||[],o=r.WBProps||{},a=e.biff==8,l=e.biff==5;if(Le(i,2057,mb(t,5,e)),e.bookType=="xla"&&Le(i,135),Le(i,225,a?kr(1200):null),Le(i,193,Eee(2)),l&&Le(i,191),l&&Le(i,192),Le(i,226),Le(i,92,Oee("SheetJS",e)),Le(i,66,kr(a?1200:1252)),a&&Le(i,353,kr(0)),a&&Le(i,448),Le(i,317,tte(t.SheetNames.length)),a&&t.vbaraw&&Le(i,211),a&&t.vbaraw){var c=o.CodeName||"ThisWorkbook";Le(i,442,dF(c,e))}Le(i,156,kr(17)),Le(i,25,Li(!1)),Le(i,18,Li(!1)),Le(i,19,kr(0)),a&&Le(i,431,Li(!1)),a&&Le(i,444,kr(0)),Le(i,61,Nee(e)),Le(i,64,Li(!1)),Le(i,141,kr(0)),Le(i,34,Li(sse(t)=="true")),Le(i,14,Li(!0)),a&&Le(i,439,Li(!1)),Le(i,218,kr(0)),Gse(i,t,e),qse(i,t.SSF,e),Yse(i,e),a&&Le(i,352,Li(!1));var u=i.end(),d=Zi();a&&Le(d,140,Qee()),a&&e.Strings&&Hse(d,252,Lee(e.Strings,e)),Le(d,10);var f=d.end(),h=Zi(),m=0,p=0;for(p=0;p<t.SheetNames.length;++p)m+=(a?12:11)+(a?2:1)*t.SheetNames[p].length;var g=u.length+m+f.length;for(p=0;p<t.SheetNames.length;++p){var v=s[p]||{};Le(h,133,Ree({pos:g,hs:v.Hidden||0,dt:0,name:t.SheetNames[p]},e)),g+=n[p].length}var _=h.end();if(m!=_.length)throw new Error("BS8 "+m+" != "+_.length);var y=[];return u.length&&y.push(u),_.length&&y.push(_),f.length&&y.push(f),_i(y)}function toe(t,n){var e=n||{},i=[];t&&!t.SSF&&(t.SSF=Ji(Fn)),t&&t.SSF&&(lm(),am(t.SSF),e.revssf=cm(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,bb(e),e.cellXfs=[],$o(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r<t.SheetNames.length;++r)i[i.length]=Jse(r,e,t);return i.unshift(eoe(t,i,e)),_i(i)}function VF(t,n){for(var e=0;e<=t.SheetNames.length;++e){var i=t.Sheets[t.SheetNames[e]];if(!(!i||!i["!ref"])){var r=gr(i["!ref"]);r.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255).  Data may be lost.")}}var s=n||{};switch(s.biff||2){case 8:case 5:return toe(t,n);case 4:case 3:case 2:return $se(t,n)}throw new Error("invalid type "+s.bookType+" for BIFF")}function noe(t,n,e,i){for(var r=t["!merges"]||[],s=[],o=n.s.c;o<=n.e.c;++o){for(var a=0,l=0,c=0;c<r.length;++c)if(!(r[c].s.r>e||r[c].s.c>o)&&!(r[c].e.r<e||r[c].e.c<o)){if(r[c].s.r<e||r[c].s.c<o){a=-1;break}a=r[c].e.r-r[c].s.r+1,l=r[c].e.c-r[c].s.c+1;break}if(!(a<0)){var u=tn({r:e,c:o}),d=i.dense?(t[e]||[])[o]:t[u],f=d&&d.v!=null&&(d.h||FJ(d.w||(io(d),d.w)||""))||"",h={};a>1&&(h.rowspan=a),l>1&&(h.colspan=l),i.editable?f='<span contenteditable="true">'+f+"</span>":d&&(h["data-t"]=d&&d.t||"z",d.v!=null&&(h["data-v"]=d.v),d.z!=null&&(h["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(f='<a href="'+d.l.Target+'">'+f+"</a>")),h.id=(i.id||"sjs")+"-"+u,s.push(Oe("td",f,h))}}var m="<tr>";return m+s.join("")+"</tr>"}var ioe='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',roe="</body></html>";function soe(t,n,e){var i=[];return i.join("")+"<table"+(e&&e.id?' id="'+e.id+'"':"")+">"}function BF(t,n){var e=n||{},i=e.header!=null?e.header:ioe,r=e.footer!=null?e.footer:roe,s=[i],o=gr(t["!ref"]);e.dense=Array.isArray(t),s.push(soe(t,o,e));for(var a=o.s.r;a<=o.e.r;++a)s.push(noe(t,o,a,e));return s.push("</table>"+r),s.join("")}function HF(t,n,e){var i=e||{};bs!=null&&(i.dense=bs);var r=0,s=0;if(i.origin!=null)if(typeof i.origin=="number")r=i.origin;else{var o=typeof i.origin=="string"?li(i.origin):i.origin;r=o.r,s=o.c}var a=n.getElementsByTagName("tr"),l=Math.min(i.sheetRows||1e7,a.length),c={s:{r:0,c:0},e:{r,c:s}};if(t["!ref"]){var u=gr(t["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),r==-1&&(c.e.r=r=u.e.r+1)}var d=[],f=0,h=t["!rows"]||(t["!rows"]=[]),m=0,p=0,g=0,v=0,_=0,y=0;for(t["!cols"]||(t["!cols"]=[]);m<a.length&&p<l;++m){var x=a[m];if(vA(x)){if(i.display)continue;h[p]={hidden:!0}}var w=x.children;for(g=v=0;g<w.length;++g){var T=w[g];if(!(i.display&&vA(T))){var E=T.hasAttribute("data-v")?T.getAttribute("data-v"):T.hasAttribute("v")?T.getAttribute("v"):LJ(T.innerHTML),k=T.getAttribute("data-z")||T.getAttribute("z");for(f=0;f<d.length;++f){var F=d[f];F.s.c==v+s&&F.s.r<p+r&&p+r<=F.e.r&&(v=F.e.c+1-s,f=-1)}y=+T.getAttribute("colspan")||1,((_=+T.getAttribute("rowspan")||1)>1||y>1)&&d.push({s:{r:p+r,c:v+s},e:{r:p+r+(_||1)-1,c:v+s+(y||1)-1}});var G={t:"s",v:E},Y=T.getAttribute("data-t")||T.getAttribute("t")||"";E!=null&&(E.length==0?G.t=Y||"z":i.raw||E.trim().length==0||Y=="s"||(E==="TRUE"?G={t:"b",v:!0}:E==="FALSE"?G={t:"b",v:!1}:isNaN(eo(E))?isNaN(Pd(E).getDate())||(G={t:"d",v:Ni(E)},i.cellDates||(G={t:"n",v:Qi(G.v)}),G.z=i.dateNF||Fn[14]):G={t:"n",v:eo(E)})),G.z===void 0&&k!=null&&(G.z=k);var W="",le=T.getElementsByTagName("A");if(le&&le.length)for(var ge=0;ge<le.length&&!(le[ge].hasAttribute("href")&&(W=le[ge].getAttribute("href"),W.charAt(0)!="#"));++ge);W&&W.charAt(0)!="#"&&(G.l={Target:W}),i.dense?(t[p+r]||(t[p+r]=[]),t[p+r][v+s]=G):t[tn({c:v+s,r:p+r})]=G,c.e.c<v+s&&(c.e.c=v+s),v+=y}}++p}return d.length&&(t["!merges"]=(t["!merges"]||[]).concat(d)),c.e.r=Math.max(c.e.r,p-1+r),t["!ref"]=Un(c),p>=l&&(t["!fullref"]=Un((c.e.r=a.length-m+p-1+r,c))),t}function zF(t,n){var e=n||{},i=e.dense?[]:{};return HF(i,t,n)}function ooe(t,n){return za(zF(t,n),n)}function vA(t){var n="",e=aoe(t);return e&&(n=e(t).getPropertyValue("display")),n||(n=t.style&&t.style.display),n==="none"}function aoe(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var loe=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),n="<office:document-styles "+Od({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Wn+n}}(),_A=function(){var t=function(s){return en(s).replace(/  +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},n=`          <table:table-cell />
`,e=`          <table:covered-table-cell/>
`,i=function(s,o,a){var l=[];l.push('      <table:table table:name="'+en(o.SheetNames[a])+`" table:style-name="ta1">
`);var c=0,u=0,d=gr(s["!ref"]||"A1"),f=s["!merges"]||[],h=0,m=Array.isArray(s);if(s["!cols"])for(u=0;u<=d.e.c;++u)l.push("        <table:table-column"+(s["!cols"][u]?' table:style-name="co'+s["!cols"][u].ods+'"':"")+`></table:table-column>
`);var p="",g=s["!rows"]||[];for(c=0;c<d.s.r;++c)p=g[c]?' table:style-name="ro'+g[c].ods+'"':"",l.push("        <table:table-row"+p+`></table:table-row>
`);for(;c<=d.e.r;++c){for(p=g[c]?' table:style-name="ro'+g[c].ods+'"':"",l.push("        <table:table-row"+p+`>
`),u=0;u<d.s.c;++u)l.push(n);for(;u<=d.e.c;++u){var v=!1,_={},y="";for(h=0;h!=f.length;++h)if(!(f[h].s.c>u)&&!(f[h].s.r>c)&&!(f[h].e.c<u)&&!(f[h].e.r<c)){(f[h].s.c!=u||f[h].s.r!=c)&&(v=!0),_["table:number-columns-spanned"]=f[h].e.c-f[h].s.c+1,_["table:number-rows-spanned"]=f[h].e.r-f[h].s.r+1;break}if(v){l.push(e);continue}var x=tn({r:c,c:u}),w=m?(s[c]||[])[u]:s[x];if(w&&w.f&&(_["table:formula"]=en(Die(w.f)),w.F&&w.F.slice(0,x.length)==x)){var T=gr(w.F);_["table:number-matrix-columns-spanned"]=T.e.c-T.s.c+1,_["table:number-matrix-rows-spanned"]=T.e.r-T.s.r+1}if(!w){l.push(n);continue}switch(w.t){case"b":y=w.v?"TRUE":"FALSE",_["office:value-type"]="boolean",_["office:boolean-value"]=w.v?"true":"false";break;case"n":y=w.w||String(w.v||0),_["office:value-type"]="float",_["office:value"]=w.v||0;break;case"s":case"str":y=w.v==null?"":w.v,_["office:value-type"]="string";break;case"d":y=w.w||Ni(w.v).toISOString(),_["office:value-type"]="date",_["office:date-value"]=Ni(w.v).toISOString(),_["table:style-name"]="ce1";break;default:l.push(n);continue}var E=t(y);if(w.l&&w.l.Target){var k=w.l.Target;k=k.charAt(0)=="#"?"#"+kie(k.slice(1)):k,k.charAt(0)!="#"&&!k.match(/^\w+:/)&&(k="../"+k),E=Oe("text:a",E,{"xlink:href":k.replace(/&/g,"&amp;")})}l.push("          "+Oe("table:table-cell",Oe("text:p",E,{}),_)+`
`)}l.push(`        </table:table-row>
`)}return l.push(`      </table:table>
`),l.join("")},r=function(s,o){s.push(` <office:automatic-styles>
`),s.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),s.push(`   <number:month number:style="long"/>
`),s.push(`   <number:text>/</number:text>
`),s.push(`   <number:day number:style="long"/>
`),s.push(`   <number:text>/</number:text>
`),s.push(`   <number:year/>
`),s.push(`  </number:date-style>
`);var a=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var d=c["!cols"][u];if(d.width==null&&d.wpx==null&&d.wch==null)continue;gb(d),d.ods=a;var f=c["!cols"][u].wpx+"px";s.push('  <style:style style:name="co'+a+`" style:family="table-column">
`),s.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+f+`"/>
`),s.push(`  </style:style>
`),++a}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var d=c["!rows"][u].hpx+"px";s.push('  <style:style style:name="ro'+l+`" style:family="table-row">
`),s.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/>
`),s.push(`  </style:style>
`),++l}}}),s.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),s.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),s.push(`  </style:style>
`),s.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),s.push(` </office:automatic-styles>
`)};return function(o,a){var l=[Wn],c=Od({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=Od({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});a.bookType=="fods"?(l.push("<office:document"+c+u+`>
`),l.push(nF().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
`),r(l,o),l.push(`  <office:body>
`),l.push(`    <office:spreadsheet>
`);for(var d=0;d!=o.SheetNames.length;++d)l.push(i(o.Sheets[o.SheetNames[d]],o,d,a));return l.push(`    </office:spreadsheet>
`),l.push(`  </office:body>
`),a.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function jF(t,n){if(n.bookType=="fods")return _A(t,n);var e=eb(),i="",r=[],s=[];return i="mimetype",St(e,i,"application/vnd.oasis.opendocument.spreadsheet"),i="content.xml",St(e,i,_A(t,n)),r.push([i,"text/xml"]),s.push([i,"ContentFile"]),i="styles.xml",St(e,i,loe(t,n)),r.push([i,"text/xml"]),s.push([i,"StylesFile"]),i="meta.xml",St(e,i,Wn+nF()),r.push([i,"text/xml"]),s.push([i,"MetadataFile"]),i="manifest.rdf",St(e,i,xee(s)),r.push([i,"application/rdf+xml"]),i="META-INF/manifest.xml",St(e,i,_ee(r)),e}function rm(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function coe(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):Xr(Qs(t))}function uoe(t,n){e:for(var e=0;e<=t.length-n.length;++e){for(var i=0;i<n.length;++i)if(t[e+i]!=n[i])continue e;return!0}return!1}function Wo(t){var n=t.reduce(function(r,s){return r+s.length},0),e=new Uint8Array(n),i=0;return t.forEach(function(r){e.set(r,i),i+=r.length}),e}function doe(t,n,e){var i=Math.floor(e==0?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-20,r=e/Math.pow(10,i-6176);t[n+15]|=i>>7,t[n+14]|=(i&127)<<1;for(var s=0;r>=1;++s,r/=256)t[n+s]=r&255;t[n+15]|=e>=0?0:128}function Rd(t,n){var e=n?n[0]:0,i=t[e]&127;e:if(t[e++]>=128&&(i|=(t[e]&127)<<7,t[e++]<128||(i|=(t[e]&127)<<14,t[e++]<128)||(i|=(t[e]&127)<<21,t[e++]<128)||(i+=(t[e]&127)*Math.pow(2,28),++e,t[e++]<128)||(i+=(t[e]&127)*Math.pow(2,35),++e,t[e++]<128)||(i+=(t[e]&127)*Math.pow(2,42),++e,t[e++]<128)))break e;return n&&(n[0]=e),i}function Qt(t){var n=new Uint8Array(7);n[0]=t&127;var e=1;e:if(t>127){if(n[e-1]|=128,n[e]=t>>7&127,++e,t<=16383||(n[e-1]|=128,n[e]=t>>14&127,++e,t<=2097151)||(n[e-1]|=128,n[e]=t>>21&127,++e,t<=268435455)||(n[e-1]|=128,n[e]=t/256>>>21&127,++e,t<=34359738367)||(n[e-1]|=128,n[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;n[e-1]|=128,n[e]=t/16777216>>>21&127,++e}return n.slice(0,e)}function xc(t){var n=0,e=t[n]&127;e:if(t[n++]>=128){if(e|=(t[n]&127)<<7,t[n++]<128||(e|=(t[n]&127)<<14,t[n++]<128)||(e|=(t[n]&127)<<21,t[n++]<128))break e;e|=(t[n]&127)<<28}return e}function Qn(t){for(var n=[],e=[0];e[0]<t.length;){var i=e[0],r=Rd(t,e),s=r&7;r=Math.floor(r/8);var o=0,a;if(r==0)break;switch(s){case 0:{for(var l=e[0];t[e[0]++]>=128;);a=t.slice(l,e[0])}break;case 5:o=4,a=t.slice(e[0],e[0]+o),e[0]+=o;break;case 1:o=8,a=t.slice(e[0],e[0]+o),e[0]+=o;break;case 2:o=Rd(t,e),a=t.slice(e[0],e[0]+o),e[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(r," at offset ").concat(i))}var c={data:a,type:s};n[r]==null?n[r]=[c]:n[r].push(c)}return n}function gi(t){var n=[];return t.forEach(function(e,i){e.forEach(function(r){r.data&&(n.push(Qt(i*8+r.type)),r.type==2&&n.push(Qt(r.data.length)),n.push(r.data))})}),Wo(n)}function Kr(t){for(var n,e=[],i=[0];i[0]<t.length;){var r=Rd(t,i),s=Qn(t.slice(i[0],i[0]+r));i[0]+=r;var o={id:xc(s[1][0].data),messages:[]};s[2].forEach(function(a){var l=Qn(a.data),c=xc(l[3][0].data);o.messages.push({meta:l,data:t.slice(i[0],i[0]+c)}),i[0]+=c}),(n=s[3])!=null&&n[0]&&(o.merge=xc(s[3][0].data)>>>0>0),e.push(o)}return e}function fc(t){var n=[];return t.forEach(function(e){var i=[];i[1]=[{data:Qt(e.id),type:0}],i[2]=[],e.merge!=null&&(i[3]=[{data:Qt(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(o){r.push(o.data),o.meta[3]=[{type:0,data:Qt(o.data.length)}],i[2].push({data:gi(o.meta),type:2})});var s=gi(i);n.push(Qt(s.length)),n.push(s),r.forEach(function(o){return n.push(o)})}),Wo(n)}function foe(t,n){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],i=Rd(n,e),r=[];e[0]<n.length;){var s=n[e[0]]&3;if(s==0){var o=n[e[0]++]>>2;if(o<60)++o;else{var a=o-59;o=n[e[0]],a>1&&(o|=n[e[0]+1]<<8),a>2&&(o|=n[e[0]+2]<<16),a>3&&(o|=n[e[0]+3]<<24),o>>>=0,o++,e[0]+=a}r.push(n.slice(e[0],e[0]+o)),e[0]+=o;continue}else{var l=0,c=0;if(s==1?(c=(n[e[0]]>>2&7)+4,l=(n[e[0]++]&224)<<3,l|=n[e[0]++]):(c=(n[e[0]++]>>2)+1,s==2?(l=n[e[0]]|n[e[0]+1]<<8,e[0]+=2):(l=(n[e[0]]|n[e[0]+1]<<8|n[e[0]+2]<<16|n[e[0]+3]<<24)>>>0,e[0]+=4)),r=[Wo(r)],l==0)throw new Error("Invalid offset 0");if(l>r[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(r.push(r[0].slice(-l)),c-=l;c>=r[r.length-1].length;)r.push(r[r.length-1]),c-=r[r.length-1].length;r.push(r[0].slice(-l,-l+c))}}var u=Wo(r);if(u.length!=i)throw new Error("Unexpected length: ".concat(u.length," != ").concat(i));return u}function Yr(t){for(var n=[],e=0;e<t.length;){var i=t[e++],r=t[e]|t[e+1]<<8|t[e+2]<<16;e+=3,n.push(foe(i,t.slice(e,e+r))),e+=r}if(e!==t.length)throw new Error("data is not a valid framed stream!");return Wo(n)}function hc(t){for(var n=[],e=0;e<t.length;){var i=Math.min(t.length-e,268435455),r=new Uint8Array(4);n.push(r);var s=Qt(i),o=s.length;n.push(s),i<=60?(o++,n.push(new Uint8Array([i-1<<2]))):i<=256?(o+=2,n.push(new Uint8Array([240,i-1&255]))):i<=65536?(o+=3,n.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(o+=4,n.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(o+=5,n.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),n.push(t.slice(e,e+i)),o+=i,r[0]=0,r[1]=o&255,r[2]=o>>8&255,r[3]=o>>16&255,e+=i}return Wo(n)}function $x(t,n){var e=new Uint8Array(32),i=rm(e),r=12,s=0;switch(e[0]=5,t.t){case"n":e[1]=2,doe(e,r,t.v),s|=1,r+=16;break;case"b":e[1]=6,i.setFloat64(r,t.v?1:0,!0),s|=2,r+=8;break;case"s":if(n.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[1]=3,i.setUint32(r,n.indexOf(t.v),!0),s|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,s,!0),e.slice(0,r)}function Gx(t,n){var e=new Uint8Array(32),i=rm(e),r=12,s=0;switch(e[0]=3,t.t){case"n":e[2]=2,i.setFloat64(r,t.v,!0),s|=32,r+=8;break;case"b":e[2]=6,i.setFloat64(r,t.v?1:0,!0),s|=32,r+=8;break;case"s":if(n.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[2]=3,i.setUint32(r,n.indexOf(t.v),!0),s|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(4,s,!0),e.slice(0,r)}function Bo(t){var n=Qn(t);return Rd(n[1][0].data)}function hoe(t,n,e){var i,r,s,o;if(!((i=t[6])!=null&&i[0])||!((r=t[7])!=null&&r[0]))throw"Mutation only works on post-BNC storages!";var a=((o=(s=t[8])==null?void 0:s[0])==null?void 0:o.data)&&xc(t[8][0].data)>0||!1;if(a)throw"Math only works with normal offsets";for(var l=0,c=rm(t[7][0].data),u=0,d=[],f=rm(t[4][0].data),h=0,m=[],p=0;p<n.length;++p){if(n[p]==null){c.setUint16(p*2,65535,!0),f.setUint16(p*2,65535);continue}c.setUint16(p*2,u,!0),f.setUint16(p*2,h,!0);var g,v;switch(typeof n[p]){case"string":g=$x({t:"s",v:n[p]},e),v=Gx({t:"s",v:n[p]},e);break;case"number":g=$x({t:"n",v:n[p]},e),v=Gx({t:"n",v:n[p]},e);break;case"boolean":g=$x({t:"b",v:n[p]},e),v=Gx({t:"b",v:n[p]},e);break;default:throw new Error("Unsupported value "+n[p])}d.push(g),u+=g.length,m.push(v),h+=v.length,++l}for(t[2][0].data=Qt(l);p<t[7][0].data.length/2;++p)c.setUint16(p*2,65535,!0),f.setUint16(p*2,65535,!0);return t[6][0].data=Wo(d),t[3][0].data=Wo(m),l}function poe(t,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=gr(e["!ref"]);i.s.r=i.s.c=0;var r=!1;i.e.c>9&&(r=!0,i.e.c=9),i.e.r>49&&(r=!0,i.e.r=49),r&&console.error("The Numbers writer is currently limited to ".concat(Un(i)));var s=sm(e,{range:i,header:1}),o=["~Sh33tJ5~"];s.forEach(function(H){return H.forEach(function(K){typeof K=="string"&&o.push(K)})});var a={},l=[],c=rn.read(n.numbers,{type:"base64"});c.FileIndex.map(function(H,K){return[H,c.FullPaths[K]]}).forEach(function(H){var K=H[0],de=H[1];if(K.type==2&&K.name.match(/\.iwa/)){var Ee=K.content,Ue=Yr(Ee),Ae=Kr(Ue);Ae.forEach(function(Ce){l.push(Ce.id),a[Ce.id]={deps:[],location:de,type:xc(Ce.messages[0].meta[1][0].data)}})}}),l.sort(function(H,K){return H-K});var u=l.filter(function(H){return H>1}).map(function(H){return[H,Qt(H)]});c.FileIndex.map(function(H,K){return[H,c.FullPaths[K]]}).forEach(function(H){var K=H[0],de=H[1];if(K.name.match(/\.iwa/)){var Ee=Kr(Yr(K.content));Ee.forEach(function(Ue){Ue.messages.forEach(function(Ae){u.forEach(function(Ce){Ue.messages.some(function(nt){return xc(nt.meta[1][0].data)!=11006&&uoe(nt.data,Ce[1])})&&a[Ce[0]].deps.push(Ue.id)})})})}});function d(){for(var H=927262;H<2e6;++H)if(!a[H])return H;throw new Error("Too many messages")}for(var f=rn.find(c,a[1].location),h=Kr(Yr(f.content)),m,p=0;p<h.length;++p){var g=h[p];g.id==1&&(m=g)}var v=Bo(Qn(m.messages[0].data)[1][0].data);for(f=rn.find(c,a[v].location),h=Kr(Yr(f.content)),p=0;p<h.length;++p)g=h[p],g.id==v&&(m=g);for(v=Bo(Qn(m.messages[0].data)[2][0].data),f=rn.find(c,a[v].location),h=Kr(Yr(f.content)),p=0;p<h.length;++p)g=h[p],g.id==v&&(m=g);for(v=Bo(Qn(m.messages[0].data)[2][0].data),f=rn.find(c,a[v].location),h=Kr(Yr(f.content)),p=0;p<h.length;++p)g=h[p],g.id==v&&(m=g);var _=Qn(m.messages[0].data);{_[6][0].data=Qt(i.e.r+1),_[7][0].data=Qt(i.e.c+1);var y=Bo(_[46][0].data),x=rn.find(c,a[y].location),w=Kr(Yr(x.content));{for(var T=0;T<w.length&&w[T].id!=y;++T);if(w[T].id!=y)throw"Bad ColumnRowUIDMapArchive";var E=Qn(w[T].messages[0].data);E[1]=[],E[2]=[],E[3]=[];for(var k=0;k<=i.e.c;++k){var F=[];F[1]=F[2]=[{type:0,data:Qt(k+420690)}],E[1].push({type:2,data:gi(F)}),E[2].push({type:0,data:Qt(k)}),E[3].push({type:0,data:Qt(k)})}E[4]=[],E[5]=[],E[6]=[];for(var G=0;G<=i.e.r;++G)F=[],F[1]=F[2]=[{type:0,data:Qt(G+726270)}],E[4].push({type:2,data:gi(F)}),E[5].push({type:0,data:Qt(G)}),E[6].push({type:0,data:Qt(G)});w[T].messages[0].data=gi(E)}x.content=hc(fc(w)),x.size=x.content.length,delete _[46];var Y=Qn(_[4][0].data);{Y[7][0].data=Qt(i.e.r+1);var W=Qn(Y[1][0].data),le=Bo(W[2][0].data);x=rn.find(c,a[le].location),w=Kr(Yr(x.content));{if(w[0].id!=le)throw"Bad HeaderStorageBucket";var ge=Qn(w[0].messages[0].data);for(G=0;G<s.length;++G){var te=Qn(ge[2][0].data);te[1][0].data=Qt(G),te[4][0].data=Qt(s[G].length),ge[2][G]={type:ge[2][0].type,data:gi(te)}}w[0].messages[0].data=gi(ge)}x.content=hc(fc(w)),x.size=x.content.length;var M=Bo(Y[2][0].data);x=rn.find(c,a[M].location),w=Kr(Yr(x.content));{if(w[0].id!=M)throw"Bad HeaderStorageBucket";for(ge=Qn(w[0].messages[0].data),k=0;k<=i.e.c;++k)te=Qn(ge[2][0].data),te[1][0].data=Qt(k),te[4][0].data=Qt(i.e.r+1),ge[2][k]={type:ge[2][0].type,data:gi(te)};w[0].messages[0].data=gi(ge)}x.content=hc(fc(w)),x.size=x.content.length;var R=Bo(Y[4][0].data);(function(){for(var H=rn.find(c,a[R].location),K=Kr(Yr(H.content)),de,Ee=0;Ee<K.length;++Ee){var Ue=K[Ee];Ue.id==R&&(de=Ue)}var Ae=Qn(de.messages[0].data);{Ae[3]=[];var Ce=[];o.forEach(function(ct,Ie){Ce[1]=[{type:0,data:Qt(Ie)}],Ce[2]=[{type:0,data:Qt(1)}],Ce[3]=[{type:2,data:coe(ct)}],Ae[3].push({type:2,data:gi(Ce)})})}de.messages[0].data=gi(Ae);var nt=fc(K),ot=hc(nt);H.content=ot,H.size=H.content.length})();var S=Qn(Y[3][0].data);{var D=S[1][0];delete S[2];var Q=Qn(D.data);{var X=Bo(Q[2][0].data);(function(){for(var H=rn.find(c,a[X].location),K=Kr(Yr(H.content)),de,Ee=0;Ee<K.length;++Ee){var Ue=K[Ee];Ue.id==X&&(de=Ue)}var Ae=Qn(de.messages[0].data);{delete Ae[6],delete S[7];var Ce=new Uint8Array(Ae[5][0].data);Ae[5]=[];for(var nt=0,ot=0;ot<=i.e.r;++ot){var ct=Qn(Ce);nt+=hoe(ct,s[ot],o),ct[1][0].data=Qt(ot),Ae[5].push({data:gi(ct),type:2})}Ae[1]=[{type:0,data:Qt(i.e.c+1)}],Ae[2]=[{type:0,data:Qt(i.e.r+1)}],Ae[3]=[{type:0,data:Qt(nt)}],Ae[4]=[{type:0,data:Qt(i.e.r+1)}]}de.messages[0].data=gi(Ae);var Ie=fc(K),Pn=hc(Ie);H.content=Pn,H.size=H.content.length})()}D.data=gi(Q)}Y[3][0].data=gi(S)}_[4][0].data=gi(Y)}m.messages[0].data=gi(_);var V=fc(h),ie=hc(V);return f.content=ie,f.size=f.content.length,c}function moe(t){return function(e){for(var i=0;i!=t.length;++i){var r=t[i];e[r[0]]===void 0&&(e[r[0]]=r[1]),r[2]==="n"&&(e[r[0]]=Number(e[r[0]]))}}}function bb(t){moe([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function goe(t,n){return n.bookType=="ods"?jF(t,n):n.bookType=="numbers"?poe(t,n):n.bookType=="xlsb"?voe(t,n):_oe(t,n)}function voe(t,n){mc=1024,t&&!t.SSF&&(t.SSF=Ji(Fn)),t&&t.SSF&&(lm(),am(t.SSF),n.revssf=cm(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,kd?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var e=n.bookType=="xlsb"?"bin":"xml",i=SF.indexOf(n.bookType)>-1,r=JA();bb(n=n||{});var s=eb(),o="",a=0;if(n.cellXfs=[],$o(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",St(s,o,iF(t.Props,n)),r.coreprops.push(o),Jt(n.rels,2,o,Wt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}for(t.Props.Worksheets=t.Props.SheetNames.length,St(s,o,sF(t.Props,n)),r.extprops.push(o),Jt(n.rels,3,o,Wt.EXT_PROPS),t.Custprops!==t.Props&&bi(t.Custprops||{}).length>0&&(o="docProps/custom.xml",St(s,o,oF(t.Custprops,n)),r.custprops.push(o),Jt(n.rels,4,o,Wt.CUST_PROPS)),a=1;a<=t.SheetNames.length;++a){var u={"!id":{}},d=t.Sheets[t.SheetNames[a-1]],f=(d||{})["!type"]||"sheet";switch(f){case"chart":default:o="xl/worksheets/sheet"+a+"."+e,St(s,o,xse(a-1,o,n,t,u)),r.sheets.push(o),Jt(n.wbrels,-1,"worksheets/sheet"+a+"."+e,Wt.WS[0])}if(d){var h=d["!comments"],m=!1,p="";h&&h.length>0&&(p="xl/comments"+a+"."+e,St(s,p,Cse(h,p,n)),r.comments.push(p),Jt(u,-1,"../comments"+a+"."+e,Wt.CMNT),m=!0),d["!legacy"]&&m&&St(s,"xl/drawings/vmlDrawing"+a+".vml",wF(a,d["!comments"])),delete d["!comments"],delete d["!legacy"]}u["!id"].rId1&&St(s,tF(o),_c(u))}return n.Strings!=null&&n.Strings.length>0&&(o="xl/sharedStrings."+e,St(s,o,wse(n.Strings,o,n)),r.strs.push(o),Jt(n.wbrels,-1,"sharedStrings."+e,Wt.SST)),o="xl/workbook."+e,St(s,o,yse(t,o,n)),r.workbooks.push(o),Jt(n.rels,1,o,Wt.WB),o="xl/theme/theme1.xml",St(s,o,xF(t.Themes,n)),r.themes.push(o),Jt(n.wbrels,-1,"theme/theme1.xml",Wt.THEME),o="xl/styles."+e,St(s,o,bse(t,o,n)),r.styles.push(o),Jt(n.wbrels,-1,"styles."+e,Wt.STY),t.vbaraw&&i&&(o="xl/vbaProject.bin",St(s,o,t.vbaraw),r.vba.push(o),Jt(n.wbrels,-1,"vbaProject.bin",Wt.VBA)),o="xl/metadata."+e,St(s,o,Sse(o)),r.metadata.push(o),Jt(n.wbrels,-1,"metadata."+e,Wt.XLMETA),St(s,"[Content_Types].xml",eF(r,n)),St(s,"_rels/.rels",_c(n.rels)),St(s,"xl/_rels/workbook."+e+".rels",_c(n.wbrels)),delete n.revssf,delete n.ssf,s}function _oe(t,n){mc=1024,t&&!t.SSF&&(t.SSF=Ji(Fn)),t&&t.SSF&&(lm(),am(t.SSF),n.revssf=cm(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,kd?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var e="xml",i=SF.indexOf(n.bookType)>-1,r=JA();bb(n=n||{});var s=eb(),o="",a=0;if(n.cellXfs=[],$o(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",St(s,o,iF(t.Props,n)),r.coreprops.push(o),Jt(n.rels,2,o,Wt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,St(s,o,sF(t.Props,n)),r.extprops.push(o),Jt(n.rels,3,o,Wt.EXT_PROPS),t.Custprops!==t.Props&&bi(t.Custprops||{}).length>0&&(o="docProps/custom.xml",St(s,o,oF(t.Custprops,n)),r.custprops.push(o),Jt(n.rels,4,o,Wt.CUST_PROPS));var u=["SheetJ5"];for(n.tcid=0,a=1;a<=t.SheetNames.length;++a){var d={"!id":{}},f=t.Sheets[t.SheetNames[a-1]],h=(f||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+a+"."+e,St(s,o,PF(a-1,n,t,d)),r.sheets.push(o),Jt(n.wbrels,-1,"worksheets/sheet"+a+"."+e,Wt.WS[0])}if(f){var m=f["!comments"],p=!1,g="";if(m&&m.length>0){var v=!1;m.forEach(function(_){_[1].forEach(function(y){y.T==!0&&(v=!0)})}),v&&(g="xl/threadedComments/threadedComment"+a+"."+e,St(s,g,Yte(m,u,n)),r.threadedcomments.push(g),Jt(d,-1,"../threadedComments/threadedComment"+a+"."+e,Wt.TCMNT)),g="xl/comments"+a+"."+e,St(s,g,CF(m,n)),r.comments.push(g),Jt(d,-1,"../comments"+a+"."+e,Wt.CMNT),p=!0}f["!legacy"]&&p&&St(s,"xl/drawings/vmlDrawing"+a+".vml",wF(a,f["!comments"])),delete f["!comments"],delete f["!legacy"]}d["!id"].rId1&&St(s,tF(o),_c(d))}return n.Strings!=null&&n.Strings.length>0&&(o="xl/sharedStrings."+e,St(s,o,pF(n.Strings,n)),r.strs.push(o),Jt(n.wbrels,-1,"sharedStrings."+e,Wt.SST)),o="xl/workbook."+e,St(s,o,LF(t,n)),r.workbooks.push(o),Jt(n.rels,1,o,Wt.WB),o="xl/theme/theme1.xml",St(s,o,xF(t.Themes,n)),r.themes.push(o),Jt(n.wbrels,-1,"theme/theme1.xml",Wt.THEME),o="xl/styles."+e,St(s,o,_F(t,n)),r.styles.push(o),Jt(n.wbrels,-1,"styles."+e,Wt.STY),t.vbaraw&&i&&(o="xl/vbaProject.bin",St(s,o,t.vbaraw),r.vba.push(o),Jt(n.wbrels,-1,"vbaProject.bin",Wt.VBA)),o="xl/metadata."+e,St(s,o,bF()),r.metadata.push(o),Jt(n.wbrels,-1,"metadata."+e,Wt.XLMETA),u.length>1&&(o="xl/persons/person.xml",St(s,o,Xte(u,n)),r.people.push(o),Jt(n.wbrels,-1,"persons/person.xml",Wt.PEOPLE)),St(s,"[Content_Types].xml",eF(r,n)),St(s,"_rels/.rels",_c(n.rels)),St(s,"xl/_rels/workbook."+e+".rels",_c(n.wbrels)),delete n.revssf,delete n.ssf,s}function yoe(t,n){var e="";switch((n||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=no(t.slice(0,12));break;case"binary":e=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(n&&n.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}function UF(t,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return Vd(n.file,rn.write(t,{type:Kt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return rn.write(t,n)}function xoe(t,n){var e=Ji(n||{}),i=goe(t,e);return boe(i,e)}function boe(t,n){var e={},i=Kt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(n.compression&&(e.compression="DEFLATE"),n.password)e.type=i;else switch(n.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":e.type=i;break;default:throw new Error("Unrecognized type "+n.type)}var r=t.FullPaths?rn.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!n.compression}):t.generate(e);if(typeof Deno<"u"&&typeof r=="string"){if(n.type=="binary"||n.type=="base64")return r;r=new Uint8Array(om(r))}return n.password&&typeof encrypt_agile<"u"?UF(encrypt_agile(r,n.password),n):n.type==="file"?Vd(n.file,r):n.type=="string"?Ed(r):r}function woe(t,n){var e=n||{},i=Vse(t,e);return UF(i,e)}function xs(t,n,e){e||(e="");var i=e+t;switch(n.type){case"base64":return Fd(Qs(i));case"binary":return Qs(i);case"string":return t;case"file":return Vd(n.file,i,"utf8");case"buffer":return Kt?ro(i,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(i):xs(i,{type:"binary"}).split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}function Coe(t,n){switch(n.type){case"base64":return Fd(t);case"binary":return t;case"string":return t;case"file":return Vd(n.file,t,"binary");case"buffer":return Kt?ro(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}function G0(t,n){switch(n.type){case"string":case"base64":case"binary":for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return n.type=="base64"?Fd(e):n.type=="string"?Ed(e):e;case"file":return Vd(n.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+n.type)}}function WF(t,n){YQ(),lse(t);var e=Ji(n||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),e.type=="array"){e.type="binary";var i=WF(t,e);return e.type="array",om(i)}var r=0;if(e.sheet&&(typeof e.sheet=="number"?r=e.sheet:r=t.SheetNames.indexOf(e.sheet),!t.SheetNames[r]))throw new Error("Sheet not found: "+e.sheet+" : "+typeof e.sheet);switch(e.bookType||"xlsb"){case"xml":case"xlml":return xs(Lse(t,e),e);case"slk":case"sylk":return xs(ste.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"htm":case"html":return xs(BF(t.Sheets[t.SheetNames[r]],e),e);case"txt":return Coe(GF(t.Sheets[t.SheetNames[r]],e),e);case"csv":return xs(wb(t.Sheets[t.SheetNames[r]],e),e,"\uFEFF");case"dif":return xs(ote.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return G0(rte.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return xs(ate.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return xs(pte.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"eth":return xs(hF.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return xs(jF(t,e),e);case"wk1":return G0(dA.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return G0(dA.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),G0(VF(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),woe(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return xoe(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function Soe(t){if(!t.bookType){var n={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},e=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();e.match(/^\.[a-z]+$/)&&(t.bookType=e.slice(1)),t.bookType=n[t.bookType]||t.bookType}}function $F(t,n,e){var i=e||{};return i.type="file",i.file=n,Soe(i),WF(t,i)}function Eoe(t,n,e,i,r,s,o,a){var l=xi(e),c=a.defval,u=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),d=!0,f=r===1?[]:{};if(r!==1)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:e,enumerable:!1})}catch{f.__rowNum__=e}else f.__rowNum__=e;if(!o||t[e])for(var h=n.s.c;h<=n.e.c;++h){var m=o?t[e][h]:t[i[h]+l];if(m===void 0||m.t===void 0){if(c===void 0)continue;s[h]!=null&&(f[s[h]]=c);continue}var p=m.v;switch(m.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(s[h]!=null){if(p==null)if(m.t=="e"&&p===null)f[s[h]]=null;else if(c!==void 0)f[s[h]]=c;else if(u&&p===null)f[s[h]]=null;else continue;else f[s[h]]=u&&(m.t!=="n"||m.t==="n"&&a.rawNumbers!==!1)?p:io(m,p,a);p!=null&&(d=!1)}}return{row:f,isempty:d}}function sm(t,n){if(t==null||t["!ref"]==null)return[];var e={t:"n",v:0},i=0,r=1,s=[],o=0,a="",l={s:{r:0,c:0},e:{r:0,c:0}},c=n||{},u=c.range!=null?c.range:t["!ref"];switch(c.header===1?i=1:c.header==="A"?i=2:Array.isArray(c.header)?i=3:c.header==null&&(i=0),typeof u){case"string":l=yn(u);break;case"number":l=yn(t["!ref"]),l.s.r=u;break;default:l=u}i>0&&(r=0);var d=xi(l.s.r),f=[],h=[],m=0,p=0,g=Array.isArray(t),v=l.s.r,_=0,y={};g&&!t[v]&&(t[v]=[]);var x=c.skipHidden&&t["!cols"]||[],w=c.skipHidden&&t["!rows"]||[];for(_=l.s.c;_<=l.e.c;++_)if(!(x[_]||{}).hidden)switch(f[_]=Si(_),e=g?t[v][_]:t[f[_]+d],i){case 1:s[_]=_-l.s.c;break;case 2:s[_]=f[_];break;case 3:s[_]=c.header[_-l.s.c];break;default:if(e==null&&(e={w:"__EMPTY",t:"s"}),a=o=io(e,null,c),p=y[o]||0,!p)y[o]=1;else{do a=o+"_"+p++;while(y[a]);y[o]=p,y[a]=1}s[_]=a}for(v=l.s.r+r;v<=l.e.r;++v)if(!(w[v]||{}).hidden){var T=Eoe(t,l,v,f,i,s,g,c);(T.isempty===!1||(i===1?c.blankrows!==!1:c.blankrows))&&(h[m++]=T.row)}return h.length=m,h}var yA=/"/g;function Toe(t,n,e,i,r,s,o,a){for(var l=!0,c=[],u="",d=xi(e),f=n.s.c;f<=n.e.c;++f)if(i[f]){var h=a.dense?(t[e]||[])[f]:t[i[f]+d];if(h==null)u="";else if(h.v!=null){l=!1,u=""+(a.rawNumbers&&h.t=="n"?h.v:io(h,null,a));for(var m=0,p=0;m!==u.length;++m)if((p=u.charCodeAt(m))===r||p===s||p===34||a.forceQuotes){u='"'+u.replace(yA,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(yA,'""')+'"')):u="";c.push(u)}return a.blankrows===!1&&l?null:c.join(o)}function wb(t,n){var e=[],i=n??{};if(t==null||t["!ref"]==null)return"";var r=yn(t["!ref"]),s=i.FS!==void 0?i.FS:",",o=s.charCodeAt(0),a=i.RS!==void 0?i.RS:`
`,l=a.charCodeAt(0),c=new RegExp((s=="|"?"\\|":s)+"+$"),u="",d=[];i.dense=Array.isArray(t);for(var f=i.skipHidden&&t["!cols"]||[],h=i.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(f[m]||{}).hidden||(d[m]=Si(m));for(var p=0,g=r.s.r;g<=r.e.r;++g)(h[g]||{}).hidden||(u=Toe(t,r,g,d,o,l,s,i),u!=null&&(i.strip&&(u=u.replace(c,"")),(u||i.blankrows!==!1)&&e.push((p++?a:"")+u)));return delete i.dense,e.join("")}function GF(t,n){n||(n={}),n.FS="	",n.RS=`
`;var e=wb(t,n);if(typeof an>"u"||n.type=="string")return e;var i=an.utils.encode(1200,e,"str");return"\xFF\xFE"+i}function Ioe(t){var n="",e,i="";if(t==null||t["!ref"]==null)return[];var r=yn(t["!ref"]),s="",o=[],a,l=[],c=Array.isArray(t);for(a=r.s.c;a<=r.e.c;++a)o[a]=Si(a);for(var u=r.s.r;u<=r.e.r;++u)for(s=xi(u),a=r.s.c;a<=r.e.c;++a)if(n=o[a]+s,e=c?(t[u]||[])[a]:t[n],i="",e!==void 0){if(e.F!=null){if(n=e.F,!e.f)continue;i=e.f,n.indexOf(":")==-1&&(n=n+":"+n)}if(e.f!=null)i=e.f;else{if(e.t=="z")continue;if(e.t=="n"&&e.v!=null)i=""+e.v;else if(e.t=="b")i=e.v?"TRUE":"FALSE";else if(e.w!==void 0)i="'"+e.w;else{if(e.v===void 0)continue;e.t=="s"?i="'"+e.v:i=""+e.v}}l[l.length]=n+"="+i}return l}function qF(t,n,e){var i=e||{},r=+!i.skipHeader,s=t||{},o=0,a=0;if(s&&i.origin!=null)if(typeof i.origin=="number")o=i.origin;else{var l=typeof i.origin=="string"?li(i.origin):i.origin;o=l.r,a=l.c}var c,u={s:{c:0,r:0},e:{c:a,r:o+n.length-1+r}};if(s["!ref"]){var d=yn(s["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),o==-1&&(o=d.e.r+1,u.e.r=o+n.length-1+r)}else o==-1&&(o=0,u.e.r=n.length-1+r);var f=i.header||[],h=0;n.forEach(function(p,g){bi(p).forEach(function(v){(h=f.indexOf(v))==-1&&(f[h=f.length]=v);var _=p[v],y="z",x="",w=tn({c:a+h,r:o+g+r});c=Ld(s,w),_&&typeof _=="object"&&!(_ instanceof Date)?s[w]=_:(typeof _=="number"?y="n":typeof _=="boolean"?y="b":typeof _=="string"?y="s":_ instanceof Date?(y="d",i.cellDates||(y="n",_=Qi(_)),x=i.dateNF||Fn[14]):_===null&&i.nullError&&(y="e",_=0),c?(c.t=y,c.v=_,delete c.w,delete c.R,x&&(c.z=x)):s[w]=c={t:y,v:_},x&&(c.z=x))})}),u.e.c=Math.max(u.e.c,a+f.length-1);var m=xi(o);if(r)for(h=0;h<f.length;++h)s[Si(h+a)+m]={t:"s",v:f[h]};return s["!ref"]=Un(u),s}function Doe(t,n){return qF(null,t,n)}function Ld(t,n,e){if(typeof n=="string"){if(Array.isArray(t)){var i=li(n);return t[i.r]||(t[i.r]=[]),t[i.r][i.c]||(t[i.r][i.c]={t:"z"})}return t[n]||(t[n]={t:"z"})}return typeof n!="number"?Ld(t,tn(n)):Ld(t,tn({r:n,c:e||0}))}function koe(t,n){if(typeof n=="number"){if(n>=0&&t.SheetNames.length>n)return n;throw new Error("Cannot find sheet # "+n)}else if(typeof n=="string"){var e=t.SheetNames.indexOf(n);if(e>-1)return e;throw new Error("Cannot find sheet name |"+n+"|")}else throw new Error("Cannot find sheet |"+n+"|")}function Moe(){return{SheetNames:[],Sheets:{}}}function Aoe(t,n,e,i){var r=1;if(!e)for(;r<=65535&&t.SheetNames.indexOf(e="Sheet"+r)!=-1;++r,e=void 0);if(!e||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&t.SheetNames.indexOf(e)>=0){var s=e.match(/(^.*?)(\d+)$/);r=s&&+s[2]||0;var o=s&&s[1]||e;for(++r;r<=65535&&t.SheetNames.indexOf(e=o+r)!=-1;++r);}if(RF(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=n,e}function Foe(t,n,e){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var i=koe(t,n);switch(t.Workbook.Sheets[i]||(t.Workbook.Sheets[i]={}),e){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+e)}t.Workbook.Sheets[i].Hidden=e}function Poe(t,n){return t.z=n,t}function KF(t,n,e){return n?(t.l={Target:n},e&&(t.l.Tooltip=e)):delete t.l,t}function Ooe(t,n,e){return KF(t,"#"+n,e)}function Roe(t,n,e){t.c||(t.c=[]),t.c.push({t:n,a:e||"SheetJS"})}function Loe(t,n,e,i){for(var r=typeof n!="string"?n:yn(n),s=typeof n=="string"?n:Un(n),o=r.s.r;o<=r.e.r;++o)for(var a=r.s.c;a<=r.e.c;++a){var l=Ld(t,o,a);l.t="n",l.F=s,delete l.v,o==r.s.r&&a==r.s.c&&(l.f=e,i&&(l.D=!0))}return t}var Dc={encode_col:Si,encode_row:xi,encode_cell:tn,encode_range:Un,decode_col:db,decode_row:ub,split_cell:ZJ,decode_cell:li,decode_range:gr,format_cell:io,sheet_add_aoa:qA,sheet_add_json:qF,sheet_add_dom:HF,aoa_to_sheet:Ec,json_to_sheet:Doe,table_to_sheet:zF,table_to_book:ooe,sheet_to_csv:wb,sheet_to_txt:GF,sheet_to_json:sm,sheet_to_html:BF,sheet_to_formulae:Ioe,sheet_to_row_object_array:sm,sheet_get_cell:Ld,book_new:Moe,book_append_sheet:Aoe,book_set_sheet_visibility:Foe,cell_set_number_format:Poe,cell_set_hyperlink:KF,cell_set_internal_link:Ooe,cell_add_comment:Roe,sheet_set_array_formula:Loe,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};var cbe=Md.version;var YF=()=>({"min-width":"60rem"}),XF=t=>({"background-color":t,color:"white","font-size":"1rem","padding-left":"0.75rem","padding-right":"0.75rem"});function Noe(t,n){if(t&1){let e=He();P(0,"div",7)(1,"div",8)(2,"span",9),Te(3),O(),P(4,"p",10),Te(5),O()(),P(6,"div",11)(7,"button",12),ye("click",function(){J(e);let r=I();return ee(r.exportUsersToCSV(0))}),O()()()}if(t&2){let e=I();C(3),Vt("",e.groups[0].name," Group"),C(2),yt(e.groups[0].description)}}function Voe(t,n){t&1&&(P(0,"tr")(1,"th",13),Te(2," Nome de Utilizador "),re(3,"p-sortIcon",14),O(),P(4,"th",15),Te(5," Email "),re(6,"p-sortIcon",16),O(),P(7,"th",17),Te(8," Cargo "),re(9,"p-sortIcon",18),O()())}function Boe(t,n){if(t&1&&(P(0,"tr")(1,"td"),Te(2),O(),P(3,"td"),Te(4),O(),P(5,"td"),re(6,"p-tag",19),O()()),t&2){let e=n.$implicit,i=I();C(2),yt(e.username),C(2),yt(e.email),C(2),fa(Xe(6,XF,e.role===i.admin?"#F19400":"#8E5700")),b("rounded",!0)("value",e.role)}}function Hoe(t,n){if(t&1){let e=He();P(0,"div",7)(1,"div",8)(2,"span",9),Te(3),O(),P(4,"p",10),Te(5),O()(),P(6,"div",11)(7,"button",12),ye("click",function(){J(e);let r=I();return ee(r.exportUsersToCSV(1))}),O()()()}if(t&2){let e=I();C(3),Vt("",e.groups[1].name," Group"),C(2),yt(e.groups[1].description)}}function zoe(t,n){t&1&&(P(0,"tr")(1,"th",13),Te(2," Nome de Utilizador "),re(3,"p-sortIcon",14),O(),P(4,"th",15),Te(5," Email "),re(6,"p-sortIcon",16),O(),P(7,"th",17),Te(8," Cargo "),re(9,"p-sortIcon",18),O()())}function joe(t,n){if(t&1&&(P(0,"tr")(1,"td"),Te(2),O(),P(3,"td"),Te(4),O(),P(5,"td"),re(6,"p-tag",19),O()()),t&2){let e=n.$implicit,i=I();C(2),yt(e.username),C(2),yt(e.email),C(2),fa(Xe(6,XF,e.role===i.admin?"#F19400":"#8E5700")),b("rounded",!0)("value",e.role)}}var ZF=(()=>{class t{constructor(){this.groupServ=_e(A0),this.admin=bn.ADMIN,this.groups=this.groupServ.groups}exportUsersToCSV(e){let i=[["Nome","Email","Cargo"]],r=Dc.book_new(),s=Dc.json_to_sheet([]);Dc.sheet_add_aoa(s,i),Dc.sheet_add_json(s,this.groups[e].users.map(o=>({Nome:o.username,Email:o.email,Cargo:o.role})),{origin:"A2",skipHeader:!0}),Dc.book_append_sheet(r,s,"Utilizadores"),$F(r,`${this.groups[e].name} Reporte.xlsx`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-groups"]],standalone:!0,features:[Me],decls:15,vars:6,consts:[[1,"h-screen","flex","flex-col","items-center","pl-10"],[1,"py-8","text-center"],[1,"shadow-lg"],["pTemplate","header"],[3,"value","tableStyle"],["pTemplate","body"],[1,"pb-5","text-center"],[1,"flex","justify-center","items-center","pt-5","pl-40"],[1,"space-y-2"],[1,"text-2xl","font-bold"],[1,"text-gray-600"],[1,"ml-40"],["pButton","",1,"pi","pi-download",2,"font-size","1.8rem",3,"click"],["pSortableColumn","username",2,"width","31%"],["field","username"],["pSortableColumn","email",2,"width","31%"],["field","email"],["pSortableColumn","role",2,"width","31%"],["field","role"],[3,"rounded","value"]],template:function(i,r){i&1&&(P(0,"div",0)(1,"div",1)(2,"div",2)(3,"p-card"),N(4,Noe,8,2,"ng-template",3),P(5,"p-table",4),N(6,Voe,10,0,"ng-template",3)(7,Boe,7,8,"ng-template",5),O()()()(),P(8,"div",6)(9,"div",2)(10,"p-card"),N(11,Hoe,8,2,"ng-template",3),P(12,"p-table",4),N(13,zoe,10,0,"ng-template",3)(14,joe,7,8,"ng-template",5),O()()()()()),i&2&&(C(5),b("value",r.groups[0].users)("tableStyle",Bn(4,YF)),C(7),b("value",r.groups[1].users)("tableStyle",Bn(5,YF)))},dependencies:[Oi,fs,Mt,M0,k0,AM,bd,kM,MM,PM,FM,It]})}}return t})();function Cb(t){t||(rh(Cb),t=_e(Cl));let n=new Pt(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(Bc(n))}var Uoe=["container"],QF=new it("LottieOptions");function Woe(){let t=_e(rt),{player:n,useWebWorker:e}=_e(QF),i=t.runOutsideAngular(()=>n());return(Ls(i)?pn(i).pipe(wt(s=>s.default||s)):at(i)).pipe(Kn(s=>s.useWebWorker?.(e)),jm({bufferSize:1,refCount:!0}))}var $oe=(()=>{class t{constructor(){this.player$=Woe().pipe(Tn(e=>Goe(this.ngZone).pipe(wt(()=>e)))),this.ngZone=_e(rt)}loadAnimation(e){return this.player$.pipe(wt(i=>this.createAnimationItem(i,e)))}resolveOptions(e,i){return Object.assign({container:i,renderer:"svg",loop:!0,autoplay:!0},e)}createAnimationItem(e,i){return this.ngZone.runOutsideAngular(()=>e.loadAnimation(i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Goe(t){return new Pt(n=>{let e=t.runOutsideAngular(()=>requestAnimationFrame(()=>{n.next(),n.complete()}));return()=>cancelAnimationFrame(e)})}function JF(t){return[{provide:QF,useValue:t}]}var qoe=(()=>{class t{constructor(){this.options=Sl(null),this.containerClass=Sl(null),this.styles=Sl(null),this.animationCreated=this.getAnimationItem(),this.complete=this.awaitAnimationItemAndStartListening("complete"),this.loopComplete=this.awaitAnimationItemAndStartListening("loopComplete"),this.enterFrame=this.awaitAnimationItemAndStartListening("enterFrame"),this.segmentStart=this.awaitAnimationItemAndStartListening("segmentStart"),this.configReady=this.awaitAnimationItemAndStartListening("config_ready"),this.dataReady=this.awaitAnimationItemAndStartListening("data_ready"),this.domLoaded=this.awaitAnimationItemAndStartListening("DOMLoaded"),this.destroy=this.awaitAnimationItemAndStartListening("destroy"),this.error=this.awaitAnimationItemAndStartListening("error"),this.ngZone=_e(rt),this.isBrowser=gn(_e(nn)),this.animationLoader=_e($oe),this.loadAnimation$=new Ht,this.animationItem$=new qn(null),this.setupLoadAnimationListener()}ngOnDestroy(){this.destroyAnimation()}loadAnimation(e,i){this.ngZone.runOutsideAngular(()=>this.loadAnimation$.next([e,i]))}getAnimationItem(){return il(()=>this.animationItem$).pipe(Ii(e=>e!==null))}awaitAnimationItemAndStartListening(e){return this.getAnimationItem().pipe(Di(i=>new Pt(r=>{this.ngZone.runOutsideAngular(()=>{i.addEventListener(e,s=>{this.ngZone.runOutsideAngular(()=>{r.next(s)})})})})))}setupLoadAnimationListener(){this.loadAnimation$.pipe(Ii(([i])=>this.isBrowser&&i.options!==void 0)).pipe(Di(([i,r])=>(this.destroyAnimation(),this.animationLoader.loadAnimation(this.animationLoader.resolveOptions(i.options.currentValue,r)))),Cb()).subscribe(i=>{this.ngZone.run(()=>this.animationItem$.next(i))})}destroyAnimation(){let e=this.animationItem$.getValue();e!==null&&(e.destroy(),this.animationItem$.next(null))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=kt({type:t,selectors:[["","lottie",""]],inputs:{options:[Z.SignalBased,"options"],containerClass:[Z.SignalBased,"containerClass"],styles:[Z.SignalBased,"styles"]},outputs:{animationCreated:"animationCreated",complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"configReady",dataReady:"dataReady",domLoaded:"domLoaded",destroy:"destroy",error:"error"}})}}return t})();var mm=(()=>{class t extends qoe{constructor(){super(...arguments),this.width=Sl(null),this.height=Sl(null),this.container=null}ngOnChanges(e){super.loadAnimation(e,this.container.nativeElement)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ge(t)))(r||t)}})()}static{this.\u0275cmp=me({type:t,selectors:[["ng-lottie"]],viewQuery:function(i,r){if(i&1&&vt(Uoe,7),i&2){let s;qe(s=Ke())&&(r.container=s.first)}},inputs:{width:[Z.SignalBased,"width"],height:[Z.SignalBased,"height"]},standalone:!0,features:[We,xn,Me],decls:2,vars:6,consts:[["container",""],[3,"ngStyle","ngClass"]],template:function(i,r){i&1&&re(0,"div",1,0),i&2&&(da("width",r.width()||"100%")("height",r.height()||"100%"),b("ngStyle",r.styles())("ngClass",r.containerClass()))},dependencies:[Bt,zt],encapsulation:2,changeDetection:0})}}return t})();var e3=(()=>{class t{constructor(e){this.fb=e,this.options={path:"assets/animations/under-construction.json"},this.submitted=!1,this.showDialog=!1,this.usernamePattern=/^[A-Za-z0-9]{8,}$/,this.emailPattern=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,this.passwordPattern=/^[A-Za-z0-9]{8,}$/,this.form=this.fb.group({username:["",[fr.required]],email:["",[fr.required,fr.pattern(this.emailPattern)]],password:["",[fr.required,fr.pattern(this.passwordPattern)]]})}get username(){return this.form.get("username")}get email(){return this.form.get("email")}get password(){return this.form.get("password")}onSubmit(){this.submitted=!0,this.form.valid&&(this.showDialog=!0)}static{this.\u0275fac=function(i){return new(i||t)(se(Lp))}}static{this.\u0275cmp=me({type:t,selectors:[["app-add-users"]],standalone:!0,features:[Me],decls:19,vars:15,consts:[[1,"h-screen","flex","flex-col","items-center","justify-center","space-y-10"],[1,"text-5xl","font-bold","text-primary-800"],[1,"w-[40%]","rounded-[2rem]","bg-primary-800","drop-shadow-xl"],[1,"flex","justify-center","items-center","pt-8"],[1,"flex","items-center","justify-center","w-40","h-40","rounded-full","text-5xl","font-semibold","bg-primary-400","text-white","aspect-square"],[1,"w-full","flex","flex-col","items-center","space-y-10","py-10",3,"ngSubmit","formGroup"],["label","Nome de Utilizador","formControlName","username","type","text",3,"pattern","startValidate","errorMessage"],["label","Email","formControlName","email","type","email",3,"pattern","startValidate","errorMessage"],["label","Senha","formControlName","password","type","password",3,"pattern","startValidate","errorMessage"],["type","submit",1,"w-[60%]","py-2","rounded-full","bg-primary-500","text-xl","text-white"],["modal","","header","Funcionalidade em constru\xE7\xE3o!",3,"visibleChange","visible","draggable","resizable"],[1,"flex","flex-col","items-center"],[1,"w-60"],[3,"options"],[1,"text-xl"]],template:function(i,r){if(i&1&&(P(0,"div",0)(1,"p",1),Te(2,"Adicionar Utilizador"),O(),P(3,"div",2)(4,"div",3)(5,"p",4),Te(6),O()(),P(7,"form",5),ye("ngSubmit",function(){return r.onSubmit()}),re(8,"app-input-field",6)(9,"app-input-field",7)(10,"app-input-field",8),P(11,"button",9),Te(12," Adicionar "),O()()()(),P(13,"p-dialog",10),Rs("visibleChange",function(o){return yo(r.showDialog,o)||(r.showDialog=o),o}),P(14,"div",11)(15,"div",12),re(16,"ng-lottie",13),O(),P(17,"p",14),Te(18,"Brevemente teremos esta funcionalidade."),O()()()),i&2){let s;C(6),Vt(" ",r.username==null||(s=r.username.value.charAt(0))==null?null:s.toUpperCase()," "),C(),b("formGroup",r.form),C(),b("pattern",r.usernamePattern)("startValidate",r.submitted)("errorMessage","Nome de Utilizador inv\xE1lido, por favor volte a digitar!"),C(),b("pattern",r.emailPattern)("startValidate",r.submitted)("errorMessage","Email inv\xE1lido, por favor volte a digitar!"),C(),b("pattern",r.passwordPattern)("startValidate",r.submitted)("errorMessage","Password inv\xE1lida, m\xEDnimo 8 caracteres!"),C(3),Os("visible",r.showDialog),b("draggable",!1)("resizable",!1),C(3),b("options",r.options)}},dependencies:[Np,Rp,ql,Ap,Yu,qu,Ku,Bp,zp,Hp,mm]})}}return t})();var t3=(t,n)=>{let e=_e(ti),i=JSON.parse(localStorage.getItem("user")),r=t.data.roles;return i?r.includes(i.role)?!0:(e.navigate(["unauthorized"]),!1):(e.navigate(["/login"]),!1)};var n3=(()=>{class t{constructor(){this.options={path:"assets/animations/access-denied.json",loop:0},this.router=_e(ti)}back(){this.router.navigate(["home"])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-unauthorized"]],standalone:!0,features:[Me],decls:9,vars:1,consts:[[1,"h-screen","flex","flex-col","space-y-10","justify-center","items-center"],[1,"h-[8rem]","sm:h-[10rem]","md:h-[12rem]",3,"options"],[1,"space-y-2","text-center"],[1,"font-bold","text-xl","sm:text-2xl","md:text-4xl"],[1,"text-lg","sm:text-xl","md:text-2xl"],[1,"px-16","py-2","md:px-20","md:py-3","rounded-full","text-lg","sm:text-xl","md:text-2xl","text-white","bg-[#1e1e1e]",3,"click"]],template:function(i,r){i&1&&(P(0,"div",0),re(1,"ng-lottie",1),P(2,"div",2)(3,"p",3),Te(4,"Acesso Interdito!"),O(),P(5,"p",4),Te(6,"O utilizador n\xE3o tem acesso a esta rota."),O()(),P(7,"button",5),ye("click",function(){return r.back()}),Te(8," Voltar "),O()()),i&2&&(C(),b("options",r.options))},dependencies:[mm]})}}return t})();var i3=[{path:"login",component:FI,canActivate:[dx]},{path:"",component:iM,canActivate:[dx],canActivateChild:[t3],children:[{path:"home",component:eM,data:{roles:[bn.SUPER_ADMIN,bn.ADMIN,bn.USER]}},{path:"groups",component:ZF,data:{roles:[bn.SUPER_ADMIN,bn.ADMIN,bn.USER]}},{path:"add-users",component:e3,data:{roles:[bn.SUPER_ADMIN,bn.ADMIN]}}]},{path:"unauthorized",component:n3},{path:"**",redirectTo:"login",pathMatch:"full"}];var s3=A3(r3()),o3={providers:[yp,lT(i3),GT(),JF({player:()=>s3.default})]};var a3=(()=>{class t{constructor(){this.title="e-registro-dashboard"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-root"]],standalone:!0,features:[Me],decls:2,vars:0,consts:[[1,"z-50"]],template:function(i,r){i&1&&re(0,"p-toast",0)(1,"router-outlet")},dependencies:[Au,jp,AI]})}}return t})();yE(a3,o3).catch(t=>console.error(t));